2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for shibboleth 2.0.
5 # Report bugs to <shibboleth-users@internet2.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='shibboleth'
425 PACKAGE_TARNAME='shibboleth'
426 PACKAGE_VERSION='2.0'
427 PACKAGE_STRING='shibboleth 2.0'
428 PACKAGE_BUGREPORT='shibboleth-users@internet2.edu'
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DX_PROJECT DX_CONFIG DX_DOCDIR DX_ENV DX_FLAG_doc DX_DOXYGEN ac_pt_DX_DOXYGEN DX_FLAG_[]DX_CURRENT_FEATURE DX_PERL ac_pt_DX_PERL DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_doc_TRUE DX_COND_doc_FALSE DX_FLAG_dot DX_FLAG_[]DX_CURRENT_FEATURE DX_DOT ac_pt_DX_DOT DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_dot_TRUE DX_COND_dot_FALSE DX_FLAG_man DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_man_TRUE DX_COND_man_FALSE DX_FLAG_rtf DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_rtf_TRUE DX_COND_rtf_FALSE DX_FLAG_xml DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_xml_TRUE DX_COND_xml_FALSE DX_FLAG_chm DX_FLAG_[]DX_CURRENT_FEATURE DX_HHC ac_pt_DX_HHC DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_chm_TRUE DX_COND_chm_FALSE DX_FLAG_chi DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_chi_TRUE DX_COND_chi_FALSE DX_FLAG_html DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_html_TRUE DX_COND_html_FALSE DX_FLAG_ps DX_FLAG_[]DX_CURRENT_FEATURE DX_LATEX ac_pt_DX_LATEX DX_FLAG_[]DX_CURRENT_FEATURE DX_MAKEINDEX ac_pt_DX_MAKEINDEX DX_FLAG_[]DX_CURRENT_FEATURE DX_DVIPS ac_pt_DX_DVIPS DX_FLAG_[]DX_CURRENT_FEATURE DX_EGREP ac_pt_DX_EGREP DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_ps_TRUE DX_COND_ps_FALSE DX_FLAG_pdf DX_FLAG_[]DX_CURRENT_FEATURE DX_PDFLATEX ac_pt_DX_PDFLATEX DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_pdf_TRUE DX_COND_pdf_FALSE DX_COND_latex_TRUE DX_COND_latex_FALSE DOXYGEN_PAPER_SIZE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS PKG_CONFIG LOG4SHIB_CONFIG LOG4CPP_CONFIG XMLTOOLINGXMLDIR OPENSAMLXMLDIR LITE_LIBS XMLSEC_LIBS NSAPI_INCLUDE BUILD_NSAPI_TRUE BUILD_NSAPI_FALSE FASTCGI_INCLUDE FASTCGI_LDFLAGS FASTCGI_LIBS BUILD_FASTCGI_TRUE BUILD_FASTCGI_FALSE xs APXS APXS_CFLAGS APXS_INCLUDE APXS2 APR_CONFIG APXS2_CFLAGS APXS2_INCLUDE APXS22 APR1_CONFIG APXS22_CFLAGS APXS22_INCLUDE BUILD_AP13_TRUE BUILD_AP13_FALSE BUILD_AP20_TRUE BUILD_AP20_FALSE BUILD_AP22_TRUE BUILD_AP22_FALSE ODBC_CONFIG ODBC_CFLAGS ODBC_LIBS WANT_SUBDIRS 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_DOXYGEN_PAPER_SIZE_set=${DOXYGEN_PAPER_SIZE+set}
909 ac_env_DOXYGEN_PAPER_SIZE_value=$DOXYGEN_PAPER_SIZE
910 ac_cv_env_DOXYGEN_PAPER_SIZE_set=${DOXYGEN_PAPER_SIZE+set}
911 ac_cv_env_DOXYGEN_PAPER_SIZE_value=$DOXYGEN_PAPER_SIZE
912 ac_env_CC_set=${CC+set}
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
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_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXXCPP_set=${CXXCPP+set}
941 ac_env_CXXCPP_value=$CXXCPP
942 ac_cv_env_CXXCPP_set=${CXXCPP+set}
943 ac_cv_env_CXXCPP_value=$CXXCPP
944 ac_env_F77_set=${F77+set}
945 ac_env_F77_value=$F77
946 ac_cv_env_F77_set=${F77+set}
947 ac_cv_env_F77_value=$F77
948 ac_env_FFLAGS_set=${FFLAGS+set}
949 ac_env_FFLAGS_value=$FFLAGS
950 ac_cv_env_FFLAGS_set=${FFLAGS+set}
951 ac_cv_env_FFLAGS_value=$FFLAGS
954 # Report the --help message.
956 if test "$ac_init_help" = "long"; then
957 # Omit some internal or obsolete options to make the list less imposing.
958 # This message is too long to be a string in the A/UX 3.1 sh.
960 \`configure' configures shibboleth 2.0 to adapt to many kinds of systems.
962 Usage: $0 [OPTION]... [VAR=VALUE]...
964 To assign environment variables (e.g., CC, CFLAGS...), specify them as
965 VAR=VALUE. See below for descriptions of some of the useful variables.
967 Defaults for the options are specified in brackets.
970 -h, --help display this help and exit
971 --help=short display options specific to this package
972 --help=recursive display the short help of all the included packages
973 -V, --version display version information and exit
974 -q, --quiet, --silent do not print \`checking...' messages
975 --cache-file=FILE cache test results in FILE [disabled]
976 -C, --config-cache alias for \`--cache-file=config.cache'
977 -n, --no-create do not create output files
978 --srcdir=DIR find the sources in DIR [configure dir or \`..']
983 Installation directories:
984 --prefix=PREFIX install architecture-independent files in PREFIX
986 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
989 By default, \`make install' will install all the files in
990 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
991 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
992 for instance \`--prefix=\$HOME'.
994 For better control, use the options below.
996 Fine tuning of the installation directories:
997 --bindir=DIR user executables [EPREFIX/bin]
998 --sbindir=DIR system admin executables [EPREFIX/sbin]
999 --libexecdir=DIR program executables [EPREFIX/libexec]
1000 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1001 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1002 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1003 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1004 --libdir=DIR object code libraries [EPREFIX/lib]
1005 --includedir=DIR C header files [PREFIX/include]
1006 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1007 --infodir=DIR info documentation [PREFIX/info]
1008 --mandir=DIR man documentation [PREFIX/man]
1014 --program-prefix=PREFIX prepend PREFIX to installed program names
1015 --program-suffix=SUFFIX append SUFFIX to installed program names
1016 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 if test -n "$ac_init_help"; then
1025 case $ac_init_help in
1026 short | recursive ) echo "Configuration of shibboleth 2.0:";;
1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033 --disable-doxygen-doc don't generate any doxygen documentation
1034 --disable-doxygen-dot don't generate graphics for doxygen documentation
1035 --enable-doxygen-man generate doxygen manual pages
1036 --enable-doxygen-rtf generate doxygen RTF documentation
1037 --enable-doxygen-xml generate doxygen XML documentation
1038 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1039 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1041 --disable-doxygen-html don't generate doxygen plain HTML documentation
1042 --enable-doxygen-ps generate doxygen PostScript documentation
1043 --enable-doxygen-pdf generate doxygen PDF documentation
1044 --enable-debug Have GCC compile with symbols (Default = no)
1045 --disable-dependency-tracking speeds up one-time build
1046 --enable-dependency-tracking do not reject slow dependency extractors
1047 --enable-static[=PKGS]
1048 build static libraries [default=no]
1049 --enable-shared[=PKGS]
1050 build shared libraries [default=yes]
1051 --enable-fast-install[=PKGS]
1052 optimize for fast installation [default=yes]
1053 --disable-libtool-lock avoid locking (might break parallel builds)
1054 --disable-adfs don't build the ADFS module
1055 --enable-apache-13 enable the Apache 1.3 module
1056 --enable-apache-20 enable the Apache 2.0 module
1057 --enable-apache-22 enable the Apache 2.2 module
1058 --disable-odbc disable the ODBC Storage Service
1061 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1062 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1063 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1064 --with-pic try to use only PIC/non-PIC objects [default=use
1067 include additional configurations [automatic]
1068 --with-openssl=PATH where openssl is installed
1069 --with-log4shib=PATH where log4shib-config is installed
1070 --with-log4cpp=PATH where log4cpp-config is installed
1071 --with-xerces=PATH where xerces-c is installed
1072 --with-xmltooling=PATH where xmltooling-c is installed
1073 --with-xmlsec=PATH where xmlsec is installed
1074 --with-saml=PATH where saml is installed
1075 --with-nsapi=DIR Build NSAPI module for Netscape/iPlanet/SunONE
1076 --with-fastcgi=DIR Build FastCGI support
1077 --with-apxs=FILE Specifies where to find the Apache 1.3 apxs script.
1078 --with-apxs2=FILE Specifies where to find the Apache 2.0 apxs script.
1079 --with-apr=PATH where apr-config is installed
1080 --with-apxs22=FILE Specifies where to find the Apache 2.2 apxs script.
1081 --with-apr1=PATH where apr-1-config is installed
1082 --with-odbc=PATH directory where odbc is installed
1084 Some influential environment variables:
1086 a4wide (default), a4, letter, legal or executive
1087 CC C compiler command
1088 CFLAGS C compiler flags
1089 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1090 nonstandard directory <lib dir>
1091 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1092 headers in a nonstandard directory <include dir>
1093 CXX C++ compiler command
1094 CXXFLAGS C++ compiler flags
1096 CXXCPP C++ preprocessor
1097 F77 Fortran 77 compiler command
1098 FFLAGS Fortran 77 compiler flags
1100 Use these variables to override the choices made by `configure' or to help
1101 it to find libraries and programs with nonstandard names/locations.
1103 Report bugs to <shibboleth-users@internet2.edu>.
1107 if test "$ac_init_help" = "recursive"; then
1108 # If there are subdirs, report their specific --help.
1110 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111 test -d $ac_dir || continue
1114 if test "$ac_dir" != .; then
1115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116 # A "../" for each directory in $ac_dir_suffix.
1117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119 ac_dir_suffix= ac_top_builddir=
1123 .) # No --srcdir option. We are building in place.
1125 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130 [\\/]* | ?:[\\/]* ) # Absolute path.
1131 ac_srcdir=$srcdir$ac_dir_suffix;
1132 ac_top_srcdir=$srcdir ;;
1134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138 # Do not use `cd foo && pwd` to compute absolute paths, because
1139 # the directories may not exist.
1141 .) ac_abs_builddir="$ac_dir";;
1144 .) ac_abs_builddir=`pwd`;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1146 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1152 case ${ac_top_builddir}. in
1153 .) ac_abs_top_builddir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1155 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 case $ac_abs_builddir in
1159 .) ac_abs_srcdir=$ac_srcdir;;
1162 .) ac_abs_srcdir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1164 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1170 case $ac_top_srcdir in
1171 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1173 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1178 # Check for guested configure; otherwise get Cygnus style configure.
1179 if test -f $ac_srcdir/configure.gnu; then
1181 $SHELL $ac_srcdir/configure.gnu --help=recursive
1182 elif test -f $ac_srcdir/configure; then
1184 $SHELL $ac_srcdir/configure --help=recursive
1185 elif test -f $ac_srcdir/configure.ac ||
1186 test -f $ac_srcdir/configure.in; then
1188 $ac_configure --help
1190 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1196 test -n "$ac_init_help" && exit 0
1197 if $ac_init_version; then
1199 shibboleth configure 2.0
1200 generated by GNU Autoconf 2.59
1202 Copyright (C) 2003 Free Software Foundation, Inc.
1203 This configure script is free software; the Free Software Foundation
1204 gives unlimited permission to copy, distribute and modify it.
1210 This file contains any messages produced by compilers while
1211 running configure, to aid debugging if configure makes a mistake.
1213 It was created by shibboleth $as_me 2.0, which was
1214 generated by GNU Autoconf 2.59. Invocation command line was
1225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1232 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1234 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1235 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1237 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1238 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1239 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1240 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1248 test -z "$as_dir" && as_dir=.
1249 echo "PATH: $as_dir"
1264 # Keep a trace of the command line.
1265 # Strip out --no-create and --no-recursion so they do not pile up.
1266 # Strip out --silent because we don't want to record it for future runs.
1267 # Also quote any args containing shell meta-characters.
1268 # Make two passes to allow for proper duplicate-argument suppression.
1273 ac_must_keep_next=false
1279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281 | -silent | --silent | --silen | --sile | --sil)
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1290 if test $ac_must_keep_next = true; then
1291 ac_must_keep_next=false # Got value, back to normal.
1294 *=* | --config-cache | -C | -disable-* | --disable-* \
1295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1297 | -with-* | --with-* | -without-* | --without-* | --x)
1298 case "$ac_configure_args0 " in
1299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 -* ) ac_must_keep_next=true ;;
1305 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1306 # Get rid of the leading space.
1312 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1313 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315 # When interrupted or exit'd, cleanup temporary files, and complete
1316 # config.log. We remove comments because anyway the quotes in there
1317 # would cause problems or look ugly.
1318 # WARNING: Be sure not to use single quotes in there, as some shells,
1319 # such as our DU 5.0 friend, will then `close' the trap.
1320 trap 'exit_status=$?
1321 # Save into config.log some information that might help in debugging.
1326 ## ---------------- ##
1327 ## Cache variables. ##
1328 ## ---------------- ##
1331 # The following way of writing the cache mishandles newlines in values,
1334 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1349 ## ----------------- ##
1350 ## Output variables. ##
1351 ## ----------------- ##
1354 for ac_var in $ac_subst_vars
1356 eval ac_val=$`echo $ac_var`
1357 echo "$ac_var='"'"'$ac_val'"'"'"
1361 if test -n "$ac_subst_files"; then
1368 for ac_var in $ac_subst_files
1370 eval ac_val=$`echo $ac_var`
1371 echo "$ac_var='"'"'$ac_val'"'"'"
1376 if test -s confdefs.h; then
1383 sed "/^$/d" confdefs.h | sort
1386 test "$ac_signal" != 0 &&
1387 echo "$as_me: caught signal $ac_signal"
1388 echo "$as_me: exit $exit_status"
1390 rm -f core *.core &&
1391 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 for ac_signal in 1 2 13 15; do
1395 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1400 rm -rf conftest* confdefs.h
1401 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404 # Predefined preprocessor variables.
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_NAME "$PACKAGE_NAME"
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_STRING "$PACKAGE_STRING"
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1431 # Let the site file select an alternate cache file if it wants to.
1432 # Prefer explicitly selected file to automatically selected ones.
1433 if test -z "$CONFIG_SITE"; then
1434 if test "x$prefix" != xNONE; then
1435 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 for ac_site_file in $CONFIG_SITE; do
1441 if test -r "$ac_site_file"; then
1442 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1443 echo "$as_me: loading site script $ac_site_file" >&6;}
1444 sed 's/^/| /' "$ac_site_file" >&5
1449 if test -r "$cache_file"; then
1450 # Some versions of bash will fail to source /dev/null (special
1451 # files actually), so we avoid doing that.
1452 if test -f "$cache_file"; then
1453 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1454 echo "$as_me: loading cache $cache_file" >&6;}
1456 [\\/]* | ?:[\\/]* ) . $cache_file;;
1457 *) . ./$cache_file;;
1461 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1462 echo "$as_me: creating cache $cache_file" >&6;}
1466 # Check that the precious variables saved in the cache have kept the same
1468 ac_cache_corrupted=false
1469 for ac_var in `(set) 2>&1 |
1470 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1471 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1472 eval ac_new_set=\$ac_env_${ac_var}_set
1473 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1474 eval ac_new_val="\$ac_env_${ac_var}_value"
1475 case $ac_old_set,$ac_new_set in
1477 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1478 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1479 ac_cache_corrupted=: ;;
1481 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1482 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1483 ac_cache_corrupted=: ;;
1486 if test "x$ac_old_val" != "x$ac_new_val"; then
1487 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1488 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1489 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1490 echo "$as_me: former value: $ac_old_val" >&2;}
1491 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1492 echo "$as_me: current value: $ac_new_val" >&2;}
1493 ac_cache_corrupted=:
1496 # Pass precious variables to config.status.
1497 if test "$ac_new_set" = set; then
1499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1500 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1501 *) ac_arg=$ac_var=$ac_new_val ;;
1503 case " $ac_configure_args " in
1504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1505 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1509 if $ac_cache_corrupted; then
1510 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1511 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1512 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1513 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1514 { (exit 1); exit 1; }; }
1518 ac_cpp='$CPP $CPPFLAGS'
1519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1549 ac_config_headers="$ac_config_headers config.h"
1551 am__api_version="1.9"
1553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1554 if test -f $ac_dir/install-sh; then
1556 ac_install_sh="$ac_aux_dir/install-sh -c"
1558 elif test -f $ac_dir/install.sh; then
1560 ac_install_sh="$ac_aux_dir/install.sh -c"
1562 elif test -f $ac_dir/shtool; then
1564 ac_install_sh="$ac_aux_dir/shtool install -c"
1568 if test -z "$ac_aux_dir"; then
1569 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1570 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1571 { (exit 1); exit 1; }; }
1573 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1574 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1575 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577 # Find a good install program. We prefer a C program (faster),
1578 # so one script is as good as another. But avoid the broken or
1579 # incompatible versions:
1580 # SysV /etc/install, /usr/sbin/install
1581 # SunOS /usr/etc/install
1582 # IRIX /sbin/install
1584 # AmigaOS /C/install, which installs bootblocks on floppy discs
1585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1588 # OS/2's system install, which has a completely different semantic
1589 # ./install, which can be erroneously created by make from ./install.sh.
1590 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1591 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1592 if test -z "$INSTALL"; then
1593 if test "${ac_cv_path_install+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 test -z "$as_dir" && as_dir=.
1601 # Account for people who put trailing slashes in PATH elements.
1603 ./ | .// | /cC/* | \
1604 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1605 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1608 # OSF1 and SCO ODT 3.0 have their own names for install.
1609 # Don't use installbsd from OSF since it installs stuff as root
1611 for ac_prog in ginstall scoinst install; do
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1614 if test $ac_prog = install &&
1615 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1616 # AIX install. It has an incompatible calling convention.
1618 elif test $ac_prog = install &&
1619 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1620 # program-specific install script used by HP pwplus--don't use.
1623 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1635 if test "${ac_cv_path_install+set}" = set; then
1636 INSTALL=$ac_cv_path_install
1638 # As a last resort, use the slow shell script. We don't cache a
1639 # path for INSTALL within a source directory, because that will
1640 # break other packages using the cache if that directory is
1641 # removed, or if the path is relative.
1642 INSTALL=$ac_install_sh
1645 echo "$as_me:$LINENO: result: $INSTALL" >&5
1646 echo "${ECHO_T}$INSTALL" >&6
1648 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1649 # It thinks the first close brace ends the variable substitution.
1650 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1654 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1656 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1657 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1660 echo timestamp > conftest.file
1661 # Do `set' in a subshell so we don't clobber the current shell's
1662 # arguments. Must try -L first in case configure is actually a
1663 # symlink; some systems play weird games with the mod time of symlinks
1664 # (eg FreeBSD returns the mod time of the symlink's containing
1667 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1668 if test "$*" = "X"; then
1670 set X `ls -t $srcdir/configure conftest.file`
1673 if test "$*" != "X $srcdir/configure conftest.file" \
1674 && test "$*" != "X conftest.file $srcdir/configure"; then
1676 # If neither matched, then we have a broken ls. This can happen
1677 # if, for instance, CONFIG_SHELL is bash and it inherits a
1678 # broken ls alias from the environment. This has actually
1679 # happened. Such a system could not be considered "sane".
1680 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1681 alias in your environment" >&5
1682 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1683 alias in your environment" >&2;}
1684 { (exit 1); exit 1; }; }
1687 test "$2" = conftest.file
1693 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1694 Check your system clock" >&5
1695 echo "$as_me: error: newly created file is older than distributed files!
1696 Check your system clock" >&2;}
1697 { (exit 1); exit 1; }; }
1699 echo "$as_me:$LINENO: result: yes" >&5
1700 echo "${ECHO_T}yes" >&6
1701 test "$program_prefix" != NONE &&
1702 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1703 # Use a double $ so make ignores it.
1704 test "$program_suffix" != NONE &&
1705 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1706 # Double any \ or $. echo might interpret backslashes.
1707 # By default was `s,x,x', remove it if useless.
1708 cat <<\_ACEOF >conftest.sed
1709 s/[\\$]/&&/g;s/;s,x,x,$//
1711 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1714 # expand $ac_aux_dir to an absolute path
1715 am_aux_dir=`cd $ac_aux_dir && pwd`
1717 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1718 # Use eval to expand $SHELL
1719 if eval "$MISSING --run true"; then
1720 am_missing_run="$MISSING --run "
1723 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1724 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1727 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1728 # We used to keeping the `.' as first argument, in order to
1729 # allow $(mkdir_p) to be used without argument. As in
1730 # $(mkdir_p) $(somedir)
1731 # where $(somedir) is conditionally defined. However this is wrong
1733 # 1. if the package is installed by a user who cannot write `.'
1734 # make install will fail,
1735 # 2. the above comment should most certainly read
1736 # $(mkdir_p) $(DESTDIR)$(somedir)
1737 # so it does not work when $(somedir) is undefined and
1738 # $(DESTDIR) is not.
1739 # To support the latter case, we have to write
1740 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1741 # so the `.' trick is pointless.
1742 mkdir_p='mkdir -p --'
1744 # On NextStep and OpenStep, the `mkdir' command does not
1745 # recognize any option. It will interpret all options as
1746 # directories to create, and then abort because `.' already
1748 for d in ./-p ./--version;
1750 test -d $d && rmdir $d
1752 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1753 if test -f "$ac_aux_dir/mkinstalldirs"; then
1754 mkdir_p='$(mkinstalldirs)'
1756 mkdir_p='$(install_sh) -d'
1760 for ac_prog in gawk mawk nawk awk
1762 # Extract the first word of "$ac_prog", so it can be a program name with args.
1763 set dummy $ac_prog; ac_word=$2
1764 echo "$as_me:$LINENO: checking for $ac_word" >&5
1765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766 if test "${ac_cv_prog_AWK+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 if test -n "$AWK"; then
1770 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 ac_cv_prog_AWK="$ac_prog"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 if test -n "$AWK"; then
1790 echo "$as_me:$LINENO: result: $AWK" >&5
1791 echo "${ECHO_T}$AWK" >&6
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1797 test -n "$AWK" && break
1800 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1801 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1802 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1803 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 cat >conftest.make <<\_ACEOF
1808 @echo 'ac_maketemp="$(MAKE)"'
1810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1811 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1812 if test -n "$ac_maketemp"; then
1813 eval ac_cv_prog_make_${ac_make}_set=yes
1815 eval ac_cv_prog_make_${ac_make}_set=no
1819 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1820 echo "$as_me:$LINENO: result: yes" >&5
1821 echo "${ECHO_T}yes" >&6
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1826 SET_MAKE="MAKE=${MAKE-make}"
1829 rm -rf .tst 2>/dev/null
1830 mkdir .tst 2>/dev/null
1831 if test -d .tst; then
1836 rmdir .tst 2>/dev/null
1838 # test to see if srcdir already configured
1839 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1840 test -f $srcdir/config.status; then
1841 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1842 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1843 { (exit 1); exit 1; }; }
1846 # test whether we have cygpath
1847 if test -z "$CYGPATH_W"; then
1848 if (cygpath --version) >/dev/null 2>/dev/null; then
1849 CYGPATH_W='cygpath -w'
1856 # Define the identity of the package.
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE "$PACKAGE"
1866 cat >>confdefs.h <<_ACEOF
1867 #define VERSION "$VERSION"
1870 # Some tools Automake needs.
1872 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1875 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1878 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1881 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1884 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1886 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1888 # Installed binaries are usually stripped using `strip' when the user
1889 # run `make install-strip'. However `strip' might not be the right
1890 # tool to use in cross-compilation environments, therefore Automake
1891 # will honor the `STRIP' environment variable to overrule this program.
1892 if test "$cross_compiling" != no; then
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1895 set dummy ${ac_tool_prefix}strip; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_STRIP+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 if test -n "$STRIP"; then
1902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 STRIP=$ac_cv_prog_STRIP
1921 if test -n "$STRIP"; then
1922 echo "$as_me:$LINENO: result: $STRIP" >&5
1923 echo "${ECHO_T}$STRIP" >&6
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1930 if test -z "$ac_cv_prog_STRIP"; then
1932 # Extract the first word of "strip", so it can be a program name with args.
1933 set dummy strip; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$ac_ct_STRIP"; then
1940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_ac_ct_STRIP="strip"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1960 if test -n "$ac_ct_STRIP"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1962 echo "${ECHO_T}$ac_ct_STRIP" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1970 STRIP="$ac_cv_prog_STRIP"
1974 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1976 # We need awk for the "check" target. The system "awk" is bad on
1978 # Always define AMTAR for backward compatibility.
1980 AMTAR=${AMTAR-"${am_missing_run}tar"}
1982 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1989 # This file is part of Autoconf. -*- Autoconf -*-
1991 # Copyright (C) 2004 Oren Ben-Kiki
1992 # This file is distributed under the same terms as the Autoconf macro files.
1994 # Generate automatic documentation using Doxygen. Works in concert with the
1995 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
1996 # following public macros:
1998 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
1999 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
2000 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
2001 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
2002 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
2003 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
2006 # By default, HTML, PDF and PS documentation is generated as this seems to be
2007 # the most popular and portable combination. MAN pages created by Doxygen are
2008 # usually problematic, though by picking an appropriate subset and doing some
2009 # massaging they might be better than nothing. CHM and RTF are specific for MS
2010 # (note that you can't generate both HTML and CHM at the same time). The XML is
2011 # rather useless unless you apply specialized post-processing to it.
2013 # The macro mainly controls the default state of the feature. The use can
2014 # override the default by specifying --enable or --disable. The macros ensure
2015 # that contradictory flags are not given (e.g., --enable-doxygen-html and
2016 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
2017 # Finally, each feature will be automatically disabled (with a warning) if the
2018 # required programs are missing.
2020 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
2021 # the following parameters: a one-word name for the project for use as a
2022 # filename base etc., an optional configuration file name (the default is
2023 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
2024 # name (the default is 'doxygen-doc').
2042 ## --------------- ##
2043 ## Private macros. ##
2044 ## --------------- ##
2046 # DX_ENV_APPEND(VARIABLE, VALUE)
2047 # ------------------------------
2048 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2053 # Expand into a shell expression prints the directory part of a path.
2056 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2057 # -------------------------------------
2058 # Expands according to the M4 (static) status of the feature.
2061 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2062 # ----------------------------------
2063 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2066 # DX_TEST_FEATURE(FEATURE)
2067 # ------------------------
2068 # Expand to a shell expression testing whether the feature is active.
2071 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2072 # -------------------------------------------------
2073 # Verify that a required features has the right state before trying to turn on
2074 # the DX_CURRENT_FEATURE.
2077 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2078 # ----------------------------------------------------------
2079 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2082 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2083 # CHECK_DEPEND, CLEAR_DEPEND,
2084 # REQUIRE, DO-IF-ON, DO-IF-OFF)
2085 # --------------------------------------------
2086 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2087 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2088 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2089 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2090 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2091 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2094 ## -------------- ##
2095 ## Public macros. ##
2096 ## -------------- ##
2098 # DX_XXX_FEATURE(DEFAULT_STATE)
2099 # -----------------------------
2111 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2112 # ---------------------------------------------------------
2113 # PROJECT also serves as the base name for the documentation files.
2114 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2117 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2121 # ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2125 # This macro figures out how to build C programs using POSIX threads.
2126 # It sets the PTHREAD_LIBS output variable to the threads library and
2127 # linker flags, and the PTHREAD_CFLAGS output variable to any special
2128 # C compiler flags that are needed. (The user can also force certain
2129 # compiler flags/libs to be tested by setting these environment
2132 # Also sets PTHREAD_CC to any special C compiler that is needed for
2133 # multi-threaded programs (defaults to the value of CC otherwise).
2134 # (This is necessary on AIX to use the special cc_r compiler alias.)
2136 # NOTE: You are assumed to not only compile your program with these
2137 # flags, but also link it with them as well. e.g. you should link
2138 # with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2141 # If you are only building threads programs, you may wish to use
2142 # these variables in your default LIBS, CFLAGS, and CC:
2144 # LIBS="$PTHREAD_LIBS $LIBS"
2145 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2148 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2149 # constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2150 # that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2152 # ACTION-IF-FOUND is a list of shell commands to run if a threads
2153 # library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2154 # run it if it is not found. If ACTION-IF-FOUND is not specified, the
2155 # default action will define HAVE_PTHREAD.
2157 # Please let the authors know if this macro fails on any platform, or
2158 # if you have any other suggestions or comments. This macro was based
2159 # on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2160 # (with help from M. Frigo), as well as ac_pthread and hb_pthread
2161 # macros posted by Alejandro Forero Cuervo to the autoconf macro
2162 # repository. We are also grateful for the helpful feedback of
2171 # Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2173 # This program is free software; you can redistribute it and/or
2174 # modify it under the terms of the GNU General Public License as
2175 # published by the Free Software Foundation; either version 2 of the
2176 # License, or (at your option) any later version.
2178 # This program is distributed in the hope that it will be useful, but
2179 # WITHOUT ANY WARRANTY; without even the implied warranty of
2180 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2181 # General Public License for more details.
2183 # You should have received a copy of the GNU General Public License
2184 # along with this program; if not, write to the Free Software
2185 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2188 # As a special exception, the respective Autoconf Macro's copyright
2189 # owner gives unlimited permission to copy, distribute and modify the
2190 # configure scripts that are the output of Autoconf when processing
2191 # the Macro. You need not follow the terms of the GNU General Public
2192 # License when using or distributing such scripts, even though
2193 # portions of the text of the Macro appear in them. The GNU General
2194 # Public License (GPL) does govern all other use of the material that
2195 # constitutes the Autoconf Macro.
2197 # This special exception to the GPL applies to versions of the
2198 # Autoconf Macro released by the Autoconf Macro Archive. When you
2199 # make and distribute a modified version of the Autoconf Macro, you
2200 # may extend this special exception to the GPL to apply to your
2201 # modified version as well.
2217 DX_PROJECT=shibboleth
2219 DX_CONFIG=doxygen.cfg
2224 # Environment variables used inside doxygen.cfg:
2225 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2227 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2229 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2231 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2238 # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2239 if test "${enable_doxygen_doc+set}" = set; then
2240 enableval="$enable_doxygen_doc"
2242 case "$enableval" in
2254 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2255 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2256 { (exit 1); exit 1; }; }
2267 if test "$DX_FLAG_doc" = 1; then
2269 if test -n "$ac_tool_prefix"; then
2270 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2271 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2272 echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2301 if test -n "$DX_DOXYGEN"; then
2302 echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2303 echo "${ECHO_T}$DX_DOXYGEN" >&6
2305 echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6
2310 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2311 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2312 # Extract the first word of "doxygen", so it can be a program name with args.
2313 set dummy doxygen; ac_word=$2
2314 echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2316 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 case $ac_pt_DX_DOXYGEN in
2321 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2331 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2343 if test -n "$ac_pt_DX_DOXYGEN"; then
2344 echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2345 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2347 echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2351 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2353 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2356 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2357 { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2358 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2364 if test -n "$ac_tool_prefix"; then
2365 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}perl; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_path_DX_PERL+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2384 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 DX_PERL=$ac_cv_path_DX_PERL
2396 if test -n "$DX_PERL"; then
2397 echo "$as_me:$LINENO: result: $DX_PERL" >&5
2398 echo "${ECHO_T}$DX_PERL" >&6
2400 echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2405 if test -z "$ac_cv_path_DX_PERL"; then
2406 ac_pt_DX_PERL=$DX_PERL
2407 # Extract the first word of "perl", so it can be a program name with args.
2408 set dummy perl; ac_word=$2
2409 echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2411 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 case $ac_pt_DX_PERL in
2416 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2438 if test -n "$ac_pt_DX_PERL"; then
2439 echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2440 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2442 echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6
2446 DX_PERL=$ac_pt_DX_PERL
2448 DX_PERL="$ac_cv_path_DX_PERL"
2451 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2452 { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2453 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2460 if test "$DX_FLAG_doc" = 1; then
2465 DX_COND_doc_FALSE='#'
2467 DX_COND_doc_TRUE='#'
2471 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2479 DX_COND_doc_FALSE='#'
2481 DX_COND_doc_TRUE='#'
2494 # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2495 if test "${enable_doxygen_dot+set}" = set; then
2496 enableval="$enable_doxygen_dot"
2498 case "$enableval" in
2504 test "$DX_FLAG_doc" = "1" \
2505 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2506 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2507 { (exit 1); exit 1; }; }
2515 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2516 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2517 { (exit 1); exit 1; }; }
2526 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2531 if test "$DX_FLAG_dot" = 1; then
2533 if test -n "$ac_tool_prefix"; then
2534 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2535 set dummy ${ac_tool_prefix}dot; ac_word=$2
2536 echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2538 if test "${ac_cv_path_DX_DOT+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 DX_DOT=$ac_cv_path_DX_DOT
2565 if test -n "$DX_DOT"; then
2566 echo "$as_me:$LINENO: result: $DX_DOT" >&5
2567 echo "${ECHO_T}$DX_DOT" >&6
2569 echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2574 if test -z "$ac_cv_path_DX_DOT"; then
2575 ac_pt_DX_DOT=$DX_DOT
2576 # Extract the first word of "dot", so it can be a program name with args.
2577 set dummy dot; ac_word=$2
2578 echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 case $ac_pt_DX_DOT in
2585 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2607 if test -n "$ac_pt_DX_DOT"; then
2608 echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2609 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2615 DX_DOT=$ac_pt_DX_DOT
2617 DX_DOT="$ac_cv_path_DX_DOT"
2620 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2621 { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2622 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2629 if test "$DX_FLAG_dot" = 1; then
2634 DX_COND_dot_FALSE='#'
2636 DX_COND_dot_TRUE='#'
2640 DX_ENV="$DX_ENV HAVE_DOT='YES'"
2642 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2650 DX_COND_dot_FALSE='#'
2652 DX_COND_dot_TRUE='#'
2656 DX_ENV="$DX_ENV HAVE_DOT='NO'"
2662 # Man pages generation:
2666 # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2667 if test "${enable_doxygen_man+set}" = set; then
2668 enableval="$enable_doxygen_man"
2670 case "$enableval" in
2676 test "$DX_FLAG_doc" = "1" \
2677 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2678 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2679 { (exit 1); exit 1; }; }
2687 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2688 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2689 { (exit 1); exit 1; }; }
2698 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2703 if test "$DX_FLAG_man" = 1; then
2707 if test "$DX_FLAG_man" = 1; then
2712 DX_COND_man_FALSE='#'
2714 DX_COND_man_TRUE='#'
2718 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2726 DX_COND_man_FALSE='#'
2728 DX_COND_man_TRUE='#'
2732 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2738 # RTF file generation:
2742 # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2743 if test "${enable_doxygen_rtf+set}" = set; then
2744 enableval="$enable_doxygen_rtf"
2746 case "$enableval" in
2752 test "$DX_FLAG_doc" = "1" \
2753 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2754 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2755 { (exit 1); exit 1; }; }
2763 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2764 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2765 { (exit 1); exit 1; }; }
2774 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2779 if test "$DX_FLAG_rtf" = 1; then
2783 if test "$DX_FLAG_rtf" = 1; then
2788 DX_COND_rtf_FALSE='#'
2790 DX_COND_rtf_TRUE='#'
2794 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2802 DX_COND_rtf_FALSE='#'
2804 DX_COND_rtf_TRUE='#'
2808 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2814 # XML file generation:
2818 # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2819 if test "${enable_doxygen_xml+set}" = set; then
2820 enableval="$enable_doxygen_xml"
2822 case "$enableval" in
2828 test "$DX_FLAG_doc" = "1" \
2829 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2830 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2831 { (exit 1); exit 1; }; }
2839 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2840 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2841 { (exit 1); exit 1; }; }
2850 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2855 if test "$DX_FLAG_xml" = 1; then
2859 if test "$DX_FLAG_xml" = 1; then
2864 DX_COND_xml_FALSE='#'
2866 DX_COND_xml_TRUE='#'
2870 DX_ENV="$DX_ENV GENERATE_XML='YES'"
2878 DX_COND_xml_FALSE='#'
2880 DX_COND_xml_TRUE='#'
2884 DX_ENV="$DX_ENV GENERATE_XML='NO'"
2890 # (Compressed) HTML help generation:
2894 # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2895 if test "${enable_doxygen_chm+set}" = set; then
2896 enableval="$enable_doxygen_chm"
2898 case "$enableval" in
2904 test "$DX_FLAG_doc" = "1" \
2905 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2906 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2907 { (exit 1); exit 1; }; }
2915 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2916 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2917 { (exit 1); exit 1; }; }
2926 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2931 if test "$DX_FLAG_chm" = 1; then
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2936 echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938 if test "${ac_cv_path_DX_HHC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 DX_HHC=$ac_cv_path_DX_HHC
2965 if test -n "$DX_HHC"; then
2966 echo "$as_me:$LINENO: result: $DX_HHC" >&5
2967 echo "${ECHO_T}$DX_HHC" >&6
2969 echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6
2974 if test -z "$ac_cv_path_DX_HHC"; then
2975 ac_pt_DX_HHC=$DX_HHC
2976 # Extract the first word of "hhc", so it can be a program name with args.
2977 set dummy hhc; ac_word=$2
2978 echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2980 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 case $ac_pt_DX_HHC in
2985 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
3007 if test -n "$ac_pt_DX_HHC"; then
3008 echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
3009 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
3011 echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6
3015 DX_HHC=$ac_pt_DX_HHC
3017 DX_HHC="$ac_cv_path_DX_HHC"
3020 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3021 { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3022 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3029 if test "$DX_FLAG_chm" = 1; then
3034 DX_COND_chm_FALSE='#'
3036 DX_COND_chm_TRUE='#'
3040 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3042 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3044 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3052 DX_COND_chm_FALSE='#'
3054 DX_COND_chm_TRUE='#'
3058 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3064 # Seperate CHI file generation.
3068 # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3069 if test "${enable_doxygen_chi+set}" = set; then
3070 enableval="$enable_doxygen_chi"
3072 case "$enableval" in
3078 test "$DX_FLAG_chm" = "1" \
3079 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3080 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3081 { (exit 1); exit 1; }; }
3089 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3090 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3091 { (exit 1); exit 1; }; }
3100 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3105 if test "$DX_FLAG_chi" = 1; then
3109 if test "$DX_FLAG_chi" = 1; then
3114 DX_COND_chi_FALSE='#'
3116 DX_COND_chi_TRUE='#'
3120 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3128 DX_COND_chi_FALSE='#'
3130 DX_COND_chi_TRUE='#'
3134 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3140 # Plain HTML pages generation:
3144 # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3145 if test "${enable_doxygen_html+set}" = set; then
3146 enableval="$enable_doxygen_html"
3148 case "$enableval" in
3154 test "$DX_FLAG_doc" = "1" \
3155 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3156 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3157 { (exit 1); exit 1; }; }
3159 test "$DX_FLAG_chm" = "0" \
3160 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3161 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3162 { (exit 1); exit 1; }; }
3170 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3171 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3172 { (exit 1); exit 1; }; }
3181 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3184 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3189 if test "$DX_FLAG_html" = 1; then
3193 if test "$DX_FLAG_html" = 1; then
3198 DX_COND_html_FALSE='#'
3200 DX_COND_html_TRUE='#'
3204 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3212 DX_COND_html_FALSE='#'
3214 DX_COND_html_TRUE='#'
3218 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3224 # PostScript file generation:
3228 # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3229 if test "${enable_doxygen_ps+set}" = set; then
3230 enableval="$enable_doxygen_ps"
3232 case "$enableval" in
3238 test "$DX_FLAG_doc" = "1" \
3239 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3240 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3241 { (exit 1); exit 1; }; }
3249 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3250 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3251 { (exit 1); exit 1; }; }
3260 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3265 if test "$DX_FLAG_ps" = 1; then
3267 if test -n "$ac_tool_prefix"; then
3268 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3269 set dummy ${ac_tool_prefix}latex; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 DX_LATEX=$ac_cv_path_DX_LATEX
3299 if test -n "$DX_LATEX"; then
3300 echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3301 echo "${ECHO_T}$DX_LATEX" >&6
3303 echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3308 if test -z "$ac_cv_path_DX_LATEX"; then
3309 ac_pt_DX_LATEX=$DX_LATEX
3310 # Extract the first word of "latex", so it can be a program name with args.
3311 set dummy latex; ac_word=$2
3312 echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 case $ac_pt_DX_LATEX in
3319 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3341 if test -n "$ac_pt_DX_LATEX"; then
3342 echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3343 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 DX_LATEX=$ac_pt_DX_LATEX
3351 DX_LATEX="$ac_cv_path_DX_LATEX"
3354 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3355 { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3356 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3362 if test -n "$ac_tool_prefix"; then
3363 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 case $DX_MAKEINDEX in
3372 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3394 if test -n "$DX_MAKEINDEX"; then
3395 echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3396 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3398 echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3403 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3404 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3405 # Extract the first word of "makeindex", so it can be a program name with args.
3406 set dummy makeindex; ac_word=$2
3407 echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3409 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 case $ac_pt_DX_MAKEINDEX in
3414 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3436 if test -n "$ac_pt_DX_MAKEINDEX"; then
3437 echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3438 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3440 echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3444 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3446 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3449 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3450 { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3451 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 DX_DVIPS=$ac_cv_path_DX_DVIPS
3489 if test -n "$DX_DVIPS"; then
3490 echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3491 echo "${ECHO_T}$DX_DVIPS" >&6
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3498 if test -z "$ac_cv_path_DX_DVIPS"; then
3499 ac_pt_DX_DVIPS=$DX_DVIPS
3500 # Extract the first word of "dvips", so it can be a program name with args.
3501 set dummy dvips; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 case $ac_pt_DX_DVIPS in
3509 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3531 if test -n "$ac_pt_DX_DVIPS"; then
3532 echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3533 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3535 echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3539 DX_DVIPS=$ac_pt_DX_DVIPS
3541 DX_DVIPS="$ac_cv_path_DX_DVIPS"
3544 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3545 { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3546 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3554 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3555 echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 DX_EGREP=$ac_cv_path_DX_EGREP
3584 if test -n "$DX_EGREP"; then
3585 echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3586 echo "${ECHO_T}$DX_EGREP" >&6
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3593 if test -z "$ac_cv_path_DX_EGREP"; then
3594 ac_pt_DX_EGREP=$DX_EGREP
3595 # Extract the first word of "egrep", so it can be a program name with args.
3596 set dummy egrep; ac_word=$2
3597 echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 case $ac_pt_DX_EGREP in
3604 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3626 if test -n "$ac_pt_DX_EGREP"; then
3627 echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3628 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3630 echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3634 DX_EGREP=$ac_pt_DX_EGREP
3636 DX_EGREP="$ac_cv_path_DX_EGREP"
3639 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3640 { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3641 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3648 if test "$DX_FLAG_ps" = 1; then
3653 DX_COND_ps_FALSE='#'
3666 DX_COND_ps_FALSE='#'
3677 # PDF file generation:
3681 # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3682 if test "${enable_doxygen_pdf+set}" = set; then
3683 enableval="$enable_doxygen_pdf"
3685 case "$enableval" in
3691 test "$DX_FLAG_doc" = "1" \
3692 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3693 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3694 { (exit 1); exit 1; }; }
3702 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3703 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3704 { (exit 1); exit 1; }; }
3713 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3718 if test "$DX_FLAG_pdf" = 1; then
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 case $DX_PDFLATEX in
3730 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3752 if test -n "$DX_PDFLATEX"; then
3753 echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3754 echo "${ECHO_T}$DX_PDFLATEX" >&6
3756 echo "$as_me:$LINENO: result: no" >&5
3757 echo "${ECHO_T}no" >&6
3761 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3762 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3763 # Extract the first word of "pdflatex", so it can be a program name with args.
3764 set dummy pdflatex; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 case $ac_pt_DX_PDFLATEX in
3772 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3794 if test -n "$ac_pt_DX_PDFLATEX"; then
3795 echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3796 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3798 echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3802 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3804 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3807 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3808 { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3809 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3815 if test -n "$ac_tool_prefix"; then
3816 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3817 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 case $DX_MAKEINDEX in
3825 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3847 if test -n "$DX_MAKEINDEX"; then
3848 echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3849 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3851 echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6
3856 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3857 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3858 # Extract the first word of "makeindex", so it can be a program name with args.
3859 set dummy makeindex; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 case $ac_pt_DX_MAKEINDEX in
3867 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3889 if test -n "$ac_pt_DX_MAKEINDEX"; then
3890 echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3891 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3897 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3899 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3902 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3903 { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3904 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 DX_EGREP=$ac_cv_path_DX_EGREP
3942 if test -n "$DX_EGREP"; then
3943 echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3944 echo "${ECHO_T}$DX_EGREP" >&6
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3951 if test -z "$ac_cv_path_DX_EGREP"; then
3952 ac_pt_DX_EGREP=$DX_EGREP
3953 # Extract the first word of "egrep", so it can be a program name with args.
3954 set dummy egrep; ac_word=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 case $ac_pt_DX_EGREP in
3962 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3984 if test -n "$ac_pt_DX_EGREP"; then
3985 echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3986 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3992 DX_EGREP=$ac_pt_DX_EGREP
3994 DX_EGREP="$ac_cv_path_DX_EGREP"
3997 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
3998 { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
3999 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
4006 if test "$DX_FLAG_pdf" = 1; then
4011 DX_COND_pdf_FALSE='#'
4013 DX_COND_pdf_TRUE='#'
4024 DX_COND_pdf_FALSE='#'
4026 DX_COND_pdf_TRUE='#'
4035 # LaTeX generation for PS and/or PDF:
4036 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4041 DX_COND_latex_FALSE='#'
4043 DX_COND_latex_TRUE='#'
4044 DX_COND_latex_FALSE=
4047 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4054 DX_COND_latex_FALSE='#'
4056 DX_COND_latex_TRUE='#'
4057 DX_COND_latex_FALSE=
4060 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4064 # Paper size for PS and/or PDF:
4066 case "$DOXYGEN_PAPER_SIZE" in
4069 DOXYGEN_PAPER_SIZE=""
4072 a4wide|a4|letter|legal|executive)
4073 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4077 { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4078 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4079 { (exit 1); exit 1; }; }
4084 #echo DX_FLAG_doc=$DX_FLAG_doc
4085 #echo DX_FLAG_dot=$DX_FLAG_dot
4086 #echo DX_FLAG_man=$DX_FLAG_man
4087 #echo DX_FLAG_html=$DX_FLAG_html
4088 #echo DX_FLAG_chm=$DX_FLAG_chm
4089 #echo DX_FLAG_chi=$DX_FLAG_chi
4090 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4091 #echo DX_FLAG_xml=$DX_FLAG_xml
4092 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4093 #echo DX_FLAG_ps=$DX_FLAG_ps
4094 #echo DX_ENV=$DX_ENV
4098 # Check whether --enable-debug or --disable-debug was given.
4099 if test "${enable_debug+set}" = set; then
4100 enableval="$enable_debug"
4101 enable_debug=$enableval
4106 if test "$enable_debug" = "yes" ; then
4107 GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
4108 GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
4110 GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
4111 GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 if test -n "$ac_tool_prefix"; then
4120 for ac_prog in gcc gcc3 cc
4122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_CC+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 if test -n "$CC"; then
4150 echo "$as_me:$LINENO: result: $CC" >&5
4151 echo "${ECHO_T}$CC" >&6
4153 echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4157 test -n "$CC" && break
4160 if test -z "$CC"; then
4162 for ac_prog in gcc gcc3 cc
4164 # Extract the first word of "$ac_prog", so it can be a program name with args.
4165 set dummy $ac_prog; ac_word=$2
4166 echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 if test -n "$ac_ct_CC"; then
4172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_ac_ct_CC="$ac_prog"
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4191 if test -n "$ac_ct_CC"; then
4192 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4193 echo "${ECHO_T}$ac_ct_CC" >&6
4195 echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4199 test -n "$ac_ct_CC" && break
4206 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4207 See \`config.log' for more details." >&5
4208 echo "$as_me: error: no acceptable C compiler found in \$PATH
4209 See \`config.log' for more details." >&2;}
4210 { (exit 1); exit 1; }; }
4212 # Provide some information about the compiler.
4213 echo "$as_me:$LINENO:" \
4214 "checking for C compiler version" >&5
4215 ac_compiler=`set X $ac_compile; echo $2`
4216 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4217 (eval $ac_compiler --version </dev/null >&5) 2>&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }
4221 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4222 (eval $ac_compiler -v </dev/null >&5) 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }
4226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4227 (eval $ac_compiler -V </dev/null >&5) 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4247 ac_clean_files_save=$ac_clean_files
4248 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4249 # Try to create an executable without -o first, disregard a.out.
4250 # It will help us diagnose broken compilers, and finding out an intuition
4252 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4253 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4254 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4256 (eval $ac_link_default) 2>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; then
4260 # Find the output, starting from the most likely. This scheme is
4261 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4264 # Be careful to initialize this variable, since it used to be cached.
4265 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4267 # b.out is created by i960 compilers.
4268 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4270 test -f "$ac_file" || continue
4272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4275 # This is the source file.
4278 # We found the default executable, but exeext='' is most
4282 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4283 # FIXME: I believe we export ac_cv_exeext for Libtool,
4284 # but it would be cool to find out if it's true. Does anybody
4285 # maintain Libtool? --akim.
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4297 See \`config.log' for more details." >&5
4298 echo "$as_me: error: C compiler cannot create executables
4299 See \`config.log' for more details." >&2;}
4300 { (exit 77); exit 77; }; }
4303 ac_exeext=$ac_cv_exeext
4304 echo "$as_me:$LINENO: result: $ac_file" >&5
4305 echo "${ECHO_T}$ac_file" >&6
4307 # Check the compiler produces executables we can run. If not, either
4308 # the compiler is broken, or we cross compile.
4309 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4310 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4311 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4312 # If not cross compiling, check that we can run a simple program.
4313 if test "$cross_compiling" != yes; then
4314 if { ac_try='./$ac_file'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4322 if test "$cross_compiling" = maybe; then
4325 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4326 If you meant to cross compile, use \`--host'.
4327 See \`config.log' for more details." >&5
4328 echo "$as_me: error: cannot run C compiled programs.
4329 If you meant to cross compile, use \`--host'.
4330 See \`config.log' for more details." >&2;}
4331 { (exit 1); exit 1; }; }
4335 echo "$as_me:$LINENO: result: yes" >&5
4336 echo "${ECHO_T}yes" >&6
4338 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4339 ac_clean_files=$ac_clean_files_save
4340 # Check the compiler produces executables we can run. If not, either
4341 # the compiler is broken, or we cross compile.
4342 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4343 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4344 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4345 echo "${ECHO_T}$cross_compiling" >&6
4347 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4348 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4350 (eval $ac_link) 2>&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; then
4354 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4355 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4356 # work properly (i.e., refer to `conftest.exe'), while it won't with
4358 for ac_file in conftest.exe conftest conftest.*; do
4359 test -f "$ac_file" || continue
4361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4362 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4369 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4370 See \`config.log' for more details." >&5
4371 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4372 See \`config.log' for more details." >&2;}
4373 { (exit 1); exit 1; }; }
4376 rm -f conftest$ac_cv_exeext
4377 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4378 echo "${ECHO_T}$ac_cv_exeext" >&6
4380 rm -f conftest.$ac_ext
4381 EXEEXT=$ac_cv_exeext
4383 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4384 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4385 if test "${ac_cv_objext+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 cat >conftest.$ac_ext <<_ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4403 rm -f conftest.o conftest.obj
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405 (eval $ac_compile) 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; then
4409 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4412 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4420 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4421 See \`config.log' for more details." >&5
4422 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4423 See \`config.log' for more details." >&2;}
4424 { (exit 1); exit 1; }; }
4427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4429 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4430 echo "${ECHO_T}$ac_cv_objext" >&6
4431 OBJEXT=$ac_cv_objext
4433 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4434 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4435 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458 (eval $ac_compile) 2>conftest.er1
4460 grep -v '^ *+' conftest.er1 >conftest.err
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try='test -z "$ac_c_werror_flag"
4466 || test ! -s conftest.err'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest.$ac_objext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4486 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4489 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4490 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4491 GCC=`test $ac_compiler_gnu = yes && echo yes`
4492 ac_test_CFLAGS=${CFLAGS+set}
4493 ac_save_CFLAGS=$CFLAGS
4495 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4496 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4497 if test "${ac_cv_prog_cc_g+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4515 rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4519 grep -v '^ *+' conftest.er1 >conftest.err
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4547 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4548 if test "$ac_test_CFLAGS" = set; then
4549 CFLAGS=$ac_save_CFLAGS
4550 elif test $ac_cv_prog_cc_g = yes; then
4551 if test "$GCC" = yes; then
4557 if test "$GCC" = yes; then
4563 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4564 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4565 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 ac_cv_prog_cc_stdc=no
4570 cat >conftest.$ac_ext <<_ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4578 #include <sys/types.h>
4579 #include <sys/stat.h>
4580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4581 struct buf { int x; };
4582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4583 static char *e (p, i)
4589 static char *f (char * (*g) (char **, int), char **p, ...)
4594 s = g (p, va_arg (v,int));
4599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4600 function prototypes and stuff, but not '\xHH' hex character constants.
4601 These don't provoke an error unfortunately, instead are silently treated
4602 as 'x'. The following induces an error, until -std1 is added to get
4603 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4604 array size at least. It's necessary to write '\x00'==0 to get something
4605 that's true only with -std1. */
4606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4608 int test (int i, double x);
4609 struct s1 {int (*f) (int a);};
4610 struct s2 {int (*f) (double a);};
4611 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4617 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4622 # Don't try gcc -ansi; that turns off useful extensions and
4623 # breaks some systems' header files.
4624 # AIX -qlanglvl=ansi
4625 # Ultrix and OSF/1 -std1
4626 # HP-UX 10.20 and later -Ae
4627 # HP-UX older versions -Aa -D_HPUX_SOURCE
4628 # SVR4 -Xc -D__EXTENSIONS__
4629 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4631 CC="$ac_save_CC $ac_arg"
4632 rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>conftest.er1
4636 grep -v '^ *+' conftest.er1 >conftest.err
4638 cat conftest.err >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
4641 { ac_try='test -z "$ac_c_werror_flag"
4642 || test ! -s conftest.err'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; } &&
4648 { ac_try='test -s conftest.$ac_objext'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4654 ac_cv_prog_cc_stdc=$ac_arg
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4661 rm -f conftest.err conftest.$ac_objext
4663 rm -f conftest.$ac_ext conftest.$ac_objext
4668 case "x$ac_cv_prog_cc_stdc" in
4670 echo "$as_me:$LINENO: result: none needed" >&5
4671 echo "${ECHO_T}none needed" >&6 ;;
4673 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4674 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4675 CC="$CC $ac_cv_prog_cc_stdc" ;;
4678 # Some people use a C++ compiler to compile C. Since we use `exit',
4679 # in C++ we need to declare it. In case someone uses the same compiler
4680 # for both compiling C and C++ we need to have the C++ compiler decide
4681 # the declaration of exit, since it's the most demanding environment.
4682 cat >conftest.$ac_ext <<_ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689 (eval $ac_compile) 2>conftest.er1
4691 grep -v '^ *+' conftest.er1 >conftest.err
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -z "$ac_c_werror_flag"
4697 || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 for ac_declaration in \
4711 'extern "C" void std::exit (int) throw (); using std::exit;' \
4712 'extern "C" void std::exit (int); using std::exit;' \
4713 'extern "C" void exit (int) throw ();' \
4714 'extern "C" void exit (int);' \
4717 cat >conftest.$ac_ext <<_ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4737 grep -v '^ *+' conftest.er1 >conftest.err
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_c_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest.$ac_objext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4778 rm -f conftest.$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780 (eval $ac_compile) 2>conftest.er1
4782 grep -v '^ *+' conftest.er1 >conftest.err
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
4787 { ac_try='test -z "$ac_c_werror_flag"
4788 || test ! -s conftest.err'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try='test -s conftest.$ac_objext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4809 if test -n "$ac_declaration"; then
4810 echo '#ifdef __cplusplus' >>confdefs.h
4811 echo $ac_declaration >>confdefs.h
4812 echo '#endif' >>confdefs.h
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 DEPDIR="${am__leading_dot}deps"
4828 ac_config_commands="$ac_config_commands depfiles"
4831 am_make=${MAKE-make}
4832 cat > confinc << 'END'
4837 # If we don't find an include directive, just comment out the code.
4838 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4839 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4843 # First try GNU make style include.
4844 echo "include confinc" > confmf
4845 # We grep out `Entering directory' and `Leaving directory'
4846 # messages which can occur if `w' ends up in MAKEFLAGS.
4847 # In particular we don't look at `^make:' because GNU make might
4848 # be invoked under some other name (usually "gmake"), in which
4849 # case it prints its new name instead of `make'.
4850 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4855 # Now try BSD make style include.
4856 if test "$am__include" = "#"; then
4857 echo '.include "confinc"' > confmf
4858 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4859 am__include=.include
4866 echo "$as_me:$LINENO: result: $_am_result" >&5
4867 echo "${ECHO_T}$_am_result" >&6
4868 rm -f confinc confmf
4870 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4871 if test "${enable_dependency_tracking+set}" = set; then
4872 enableval="$enable_dependency_tracking"
4875 if test "x$enable_dependency_tracking" != xno; then
4876 am_depcomp="$ac_aux_dir/depcomp"
4881 if test "x$enable_dependency_tracking" != xno; then
4892 depcc="$CC" am_compiler_list=
4894 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4895 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4896 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4900 # We make a subdir and do the tests there. Otherwise we can end up
4901 # making bogus files that we don't know about and never remove. For
4902 # instance it was reported that on HP-UX the gcc test will end up
4903 # making a dummy file named `D' -- because `-MD' means `put the output
4906 # Copy depcomp to subdir because otherwise we won't find it if we're
4907 # using a relative directory.
4908 cp "$am_depcomp" conftest.dir
4910 # We will build objects and dependencies in a subdirectory because
4911 # it helps to detect inapplicable dependency modes. For instance
4912 # both Tru64's cc and ICC support -MD to output dependencies as a
4913 # side effect of compilation, but ICC will put the dependencies in
4914 # the current directory while Tru64 will put them in the object
4918 am_cv_CC_dependencies_compiler_type=none
4919 if test "$am_compiler_list" = ""; then
4920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4922 for depmode in $am_compiler_list; do
4923 # Setup a source with many dependencies, because some compilers
4924 # like to wrap large dependency lists on column 80 (with \), and
4925 # we should not choose a depcomp mode which is confused by this.
4927 # We need to recreate these files for each test, as the compiler may
4928 # overwrite some of them when testing with obscure command lines.
4929 # This happens at least with the AIX C compiler.
4931 for i in 1 2 3 4 5 6; do
4932 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4933 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4934 # Solaris 8's {/usr,}/bin/sh.
4935 touch sub/conftst$i.h
4937 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4941 # after this tag, mechanisms are not by side-effect, so they'll
4942 # only be used when explicitly requested
4943 if test "x$enable_dependency_tracking" = xyes; then
4951 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4952 # mode. It turns out that the SunPro C++ compiler does not properly
4953 # handle `-M -o', and we need to detect this.
4954 if depmode=$depmode \
4955 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4956 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4957 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4958 >/dev/null 2>conftest.err &&
4959 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4960 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4961 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4962 # icc doesn't choke on unknown options, it will just issue warnings
4963 # or remarks (even with -Werror). So we grep stderr for any message
4964 # that says an option was ignored or not supported.
4965 # When given -MP, icc 7.0 and 7.1 complain thusly:
4966 # icc: Command line warning: ignoring option '-M'; no argument required
4967 # The diagnosis changed in icc 8.0:
4968 # icc: Command line remark: option '-MP' not supported
4969 if (grep 'ignoring option' conftest.err ||
4970 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4971 am_cv_CC_dependencies_compiler_type=$depmode
4980 am_cv_CC_dependencies_compiler_type=none
4984 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4985 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4986 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4991 test "x$enable_dependency_tracking" != xno \
4992 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4994 am__fastdepCC_FALSE='#'
4996 am__fastdepCC_TRUE='#'
4997 am__fastdepCC_FALSE=
5002 ac_cpp='$CXXCPP $CPPFLAGS'
5003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5006 if test -n "$ac_tool_prefix"; then
5007 for ac_prog in $CCC g++ g++3 c++ CC
5009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_prog_CXX+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 if test -n "$CXX"; then
5017 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 if test -n "$CXX"; then
5037 echo "$as_me:$LINENO: result: $CXX" >&5
5038 echo "${ECHO_T}$CXX" >&6
5040 echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5044 test -n "$CXX" && break
5047 if test -z "$CXX"; then
5049 for ac_prog in $CCC g++ g++3 c++ CC
5051 # Extract the first word of "$ac_prog", so it can be a program name with args.
5052 set dummy $ac_prog; ac_word=$2
5053 echo "$as_me:$LINENO: checking for $ac_word" >&5
5054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 if test -n "$ac_ct_CXX"; then
5059 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_ac_ct_CXX="$ac_prog"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5078 if test -n "$ac_ct_CXX"; then
5079 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5080 echo "${ECHO_T}$ac_ct_CXX" >&6
5082 echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5086 test -n "$ac_ct_CXX" && break
5088 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5094 # Provide some information about the compiler.
5095 echo "$as_me:$LINENO:" \
5096 "checking for C++ compiler version" >&5
5097 ac_compiler=`set X $ac_compile; echo $2`
5098 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5099 (eval $ac_compiler --version </dev/null >&5) 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }
5103 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5104 (eval $ac_compiler -v </dev/null >&5) 2>&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }
5108 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5109 (eval $ac_compiler -V </dev/null >&5) 2>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }
5114 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5115 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5116 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5137 rm -f conftest.$ac_objext
5138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139 (eval $ac_compile) 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } &&
5146 { ac_try='test -z "$ac_cxx_werror_flag"
5147 || test ! -s conftest.err'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; } &&
5153 { ac_try='test -s conftest.$ac_objext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5170 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5171 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5172 GXX=`test $ac_compiler_gnu = yes && echo yes`
5173 ac_test_CXXFLAGS=${CXXFLAGS+set}
5174 ac_save_CXXFLAGS=$CXXFLAGS
5176 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5177 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5178 if test "${ac_cv_prog_cxx_g+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>conftest.er1
5200 grep -v '^ *+' conftest.er1 >conftest.err
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -z "$ac_cxx_werror_flag"
5206 || test ! -s conftest.err'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_cv_prog_cxx_g=yes
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5228 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5229 if test "$ac_test_CXXFLAGS" = set; then
5230 CXXFLAGS=$ac_save_CXXFLAGS
5231 elif test $ac_cv_prog_cxx_g = yes; then
5232 if test "$GXX" = yes; then
5238 if test "$GXX" = yes; then
5244 for ac_declaration in \
5246 'extern "C" void std::exit (int) throw (); using std::exit;' \
5247 'extern "C" void std::exit (int); using std::exit;' \
5248 'extern "C" void exit (int) throw ();' \
5249 'extern "C" void exit (int);' \
5252 cat >conftest.$ac_ext <<_ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5268 rm -f conftest.$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>conftest.er1
5272 grep -v '^ *+' conftest.er1 >conftest.err
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -z "$ac_cxx_werror_flag"
5278 || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5313 rm -f conftest.$ac_objext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>conftest.er1
5317 grep -v '^ *+' conftest.er1 >conftest.err
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try='test -z "$ac_cxx_werror_flag"
5323 || test ! -s conftest.err'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; } &&
5329 { ac_try='test -s conftest.$ac_objext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5344 if test -n "$ac_declaration"; then
5345 echo '#ifdef __cplusplus' >>confdefs.h
5346 echo $ac_declaration >>confdefs.h
5347 echo '#endif' >>confdefs.h
5351 ac_cpp='$CPP $CPPFLAGS'
5352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 depcc="$CXX" am_compiler_list=
5358 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5359 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5360 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364 # We make a subdir and do the tests there. Otherwise we can end up
5365 # making bogus files that we don't know about and never remove. For
5366 # instance it was reported that on HP-UX the gcc test will end up
5367 # making a dummy file named `D' -- because `-MD' means `put the output
5370 # Copy depcomp to subdir because otherwise we won't find it if we're
5371 # using a relative directory.
5372 cp "$am_depcomp" conftest.dir
5374 # We will build objects and dependencies in a subdirectory because
5375 # it helps to detect inapplicable dependency modes. For instance
5376 # both Tru64's cc and ICC support -MD to output dependencies as a
5377 # side effect of compilation, but ICC will put the dependencies in
5378 # the current directory while Tru64 will put them in the object
5382 am_cv_CXX_dependencies_compiler_type=none
5383 if test "$am_compiler_list" = ""; then
5384 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5386 for depmode in $am_compiler_list; do
5387 # Setup a source with many dependencies, because some compilers
5388 # like to wrap large dependency lists on column 80 (with \), and
5389 # we should not choose a depcomp mode which is confused by this.
5391 # We need to recreate these files for each test, as the compiler may
5392 # overwrite some of them when testing with obscure command lines.
5393 # This happens at least with the AIX C compiler.
5395 for i in 1 2 3 4 5 6; do
5396 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5397 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5398 # Solaris 8's {/usr,}/bin/sh.
5399 touch sub/conftst$i.h
5401 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5405 # after this tag, mechanisms are not by side-effect, so they'll
5406 # only be used when explicitly requested
5407 if test "x$enable_dependency_tracking" = xyes; then
5415 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5416 # mode. It turns out that the SunPro C++ compiler does not properly
5417 # handle `-M -o', and we need to detect this.
5418 if depmode=$depmode \
5419 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5420 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5421 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5422 >/dev/null 2>conftest.err &&
5423 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5424 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5425 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5426 # icc doesn't choke on unknown options, it will just issue warnings
5427 # or remarks (even with -Werror). So we grep stderr for any message
5428 # that says an option was ignored or not supported.
5429 # When given -MP, icc 7.0 and 7.1 complain thusly:
5430 # icc: Command line warning: ignoring option '-M'; no argument required
5431 # The diagnosis changed in icc 8.0:
5432 # icc: Command line remark: option '-MP' not supported
5433 if (grep 'ignoring option' conftest.err ||
5434 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5435 am_cv_CXX_dependencies_compiler_type=$depmode
5444 am_cv_CXX_dependencies_compiler_type=none
5448 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5449 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5450 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5455 test "x$enable_dependency_tracking" != xno \
5456 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5457 am__fastdepCXX_TRUE=
5458 am__fastdepCXX_FALSE='#'
5460 am__fastdepCXX_TRUE='#'
5461 am__fastdepCXX_FALSE=
5465 # Make sure we can run config.sub.
5466 $ac_config_sub sun4 >/dev/null 2>&1 ||
5467 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5468 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5469 { (exit 1); exit 1; }; }
5471 echo "$as_me:$LINENO: checking build system type" >&5
5472 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5473 if test "${ac_cv_build+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 ac_cv_build_alias=$build_alias
5477 test -z "$ac_cv_build_alias" &&
5478 ac_cv_build_alias=`$ac_config_guess`
5479 test -z "$ac_cv_build_alias" &&
5480 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5481 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5482 { (exit 1); exit 1; }; }
5483 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5485 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5486 { (exit 1); exit 1; }; }
5489 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5490 echo "${ECHO_T}$ac_cv_build" >&6
5492 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5493 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5494 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5497 echo "$as_me:$LINENO: checking host system type" >&5
5498 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5499 if test "${ac_cv_host+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 ac_cv_host_alias=$host_alias
5503 test -z "$ac_cv_host_alias" &&
5504 ac_cv_host_alias=$ac_cv_build_alias
5505 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5506 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5507 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5508 { (exit 1); exit 1; }; }
5511 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5512 echo "${ECHO_T}$ac_cv_host" >&6
5514 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5515 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5516 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5520 if test "$GCC" = "yes" ; then
5521 # AC_HAVE_GCC_VERSION(4,0,0,0,
5523 # AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
5524 # [Define to enable class visibility control in gcc.])
5525 # GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5526 # GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5528 CFLAGS="-Wall $GCC_CFLAGS"
5529 CXXFLAGS="-Wall $GCC_CXXFLAGS"
5531 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
5532 case "${host_cpu}-${host_os}" in
5534 if test "$CXX" = "CC" ; then
5535 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
5541 # Check whether --enable-static or --disable-static was given.
5542 if test "${enable_static+set}" = set; then
5543 enableval="$enable_static"
5544 p=${PACKAGE-default}
5546 yes) enable_static=yes ;;
5547 no) enable_static=no ;;
5550 # Look at the argument we got. We use all the common list separators.
5551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5552 for pkg in $enableval; do
5554 if test "X$pkg" = "X$p"; then
5566 # Check whether --enable-shared or --disable-shared was given.
5567 if test "${enable_shared+set}" = set; then
5568 enableval="$enable_shared"
5569 p=${PACKAGE-default}
5571 yes) enable_shared=yes ;;
5572 no) enable_shared=no ;;
5575 # Look at the argument we got. We use all the common list separators.
5576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5577 for pkg in $enableval; do
5579 if test "X$pkg" = "X$p"; then
5590 # Check whether --enable-fast-install or --disable-fast-install was given.
5591 if test "${enable_fast_install+set}" = set; then
5592 enableval="$enable_fast_install"
5593 p=${PACKAGE-default}
5595 yes) enable_fast_install=yes ;;
5596 no) enable_fast_install=no ;;
5598 enable_fast_install=no
5599 # Look at the argument we got. We use all the common list separators.
5600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5601 for pkg in $enableval; do
5603 if test "X$pkg" = "X$p"; then
5604 enable_fast_install=yes
5611 enable_fast_install=yes
5614 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5615 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5616 if test "${lt_cv_path_SED+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 # Loop through the user's path and test for sed and gsed.
5620 # Then use that list of sed's as ones to test for truncation.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for lt_ac_prog in sed gsed; do
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5629 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5636 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5637 # along with /bin/sed that truncates output.
5638 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5639 test ! -f $lt_ac_sed && break
5640 cat /dev/null > conftest.in
5642 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5643 # Check for GNU sed and select it if it is found.
5644 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5645 lt_cv_path_SED=$lt_ac_sed
5649 cat conftest.in conftest.in >conftest.tmp
5650 mv conftest.tmp conftest.in
5651 cp conftest.in conftest.nl
5653 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5654 cmp -s conftest.out conftest.nl || break
5655 # 10000 chars as input seems more than enough
5656 test $lt_ac_count -gt 10 && break
5657 lt_ac_count=`expr $lt_ac_count + 1`
5658 if test $lt_ac_count -gt $lt_ac_max; then
5659 lt_ac_max=$lt_ac_count
5660 lt_cv_path_SED=$lt_ac_sed
5668 echo "$as_me:$LINENO: result: $SED" >&5
5669 echo "${ECHO_T}$SED" >&6
5671 echo "$as_me:$LINENO: checking for egrep" >&5
5672 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5673 if test "${ac_cv_prog_egrep+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5677 then ac_cv_prog_egrep='grep -E'
5678 else ac_cv_prog_egrep='egrep'
5681 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5682 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5683 EGREP=$ac_cv_prog_egrep
5687 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5688 if test "${with_gnu_ld+set}" = set; then
5689 withval="$with_gnu_ld"
5690 test "$withval" = no || with_gnu_ld=yes
5695 if test "$GCC" = yes; then
5696 # Check if gcc -print-prog-name=ld gives a path.
5697 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5698 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5701 # gcc leaves a trailing carriage return which upsets mingw
5702 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5704 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5707 # Accept absolute paths.
5709 re_direlt='/[^/][^/]*/\.\./'
5710 # Canonicalize the pathname of ld
5711 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5712 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5713 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5715 test -z "$LD" && LD="$ac_prog"
5718 # If it fails, then pretend we aren't using GCC.
5722 # If it is relative, then search for the first ld in PATH.
5726 elif test "$with_gnu_ld" = yes; then
5727 echo "$as_me:$LINENO: checking for GNU ld" >&5
5728 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5730 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5731 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5733 if test "${lt_cv_path_LD+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 if test -z "$LD"; then
5737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5738 for ac_dir in $PATH; do
5740 test -z "$ac_dir" && ac_dir=.
5741 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5742 lt_cv_path_LD="$ac_dir/$ac_prog"
5743 # Check to see if the program is GNU ld. I'd rather use --version,
5744 # but apparently some GNU ld's only accept -v.
5745 # Break only if it was the GNU/non-GNU ld that we prefer.
5746 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5747 *GNU* | *'with BFD'*)
5748 test "$with_gnu_ld" != no && break
5751 test "$with_gnu_ld" != yes && break
5758 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5763 if test -n "$LD"; then
5764 echo "$as_me:$LINENO: result: $LD" >&5
5765 echo "${ECHO_T}$LD" >&6
5767 echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6
5770 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5771 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5772 { (exit 1); exit 1; }; }
5773 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5774 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5775 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5779 case `$LD -v 2>&1 </dev/null` in
5780 *GNU* | *'with BFD'*)
5781 lt_cv_prog_gnu_ld=yes
5784 lt_cv_prog_gnu_ld=no
5788 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5789 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5790 with_gnu_ld=$lt_cv_prog_gnu_ld
5793 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5794 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5795 if test "${lt_cv_ld_reload_flag+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 lt_cv_ld_reload_flag='-r'
5800 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5801 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5802 reload_flag=$lt_cv_ld_reload_flag
5803 case $reload_flag in
5805 *) reload_flag=" $reload_flag" ;;
5807 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5809 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5810 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5811 if test "${lt_cv_path_NM+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 if test -n "$NM"; then
5815 # Let the user override the test.
5818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5819 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5821 test -z "$ac_dir" && ac_dir=.
5822 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5823 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5824 # Check to see if the nm accepts a BSD-compat flag.
5825 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5826 # nm: unknown option "B" ignored
5827 # Tru64's nm complains that /dev/null is an invalid object file
5828 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5829 */dev/null* | *'Invalid file or object type'*)
5830 lt_cv_path_NM="$tmp_nm -B"
5834 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5836 lt_cv_path_NM="$tmp_nm -p"
5840 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5841 continue # so that we can try to find one that supports BSD flags
5848 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5851 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5852 echo "${ECHO_T}$lt_cv_path_NM" >&6
5855 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5856 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5858 if test "$LN_S" = "ln -s"; then
5859 echo "$as_me:$LINENO: result: yes" >&5
5860 echo "${ECHO_T}yes" >&6
5862 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5863 echo "${ECHO_T}no, using $LN_S" >&6
5866 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5867 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5868 if test "${lt_cv_deplibs_check_method+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 lt_cv_file_magic_cmd='$MAGIC_CMD'
5872 lt_cv_file_magic_test_file=
5873 lt_cv_deplibs_check_method='unknown'
5874 # Need to set the preceding variable on all platforms that support
5875 # interlibrary dependencies.
5876 # 'none' -- dependencies not supported.
5877 # `unknown' -- same as none, but documents that we really don't know.
5878 # 'pass_all' -- all dependencies passed with no checks.
5879 # 'test_compile' -- check by making test program.
5880 # 'file_magic [[regex]]' -- check by looking for files in library path
5881 # which responds to the $file_magic_cmd with a given extended regex.
5882 # If you have `file' or equivalent on your system and you're not sure
5883 # whether `pass_all' will *always* work, you probably want this one.
5887 lt_cv_deplibs_check_method=pass_all
5891 lt_cv_deplibs_check_method=pass_all
5895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5896 lt_cv_file_magic_cmd='/usr/bin/file -L'
5897 lt_cv_file_magic_test_file=/shlib/libc.so
5901 # func_win32_libid is a shell function defined in ltmain.sh
5902 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5903 lt_cv_file_magic_cmd='func_win32_libid'
5907 # Base MSYS/MinGW do not provide the 'file' command needed by
5908 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5909 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5910 lt_cv_file_magic_cmd='$OBJDUMP -f'
5913 darwin* | rhapsody*)
5914 lt_cv_deplibs_check_method=pass_all
5917 freebsd* | kfreebsd*-gnu)
5918 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5921 # Not sure whether the presence of OpenBSD here was a mistake.
5922 # Let's accept both of them until this is cleared up.
5923 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5924 lt_cv_file_magic_cmd=/usr/bin/file
5925 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5929 lt_cv_deplibs_check_method=pass_all
5934 lt_cv_deplibs_check_method=pass_all
5937 hpux10.20* | hpux11*)
5938 lt_cv_file_magic_cmd=/usr/bin/file
5941 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5942 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5945 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]'
5946 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5949 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5950 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5955 irix5* | irix6* | nonstopux*)
5957 *-32|*"-32 ") libmagic=32-bit;;
5958 *-n32|*"-n32 ") libmagic=N32;;
5959 *-64|*"-64 ") libmagic=64-bit;;
5960 *) libmagic=never-match;;
5962 lt_cv_deplibs_check_method=pass_all
5965 # This must be Linux ELF.
5968 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
5969 lt_cv_deplibs_check_method=pass_all ;;
5971 # glibc up to 2.1.1 does not perform some relocations on ARM
5972 # this will be overridden with pass_all, but let us keep it just in case
5973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5975 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5976 lt_cv_deplibs_check_method=pass_all
5980 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5988 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5989 lt_cv_file_magic_cmd=/usr/bin/file
5990 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5994 lt_cv_deplibs_check_method=unknown
5998 lt_cv_file_magic_cmd=/usr/bin/file
5999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6003 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6007 osf3* | osf4* | osf5*)
6008 lt_cv_deplibs_check_method=pass_all
6012 lt_cv_deplibs_check_method=pass_all
6016 lt_cv_deplibs_check_method=pass_all
6019 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6020 case $host_vendor in
6022 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]'
6023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6026 lt_cv_deplibs_check_method=pass_all
6029 lt_cv_file_magic_cmd='/bin/file'
6030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6033 lt_cv_file_magic_cmd='/bin/file'
6034 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6035 lt_cv_file_magic_test_file=/lib/libc.so
6038 lt_cv_deplibs_check_method=pass_all
6043 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6044 lt_cv_deplibs_check_method=pass_all
6049 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6050 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6051 file_magic_cmd=$lt_cv_file_magic_cmd
6052 deplibs_check_method=$lt_cv_deplibs_check_method
6053 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6058 # If no C compiler was specified, use CC.
6061 # Allow CC to be a program name with arguments.
6065 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6066 if test "${enable_libtool_lock+set}" = set; then
6067 enableval="$enable_libtool_lock"
6070 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6072 # Some flags need to be propagated to the compiler or linker for good
6076 # Find out which ABI we are using.
6077 echo 'int i;' > conftest.$ac_ext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079 (eval $ac_compile) 2>&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; then
6083 case `/usr/bin/file conftest.$ac_objext` in
6095 # Find out which ABI we are using.
6096 echo '#line 6096 "configure"' > conftest.$ac_ext
6097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098 (eval $ac_compile) 2>&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; then
6102 if test "$lt_cv_prog_gnu_ld" = yes; then
6103 case `/usr/bin/file conftest.$ac_objext` in
6105 LD="${LD-ld} -melf32bsmip"
6108 LD="${LD-ld} -melf32bmipn32"
6111 LD="${LD-ld} -melf64bmip"
6115 case `/usr/bin/file conftest.$ac_objext` in
6131 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6132 # Find out which ABI we are using.
6133 echo 'int i;' > conftest.$ac_ext
6134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135 (eval $ac_compile) 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; then
6139 case "`/usr/bin/file conftest.o`" in
6143 LD="${LD-ld} -m elf_i386"
6145 ppc64-*linux*|powerpc64-*linux*)
6146 LD="${LD-ld} -m elf32ppclinux"
6149 LD="${LD-ld} -m elf_s390"
6152 LD="${LD-ld} -m elf32_sparc"
6159 LD="${LD-ld} -m elf_x86_64"
6161 ppc*-*linux*|powerpc*-*linux*)
6162 LD="${LD-ld} -m elf64ppc"
6165 LD="${LD-ld} -m elf64_s390"
6168 LD="${LD-ld} -m elf64_sparc"
6178 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6179 SAVE_CFLAGS="$CFLAGS"
6180 CFLAGS="$CFLAGS -belf"
6181 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6182 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6183 if test "${lt_cv_cc_needs_belf+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 ac_cpp='$CPP $CPPFLAGS'
6188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6207 rm -f conftest.$ac_objext conftest$ac_exeext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6209 (eval $ac_link) 2>conftest.er1
6211 grep -v '^ *+' conftest.er1 >conftest.err
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -z "$ac_c_werror_flag"
6217 || test ! -s conftest.err'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try='test -s conftest$ac_exeext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 lt_cv_cc_needs_belf=yes
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 lt_cv_cc_needs_belf=no
6236 rm -f conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6246 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6247 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6248 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6249 CFLAGS="$SAVE_CFLAGS"
6255 need_locks="$enable_libtool_lock"
6259 ac_cpp='$CPP $CPPFLAGS'
6260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6263 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6264 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6265 # On Suns, sometimes $CPP names a directory.
6266 if test -n "$CPP" && test -d "$CPP"; then
6269 if test -z "$CPP"; then
6270 if test "${ac_cv_prog_CPP+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 # Double quotes because CPP needs to be expanded
6274 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6277 for ac_c_preproc_warn_flag in '' yes
6279 # Use a header file that comes with gcc, so configuring glibc
6280 # with a fresh cross-compiler works.
6281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282 # <limits.h> exists even on freestanding compilers.
6283 # On the NeXT, cc -E runs the code through the compiler's parser,
6284 # not just through cpp. "Syntax error" is here to catch this case.
6285 cat >conftest.$ac_ext <<_ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6292 # include <limits.h>
6294 # include <assert.h>
6298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6301 grep -v '^ *+' conftest.er1 >conftest.err
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } >/dev/null; then
6306 if test -s conftest.err; then
6307 ac_cpp_err=$ac_c_preproc_warn_flag
6308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6315 if test -z "$ac_cpp_err"; then
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 # Broken: fails on valid input.
6324 rm -f conftest.err conftest.$ac_ext
6326 # OK, works on sane cases. Now check whether non-existent headers
6327 # can be detected and how.
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 #include <ac_nonexistent.h>
6336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6339 grep -v '^ *+' conftest.er1 >conftest.err
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } >/dev/null; then
6344 if test -s conftest.err; then
6345 ac_cpp_err=$ac_c_preproc_warn_flag
6346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6353 if test -z "$ac_cpp_err"; then
6354 # Broken: success on invalid input.
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 # Passes both tests.
6364 rm -f conftest.err conftest.$ac_ext
6367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6368 rm -f conftest.err conftest.$ac_ext
6369 if $ac_preproc_ok; then
6381 echo "$as_me:$LINENO: result: $CPP" >&5
6382 echo "${ECHO_T}$CPP" >&6
6384 for ac_c_preproc_warn_flag in '' yes
6386 # Use a header file that comes with gcc, so configuring glibc
6387 # with a fresh cross-compiler works.
6388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6389 # <limits.h> exists even on freestanding compilers.
6390 # On the NeXT, cc -E runs the code through the compiler's parser,
6391 # not just through cpp. "Syntax error" is here to catch this case.
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6399 # include <limits.h>
6401 # include <assert.h>
6405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } >/dev/null; then
6413 if test -s conftest.err; then
6414 ac_cpp_err=$ac_c_preproc_warn_flag
6415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6422 if test -z "$ac_cpp_err"; then
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 # Broken: fails on valid input.
6431 rm -f conftest.err conftest.$ac_ext
6433 # OK, works on sane cases. Now check whether non-existent headers
6434 # can be detected and how.
6435 cat >conftest.$ac_ext <<_ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <ac_nonexistent.h>
6443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6446 grep -v '^ *+' conftest.er1 >conftest.err
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null; then
6451 if test -s conftest.err; then
6452 ac_cpp_err=$ac_c_preproc_warn_flag
6453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6460 if test -z "$ac_cpp_err"; then
6461 # Broken: success on invalid input.
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 # Passes both tests.
6471 rm -f conftest.err conftest.$ac_ext
6474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6475 rm -f conftest.err conftest.$ac_ext
6476 if $ac_preproc_ok; then
6479 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6480 See \`config.log' for more details." >&5
6481 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6482 See \`config.log' for more details." >&2;}
6483 { (exit 1); exit 1; }; }
6487 ac_cpp='$CPP $CPPFLAGS'
6488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6493 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6494 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6495 if test "${ac_cv_header_stdc+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6517 rm -f conftest.$ac_objext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6519 (eval $ac_compile) 2>conftest.er1
6521 grep -v '^ *+' conftest.er1 >conftest.err
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -z "$ac_c_werror_flag"
6527 || test ! -s conftest.err'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_cv_header_stdc=yes
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6544 ac_cv_header_stdc=no
6546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6548 if test $ac_cv_header_stdc = yes; then
6549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6550 cat >conftest.$ac_ext <<_ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6560 $EGREP "memchr" >/dev/null 2>&1; then
6563 ac_cv_header_stdc=no
6569 if test $ac_cv_header_stdc = yes; then
6570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6571 cat >conftest.$ac_ext <<_ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581 $EGREP "free" >/dev/null 2>&1; then
6584 ac_cv_header_stdc=no
6590 if test $ac_cv_header_stdc = yes; then
6591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6592 if test "$cross_compiling" = yes; then
6595 cat >conftest.$ac_ext <<_ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6602 #if ((' ' & 0x0FF) == 0x020)
6603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6606 # define ISLOWER(c) \
6607 (('a' <= (c) && (c) <= 'i') \
6608 || ('j' <= (c) && (c) <= 'r') \
6609 || ('s' <= (c) && (c) <= 'z'))
6610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6618 for (i = 0; i < 256; i++)
6619 if (XOR (islower (i), ISLOWER (i))
6620 || toupper (i) != TOUPPER (i))
6625 rm -f conftest$ac_exeext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627 (eval $ac_link) 2>&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6638 echo "$as_me: program exited with status $ac_status" >&5
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_header_stdc=no
6645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6650 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6651 if test $ac_cv_header_stdc = yes; then
6653 cat >>confdefs.h <<\_ACEOF
6654 #define STDC_HEADERS 1
6659 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6669 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6670 inttypes.h stdint.h unistd.h
6672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6673 echo "$as_me:$LINENO: checking for $ac_header" >&5
6674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 cat >conftest.$ac_ext <<_ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 $ac_includes_default
6686 #include <$ac_header>
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>conftest.er1
6692 grep -v '^ *+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -z "$ac_c_werror_flag"
6698 || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 eval "$as_ac_Header=yes"
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 eval "$as_ac_Header=no"
6717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6722 cat >>confdefs.h <<_ACEOF
6723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6732 for ac_header in dlfcn.h
6734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6736 echo "$as_me:$LINENO: checking for $ac_header" >&5
6737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6744 # Is the header compilable?
6745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 $ac_includes_default
6754 #include <$ac_header>
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_header_compiler=yes
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_header_compiler=no
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6787 echo "${ECHO_T}$ac_header_compiler" >&6
6789 # Is the header present?
6790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <$ac_header>
6800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } >/dev/null; then
6808 if test -s conftest.err; then
6809 ac_cpp_err=$ac_c_preproc_warn_flag
6810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6817 if test -z "$ac_cpp_err"; then
6818 ac_header_preproc=yes
6820 echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6823 ac_header_preproc=no
6825 rm -f conftest.err conftest.$ac_ext
6826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6827 echo "${ECHO_T}$ac_header_preproc" >&6
6829 # So? What about this header?
6830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6836 ac_header_preproc=yes
6839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6853 ## --------------------------------------------- ##
6854 ## Report this to shibboleth-users@internet2.edu ##
6855 ## --------------------------------------------- ##
6858 sed "s/^/$as_me: WARNING: /" >&2
6861 echo "$as_me:$LINENO: checking for $ac_header" >&5
6862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 eval "$as_ac_Header=\$ac_header_preproc"
6868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6873 cat >>confdefs.h <<_ACEOF
6874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6882 ac_cpp='$CXXCPP $CPPFLAGS'
6883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6886 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6887 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6888 if test -z "$CXXCPP"; then
6889 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 # Double quotes because CXXCPP needs to be expanded
6893 for CXXCPP in "$CXX -E" "/lib/cpp"
6896 for ac_cxx_preproc_warn_flag in '' yes
6898 # Use a header file that comes with gcc, so configuring glibc
6899 # with a fresh cross-compiler works.
6900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901 # <limits.h> exists even on freestanding compilers.
6902 # On the NeXT, cc -E runs the code through the compiler's parser,
6903 # not just through cpp. "Syntax error" is here to catch this case.
6904 cat >conftest.$ac_ext <<_ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6911 # include <limits.h>
6913 # include <assert.h>
6917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6920 grep -v '^ *+' conftest.er1 >conftest.err
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } >/dev/null; then
6925 if test -s conftest.err; then
6926 ac_cpp_err=$ac_cxx_preproc_warn_flag
6927 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6934 if test -z "$ac_cpp_err"; then
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 # Broken: fails on valid input.
6943 rm -f conftest.err conftest.$ac_ext
6945 # OK, works on sane cases. Now check whether non-existent headers
6946 # can be detected and how.
6947 cat >conftest.$ac_ext <<_ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6953 #include <ac_nonexistent.h>
6955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6958 grep -v '^ *+' conftest.er1 >conftest.err
6960 cat conftest.err >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } >/dev/null; then
6963 if test -s conftest.err; then
6964 ac_cpp_err=$ac_cxx_preproc_warn_flag
6965 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6972 if test -z "$ac_cpp_err"; then
6973 # Broken: success on invalid input.
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 # Passes both tests.
6983 rm -f conftest.err conftest.$ac_ext
6986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6987 rm -f conftest.err conftest.$ac_ext
6988 if $ac_preproc_ok; then
6993 ac_cv_prog_CXXCPP=$CXXCPP
6996 CXXCPP=$ac_cv_prog_CXXCPP
6998 ac_cv_prog_CXXCPP=$CXXCPP
7000 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7001 echo "${ECHO_T}$CXXCPP" >&6
7003 for ac_cxx_preproc_warn_flag in '' yes
7005 # Use a header file that comes with gcc, so configuring glibc
7006 # with a fresh cross-compiler works.
7007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7008 # <limits.h> exists even on freestanding compilers.
7009 # On the NeXT, cc -E runs the code through the compiler's parser,
7010 # not just through cpp. "Syntax error" is here to catch this case.
7011 cat >conftest.$ac_ext <<_ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7018 # include <limits.h>
7020 # include <assert.h>
7024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7027 grep -v '^ *+' conftest.er1 >conftest.err
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } >/dev/null; then
7032 if test -s conftest.err; then
7033 ac_cpp_err=$ac_cxx_preproc_warn_flag
7034 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7041 if test -z "$ac_cpp_err"; then
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 # Broken: fails on valid input.
7050 rm -f conftest.err conftest.$ac_ext
7052 # OK, works on sane cases. Now check whether non-existent headers
7053 # can be detected and how.
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 #include <ac_nonexistent.h>
7062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7065 grep -v '^ *+' conftest.er1 >conftest.err
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } >/dev/null; then
7070 if test -s conftest.err; then
7071 ac_cpp_err=$ac_cxx_preproc_warn_flag
7072 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7079 if test -z "$ac_cpp_err"; then
7080 # Broken: success on invalid input.
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 # Passes both tests.
7090 rm -f conftest.err conftest.$ac_ext
7093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7094 rm -f conftest.err conftest.$ac_ext
7095 if $ac_preproc_ok; then
7098 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7099 See \`config.log' for more details." >&5
7100 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7101 See \`config.log' for more details." >&2;}
7102 { (exit 1); exit 1; }; }
7106 ac_cpp='$CXXCPP $CPPFLAGS'
7107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7113 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7114 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7116 if test -n "$ac_tool_prefix"; then
7117 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7121 echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7123 if test "${ac_cv_prog_F77+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 if test -n "$F77"; then
7127 ac_cv_prog_F77="$F77" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 if test -n "$F77"; then
7147 echo "$as_me:$LINENO: result: $F77" >&5
7148 echo "${ECHO_T}$F77" >&6
7150 echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6
7154 test -n "$F77" && break
7157 if test -z "$F77"; then
7159 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7161 # Extract the first word of "$ac_prog", so it can be a program name with args.
7162 set dummy $ac_prog; ac_word=$2
7163 echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7165 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 if test -n "$ac_ct_F77"; then
7169 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_ac_ct_F77="$ac_prog"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7188 if test -n "$ac_ct_F77"; then
7189 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7190 echo "${ECHO_T}$ac_ct_F77" >&6
7192 echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6
7196 test -n "$ac_ct_F77" && break
7203 # Provide some information about the compiler.
7204 echo "$as_me:7204:" \
7205 "checking for Fortran 77 compiler version" >&5
7206 ac_compiler=`set X $ac_compile; echo $2`
7207 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7208 (eval $ac_compiler --version </dev/null >&5) 2>&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }
7212 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7213 (eval $ac_compiler -v </dev/null >&5) 2>&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }
7217 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7218 (eval $ac_compiler -V </dev/null >&5) 2>&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }
7224 # If we don't use `.F' as extension, the preprocessor is not run on the
7225 # input file. (Note that this only needs to work for GNU compilers.)
7228 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7229 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7230 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 cat >conftest.$ac_ext <<_ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243 (eval $ac_compile) 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } &&
7250 { ac_try='test -z "$ac_f77_werror_flag"
7251 || test ! -s conftest.err'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7274 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7275 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7277 ac_test_FFLAGS=${FFLAGS+set}
7278 ac_save_FFLAGS=$FFLAGS
7280 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7281 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7282 if test "${ac_cv_prog_f77_g+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 cat >conftest.$ac_ext <<_ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293 (eval $ac_compile) 2>conftest.er1
7295 grep -v '^ *+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -z "$ac_f77_werror_flag"
7301 || test ! -s conftest.err'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; } &&
7307 { ac_try='test -s conftest.$ac_objext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 ac_cv_prog_f77_g=yes
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7323 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7324 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7325 if test "$ac_test_FFLAGS" = set; then
7326 FFLAGS=$ac_save_FFLAGS
7327 elif test $ac_cv_prog_f77_g = yes; then
7328 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7334 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7341 G77=`test $ac_compiler_gnu = yes && echo yes`
7343 ac_cpp='$CPP $CPPFLAGS'
7344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7350 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7352 # find the maximum length of command line arguments
7353 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7354 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7355 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 # On DJGPP, this test can blow up pretty badly due to problems in libc
7364 # (any single argument exceeding 2000 bytes causes a buffer overrun
7365 # during glob expansion). Even if it were fixed, the result of this
7366 # check would be larger than it should be.
7367 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7371 # Under GNU Hurd, this test is not required because there is
7372 # no limit to the length of command line arguments.
7373 # Libtool will interpret -1 as no limit whatsoever
7374 lt_cv_sys_max_cmd_len=-1;
7378 # On Win9x/ME, this test blows up -- it succeeds, but takes
7379 # about 5 minutes as the teststring grows exponentially.
7380 # Worse, since 9x/ME are not pre-emptively multitasking,
7381 # you end up with a "frozen" computer, even though with patience
7382 # the test eventually succeeds (with a max line length of 256k).
7383 # Instead, let's just punt: use the minimum linelength reported by
7384 # all of the supported platforms: 8192 (on NT/2K/XP).
7385 lt_cv_sys_max_cmd_len=8192;
7389 # On AmigaOS with pdksh, this test takes hours, literally.
7390 # So we just punt and use a minimum line length of 8192.
7391 lt_cv_sys_max_cmd_len=8192;
7395 # If test is not a shell built-in, we'll probably end up computing a
7396 # maximum length that is only half of the actual maximum length, but
7398 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7399 = "XX$teststring") >/dev/null 2>&1 &&
7400 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7401 lt_cv_sys_max_cmd_len=$new_result &&
7402 test $i != 17 # 1/2 MB should be enough
7405 teststring=$teststring$teststring
7408 # Add a significant safety factor because C++ compilers can tack on massive
7409 # amounts of additional arguments before passing them to the linker.
7410 # It appears as though 1/2 is a usable value.
7411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7417 if test -n $lt_cv_sys_max_cmd_len ; then
7418 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7419 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7421 echo "$as_me:$LINENO: result: none" >&5
7422 echo "${ECHO_T}none" >&6
7428 # Check for command to grab the raw symbol name followed by C symbol from nm.
7429 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7430 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7431 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 # These are sane defaults that work on at least a few old systems.
7436 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7438 # Character class describing NM global symbol codes.
7439 symcode='[BCDEGRST]'
7441 # Regexp to match symbols that can be accessed directly from C.
7442 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7444 # Transform the above into a raw symbol and a C symbol.
7445 symxfrm='\1 \2\3 \3'
7447 # Transform an extracted symbol line into a proper C declaration
7448 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7450 # Transform an extracted symbol line into symbol name and symbol address
7451 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'"
7453 # Define system-specific variables.
7458 cygwin* | mingw* | pw32*)
7459 symcode='[ABCDGISTW]'
7461 hpux*) # Its linker distinguishes data from code symbols
7462 if test "$host_cpu" = ia64; then
7463 symcode='[ABCDEGRST]'
7465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7466 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'"
7469 symcode='[BCDEGRST]'
7472 symcode='[BCDEGQRST]'
7482 # Handle CRLF in mingw tool chain
7486 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7490 # If we're using GNU nm, then use its standard symbol codes.
7491 case `$NM -V 2>&1` in
7492 *GNU* | *'with BFD'*)
7493 symcode='[ABCDGIRSTW]' ;;
7496 # Try without a prefix undercore, then with it.
7497 for ac_symprfx in "" "_"; do
7499 # Write the raw and C identifiers.
7500 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7502 # Check to see that the pipe works correctly.
7506 cat > conftest.$ac_ext <<EOF
7511 void nm_test_func(){}
7515 int main(){nm_test_var='a';nm_test_func();return(0);}
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519 (eval $ac_compile) 2>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; then
7523 # Now try to grab the symbols.
7525 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7526 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } && test -s "$nlist"; then
7530 # Try sorting and uniquifying the output.
7531 if sort "$nlist" | uniq > "$nlist"T; then
7532 mv -f "$nlist"T "$nlist"
7537 # Make sure that we snagged all the symbols we need.
7538 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7539 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7540 cat <<EOF > conftest.$ac_ext
7546 # Now generate the symbol file.
7547 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7549 cat <<EOF >> conftest.$ac_ext
7550 #if defined (__STDC__) && __STDC__
7551 # define lt_ptr_t void *
7553 # define lt_ptr_t char *
7557 /* The mapping between symbol names and symbols. */
7562 lt_preloaded_symbols[] =
7565 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7566 cat <<\EOF >> conftest.$ac_ext
7574 # Now try linking the two files.
7575 mv conftest.$ac_objext conftstm.$ac_objext
7576 lt_save_LIBS="$LIBS"
7577 lt_save_CFLAGS="$CFLAGS"
7578 LIBS="conftstm.$ac_objext"
7579 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581 (eval $ac_link) 2>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7587 LIBS="$lt_save_LIBS"
7588 CFLAGS="$lt_save_CFLAGS"
7590 echo "cannot find nm_test_func in $nlist" >&5
7593 echo "cannot find nm_test_var in $nlist" >&5
7596 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7599 echo "$progname: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7602 rm -f conftest* conftst*
7604 # Do not use the global_symbol_pipe unless it works.
7605 if test "$pipe_works" = yes; then
7608 lt_cv_sys_global_symbol_pipe=
7614 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7615 lt_cv_sys_global_symbol_to_cdecl=
7617 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7618 echo "$as_me:$LINENO: result: failed" >&5
7619 echo "${ECHO_T}failed" >&6
7621 echo "$as_me:$LINENO: result: ok" >&5
7622 echo "${ECHO_T}ok" >&6
7625 echo "$as_me:$LINENO: checking for objdir" >&5
7626 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7627 if test "${lt_cv_objdir+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 rm -f .libs 2>/dev/null
7631 mkdir .libs 2>/dev/null
7632 if test -d .libs; then
7635 # MS-DOS does not allow filenames that begin with a dot.
7638 rmdir .libs 2>/dev/null
7640 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7641 echo "${ECHO_T}$lt_cv_objdir" >&6
7642 objdir=$lt_cv_objdir
7650 # AIX sometimes has problems with the GCC collect2 program. For some
7651 # reason, if we set the COLLECT_NAMES environment variable, the problems
7652 # vanish in a puff of smoke.
7653 if test "X${COLLECT_NAMES+set}" != Xset; then
7655 export COLLECT_NAMES
7660 # Sed substitution that helps us do robust quoting. It backslashifies
7661 # metacharacters that are still active within double-quoted strings.
7662 Xsed='sed -e s/^X//'
7663 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7665 # Same as above, but do not quote variable references.
7666 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7668 # Sed substitution to delay expansion of an escaped shell variable in a
7669 # double_quote_subst'ed string.
7670 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7672 # Sed substitution to avoid accidental globbing in evaled expressions
7673 no_glob_subst='s/\*/\\\*/g'
7679 default_ofile=libtool
7680 can_build_shared=yes
7682 # All known linkers require a `.a' archive for static linking (except M$VC,
7683 # which needs '.lib').
7685 ltmain="$ac_aux_dir/ltmain.sh"
7686 ofile="$default_ofile"
7687 with_gnu_ld="$lt_cv_prog_gnu_ld"
7689 if test -n "$ac_tool_prefix"; then
7690 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7691 set dummy ${ac_tool_prefix}ar; ac_word=$2
7692 echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7694 if test "${ac_cv_prog_AR+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 if test -n "$AR"; then
7698 ac_cv_prog_AR="$AR" # Let the user override the test.
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_AR="${ac_tool_prefix}ar"
7708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 if test -n "$AR"; then
7718 echo "$as_me:$LINENO: result: $AR" >&5
7719 echo "${ECHO_T}$AR" >&6
7721 echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6
7726 if test -z "$ac_cv_prog_AR"; then
7728 # Extract the first word of "ar", so it can be a program name with args.
7729 set dummy ar; ac_word=$2
7730 echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7732 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 if test -n "$ac_ct_AR"; then
7736 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_ac_ct_AR="ar"
7746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7755 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7756 if test -n "$ac_ct_AR"; then
7757 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7758 echo "${ECHO_T}$ac_ct_AR" >&6
7760 echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6
7769 if test -n "$ac_tool_prefix"; then
7770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7771 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7772 echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774 if test "${ac_cv_prog_RANLIB+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 if test -n "$RANLIB"; then
7778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 RANLIB=$ac_cv_prog_RANLIB
7797 if test -n "$RANLIB"; then
7798 echo "$as_me:$LINENO: result: $RANLIB" >&5
7799 echo "${ECHO_T}$RANLIB" >&6
7801 echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6
7806 if test -z "$ac_cv_prog_RANLIB"; then
7807 ac_ct_RANLIB=$RANLIB
7808 # Extract the first word of "ranlib", so it can be a program name with args.
7809 set dummy ranlib; ac_word=$2
7810 echo "$as_me:$LINENO: checking for $ac_word" >&5
7811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7812 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 if test -n "$ac_ct_RANLIB"; then
7816 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_ac_ct_RANLIB="ranlib"
7826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7836 if test -n "$ac_ct_RANLIB"; then
7837 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7838 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7840 echo "$as_me:$LINENO: result: no" >&5
7841 echo "${ECHO_T}no" >&6
7844 RANLIB=$ac_ct_RANLIB
7846 RANLIB="$ac_cv_prog_RANLIB"
7849 if test -n "$ac_tool_prefix"; then
7850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7851 set dummy ${ac_tool_prefix}strip; ac_word=$2
7852 echo "$as_me:$LINENO: checking for $ac_word" >&5
7853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7854 if test "${ac_cv_prog_STRIP+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 if test -n "$STRIP"; then
7858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7867 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 STRIP=$ac_cv_prog_STRIP
7877 if test -n "$STRIP"; then
7878 echo "$as_me:$LINENO: result: $STRIP" >&5
7879 echo "${ECHO_T}$STRIP" >&6
7881 echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6
7886 if test -z "$ac_cv_prog_STRIP"; then
7888 # Extract the first word of "strip", so it can be a program name with args.
7889 set dummy strip; ac_word=$2
7890 echo "$as_me:$LINENO: checking for $ac_word" >&5
7891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7892 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 if test -n "$ac_ct_STRIP"; then
7896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905 ac_cv_prog_ac_ct_STRIP="strip"
7906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7916 if test -n "$ac_ct_STRIP"; then
7917 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7918 echo "${ECHO_T}$ac_ct_STRIP" >&6
7920 echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6
7926 STRIP="$ac_cv_prog_STRIP"
7931 old_CFLAGS="$CFLAGS"
7933 # Set sane defaults for various variables
7934 test -z "$AR" && AR=ar
7935 test -z "$AR_FLAGS" && AR_FLAGS=cru
7936 test -z "$AS" && AS=as
7937 test -z "$CC" && CC=cc
7938 test -z "$LTCC" && LTCC=$CC
7939 test -z "$DLLTOOL" && DLLTOOL=dlltool
7940 test -z "$LD" && LD=ld
7941 test -z "$LN_S" && LN_S="ln -s"
7942 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7943 test -z "$NM" && NM=nm
7944 test -z "$SED" && SED=sed
7945 test -z "$OBJDUMP" && OBJDUMP=objdump
7946 test -z "$RANLIB" && RANLIB=:
7947 test -z "$STRIP" && STRIP=:
7948 test -z "$ac_objext" && ac_objext=o
7950 # Determine commands to create old-style static archives.
7951 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7952 old_postinstall_cmds='chmod 644 $oldlib'
7953 old_postuninstall_cmds=
7955 if test -n "$RANLIB"; then
7958 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7961 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7964 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7967 # Only perform the check for file, if the check method requires it
7968 case $deplibs_check_method in
7970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7971 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7972 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7981 lt_save_MAGIC_CMD="$MAGIC_CMD"
7982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7984 for ac_dir in $ac_dummy; do
7986 test -z "$ac_dir" && ac_dir=.
7987 if test -f $ac_dir/${ac_tool_prefix}file; then
7988 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7989 if test -n "$file_magic_test_file"; then
7990 case $deplibs_check_method in
7992 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7995 $EGREP "$file_magic_regex" > /dev/null; then
8000 *** Warning: the command libtool uses to detect shared libraries,
8001 *** $file_magic_cmd, produces output that libtool cannot recognize.
8002 *** The result is that libtool may fail to recognize shared libraries
8003 *** as such. This will affect the creation of libtool libraries that
8004 *** depend on shared libraries, but programs linked with such libtool
8005 *** libraries will work regardless of this problem. Nevertheless, you
8006 *** may want to report the problem to your system manager and/or to
8007 *** bug-libtool@gnu.org
8017 MAGIC_CMD="$lt_save_MAGIC_CMD"
8022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8023 if test -n "$MAGIC_CMD"; then
8024 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8025 echo "${ECHO_T}$MAGIC_CMD" >&6
8027 echo "$as_me:$LINENO: result: no" >&5
8028 echo "${ECHO_T}no" >&6
8031 if test -z "$lt_cv_path_MAGIC_CMD"; then
8032 if test -n "$ac_tool_prefix"; then
8033 echo "$as_me:$LINENO: checking for file" >&5
8034 echo $ECHO_N "checking for file... $ECHO_C" >&6
8035 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8043 lt_save_MAGIC_CMD="$MAGIC_CMD"
8044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8045 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8046 for ac_dir in $ac_dummy; do
8048 test -z "$ac_dir" && ac_dir=.
8049 if test -f $ac_dir/file; then
8050 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8051 if test -n "$file_magic_test_file"; then
8052 case $deplibs_check_method in
8054 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8057 $EGREP "$file_magic_regex" > /dev/null; then
8062 *** Warning: the command libtool uses to detect shared libraries,
8063 *** $file_magic_cmd, produces output that libtool cannot recognize.
8064 *** The result is that libtool may fail to recognize shared libraries
8065 *** as such. This will affect the creation of libtool libraries that
8066 *** depend on shared libraries, but programs linked with such libtool
8067 *** libraries will work regardless of this problem. Nevertheless, you
8068 *** may want to report the problem to your system manager and/or to
8069 *** bug-libtool@gnu.org
8079 MAGIC_CMD="$lt_save_MAGIC_CMD"
8084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8085 if test -n "$MAGIC_CMD"; then
8086 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8087 echo "${ECHO_T}$MAGIC_CMD" >&6
8089 echo "$as_me:$LINENO: result: no" >&5
8090 echo "${ECHO_T}no" >&6
8105 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8106 if test "${enable_libtool_lock+set}" = set; then
8107 enableval="$enable_libtool_lock"
8110 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8113 # Check whether --with-pic or --without-pic was given.
8114 if test "${with_pic+set}" = set; then
8120 test -z "$pic_mode" && pic_mode=default
8122 # Use C for the default configuration in the libtool script
8126 ac_cpp='$CPP $CPPFLAGS'
8127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8132 # Source file extension for C test sources.
8135 # Object file extension for compiled C test sources.
8139 # Code to be used in simple compile tests
8140 lt_simple_compile_test_code="int some_variable = 0;\n"
8142 # Code to be used in simple link tests
8143 lt_simple_link_test_code='int main(){return(0);}\n'
8146 # If no C compiler was specified, use CC.
8149 # Allow CC to be a program name with arguments.
8154 # Check for any special shared library compilation flags.
8157 if test "$GCC" = no; then
8160 lt_prog_cc_shlib='-belf'
8164 if test -n "$lt_prog_cc_shlib"; then
8165 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8166 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8167 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8169 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8170 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8171 lt_cv_prog_cc_can_build_shared=no
8177 # Check to make sure the static flag actually works.
8179 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8180 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8181 if test "${lt_prog_compiler_static_works+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 lt_prog_compiler_static_works=no
8185 save_LDFLAGS="$LDFLAGS"
8186 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8187 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8188 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8189 # The compiler can only warn and ignore the option if not recognized
8190 # So say no if there are warnings
8191 if test -s conftest.err; then
8192 # Append any errors to the config.log.
8193 cat conftest.err 1>&5
8195 lt_prog_compiler_static_works=yes
8199 LDFLAGS="$save_LDFLAGS"
8202 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8203 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8205 if test x"$lt_prog_compiler_static_works" = xyes; then
8208 lt_prog_compiler_static=
8214 ## There is no encapsulation within the following macros, do not change
8215 ## the running order or otherwise move them around unless you know exactly
8216 ## what you are doing...
8218 lt_prog_compiler_no_builtin_flag=
8220 if test "$GCC" = yes; then
8221 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8224 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8225 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8226 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 lt_cv_prog_compiler_rtti_exceptions=no
8230 ac_outfile=conftest.$ac_objext
8231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8232 lt_compiler_flag="-fno-rtti -fno-exceptions"
8233 # Insert the option either (1) after the last *FLAGS variable, or
8234 # (2) before a word containing "conftest.", or (3) at the end.
8235 # Note that $ac_compile itself does not contain backslashes and begins
8236 # with a dollar sign (not a hyphen), so the echo should work correctly.
8237 # The option is referenced via a variable to avoid confusing sed.
8238 lt_compile=`echo "$ac_compile" | $SED \
8239 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 -e 's:$: $lt_compiler_flag:'`
8242 (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
8243 (eval "$lt_compile" 2>conftest.err)
8245 cat conftest.err >&5
8246 echo "$as_me:8246: \$? = $ac_status" >&5
8247 if (exit $ac_status) && test -s "$ac_outfile"; then
8248 # The compiler can only warn and ignore the option if not recognized
8249 # So say no if there are warnings
8250 if test ! -s conftest.err; then
8251 lt_cv_prog_compiler_rtti_exceptions=yes
8257 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8258 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8260 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8261 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8268 lt_prog_compiler_wl=
8269 lt_prog_compiler_pic=
8270 lt_prog_compiler_static=
8272 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8273 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8275 if test "$GCC" = yes; then
8276 lt_prog_compiler_wl='-Wl,'
8277 lt_prog_compiler_static='-static'
8281 # All AIX code is PIC.
8282 if test "$host_cpu" = ia64; then
8283 # AIX 5 now supports IA64 processor
8284 lt_prog_compiler_static='-Bstatic'
8289 # FIXME: we need at least 68020 code to build shared libraries, but
8290 # adding the `-m68020' flag to GCC prevents building anything better,
8292 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8295 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8296 # PIC is the default for these OSes.
8299 mingw* | pw32* | os2*)
8300 # This hack is so that the source file can tell whether it is being
8301 # built for inclusion in a dll (and should export symbols for example).
8302 lt_prog_compiler_pic='-DDLL_EXPORT'
8305 darwin* | rhapsody*)
8306 # PIC is the default on this platform
8307 # Common symbols not allowed in MH_DYLIB files
8308 lt_prog_compiler_pic='-fno-common'
8312 # Just because we use GCC doesn't mean we suddenly get shared libraries
8313 # on systems that don't support them.
8314 lt_prog_compiler_can_build_shared=no
8319 if test -d /usr/nec; then
8320 lt_prog_compiler_pic=-Kconform_pic
8325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8332 lt_prog_compiler_pic='-fPIC'
8338 lt_prog_compiler_pic='-fPIC'
8342 # PORTME Check for flag to pass linker flags through the system compiler.
8345 lt_prog_compiler_wl='-Wl,'
8346 if test "$host_cpu" = ia64; then
8347 # AIX 5 now supports IA64 processor
8348 lt_prog_compiler_static='-Bstatic'
8350 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8354 mingw* | pw32* | os2*)
8355 # This hack is so that the source file can tell whether it is being
8356 # built for inclusion in a dll (and should export symbols for example).
8357 lt_prog_compiler_pic='-DDLL_EXPORT'
8360 hpux9* | hpux10* | hpux11*)
8361 lt_prog_compiler_wl='-Wl,'
8362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8369 lt_prog_compiler_pic='+Z'
8372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8373 lt_prog_compiler_static='${wl}-a ${wl}archive'
8376 irix5* | irix6* | nonstopux*)
8377 lt_prog_compiler_wl='-Wl,'
8378 # PIC (with -KPIC) is the default.
8379 lt_prog_compiler_static='-non_shared'
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-Bstatic'
8390 lt_prog_compiler_wl='-Wl,'
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-static'
8395 lt_prog_compiler_wl='-Wl,'
8396 # All Alpha code is PIC.
8397 lt_prog_compiler_static='-non_shared'
8402 osf3* | osf4* | osf5*)
8403 lt_prog_compiler_wl='-Wl,'
8404 # All OSF/1 code is PIC.
8405 lt_prog_compiler_static='-non_shared'
8409 lt_prog_compiler_pic='-Kpic'
8410 lt_prog_compiler_static='-dn'
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_pic='-KPIC'
8416 lt_prog_compiler_static='-Bstatic'
8420 lt_prog_compiler_wl='-Qoption ld '
8421 lt_prog_compiler_pic='-PIC'
8422 lt_prog_compiler_static='-Bstatic'
8425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8432 if test -d /usr/nec ;then
8433 lt_prog_compiler_pic='-Kconform_pic'
8434 lt_prog_compiler_static='-Bstatic'
8439 lt_prog_compiler_pic='-pic'
8440 lt_prog_compiler_static='-Bstatic'
8444 lt_prog_compiler_can_build_shared=no
8449 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8450 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8453 # Check to make sure the PIC flag actually works.
8455 if test -n "$lt_prog_compiler_pic"; then
8457 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8458 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8459 if test "${lt_prog_compiler_pic_works+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 lt_prog_compiler_pic_works=no
8463 ac_outfile=conftest.$ac_objext
8464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8465 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8466 # Insert the option either (1) after the last *FLAGS variable, or
8467 # (2) before a word containing "conftest.", or (3) at the end.
8468 # Note that $ac_compile itself does not contain backslashes and begins
8469 # with a dollar sign (not a hyphen), so the echo should work correctly.
8470 # The option is referenced via a variable to avoid confusing sed.
8471 lt_compile=`echo "$ac_compile" | $SED \
8472 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8474 -e 's:$: $lt_compiler_flag:'`
8475 (eval echo "\"\$as_me:8475: $lt_compile\"" >&5)
8476 (eval "$lt_compile" 2>conftest.err)
8478 cat conftest.err >&5
8479 echo "$as_me:8479: \$? = $ac_status" >&5
8480 if (exit $ac_status) && test -s "$ac_outfile"; then
8481 # The compiler can only warn and ignore the option if not recognized
8482 # So say no if there are warnings
8483 if test ! -s conftest.err; then
8484 lt_prog_compiler_pic_works=yes
8490 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8491 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8493 if test x"$lt_prog_compiler_pic_works" = xyes; then
8494 case $lt_prog_compiler_pic in
8496 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8499 lt_prog_compiler_pic=
8500 lt_prog_compiler_can_build_shared=no
8505 # For platforms which do not support PIC, -DPIC is meaningless:
8507 lt_prog_compiler_pic=
8510 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8514 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8515 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 lt_cv_prog_compiler_c_o=no
8520 $rm -r conftest 2>/dev/null
8524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8526 lt_compiler_flag="-o out/conftest2.$ac_objext"
8527 # Insert the option either (1) after the last *FLAGS variable, or
8528 # (2) before a word containing "conftest.", or (3) at the end.
8529 # Note that $ac_compile itself does not contain backslashes and begins
8530 # with a dollar sign (not a hyphen), so the echo should work correctly.
8531 lt_compile=`echo "$ac_compile" | $SED \
8532 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8534 -e 's:$: $lt_compiler_flag:'`
8535 (eval echo "\"\$as_me:8535: $lt_compile\"" >&5)
8536 (eval "$lt_compile" 2>out/conftest.err)
8538 cat out/conftest.err >&5
8539 echo "$as_me:8539: \$? = $ac_status" >&5
8540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8542 # The compiler can only warn and ignore the option if not recognized
8543 # So say no if there are warnings
8544 if test ! -s out/conftest.err; then
8545 lt_cv_prog_compiler_c_o=yes
8550 # SGI C++ compiler will create directory out/ii_files/ for
8551 # template instantiation
8552 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8553 $rm out/* && rmdir out
8559 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8560 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8563 hard_links="nottested"
8564 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8565 # do not overwrite the value of need_locks provided by the user
8566 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8567 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8572 ln conftest.a conftest.b 2>&5 || hard_links=no
8573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8574 echo "$as_me:$LINENO: result: $hard_links" >&5
8575 echo "${ECHO_T}$hard_links" >&6
8576 if test "$hard_links" = no; then
8577 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8578 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8585 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8586 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8589 allow_undefined_flag=
8590 enable_shared_with_static_runtimes=no
8592 archive_expsym_cmds=
8593 old_archive_From_new_cmds=
8594 old_archive_from_expsyms_cmds=
8595 export_dynamic_flag_spec=
8596 whole_archive_flag_spec=
8597 thread_safe_flag_spec=
8598 hardcode_libdir_flag_spec=
8599 hardcode_libdir_flag_spec_ld=
8600 hardcode_libdir_separator=
8603 hardcode_shlibpath_var=unsupported
8604 link_all_deplibs=unknown
8605 hardcode_automatic=no
8608 always_export_symbols=no
8609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8610 # include_expsyms should be a list of space-separated symbols to be *always*
8611 # included in the symbol list
8613 # exclude_expsyms can be an extended regexp of symbols to exclude
8614 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8615 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8616 # as well as any symbol that contains `d'.
8617 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8618 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8619 # platforms (ab)use it in PIC code, but their linkers get confused if
8620 # the symbol is explicitly referenced. Since portable code cannot
8621 # rely on this symbol name, it's probably fine to never include it in
8622 # preloaded symbol tables.
8623 extract_expsyms_cmds=
8626 cygwin* | mingw* | pw32*)
8627 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8628 # When not using gcc, we currently assume that we are using
8629 # Microsoft Visual C++.
8630 if test "$GCC" != yes; then
8640 if test "$with_gnu_ld" = yes; then
8641 # If archive_cmds runs LD, not CC, wlarc should be empty
8644 # See if GNU ld supports shared libraries.
8646 aix3* | aix4* | aix5*)
8647 # On AIX/PPC, the GNU linker is very broken
8648 if test "$host_cpu" != ia64; then
8652 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8653 *** to be unable to reliably create shared libraries on AIX.
8654 *** Therefore, libtool is disabling shared libraries support. If you
8655 *** really care for shared libraries, you may want to modify your PATH
8656 *** so that a non-GNU linker is found, and then restart.
8663 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)'
8664 hardcode_libdir_flag_spec='-L$libdir'
8665 hardcode_minus_L=yes
8667 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8668 # that the semantics of dynamic libraries on AmigaOS, at least up
8669 # to version 4, is to share data among multiple programs linked
8670 # with the same dynamic library. Since this doesn't match the
8671 # behavior of shared libraries on other platforms, we can't use
8677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8678 allow_undefined_flag=unsupported
8679 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8680 # support --undefined. This deserves some investigation. FIXME
8681 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 cygwin* | mingw* | pw32*)
8688 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8689 # as there is no search path for DLLs.
8690 hardcode_libdir_flag_spec='-L$libdir'
8691 allow_undefined_flag=unsupported
8692 always_export_symbols=no
8693 enable_shared_with_static_runtimes=yes
8694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8696 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8698 # If the export-symbols file already is a .def file (1st line
8699 # is EXPORTS), use it as is; otherwise, prepend...
8700 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8701 cp $export_symbols $output_objdir/$soname.def;
8703 echo EXPORTS > $output_objdir/$soname.def;
8704 cat $export_symbols >> $output_objdir/$soname.def;
8706 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8714 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8727 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8728 *** create shared libraries on Solaris systems. Therefore, libtool
8729 *** is disabling shared libraries support. We urge you to upgrade GNU
8730 *** binutils to release 2.9.1 or newer. Another option is to modify
8731 *** your PATH or compiler configuration so that the native linker is
8732 *** used, and then restart.
8735 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8744 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8747 hardcode_shlibpath_var=no
8751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8752 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753 archive_cmds="$tmp_archive_cmds"
8754 supports_anon_versioning=no
8755 case `$LD -v 2>/dev/null` in
8756 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8757 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8758 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8759 *\ 2.11.*) ;; # other 2.11 versions
8760 *) supports_anon_versioning=yes ;;
8762 if test $supports_anon_versioning = yes; then
8763 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8765 $echo "local: *; };" >> $output_objdir/$libname.ver~
8766 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8768 archive_expsym_cmds="$tmp_archive_cmds"
8776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8785 if test "$ld_shlibs" = yes; then
8786 runpath_var=LD_RUN_PATH
8787 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8788 export_dynamic_flag_spec='${wl}--export-dynamic'
8789 # ancient GNU ld didn't support --whole-archive et. al.
8790 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8791 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8793 whole_archive_flag_spec=
8797 # PORTME fill in a description of your system's linker (not GNU ld)
8800 allow_undefined_flag=unsupported
8801 always_export_symbols=yes
8802 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'
8803 # Note: this linker hardcodes the directories in LIBPATH if there
8804 # are no directories specified by -L.
8805 hardcode_minus_L=yes
8806 if test "$GCC" = yes && test -z "$link_static_flag"; then
8807 # Neither direct hardcoding nor static linking is supported with a
8809 hardcode_direct=unsupported
8814 if test "$host_cpu" = ia64; then
8815 # On IA64, the linker does run time linking by default, so we don't
8816 # have to do anything special.
8817 aix_use_runtimelinking=no
8818 exp_sym_flag='-Bexport'
8821 # If we're using GNU nm, then we don't want the "-C" option.
8822 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8823 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8824 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'
8826 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'
8828 aix_use_runtimelinking=no
8830 # Test if we are trying to use run time linking or normal
8831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8832 # need to do runtime linking.
8833 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8834 for ld_flag in $LDFLAGS; do
8835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8836 aix_use_runtimelinking=yes
8842 exp_sym_flag='-bexport'
8843 no_entry_flag='-bnoentry'
8846 # When large executables or shared objects are built, AIX ld can
8847 # have problems creating the table of contents. If linking a library
8848 # or program results in "error TOC overflow" add -mminimal-toc to
8849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8854 hardcode_libdir_separator=':'
8855 link_all_deplibs=yes
8857 if test "$GCC" = yes; then
8858 case $host_os in aix4.012|aix4.012.*)
8859 # We only want to do this on AIX 4.2 and lower, the check
8860 # below for broken collect2 doesn't work under 4.3+
8861 collect2name=`${CC} -print-prog-name=collect2`
8862 if test -f "$collect2name" && \
8863 strings "$collect2name" | grep resolve_lib_name >/dev/null
8865 # We have reworked collect2
8868 # We have old collect2
8869 hardcode_direct=unsupported
8870 # It fails to find uninstalled libraries when the uninstalled
8871 # path is not listed in the libpath. Setting hardcode_minus_L
8872 # to unsupported forces relinking
8873 hardcode_minus_L=yes
8874 hardcode_libdir_flag_spec='-L$libdir'
8875 hardcode_libdir_separator=
8878 shared_flag='-shared'
8881 if test "$host_cpu" = ia64; then
8882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8883 # chokes on -Wl,-G. The following line is correct:
8886 if test "$aix_use_runtimelinking" = yes; then
8887 shared_flag='${wl}-G'
8889 shared_flag='${wl}-bM:SRE'
8894 # It seems that -bexpall does not export symbols beginning with
8895 # underscore (_), so it is better to generate a list of symbols to export.
8896 always_export_symbols=yes
8897 if test "$aix_use_runtimelinking" = yes; then
8898 # Warning - without using the other runtime loading flags (-brtl),
8899 # -berok will link without error, but may produce a broken library.
8900 allow_undefined_flag='-berok'
8901 # Determine the default libpath from the value encoded in an empty executable.
8902 cat >conftest.$ac_ext <<_ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag"
8927 || test ! -s conftest.err'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; } &&
8933 { ac_try='test -s conftest$ac_exeext'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; }; then
8940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8942 # Check for a 64-bit object if we didn't find anything.
8943 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; }
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8950 rm -f conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8954 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8955 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"
8957 if test "$host_cpu" = ia64; then
8958 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8959 allow_undefined_flag="-z nodefs"
8960 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"
8962 # Determine the default libpath from the value encoded in an empty executable.
8963 cat >conftest.$ac_ext <<_ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8978 rm -f conftest.$ac_objext conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>conftest.er1
8982 grep -v '^ *+' conftest.er1 >conftest.err
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try='test -z "$ac_c_werror_flag"
8988 || test ! -s conftest.err'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try='test -s conftest$ac_exeext'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9003 # Check for a 64-bit object if we didn't find anything.
9004 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; }
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9011 rm -f conftest.err conftest.$ac_objext \
9012 conftest$ac_exeext conftest.$ac_ext
9013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9015 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9016 # Warning - without using the other run time loading flags,
9017 # -berok will link without error, but may produce a broken library.
9018 no_undefined_flag=' ${wl}-bernotok'
9019 allow_undefined_flag=' ${wl}-berok'
9020 # -bexpall does not export symbols beginning with underscore (_)
9021 always_export_symbols=yes
9022 # Exported symbols can be pulled into shared objects from archives
9023 whole_archive_flag_spec=' '
9024 archive_cmds_need_lc=yes
9025 # This is similar to how AIX traditionally builds it's shared libraries.
9026 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'
9032 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)'
9033 hardcode_libdir_flag_spec='-L$libdir'
9034 hardcode_minus_L=yes
9035 # see comment about different semantics on the GNU ld section
9040 export_dynamic_flag_spec=-rdynamic
9043 cygwin* | mingw* | pw32*)
9044 # When not using gcc, we currently assume that we are using
9045 # Microsoft Visual C++.
9046 # hardcode_libdir_flag_spec is actually meaningless, as there is
9047 # no search path for DLLs.
9048 hardcode_libdir_flag_spec=' '
9049 allow_undefined_flag=unsupported
9050 # Tell ltmain to make .lib files, not .a files.
9052 # Tell ltmain to make .dll files, not .so files.
9054 # FIXME: Setting linknames here is a bad hack.
9055 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9056 # The linker will automatically build a .lib file if we build a DLL.
9057 old_archive_From_new_cmds='true'
9058 # FIXME: Should let the user specify the lib program.
9059 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9060 fix_srcfile_path='`cygpath -w "$srcfile"`'
9061 enable_shared_with_static_runtimes=yes
9064 darwin* | rhapsody*)
9065 if test "$GXX" = yes ; then
9066 archive_cmds_need_lc=no
9068 rhapsody* | darwin1.[012])
9069 allow_undefined_flag='-undefined suppress'
9072 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9073 allow_undefined_flag='-flat_namespace -undefined suppress'
9075 case ${MACOSX_DEPLOYMENT_TARGET} in
9077 allow_undefined_flag='-flat_namespace -undefined suppress'
9080 allow_undefined_flag='-undefined dynamic_lookup'
9086 lt_int_apple_cc_single_mod=no
9087 output_verbose_link_cmd='echo'
9088 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9089 lt_int_apple_cc_single_mod=yes
9091 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9092 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9094 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'
9096 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9097 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9098 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9099 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}'
9101 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}'
9103 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}'
9105 hardcode_automatic=yes
9106 hardcode_shlibpath_var=unsupported
9107 whole_archive_flag_spec='-all_load $convenience'
9108 link_all_deplibs=yes
9115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9116 hardcode_libdir_flag_spec='-L$libdir'
9117 hardcode_shlibpath_var=no
9124 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9125 # support. Future versions do this automatically, but an explicit c++rt0.o
9126 # does not break anything, and helps significantly (at the cost of a little
9129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9130 hardcode_libdir_flag_spec='-R$libdir'
9132 hardcode_shlibpath_var=no
9135 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9139 hardcode_minus_L=yes
9140 hardcode_shlibpath_var=no
9143 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9144 freebsd* | kfreebsd*-gnu)
9145 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9146 hardcode_libdir_flag_spec='-R$libdir'
9148 hardcode_shlibpath_var=no
9152 if test "$GCC" = yes; then
9153 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'
9155 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'
9157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9158 hardcode_libdir_separator=:
9161 # hardcode_minus_L: Not really in the search PATH,
9162 # but as the default location of the library.
9163 hardcode_minus_L=yes
9164 export_dynamic_flag_spec='${wl}-E'
9168 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9171 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9174 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9180 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9187 if test "$with_gnu_ld" = no; then
9190 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9191 hardcode_libdir_flag_spec_ld='+b $libdir'
9192 hardcode_libdir_separator=:
9194 hardcode_shlibpath_var=no
9197 hardcode_libdir_flag_spec='-L$libdir'
9199 hardcode_shlibpath_var=no
9201 # hardcode_minus_L: Not really in the search PATH,
9202 # but as the default location of the library.
9203 hardcode_minus_L=yes
9206 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9207 hardcode_libdir_separator=:
9209 export_dynamic_flag_spec='${wl}-E'
9211 # hardcode_minus_L: Not really in the search PATH,
9212 # but as the default location of the library.
9213 hardcode_minus_L=yes
9219 irix5* | irix6* | nonstopux*)
9220 if test "$GCC" = yes; then
9221 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'
9223 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'
9224 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 hardcode_libdir_separator=:
9228 link_all_deplibs=yes
9232 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9235 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9237 hardcode_libdir_flag_spec='-R$libdir'
9239 hardcode_shlibpath_var=no
9243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246 hardcode_libdir_separator=:
9247 hardcode_shlibpath_var=no
9252 hardcode_shlibpath_var=no
9253 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9254 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9255 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9256 export_dynamic_flag_spec='${wl}-E'
9259 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9261 hardcode_libdir_flag_spec='-R$libdir'
9264 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9272 hardcode_libdir_flag_spec='-L$libdir'
9273 hardcode_minus_L=yes
9274 allow_undefined_flag=unsupported
9275 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'
9276 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9280 if test "$GCC" = yes; then
9281 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9282 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9284 allow_undefined_flag=' -expect_unresolved \*'
9285 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'
9287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9288 hardcode_libdir_separator=:
9291 osf4* | osf5*) # as osf3* with the addition of -msym flag
9292 if test "$GCC" = yes; then
9293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9294 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'
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297 allow_undefined_flag=' -expect_unresolved \*'
9298 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'
9299 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9300 $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'
9302 # Both c and cxx compiler support -rpath directly
9303 hardcode_libdir_flag_spec='-rpath $libdir'
9305 hardcode_libdir_separator=:
9309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_shlibpath_var=no
9311 export_dynamic_flag_spec='${wl}-Bexport'
9312 runpath_var=LD_RUN_PATH
9313 hardcode_runpath_var=yes
9317 no_undefined_flag=' -z text'
9318 if test "$GCC" = yes; then
9319 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9320 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9321 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9323 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9327 hardcode_libdir_flag_spec='-R$libdir'
9328 hardcode_shlibpath_var=no
9330 solaris2.[0-5] | solaris2.[0-5].*) ;;
9331 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9332 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9334 link_all_deplibs=yes
9338 if test "x$host_vendor" = xsequent; then
9339 # Use $CC to link under sequent, because it throws in some extra .o
9340 # files that make .init and .fini sections work.
9341 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9343 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9345 hardcode_libdir_flag_spec='-L$libdir'
9347 hardcode_minus_L=yes
9348 hardcode_shlibpath_var=no
9352 case $host_vendor in
9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_direct=yes # is this really true???
9358 ## LD is ld it makes a PLAMLIB
9359 ## CC just makes a GrossModule.
9360 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9361 reload_cmds='$CC -r -o $output$reload_objs'
9365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9369 runpath_var='LD_RUN_PATH'
9370 hardcode_shlibpath_var=no
9374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_shlibpath_var=no
9376 export_dynamic_flag_spec='-Bexport'
9380 if test -d /usr/nec; then
9381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_shlibpath_var=no
9383 runpath_var=LD_RUN_PATH
9384 hardcode_runpath_var=yes
9390 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_shlibpath_var=no
9394 hardcode_runpath_var=yes
9395 runpath_var=LD_RUN_PATH
9398 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9399 no_undefined_flag='${wl}-z ${wl}text'
9400 if test "$GCC" = yes; then
9401 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9405 runpath_var='LD_RUN_PATH'
9406 hardcode_shlibpath_var=no
9410 no_undefined_flag=' -z text'
9411 # $CC -shared without GNU ld will not create a library from C++
9412 # object files and a static libstdc++, better avoid it by now
9413 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9416 hardcode_libdir_flag_spec=
9417 hardcode_shlibpath_var=no
9418 runpath_var='LD_RUN_PATH'
9422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_shlibpath_var=no
9433 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9434 echo "${ECHO_T}$ld_shlibs" >&6
9435 test "$ld_shlibs" = no && can_build_shared=no
9437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9438 if test "$GCC" = yes; then
9439 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9443 # Do we need to explicitly link libc?
9445 case "x$archive_cmds_need_lc" in
9447 # Assume -lc should be added
9448 archive_cmds_need_lc=yes
9450 if test "$enable_shared" = yes && test "$GCC" = yes; then
9451 case $archive_cmds in
9453 # FIXME: we may have to deal with multi-command sequences.
9456 # Test whether the compiler implicitly links with -lc since on some
9457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9458 # to ld, don't add -lc before -lgcc.
9459 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9460 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9465 (eval $ac_compile) 2>&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } 2>conftest.err; then
9471 libobjs=conftest.$ac_objext
9473 wl=$lt_prog_compiler_wl
9479 lt_save_allow_undefined_flag=$allow_undefined_flag
9480 allow_undefined_flag=
9481 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9482 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }
9487 archive_cmds_need_lc=no
9489 archive_cmds_need_lc=yes
9491 allow_undefined_flag=$lt_save_allow_undefined_flag
9493 cat conftest.err 1>&5
9496 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9497 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9504 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9505 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9507 libname_spec='lib$name'
9515 shlibpath_overrides_runpath=unknown
9517 dynamic_linker="$host_os ld.so"
9518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9519 if test "$GCC" = yes; then
9520 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9521 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9522 # if the path contains ";" then we assume it to be the separator
9523 # otherwise default to the standard path separator (i.e. ":") - it is
9524 # assumed that no part of a normal pathname contains ";" but that should
9525 # okay in the real world where ";" in dirpaths is itself problematic.
9526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9531 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9533 need_lib_prefix=unknown
9534 hardcode_into_libs=no
9536 # when you set need_version to no, make sure it does not cause -set_version
9537 # flags to be left without arguments
9538 need_version=unknown
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9544 shlibpath_var=LIBPATH
9546 # AIX 3 has no versioning support, so we append a major version to the name.
9547 soname_spec='${libname}${release}${shared_ext}$major'
9554 hardcode_into_libs=yes
9555 if test "$host_cpu" = ia64; then
9556 # AIX 5 supports IA64
9557 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9558 shlibpath_var=LD_LIBRARY_PATH
9560 # With GCC up to 2.95.x, collect2 would create an import file
9561 # for dependence libraries. The import file would start with
9562 # the line `#! .'. This would cause the generated library to
9563 # depend on `.', always an invalid library. This was fixed in
9564 # development snapshots of GCC prior to 3.0.
9566 aix4 | aix4.[01] | aix4.[01].*)
9567 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9569 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9576 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9577 # soname into executable. Probably we can add versioning support to
9578 # collect2, so additional links can be useful in future.
9579 if test "$aix_use_runtimelinking" = yes; then
9580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9581 # instead of lib<name>.a to let people know that these are not
9582 # typical AIX shared libraries.
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 # We preserve .a as extension for shared libraries through AIX4.2
9586 # and later when we are not doing run time linking.
9587 library_names_spec='${libname}${release}.a $libname.a'
9588 soname_spec='${libname}${release}${shared_ext}$major'
9590 shlibpath_var=LIBPATH
9595 library_names_spec='$libname.ixlibrary $libname.a'
9596 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9597 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'
9601 library_names_spec='${libname}${shared_ext}'
9602 dynamic_linker="$host_os ld.so"
9603 shlibpath_var=LIBRARY_PATH
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610 soname_spec='${libname}${release}${shared_ext}$major'
9611 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9612 shlibpath_var=LD_LIBRARY_PATH
9613 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9614 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9615 # the default ld.so.conf also contains /usr/contrib/lib and
9616 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9617 # libtool to hard-code these into programs
9620 cygwin* | mingw* | pw32*)
9621 version_type=windows
9626 case $GCC,$host_os in
9627 yes,cygwin* | yes,mingw* | yes,pw32*)
9628 library_names_spec='$libname.dll.a'
9629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9630 postinstall_cmds='base_file=`basename \${file}`~
9631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9632 dldir=$destdir/`dirname \$dlpath`~
9633 test -d \$dldir || mkdir -p \$dldir~
9634 $install_prog $dir/$dlname \$dldir/$dlname'
9635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9636 dlpath=$dir/\$dldll~
9638 shlibpath_overrides_runpath=yes
9642 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9643 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9644 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9647 # MinGW DLLs use traditional 'lib' prefix
9648 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9649 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9650 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9651 # It is most probably a Windows format PATH printed by
9652 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9653 # path with ; separators, and with drive letters. We can handle the
9654 # drive letters (cygwin fileutils understands them), so leave them,
9655 # especially as we might pass files found there to a mingw objdump,
9656 # which wouldn't understand a cygwinified path. Ahh.
9657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9663 # pw32 DLLs use 'pw' prefix rather than 'lib'
9664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9673 dynamic_linker='Win32 ld.exe'
9674 # FIXME: first we should search . and the directory the executable is in
9678 darwin* | rhapsody*)
9679 dynamic_linker="$host_os dyld"
9683 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9684 soname_spec='${libname}${release}${major}$shared_ext'
9685 shlibpath_overrides_runpath=yes
9686 shlibpath_var=DYLD_LIBRARY_PATH
9687 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9688 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9689 if test "$GCC" = yes; then
9690 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"`
9692 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9694 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 shlibpath_var=LD_LIBRARY_PATH
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9715 soname_spec='${libname}${release}${shared_ext}$major'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 shlibpath_overrides_runpath=no
9718 hardcode_into_libs=yes
9719 dynamic_linker='GNU ld.so'
9723 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9724 version_type=freebsd-$objformat
9725 case $version_type in
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9736 shlibpath_var=LD_LIBRARY_PATH
9739 shlibpath_overrides_runpath=yes
9741 freebsd3.01* | freebsdelf3.01*)
9742 shlibpath_overrides_runpath=yes
9743 hardcode_into_libs=yes
9746 shlibpath_overrides_runpath=no
9747 hardcode_into_libs=yes
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 hardcode_into_libs=yes
9762 hpux9* | hpux10* | hpux11*)
9763 # Give a soname corresponding to the major version so that dld.sl refuses to
9764 # link against other versions.
9771 hardcode_into_libs=yes
9772 dynamic_linker="$host_os dld.so"
9773 shlibpath_var=LD_LIBRARY_PATH
9774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 if test "X$HPUX_IA64_MODE" = X32; then
9778 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9780 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9786 hardcode_into_libs=yes
9787 dynamic_linker="$host_os dld.sl"
9788 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 soname_spec='${libname}${release}${shared_ext}$major'
9792 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9797 dynamic_linker="$host_os dld.sl"
9798 shlibpath_var=SHLIB_PATH
9799 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9804 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9805 postinstall_cmds='chmod 555 $lib'
9808 irix5* | irix6* | nonstopux*)
9810 nonstopux*) version_type=nonstopux ;;
9812 if test "$lt_cv_prog_gnu_ld" = yes; then
9820 soname_spec='${libname}${release}${shared_ext}$major'
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9823 irix5* | nonstopux*)
9827 case $LD in # libtool.m4 will add one of these switches to LD
9828 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9829 libsuff= shlibsuff= libmagic=32-bit;;
9830 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9831 libsuff=32 shlibsuff=N32 libmagic=N32;;
9832 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9833 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9834 *) libsuff= shlibsuff= libmagic=never-match;;
9838 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9839 shlibpath_overrides_runpath=no
9840 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9841 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9842 hardcode_into_libs=yes
9845 # No shared lib support for Linux oldld, aout, or coff.
9846 linux*oldld* | linux*aout* | linux*coff*)
9850 # This must be Linux ELF.
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9858 shlibpath_var=LD_LIBRARY_PATH
9859 shlibpath_overrides_runpath=no
9860 # This implies no fast_install, which is unacceptable.
9861 # Some rework will be needed to allow for fast_install
9862 # before this can be enabled.
9863 hardcode_into_libs=yes
9865 # find out which ABI we are using
9868 x86_64*|s390x*|powerpc64*)
9869 echo '#line 9869 "configure"' > conftest.$ac_ext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; then
9875 case `/usr/bin/file conftest.$ac_objext` in
9878 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9886 # Append ld.so.conf contents to the search path
9887 if test -f /etc/ld.so.conf; then
9888 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9889 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9892 # We used to test for /lib/ld.so.1 and disable shared libraries on
9893 # powerpc, because MkLinux only supported shared libraries with the
9894 # GNU dynamic linker. Since this was broken with cross compilers,
9895 # most powerpc-linux boxes support dynamic linking these days and
9896 # people can always --disable-shared, the test was removed, and we
9897 # assume the GNU/Linux dynamic linker is in use.
9898 dynamic_linker='GNU/Linux ld.so'
9905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9906 soname_spec='${libname}${release}${shared_ext}$major'
9907 shlibpath_var=LD_LIBRARY_PATH
9908 shlibpath_overrides_runpath=no
9909 hardcode_into_libs=yes
9910 dynamic_linker='GNU ld.so'
9917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9920 dynamic_linker='NetBSD (a.out) ld.so'
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9923 soname_spec='${libname}${release}${shared_ext}$major'
9924 dynamic_linker='NetBSD ld.elf_so'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 shlibpath_overrides_runpath=yes
9928 hardcode_into_libs=yes
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 shlibpath_var=LD_LIBRARY_PATH
9935 shlibpath_overrides_runpath=yes
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943 soname_spec='${libname}${release}${shared_ext}$major'
9944 shlibpath_var=LD_LIBRARY_PATH
9945 shlibpath_overrides_runpath=yes
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9954 shlibpath_var=LD_LIBRARY_PATH
9955 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9957 openbsd2.[89] | openbsd2.[89].*)
9958 shlibpath_overrides_runpath=no
9961 shlibpath_overrides_runpath=yes
9965 shlibpath_overrides_runpath=yes
9970 libname_spec='$name'
9973 library_names_spec='$libname${shared_ext} $libname.a'
9974 dynamic_linker='OS/2 ld.exe'
9975 shlibpath_var=LIBPATH
9978 osf3* | osf4* | osf5*)
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9986 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 shlibpath_var=LD_LIBRARY_PATH
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 shlibpath_overrides_runpath=yes
10004 hardcode_into_libs=yes
10005 # ldd complains unless libraries are executable
10006 postinstall_cmds='chmod +x $lib'
10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10012 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10013 shlibpath_var=LD_LIBRARY_PATH
10014 shlibpath_overrides_runpath=yes
10015 if test "$with_gnu_ld" = yes; then
10021 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 case $host_vendor in
10028 shlibpath_overrides_runpath=no
10030 export_dynamic_flag_spec='${wl}-Blargedynsym'
10031 runpath_var=LD_RUN_PATH
10039 shlibpath_overrides_runpath=no
10040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10046 if test -d /usr/nec ;then
10048 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10049 soname_spec='$libname${shared_ext}.$major'
10050 shlibpath_var=LD_LIBRARY_PATH
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 shlibpath_var=LD_LIBRARY_PATH
10065 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10066 echo "${ECHO_T}$dynamic_linker" >&6
10067 test "$dynamic_linker" = no && can_build_shared=no
10069 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10070 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10072 if test -n "$hardcode_libdir_flag_spec" || \
10073 test -n "$runpath_var " || \
10074 test "X$hardcode_automatic"="Xyes" ; then
10076 # We can hardcode non-existant directories.
10077 if test "$hardcode_direct" != no &&
10078 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10079 # have to relink, otherwise we might link with an installed library
10080 # when we should be linking with a yet-to-be-installed one
10081 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10082 test "$hardcode_minus_L" != no; then
10083 # Linking always hardcodes the temporary library directory.
10084 hardcode_action=relink
10086 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10087 hardcode_action=immediate
10090 # We cannot hardcode anything, or else we can only hardcode existing
10092 hardcode_action=unsupported
10094 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10095 echo "${ECHO_T}$hardcode_action" >&6
10097 if test "$hardcode_action" = relink; then
10098 # Fast installation is not supported
10099 enable_fast_install=no
10100 elif test "$shlibpath_overrides_runpath" = yes ||
10101 test "$enable_shared" = no; then
10102 # Fast installation is not necessary
10103 enable_fast_install=needless
10108 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10109 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10110 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10111 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10112 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10113 echo "$as_me:$LINENO: result: yes" >&5
10114 echo "${ECHO_T}yes" >&6
10116 # FIXME - insert some real tests, host_os isn't really good enough
10119 if test -n "$STRIP" ; then
10120 striplib="$STRIP -x"
10121 echo "$as_me:$LINENO: result: yes" >&5
10122 echo "${ECHO_T}yes" >&6
10124 echo "$as_me:$LINENO: result: no" >&5
10125 echo "${ECHO_T}no" >&6
10129 echo "$as_me:$LINENO: result: no" >&5
10130 echo "${ECHO_T}no" >&6
10135 if test "x$enable_dlopen" != xyes; then
10136 enable_dlopen=unknown
10137 enable_dlopen_self=unknown
10138 enable_dlopen_self_static=unknown
10145 lt_cv_dlopen="load_add_on"
10147 lt_cv_dlopen_self=yes
10151 lt_cv_dlopen="LoadLibrary"
10156 lt_cv_dlopen="dlopen"
10161 # if libdl is installed we need to link against it
10162 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10163 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10164 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 ac_check_lib_save_LIBS=$LIBS
10169 cat >conftest.$ac_ext <<_ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10176 /* Override any gcc2 internal prototype to avoid an error. */
10180 /* We use char because int might match the return type of a gcc2
10181 builtin and then its argument prototype would still apply. */
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193 (eval $ac_link) 2>conftest.er1
10195 grep -v '^ *+' conftest.er1 >conftest.err
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -z "$ac_c_werror_flag"
10201 || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest$ac_exeext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_lib_dl_dlopen=yes
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_lib_dl_dlopen=no
10220 rm -f conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10224 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10225 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10226 if test $ac_cv_lib_dl_dlopen = yes; then
10227 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10230 lt_cv_dlopen="dyld"
10232 lt_cv_dlopen_self=yes
10239 echo "$as_me:$LINENO: checking for shl_load" >&5
10240 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10241 if test "${ac_cv_func_shl_load+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10252 #define shl_load innocuous_shl_load
10254 /* System header to define __stub macros and hopefully few prototypes,
10255 which can conflict with char shl_load (); below.
10256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10257 <limits.h> exists even on freestanding compilers. */
10260 # include <limits.h>
10262 # include <assert.h>
10267 /* Override any gcc2 internal prototype to avoid an error. */
10272 /* We use char because int might match the return type of a gcc2
10273 builtin and then its argument prototype would still apply. */
10275 /* The GNU C library defines this for functions which it implements
10276 to always fail with ENOSYS. Some functions are actually named
10277 something starting with __ and the normal name is an alias. */
10278 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10281 char (*f) () = shl_load;
10290 return f != shl_load;
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297 (eval $ac_link) 2>conftest.er1
10299 grep -v '^ *+' conftest.er1 >conftest.err
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -z "$ac_c_werror_flag"
10305 || test ! -s conftest.err'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest$ac_exeext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_cv_func_shl_load=yes
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 ac_cv_func_shl_load=no
10324 rm -f conftest.err conftest.$ac_objext \
10325 conftest$ac_exeext conftest.$ac_ext
10327 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10328 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10329 if test $ac_cv_func_shl_load = yes; then
10330 lt_cv_dlopen="shl_load"
10332 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10333 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10334 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 ac_check_lib_save_LIBS=$LIBS
10339 cat >conftest.$ac_ext <<_ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10346 /* Override any gcc2 internal prototype to avoid an error. */
10350 /* We use char because int might match the return type of a gcc2
10351 builtin and then its argument prototype would still apply. */
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363 (eval $ac_link) 2>conftest.er1
10365 grep -v '^ *+' conftest.er1 >conftest.err
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } &&
10370 { ac_try='test -z "$ac_c_werror_flag"
10371 || test ! -s conftest.err'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest$ac_exeext'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 ac_cv_lib_dld_shl_load=yes
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_cv_lib_dld_shl_load=no
10390 rm -f conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392 LIBS=$ac_check_lib_save_LIBS
10394 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10395 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10396 if test $ac_cv_lib_dld_shl_load = yes; then
10397 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10399 echo "$as_me:$LINENO: checking for dlopen" >&5
10400 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10401 if test "${ac_cv_func_dlopen+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10412 #define dlopen innocuous_dlopen
10414 /* System header to define __stub macros and hopefully few prototypes,
10415 which can conflict with char dlopen (); below.
10416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10417 <limits.h> exists even on freestanding compilers. */
10420 # include <limits.h>
10422 # include <assert.h>
10427 /* Override any gcc2 internal prototype to avoid an error. */
10432 /* We use char because int might match the return type of a gcc2
10433 builtin and then its argument prototype would still apply. */
10435 /* The GNU C library defines this for functions which it implements
10436 to always fail with ENOSYS. Some functions are actually named
10437 something starting with __ and the normal name is an alias. */
10438 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10441 char (*f) () = dlopen;
10450 return f != dlopen;
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457 (eval $ac_link) 2>conftest.er1
10459 grep -v '^ *+' conftest.er1 >conftest.err
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -z "$ac_c_werror_flag"
10465 || test ! -s conftest.err'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; } &&
10471 { ac_try='test -s conftest$ac_exeext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_func_dlopen=yes
10479 echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ac_cv_func_dlopen=no
10484 rm -f conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10487 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10488 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10489 if test $ac_cv_func_dlopen = yes; then
10490 lt_cv_dlopen="dlopen"
10492 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10493 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10494 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 ac_check_lib_save_LIBS=$LIBS
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10506 /* Override any gcc2 internal prototype to avoid an error. */
10510 /* We use char because int might match the return type of a gcc2
10511 builtin and then its argument prototype would still apply. */
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10523 (eval $ac_link) 2>conftest.er1
10525 grep -v '^ *+' conftest.er1 >conftest.err
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -z "$ac_c_werror_flag"
10531 || test ! -s conftest.err'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_lib_dl_dlopen=yes
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_cv_lib_dl_dlopen=no
10550 rm -f conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10554 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10555 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10556 if test $ac_cv_lib_dl_dlopen = yes; then
10557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10559 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10560 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10561 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 ac_check_lib_save_LIBS=$LIBS
10565 LIBS="-lsvld $LIBS"
10566 cat >conftest.$ac_ext <<_ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10573 /* Override any gcc2 internal prototype to avoid an error. */
10577 /* We use char because int might match the return type of a gcc2
10578 builtin and then its argument prototype would still apply. */
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590 (eval $ac_link) 2>conftest.er1
10592 grep -v '^ *+' conftest.er1 >conftest.err
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } &&
10597 { ac_try='test -z "$ac_c_werror_flag"
10598 || test ! -s conftest.err'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; } &&
10604 { ac_try='test -s conftest$ac_exeext'
10605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; }; then
10610 ac_cv_lib_svld_dlopen=yes
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10615 ac_cv_lib_svld_dlopen=no
10617 rm -f conftest.err conftest.$ac_objext \
10618 conftest$ac_exeext conftest.$ac_ext
10619 LIBS=$ac_check_lib_save_LIBS
10621 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10622 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10623 if test $ac_cv_lib_svld_dlopen = yes; then
10624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10626 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10627 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10628 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 ac_check_lib_save_LIBS=$LIBS
10633 cat >conftest.$ac_ext <<_ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10640 /* Override any gcc2 internal prototype to avoid an error. */
10644 /* We use char because int might match the return type of a gcc2
10645 builtin and then its argument prototype would still apply. */
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10657 (eval $ac_link) 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -z "$ac_c_werror_flag"
10665 || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest$ac_exeext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_lib_dld_dld_link=yes
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_cv_lib_dld_dld_link=no
10684 rm -f conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
10686 LIBS=$ac_check_lib_save_LIBS
10688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10689 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10690 if test $ac_cv_lib_dld_dld_link = yes; then
10691 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10712 if test "x$lt_cv_dlopen" != xno; then
10718 case $lt_cv_dlopen in
10720 save_CPPFLAGS="$CPPFLAGS"
10721 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10723 save_LDFLAGS="$LDFLAGS"
10724 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10727 LIBS="$lt_cv_dlopen_libs $LIBS"
10729 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10730 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10731 if test "${lt_cv_dlopen_self+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 if test "$cross_compiling" = yes; then :
10735 lt_cv_dlopen_self=cross
10737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10738 lt_status=$lt_dlunknown
10739 cat > conftest.$ac_ext <<EOF
10740 #line 10740 "configure"
10741 #include "confdefs.h"
10750 # define LT_DLGLOBAL RTLD_GLOBAL
10753 # define LT_DLGLOBAL DL_GLOBAL
10755 # define LT_DLGLOBAL 0
10759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10760 find out it does not work in some platform. */
10761 #ifndef LT_DLLAZY_OR_NOW
10763 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10766 # define LT_DLLAZY_OR_NOW DL_LAZY
10769 # define LT_DLLAZY_OR_NOW RTLD_NOW
10772 # define LT_DLLAZY_OR_NOW DL_NOW
10774 # define LT_DLLAZY_OR_NOW 0
10782 extern "C" void exit (int);
10785 void fnord() { int i=42;}
10788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10789 int status = $lt_dlunknown;
10793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10795 /* dlclose (self); */
10801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10802 (eval $ac_link) 2>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10806 (./conftest; exit; ) 2>/dev/null
10808 case x$lt_status in
10809 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10810 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10811 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10814 # compilation failed
10815 lt_cv_dlopen_self=no
10822 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10823 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10825 if test "x$lt_cv_dlopen_self" = xyes; then
10826 LDFLAGS="$LDFLAGS $link_static_flag"
10827 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10828 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10829 if test "${lt_cv_dlopen_self_static+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 if test "$cross_compiling" = yes; then :
10833 lt_cv_dlopen_self_static=cross
10835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10836 lt_status=$lt_dlunknown
10837 cat > conftest.$ac_ext <<EOF
10838 #line 10838 "configure"
10839 #include "confdefs.h"
10848 # define LT_DLGLOBAL RTLD_GLOBAL
10851 # define LT_DLGLOBAL DL_GLOBAL
10853 # define LT_DLGLOBAL 0
10857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10858 find out it does not work in some platform. */
10859 #ifndef LT_DLLAZY_OR_NOW
10861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10864 # define LT_DLLAZY_OR_NOW DL_LAZY
10867 # define LT_DLLAZY_OR_NOW RTLD_NOW
10870 # define LT_DLLAZY_OR_NOW DL_NOW
10872 # define LT_DLLAZY_OR_NOW 0
10880 extern "C" void exit (int);
10883 void fnord() { int i=42;}
10886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10887 int status = $lt_dlunknown;
10891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10892 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10893 /* dlclose (self); */
10899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10900 (eval $ac_link) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10904 (./conftest; exit; ) 2>/dev/null
10906 case x$lt_status in
10907 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10908 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10909 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10912 # compilation failed
10913 lt_cv_dlopen_self_static=no
10920 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10921 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10924 CPPFLAGS="$save_CPPFLAGS"
10925 LDFLAGS="$save_LDFLAGS"
10930 case $lt_cv_dlopen_self in
10931 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10932 *) enable_dlopen_self=unknown ;;
10935 case $lt_cv_dlopen_self_static in
10936 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10937 *) enable_dlopen_self_static=unknown ;;
10942 # Report which librarie types wil actually be built
10943 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10945 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10946 echo "${ECHO_T}$can_build_shared" >&6
10948 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10950 test "$can_build_shared" = "no" && enable_shared=no
10952 # On AIX, shared libraries and static libraries use the same namespace, and
10953 # are all built from PIC.
10956 test "$enable_shared" = yes && enable_static=no
10957 if test -n "$RANLIB"; then
10958 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10959 postinstall_cmds='$RANLIB $lib'
10964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10965 test "$enable_shared" = yes && enable_static=no
10968 darwin* | rhapsody*)
10969 if test "$GCC" = yes; then
10970 archive_cmds_need_lc=no
10972 rhapsody* | darwin1.[012])
10973 allow_undefined_flag='-undefined suppress'
10976 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10977 allow_undefined_flag='-flat_namespace -undefined suppress'
10979 case ${MACOSX_DEPLOYMENT_TARGET} in
10981 allow_undefined_flag='-flat_namespace -undefined suppress'
10984 allow_undefined_flag='-undefined dynamic_lookup'
10990 output_verbose_link_cmd='echo'
10991 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10992 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10993 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10994 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}'
10995 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}'
10997 hardcode_automatic=yes
10998 hardcode_shlibpath_var=unsupported
10999 whole_archive_flag_spec='-all_load $convenience'
11000 link_all_deplibs=yes
11006 echo "$as_me:$LINENO: result: $enable_shared" >&5
11007 echo "${ECHO_T}$enable_shared" >&6
11009 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11010 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11011 # Make sure either enable_shared or enable_static is yes.
11012 test "$enable_shared" = yes || enable_static=yes
11013 echo "$as_me:$LINENO: result: $enable_static" >&5
11014 echo "${ECHO_T}$enable_static" >&6
11016 # The else clause should only fire when bootstrapping the
11017 # libtool distribution, otherwise you forgot to ship ltmain.sh
11018 # with your package, and you will get complaints that there are
11019 # no rules to generate ltmain.sh.
11020 if test -f "$ltmain"; then
11021 # See if we are running on zsh, and set the options which allow our commands through
11022 # without removal of \ escapes.
11023 if test -n "${ZSH_VERSION+set}" ; then
11024 setopt NO_GLOB_SUBST
11026 # Now quote all the things that may contain metacharacters while being
11027 # careful not to overquote the AC_SUBSTed values. We take copies of the
11028 # variables and quote the copies for generation of the libtool script.
11029 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11031 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11032 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11033 deplibs_check_method reload_flag reload_cmds need_locks \
11034 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11035 lt_cv_sys_global_symbol_to_c_name_address \
11036 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11037 old_postinstall_cmds old_postuninstall_cmds \
11041 lt_prog_compiler_wl \
11042 lt_prog_compiler_pic \
11043 lt_prog_compiler_static \
11044 lt_prog_compiler_no_builtin_flag \
11045 export_dynamic_flag_spec \
11046 thread_safe_flag_spec \
11047 whole_archive_flag_spec \
11048 enable_shared_with_static_runtimes \
11050 old_archive_from_new_cmds \
11055 compiler_lib_search_path \
11057 archive_expsym_cmds \
11059 postuninstall_cmds \
11060 old_archive_from_expsyms_cmds \
11061 allow_undefined_flag \
11062 no_undefined_flag \
11063 export_symbols_cmds \
11064 hardcode_libdir_flag_spec \
11065 hardcode_libdir_flag_spec_ld \
11066 hardcode_libdir_separator \
11067 hardcode_automatic \
11069 module_expsym_cmds \
11070 lt_cv_prog_compiler_c_o \
11072 include_expsyms; do
11075 old_archive_cmds | \
11076 old_archive_from_new_cmds | \
11078 archive_expsym_cmds | \
11080 module_expsym_cmds | \
11081 old_archive_from_expsyms_cmds | \
11082 export_symbols_cmds | \
11083 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11084 postinstall_cmds | postuninstall_cmds | \
11085 old_postinstall_cmds | old_postuninstall_cmds | \
11086 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11087 # Double-quote double-evaled strings.
11088 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11097 *'\$0 --fallback-echo"')
11098 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11102 cfgfile="${ofile}T"
11103 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11105 { echo "$as_me:$LINENO: creating $ofile" >&5
11106 echo "$as_me: creating $ofile" >&6;}
11108 cat <<__EOF__ >> "$cfgfile"
11111 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11112 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11113 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11115 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11116 # Free Software Foundation, Inc.
11118 # This file is part of GNU Libtool:
11119 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11121 # This program is free software; you can redistribute it and/or modify
11122 # it under the terms of the GNU General Public License as published by
11123 # the Free Software Foundation; either version 2 of the License, or
11124 # (at your option) any later version.
11126 # This program is distributed in the hope that it will be useful, but
11127 # WITHOUT ANY WARRANTY; without even the implied warranty of
11128 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11129 # General Public License for more details.
11131 # You should have received a copy of the GNU General Public License
11132 # along with this program; if not, write to the Free Software
11133 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11135 # As a special exception to the GNU General Public License, if you
11136 # distribute this file as part of a program that contains a
11137 # configuration script generated by Autoconf, you may include it under
11138 # the same distribution terms that you use for the rest of that program.
11140 # A sed program that does not truncate output.
11143 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11144 Xsed="$SED -e s/^X//"
11146 # The HP-UX ksh and POSIX shell print the target directory to stdout
11147 # if CDPATH is set.
11148 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11150 # The names of the tagged configurations supported by this script.
11153 # ### BEGIN LIBTOOL CONFIG
11155 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11157 # Shell to use when invoking shell scripts.
11160 # Whether or not to build shared libraries.
11161 build_libtool_libs=$enable_shared
11163 # Whether or not to build static libraries.
11164 build_old_libs=$enable_static
11166 # Whether or not to add -lc for building shared libraries.
11167 build_libtool_need_lc=$archive_cmds_need_lc
11169 # Whether or not to disallow shared libs when runtime libs are static
11170 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11172 # Whether or not to optimize for fast installation.
11173 fast_install=$enable_fast_install
11176 host_alias=$host_alias
11179 # An echo program that does not interpret backslashes.
11184 AR_FLAGS=$lt_AR_FLAGS
11189 # A language-specific compiler.
11192 # Is the compiler the GNU C compiler?
11198 # The linker used to build libraries.
11201 # Whether we need hard or soft links.
11204 # A BSD-compatible nm program.
11207 # A symbol stripping program
11210 # Used to examine libraries when file_magic_cmd begins "file"
11211 MAGIC_CMD=$MAGIC_CMD
11213 # Used on cygwin: DLL creation program.
11216 # Used on cygwin: object dumper.
11219 # Used on cygwin: assembler.
11222 # The name of the directory that contains temporary libtool files.
11225 # How to create reloadable object files.
11226 reload_flag=$lt_reload_flag
11227 reload_cmds=$lt_reload_cmds
11229 # How to pass a linker flag through the compiler.
11230 wl=$lt_lt_prog_compiler_wl
11232 # Object file suffix (normally "o").
11233 objext="$ac_objext"
11235 # Old archive suffix (normally "a").
11238 # Shared library suffix (normally ".so").
11239 shrext_cmds='$shrext_cmds'
11241 # Executable file suffix (normally "").
11244 # Additional compiler flags for building library objects.
11245 pic_flag=$lt_lt_prog_compiler_pic
11248 # What is the maximum length of a command?
11249 max_cmd_len=$lt_cv_sys_max_cmd_len
11251 # Does compiler simultaneously support -c and -o options?
11252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11254 # Must we lock files when doing compilation ?
11255 need_locks=$lt_need_locks
11257 # Do we need the lib prefix for modules?
11258 need_lib_prefix=$need_lib_prefix
11260 # Do we need a version for libraries?
11261 need_version=$need_version
11263 # Whether dlopen is supported.
11264 dlopen_support=$enable_dlopen
11266 # Whether dlopen of programs is supported.
11267 dlopen_self=$enable_dlopen_self
11269 # Whether dlopen of statically linked programs is supported.
11270 dlopen_self_static=$enable_dlopen_self_static
11272 # Compiler flag to prevent dynamic linking.
11273 link_static_flag=$lt_lt_prog_compiler_static
11275 # Compiler flag to turn off builtin functions.
11276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11278 # Compiler flag to allow reflexive dlopens.
11279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11281 # Compiler flag to generate shared objects directly from archives.
11282 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11284 # Compiler flag to generate thread-safe objects.
11285 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11287 # Library versioning type.
11288 version_type=$version_type
11290 # Format of library name prefix.
11291 libname_spec=$lt_libname_spec
11293 # List of archive names. First name is the real one, the rest are links.
11294 # The last name is the one that the linker finds with -lNAME.
11295 library_names_spec=$lt_library_names_spec
11297 # The coded name of the library, if different from the real name.
11298 soname_spec=$lt_soname_spec
11300 # Commands used to build and install an old-style archive.
11302 old_archive_cmds=$lt_old_archive_cmds
11303 old_postinstall_cmds=$lt_old_postinstall_cmds
11304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11306 # Create an old-style archive from a shared archive.
11307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11309 # Create a temporary old-style archive to link instead of a shared archive.
11310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11312 # Commands used to build and install a shared archive.
11313 archive_cmds=$lt_archive_cmds
11314 archive_expsym_cmds=$lt_archive_expsym_cmds
11315 postinstall_cmds=$lt_postinstall_cmds
11316 postuninstall_cmds=$lt_postuninstall_cmds
11318 # Commands used to build a loadable module (assumed same as above if empty)
11319 module_cmds=$lt_module_cmds
11320 module_expsym_cmds=$lt_module_expsym_cmds
11322 # Commands to strip libraries.
11323 old_striplib=$lt_old_striplib
11324 striplib=$lt_striplib
11326 # Dependencies to place before the objects being linked to create a
11328 predep_objects=$lt_predep_objects
11330 # Dependencies to place after the objects being linked to create a
11332 postdep_objects=$lt_postdep_objects
11334 # Dependencies to place before the objects being linked to create a
11336 predeps=$lt_predeps
11338 # Dependencies to place after the objects being linked to create a
11340 postdeps=$lt_postdeps
11342 # The library search path used internally by the compiler when linking
11343 # a shared library.
11344 compiler_lib_search_path=$lt_compiler_lib_search_path
11346 # Method to check whether dependent libraries are shared objects.
11347 deplibs_check_method=$lt_deplibs_check_method
11349 # Command to use when deplibs_check_method == file_magic.
11350 file_magic_cmd=$lt_file_magic_cmd
11352 # Flag that allows shared libraries with undefined symbols to be built.
11353 allow_undefined_flag=$lt_allow_undefined_flag
11355 # Flag that forces no undefined symbols.
11356 no_undefined_flag=$lt_no_undefined_flag
11358 # Commands used to finish a libtool library installation in a directory.
11359 finish_cmds=$lt_finish_cmds
11361 # Same as above, but a single script fragment to be evaled but not shown.
11362 finish_eval=$lt_finish_eval
11364 # Take the output of nm and produce a listing of raw symbols and C names.
11365 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11367 # Transform the output of nm in a proper C declaration
11368 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11370 # Transform the output of nm in a C name address pair
11371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11373 # This is the shared library runtime path variable.
11374 runpath_var=$runpath_var
11376 # This is the shared library path variable.
11377 shlibpath_var=$shlibpath_var
11379 # Is shlibpath searched before the hard-coded library search path?
11380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11382 # How to hardcode a shared library path into an executable.
11383 hardcode_action=$hardcode_action
11385 # Whether we should hardcode library paths into libraries.
11386 hardcode_into_libs=$hardcode_into_libs
11388 # Flag to hardcode \$libdir into a binary during linking.
11389 # This must work even if \$libdir does not exist.
11390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11392 # If ld is used when linking, flag to hardcode \$libdir into
11393 # a binary during linking. This must work even if \$libdir does
11395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11397 # Whether we need a single -rpath flag with a separated argument.
11398 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11400 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11401 # resulting binary.
11402 hardcode_direct=$hardcode_direct
11404 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11405 # resulting binary.
11406 hardcode_minus_L=$hardcode_minus_L
11408 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11409 # the resulting binary.
11410 hardcode_shlibpath_var=$hardcode_shlibpath_var
11412 # Set to yes if building a shared library automatically hardcodes DIR into the library
11413 # and all subsequent libraries and executables linked against it.
11414 hardcode_automatic=$hardcode_automatic
11416 # Variables whose values should be saved in libtool wrapper scripts and
11417 # restored at relink time.
11418 variables_saved_for_relink="$variables_saved_for_relink"
11420 # Whether libtool must link a program against all its dependency libraries.
11421 link_all_deplibs=$link_all_deplibs
11423 # Compile-time system search path for libraries
11424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11426 # Run-time system search path for libraries
11427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11429 # Fix the shell variable \$srcfile for the compiler.
11430 fix_srcfile_path="$fix_srcfile_path"
11432 # Set to yes if exported symbols are required.
11433 always_export_symbols=$always_export_symbols
11435 # The commands to list exported symbols.
11436 export_symbols_cmds=$lt_export_symbols_cmds
11438 # The commands to extract the exported symbol list from a shared archive.
11439 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11441 # Symbols that should not be listed in the preloaded symbols.
11442 exclude_expsyms=$lt_exclude_expsyms
11444 # Symbols that must always be exported.
11445 include_expsyms=$lt_include_expsyms
11447 # ### END LIBTOOL CONFIG
11454 cat <<\EOF >> "$cfgfile"
11456 # AIX sometimes has problems with the GCC collect2 program. For some
11457 # reason, if we set the COLLECT_NAMES environment variable, the problems
11458 # vanish in a puff of smoke.
11459 if test "X${COLLECT_NAMES+set}" != Xset; then
11461 export COLLECT_NAMES
11467 # We use sed instead of cat because bash on DJGPP gets confused if
11468 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11469 # text mode, it properly converts lines to CR/LF. This bash problem
11470 # is reportedly fixed, but why not run on old versions too?
11471 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11473 mv -f "$cfgfile" "$ofile" || \
11474 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11478 # If there is no Makefile yet, we rely on a make rule to execute
11479 # `config.status --recheck' to rerun these tests and create the
11480 # libtool script then.
11481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11482 if test -f "$ltmain_in"; then
11483 test -f Makefile && make "$ltmain"
11489 ac_cpp='$CPP $CPPFLAGS'
11490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11497 # Check whether --with-tags or --without-tags was given.
11498 if test "${with_tags+set}" = set; then
11499 withval="$with_tags"
11500 tagnames="$withval"
11503 if test -f "$ltmain" && test -n "$tagnames"; then
11504 if test ! -f "${ofile}"; then
11505 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11506 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11509 if test -z "$LTCC"; then
11510 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11511 if test -z "$LTCC"; then
11512 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11513 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11516 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11520 # Extract list of available tagged configurations in $ofile.
11521 # Note that this assumes the entire list is on one line.
11522 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11525 for tagname in $tagnames; do
11527 # Check whether tagname contains only valid characters
11528 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11530 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11531 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11532 { (exit 1); exit 1; }; }
11536 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11538 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11539 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11540 { (exit 1); exit 1; }; }
11543 # Update the list of available tags.
11544 if test -n "$tagname"; then
11545 echo appending configuration tag \"$tagname\" to $ofile
11549 if test -n "$CXX" && test "X$CXX" != "Xno"; then
11551 ac_cpp='$CXXCPP $CPPFLAGS'
11552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11559 archive_cmds_need_lc_CXX=no
11560 allow_undefined_flag_CXX=
11561 always_export_symbols_CXX=no
11562 archive_expsym_cmds_CXX=
11563 export_dynamic_flag_spec_CXX=
11564 hardcode_direct_CXX=no
11565 hardcode_libdir_flag_spec_CXX=
11566 hardcode_libdir_flag_spec_ld_CXX=
11567 hardcode_libdir_separator_CXX=
11568 hardcode_minus_L_CXX=no
11569 hardcode_automatic_CXX=no
11571 module_expsym_cmds_CXX=
11572 link_all_deplibs_CXX=unknown
11573 old_archive_cmds_CXX=$old_archive_cmds
11574 no_undefined_flag_CXX=
11575 whole_archive_flag_spec_CXX=
11576 enable_shared_with_static_runtimes_CXX=no
11578 # Dependencies to place before and after the object being linked:
11579 predep_objects_CXX=
11580 postdep_objects_CXX=
11583 compiler_lib_search_path_CXX=
11585 # Source file extension for C++ test sources.
11588 # Object file extension for compiled C++ test sources.
11592 # Code to be used in simple compile tests
11593 lt_simple_compile_test_code="int some_variable = 0;\n"
11595 # Code to be used in simple link tests
11596 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11600 # If no C compiler was specified, use CC.
11603 # Allow CC to be a program name with arguments.
11607 # Allow CC to be a program name with arguments.
11612 lt_save_with_gnu_ld=$with_gnu_ld
11613 lt_save_path_LD=$lt_cv_path_LD
11614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11615 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11617 unset lt_cv_prog_gnu_ld
11619 if test -n "${lt_cv_path_LDCXX+set}"; then
11620 lt_cv_path_LD=$lt_cv_path_LDCXX
11622 unset lt_cv_path_LD
11624 test -z "${LDCXX+set}" || LD=$LDCXX
11628 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11630 # We don't want -fno-exception wen compiling C++ code, so set the
11631 # no_builtin_flag separately
11632 if test "$GXX" = yes; then
11633 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11635 lt_prog_compiler_no_builtin_flag_CXX=
11638 if test "$GXX" = yes; then
11639 # Set up default GNU C++ configuration
11642 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11643 if test "${with_gnu_ld+set}" = set; then
11644 withval="$with_gnu_ld"
11645 test "$withval" = no || with_gnu_ld=yes
11650 if test "$GCC" = yes; then
11651 # Check if gcc -print-prog-name=ld gives a path.
11652 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11653 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11656 # gcc leaves a trailing carriage return which upsets mingw
11657 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11659 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11662 # Accept absolute paths.
11664 re_direlt='/[^/][^/]*/\.\./'
11665 # Canonicalize the pathname of ld
11666 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11667 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11668 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11670 test -z "$LD" && LD="$ac_prog"
11673 # If it fails, then pretend we aren't using GCC.
11677 # If it is relative, then search for the first ld in PATH.
11678 with_gnu_ld=unknown
11681 elif test "$with_gnu_ld" = yes; then
11682 echo "$as_me:$LINENO: checking for GNU ld" >&5
11683 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11685 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11686 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11688 if test "${lt_cv_path_LD+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 if test -z "$LD"; then
11692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11693 for ac_dir in $PATH; do
11695 test -z "$ac_dir" && ac_dir=.
11696 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11697 lt_cv_path_LD="$ac_dir/$ac_prog"
11698 # Check to see if the program is GNU ld. I'd rather use --version,
11699 # but apparently some GNU ld's only accept -v.
11700 # Break only if it was the GNU/non-GNU ld that we prefer.
11701 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11702 *GNU* | *'with BFD'*)
11703 test "$with_gnu_ld" != no && break
11706 test "$with_gnu_ld" != yes && break
11713 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11717 LD="$lt_cv_path_LD"
11718 if test -n "$LD"; then
11719 echo "$as_me:$LINENO: result: $LD" >&5
11720 echo "${ECHO_T}$LD" >&6
11722 echo "$as_me:$LINENO: result: no" >&5
11723 echo "${ECHO_T}no" >&6
11725 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11726 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11727 { (exit 1); exit 1; }; }
11728 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11729 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11730 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11734 case `$LD -v 2>&1 </dev/null` in
11735 *GNU* | *'with BFD'*)
11736 lt_cv_prog_gnu_ld=yes
11739 lt_cv_prog_gnu_ld=no
11743 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11744 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11745 with_gnu_ld=$lt_cv_prog_gnu_ld
11749 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11750 # archiving commands below assume that GNU ld is being used.
11751 if test "$with_gnu_ld" = yes; then
11752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11753 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'
11755 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11758 # If archive_cmds runs LD, not CC, wlarc should be empty
11759 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11760 # investigate it a little bit more. (MM)
11763 # ancient GNU ld didn't support --whole-archive et. al.
11764 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11765 grep 'no-whole-archive' > /dev/null; then
11766 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11768 whole_archive_flag_spec_CXX=
11774 # A generic and very simple default shared library creation
11775 # command for GNU C++ for the case where it uses the native
11776 # linker, instead of GNU ld. If possible, this setting should
11777 # overridden to take advantage of the native linker features on
11778 # the platform it is being used on.
11779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11782 # Commands to make compiler produce verbose output that lists
11783 # what "hidden" libraries, object files and flags are used when
11784 # linking a shared library.
11785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11793 # PORTME: fill in a description of your system's C++ link characteristics
11794 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11795 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11799 # FIXME: insert proper C++ library support
11803 if test "$host_cpu" = ia64; then
11804 # On IA64, the linker does run time linking by default, so we don't
11805 # have to do anything special.
11806 aix_use_runtimelinking=no
11807 exp_sym_flag='-Bexport'
11810 aix_use_runtimelinking=no
11812 # Test if we are trying to use run time linking or normal
11813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11814 # need to do runtime linking.
11815 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11816 for ld_flag in $LDFLAGS; do
11819 aix_use_runtimelinking=yes
11826 exp_sym_flag='-bexport'
11827 no_entry_flag='-bnoentry'
11830 # When large executables or shared objects are built, AIX ld can
11831 # have problems creating the table of contents. If linking a library
11832 # or program results in "error TOC overflow" add -mminimal-toc to
11833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11836 archive_cmds_CXX=''
11837 hardcode_direct_CXX=yes
11838 hardcode_libdir_separator_CXX=':'
11839 link_all_deplibs_CXX=yes
11841 if test "$GXX" = yes; then
11842 case $host_os in aix4.012|aix4.012.*)
11843 # We only want to do this on AIX 4.2 and lower, the check
11844 # below for broken collect2 doesn't work under 4.3+
11845 collect2name=`${CC} -print-prog-name=collect2`
11846 if test -f "$collect2name" && \
11847 strings "$collect2name" | grep resolve_lib_name >/dev/null
11849 # We have reworked collect2
11850 hardcode_direct_CXX=yes
11852 # We have old collect2
11853 hardcode_direct_CXX=unsupported
11854 # It fails to find uninstalled libraries when the uninstalled
11855 # path is not listed in the libpath. Setting hardcode_minus_L
11856 # to unsupported forces relinking
11857 hardcode_minus_L_CXX=yes
11858 hardcode_libdir_flag_spec_CXX='-L$libdir'
11859 hardcode_libdir_separator_CXX=
11862 shared_flag='-shared'
11865 if test "$host_cpu" = ia64; then
11866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11867 # chokes on -Wl,-G. The following line is correct:
11870 if test "$aix_use_runtimelinking" = yes; then
11871 shared_flag='${wl}-G'
11873 shared_flag='${wl}-bM:SRE'
11878 # It seems that -bexpall does not export symbols beginning with
11879 # underscore (_), so it is better to generate a list of symbols to export.
11880 always_export_symbols_CXX=yes
11881 if test "$aix_use_runtimelinking" = yes; then
11882 # Warning - without using the other runtime loading flags (-brtl),
11883 # -berok will link without error, but may produce a broken library.
11884 allow_undefined_flag_CXX='-berok'
11885 # Determine the default libpath from the value encoded in an empty executable.
11886 cat >conftest.$ac_ext <<_ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>conftest.er1
11905 grep -v '^ *+' conftest.er1 >conftest.err
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -z "$ac_cxx_werror_flag"
11911 || test ! -s conftest.err'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest$ac_exeext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11926 # Check for a 64-bit object if we didn't find anything.
11927 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; }
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11934 rm -f conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
11936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11938 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11940 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"
11942 if test "$host_cpu" = ia64; then
11943 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11944 allow_undefined_flag_CXX="-z nodefs"
11945 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"
11947 # Determine the default libpath from the value encoded in an empty executable.
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965 (eval $ac_link) 2>conftest.er1
11967 grep -v '^ *+' conftest.er1 >conftest.err
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_cxx_werror_flag"
11973 || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest$ac_exeext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11988 # Check for a 64-bit object if we didn't find anything.
11989 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; }
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11996 rm -f conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12000 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12001 # Warning - without using the other run time loading flags,
12002 # -berok will link without error, but may produce a broken library.
12003 no_undefined_flag_CXX=' ${wl}-bernotok'
12004 allow_undefined_flag_CXX=' ${wl}-berok'
12005 # -bexpall does not export symbols beginning with underscore (_)
12006 always_export_symbols_CXX=yes
12007 # Exported symbols can be pulled into shared objects from archives
12008 whole_archive_flag_spec_CXX=' '
12009 archive_cmds_need_lc_CXX=yes
12010 # This is similar to how AIX traditionally builds it's shared libraries.
12011 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'
12016 case $cc_basename in
12018 # FIXME: insert proper C++ library support
12024 cygwin* | mingw* | pw32*)
12025 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12026 # as there is no search path for DLLs.
12027 hardcode_libdir_flag_spec_CXX='-L$libdir'
12028 allow_undefined_flag_CXX=unsupported
12029 always_export_symbols_CXX=no
12030 enable_shared_with_static_runtimes_CXX=yes
12032 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12033 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'
12034 # If the export-symbols file already is a .def file (1st line
12035 # is EXPORTS), use it as is; otherwise, prepend...
12036 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12037 cp $export_symbols $output_objdir/$soname.def;
12039 echo EXPORTS > $output_objdir/$soname.def;
12040 cat $export_symbols >> $output_objdir/$soname.def;
12042 $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'
12048 darwin* | rhapsody*)
12049 if test "$GXX" = yes; then
12050 archive_cmds_need_lc_CXX=no
12052 rhapsody* | darwin1.[012])
12053 allow_undefined_flag_CXX='-undefined suppress'
12056 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12057 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12059 case ${MACOSX_DEPLOYMENT_TARGET} in
12061 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12064 allow_undefined_flag_CXX='-undefined dynamic_lookup'
12070 lt_int_apple_cc_single_mod=no
12071 output_verbose_link_cmd='echo'
12072 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12073 lt_int_apple_cc_single_mod=yes
12075 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12076 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12078 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'
12080 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12082 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12083 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12084 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}'
12086 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}'
12088 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}'
12089 hardcode_direct_CXX=no
12090 hardcode_automatic_CXX=yes
12091 hardcode_shlibpath_var_CXX=unsupported
12092 whole_archive_flag_spec_CXX='-all_load $convenience'
12093 link_all_deplibs_CXX=yes
12100 case $cc_basename in
12102 # FIXME: insert proper C++ library support
12106 # Green Hills C++ Compiler
12107 # FIXME: insert proper C++ library support
12111 # FIXME: insert proper C++ library support
12117 # C++ shared libraries reported to be fairly broken before switch to ELF
12121 archive_cmds_need_lc_CXX=no
12123 freebsd* | kfreebsd*-gnu)
12124 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12131 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12132 hardcode_libdir_separator_CXX=:
12133 export_dynamic_flag_spec_CXX='${wl}-E'
12134 hardcode_direct_CXX=yes
12135 hardcode_minus_L_CXX=yes # Not in the search PATH,
12136 # but as the default
12137 # location of the library.
12139 case $cc_basename in
12141 # FIXME: insert proper C++ library support
12145 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'
12146 # Commands to make compiler produce verbose output that lists
12147 # what "hidden" libraries, object files and flags are used when
12148 # linking a shared library.
12150 # There doesn't appear to be a way to prevent this compiler from
12151 # explicitly linking system object files so we need to strip them
12152 # from the output so that they don't get included in the library
12154 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'
12157 if test "$GXX" = yes; then
12158 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'
12160 # FIXME: insert proper C++ library support
12167 if test $with_gnu_ld = no; then
12168 case "$host_cpu" in
12170 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12171 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12172 hardcode_libdir_separator_CXX=:
12175 hardcode_libdir_flag_spec_CXX='-L$libdir'
12178 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12179 hardcode_libdir_separator_CXX=:
12180 export_dynamic_flag_spec_CXX='${wl}-E'
12184 case "$host_cpu" in
12186 hardcode_direct_CXX=no
12187 hardcode_shlibpath_var_CXX=no
12190 hardcode_direct_CXX=no
12191 hardcode_shlibpath_var_CXX=no
12192 hardcode_minus_L_CXX=yes # Not in the search PATH,
12193 # but as the default
12194 # location of the library.
12197 hardcode_direct_CXX=yes
12198 hardcode_minus_L_CXX=yes # Not in the search PATH,
12199 # but as the default
12200 # location of the library.
12204 case $cc_basename in
12206 # FIXME: insert proper C++ library support
12210 case "$host_cpu" in
12212 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12215 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12218 # Commands to make compiler produce verbose output that lists
12219 # what "hidden" libraries, object files and flags are used when
12220 # linking a shared library.
12222 # There doesn't appear to be a way to prevent this compiler from
12223 # explicitly linking system object files so we need to strip them
12224 # from the output so that they don't get included in the library
12226 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'
12229 if test "$GXX" = yes; then
12230 if test $with_gnu_ld = no; then
12231 case "$host_cpu" in
12233 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12236 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'
12241 # FIXME: insert proper C++ library support
12248 case $cc_basename in
12251 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'
12253 # Archives containing C++ object files must be created using
12254 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12255 # necessary to make sure instantiated templates are included
12257 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12260 if test "$GXX" = yes; then
12261 if test "$with_gnu_ld" = no; then
12262 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'
12264 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'
12267 link_all_deplibs_CXX=yes
12270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12271 hardcode_libdir_separator_CXX=:
12274 case $cc_basename in
12276 # Kuck and Associates, Inc. (KAI) C++ Compiler
12278 # KCC will only create a shared library if the output file
12279 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12280 # to its proper name (with version) after linking.
12281 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'
12282 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'
12283 # Commands to make compiler produce verbose output that lists
12284 # what "hidden" libraries, object files and flags are used when
12285 # linking a shared library.
12287 # There doesn't appear to be a way to prevent this compiler from
12288 # explicitly linking system object files so we need to strip them
12289 # from the output so that they don't get included in the library
12291 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'
12293 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12296 # Archives containing C++ object files must be created using
12297 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12298 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12303 archive_cmds_need_lc_CXX=no
12304 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12305 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'
12306 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12307 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12308 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12312 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12313 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'
12315 runpath_var=LD_RUN_PATH
12316 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12317 hardcode_libdir_separator_CXX=:
12319 # Commands to make compiler produce verbose output that lists
12320 # what "hidden" libraries, object files and flags are used when
12321 # linking a shared library.
12323 # There doesn't appear to be a way to prevent this compiler from
12324 # explicitly linking system object files so we need to strip them
12325 # from the output so that they don't get included in the library
12327 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'
12332 # FIXME: insert proper C++ library support
12336 # FIXME: insert proper C++ library support
12340 case $cc_basename in
12342 # FIXME: insert proper C++ library support
12346 # FIXME: insert proper C++ library support
12352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12353 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12355 hardcode_libdir_flag_spec_CXX='-R$libdir'
12356 hardcode_direct_CXX=yes
12357 hardcode_shlibpath_var_CXX=no
12359 # Workaround some broken pre-1.5 toolchains
12360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12363 case $cc_basename in
12365 # Kuck and Associates, Inc. (KAI) C++ Compiler
12367 # KCC will only create a shared library if the output file
12368 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12369 # to its proper name (with version) after linking.
12370 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'
12372 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12373 hardcode_libdir_separator_CXX=:
12375 # Archives containing C++ object files must be created using
12376 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12377 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12381 # Rational C++ 2.4.1
12382 # FIXME: insert proper C++ library support
12386 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12387 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'
12389 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12390 hardcode_libdir_separator_CXX=:
12392 # Commands to make compiler produce verbose output that lists
12393 # what "hidden" libraries, object files and flags are used when
12394 # linking a shared library.
12396 # There doesn't appear to be a way to prevent this compiler from
12397 # explicitly linking system object files so we need to strip them
12398 # from the output so that they don't get included in the library
12400 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'
12403 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12404 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12405 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'
12407 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12408 hardcode_libdir_separator_CXX=:
12410 # Commands to make compiler produce verbose output that lists
12411 # what "hidden" libraries, object files and flags are used when
12412 # linking a shared library.
12413 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12416 # FIXME: insert proper C++ library support
12423 case $cc_basename in
12425 # Kuck and Associates, Inc. (KAI) C++ Compiler
12427 # KCC will only create a shared library if the output file
12428 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12429 # to its proper name (with version) after linking.
12430 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'
12432 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12433 hardcode_libdir_separator_CXX=:
12435 # Archives containing C++ object files must be created using
12436 # the KAI C++ compiler.
12437 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12440 # Rational C++ 2.4.1
12441 # FIXME: insert proper C++ library support
12445 allow_undefined_flag_CXX=' -expect_unresolved \*'
12446 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'
12447 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12448 echo "-hidden">> $lib.exp~
12449 $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~
12452 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12453 hardcode_libdir_separator_CXX=:
12455 # Commands to make compiler produce verbose output that lists
12456 # what "hidden" libraries, object files and flags are used when
12457 # linking a shared library.
12459 # There doesn't appear to be a way to prevent this compiler from
12460 # explicitly linking system object files so we need to strip them
12461 # from the output so that they don't get included in the library
12463 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'
12466 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12467 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12468 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'
12470 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12471 hardcode_libdir_separator_CXX=:
12473 # Commands to make compiler produce verbose output that lists
12474 # what "hidden" libraries, object files and flags are used when
12475 # linking a shared library.
12476 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12479 # FIXME: insert proper C++ library support
12486 # FIXME: insert proper C++ library support
12490 archive_cmds_need_lc_CXX=no
12491 case $cc_basename in
12493 # FIXME: insert proper C++ library support
12497 # FIXME: insert proper C++ library support
12503 case $cc_basename in
12506 # FIXME: insert proper C++ library support
12511 # FIXME: insert proper C++ library support
12515 # FIXME: insert proper C++ library support
12521 case $cc_basename in
12523 # Sun C++ 4.2, 5.x and Centerline C++
12524 no_undefined_flag_CXX=' -zdefs'
12525 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12526 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12527 $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'
12529 hardcode_libdir_flag_spec_CXX='-R$libdir'
12530 hardcode_shlibpath_var_CXX=no
12532 solaris2.0-5 | solaris2.0-5.*) ;;
12534 # The C++ compiler is used as linker so we must use $wl
12535 # flag to pass the commands to the underlying system
12537 # Supported since Solaris 2.6 (maybe 2.5.1?)
12538 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12541 link_all_deplibs_CXX=yes
12543 # Commands to make compiler produce verbose output that lists
12544 # what "hidden" libraries, object files and flags are used when
12545 # linking a shared library.
12547 # There doesn't appear to be a way to prevent this compiler from
12548 # explicitly linking system object files so we need to strip them
12549 # from the output so that they don't get included in the library
12551 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'
12553 # Archives containing C++ object files must be created using
12554 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12555 # necessary to make sure instantiated templates are included
12557 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12560 # Green Hills C++ Compiler
12561 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12563 # The C++ compiler must be used to create the archive.
12564 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12567 # GNU C++ compiler with Solaris linker
12568 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12569 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12570 if $CC --version | grep -v '^2\.7' > /dev/null; then
12571 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12572 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12573 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12575 # Commands to make compiler produce verbose output that lists
12576 # what "hidden" libraries, object files and flags are used when
12577 # linking a shared library.
12578 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12580 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12582 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12583 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12584 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12586 # Commands to make compiler produce verbose output that lists
12587 # what "hidden" libraries, object files and flags are used when
12588 # linking a shared library.
12589 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12592 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12597 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12598 archive_cmds_need_lc_CXX=no
12601 case $cc_basename in
12603 # NonStop-UX NCC 3.20
12604 # FIXME: insert proper C++ library support
12608 # FIXME: insert proper C++ library support
12614 # FIXME: insert proper C++ library support
12618 # FIXME: insert proper C++ library support
12622 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12623 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12624 test "$ld_shlibs_CXX" = no && can_build_shared=no
12630 ## There is no encapsulation within the following macros, do not change
12631 ## the running order or otherwise move them around unless you know exactly
12632 ## what you are doing...
12634 cat > conftest.$ac_ext <<EOF
12638 Foo (void) { a = 0; }
12644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645 (eval $ac_compile) 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; then
12649 # Parse the compiler output and extract the necessary
12650 # objects, libraries and library flags.
12652 # Sentinel used to keep track of whether or not we are before
12653 # the conftest object file.
12654 pre_test_object_deps_done=no
12656 # The `*' in the case matches for architectures that use `case' in
12657 # $output_verbose_cmd can trigger glob expansion during the loop
12658 # eval without this substitution.
12659 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12661 for p in `eval $output_verbose_link_cmd`; do
12665 # Some compilers place space between "-{L,R}" and the path.
12666 # Remove the space.
12667 if test $p = "-L" \
12668 || test $p = "-R"; then
12675 if test "$pre_test_object_deps_done" = no; then
12678 # Internal compiler library paths should come after those
12679 # provided the user. The postdeps already come after the
12680 # user supplied libs so there is no need to process them.
12681 if test -z "$compiler_lib_search_path_CXX"; then
12682 compiler_lib_search_path_CXX="${prev}${p}"
12684 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12687 # The "-l" case would never come before the object being
12688 # linked, so don't bother handling this case.
12691 if test -z "$postdeps_CXX"; then
12692 postdeps_CXX="${prev}${p}"
12694 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12700 # This assumes that the test object file only shows up
12701 # once in the compiler output.
12702 if test "$p" = "conftest.$objext"; then
12703 pre_test_object_deps_done=yes
12707 if test "$pre_test_object_deps_done" = no; then
12708 if test -z "$predep_objects_CXX"; then
12709 predep_objects_CXX="$p"
12711 predep_objects_CXX="$predep_objects_CXX $p"
12714 if test -z "$postdep_objects_CXX"; then
12715 postdep_objects_CXX="$p"
12717 postdep_objects_CXX="$postdep_objects_CXX $p"
12722 *) ;; # Ignore the rest.
12730 echo "libtool.m4: error: problem compiling CXX test program"
12733 $rm -f confest.$objext
12735 case " $postdeps_CXX " in
12736 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12739 lt_prog_compiler_wl_CXX=
12740 lt_prog_compiler_pic_CXX=
12741 lt_prog_compiler_static_CXX=
12743 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12744 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12746 # C++ specific cases for pic, static, wl, etc.
12747 if test "$GXX" = yes; then
12748 lt_prog_compiler_wl_CXX='-Wl,'
12749 lt_prog_compiler_static_CXX='-static'
12753 # All AIX code is PIC.
12754 if test "$host_cpu" = ia64; then
12755 # AIX 5 now supports IA64 processor
12756 lt_prog_compiler_static_CXX='-Bstatic'
12760 # FIXME: we need at least 68020 code to build shared libraries, but
12761 # adding the `-m68020' flag to GCC prevents building anything better,
12763 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12765 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12766 # PIC is the default for these OSes.
12768 mingw* | os2* | pw32*)
12769 # This hack is so that the source file can tell whether it is being
12770 # built for inclusion in a dll (and should export symbols for example).
12771 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12773 darwin* | rhapsody*)
12774 # PIC is the default on this platform
12775 # Common symbols not allowed in MH_DYLIB files
12776 lt_prog_compiler_pic_CXX='-fno-common'
12779 # DJGPP does not support shared libraries at all
12780 lt_prog_compiler_pic_CXX=
12783 if test -d /usr/nec; then
12784 lt_prog_compiler_pic_CXX=-Kconform_pic
12788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12789 # not for PA HP-UX.
12790 case "$host_cpu" in
12794 lt_prog_compiler_pic_CXX='-fPIC'
12799 lt_prog_compiler_pic_CXX='-fPIC'
12805 # All AIX code is PIC.
12806 if test "$host_cpu" = ia64; then
12807 # AIX 5 now supports IA64 processor
12808 lt_prog_compiler_static_CXX='-Bstatic'
12810 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12814 case $cc_basename in
12816 # Green Hills C++ Compiler
12817 # _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"
12822 case $cc_basename in
12824 lt_prog_compiler_pic_CXX='-KPIC'
12827 # Green Hills C++ Compiler
12828 lt_prog_compiler_pic_CXX='-pic'
12834 freebsd* | kfreebsd*-gnu)
12835 # FreeBSD uses GNU C++
12837 hpux9* | hpux10* | hpux11*)
12838 case $cc_basename in
12840 lt_prog_compiler_wl_CXX='-Wl,'
12841 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12842 if test "$host_cpu" != ia64; then
12843 lt_prog_compiler_pic_CXX='+Z'
12847 lt_prog_compiler_wl_CXX='-Wl,'
12848 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12849 case "$host_cpu" in
12854 lt_prog_compiler_pic_CXX='+Z'
12862 irix5* | irix6* | nonstopux*)
12863 case $cc_basename in
12865 lt_prog_compiler_wl_CXX='-Wl,'
12866 lt_prog_compiler_static_CXX='-non_shared'
12867 # CC pic flag -KPIC is the default.
12874 case $cc_basename in
12877 lt_prog_compiler_wl_CXX='--backend -Wl,'
12878 lt_prog_compiler_pic_CXX='-fPIC'
12882 lt_prog_compiler_wl_CXX='-Wl,'
12883 lt_prog_compiler_pic_CXX='-KPIC'
12884 lt_prog_compiler_static_CXX='-static'
12888 # Make sure the PIC flag is empty. It appears that all Alpha
12889 # Linux and Compaq Tru64 Unix objects are PIC.
12890 lt_prog_compiler_pic_CXX=
12891 lt_prog_compiler_static_CXX='-non_shared'
12902 case $cc_basename in
12904 lt_prog_compiler_pic_CXX='-W c,exportall'
12912 osf3* | osf4* | osf5*)
12913 case $cc_basename in
12915 lt_prog_compiler_wl_CXX='--backend -Wl,'
12918 # Rational C++ 2.4.1
12919 lt_prog_compiler_pic_CXX='-pic'
12922 # Digital/Compaq C++
12923 lt_prog_compiler_wl_CXX='-Wl,'
12924 # Make sure the PIC flag is empty. It appears that all Alpha
12925 # Linux and Compaq Tru64 Unix objects are PIC.
12926 lt_prog_compiler_pic_CXX=
12927 lt_prog_compiler_static_CXX='-non_shared'
12936 case $cc_basename in
12938 lt_prog_compiler_pic_CXX='-fPIC'
12945 case $cc_basename in
12947 # Sun C++ 4.2, 5.x and Centerline C++
12948 lt_prog_compiler_pic_CXX='-KPIC'
12949 lt_prog_compiler_static_CXX='-Bstatic'
12950 lt_prog_compiler_wl_CXX='-Qoption ld '
12953 # Green Hills C++ Compiler
12954 lt_prog_compiler_pic_CXX='-PIC'
12961 case $cc_basename in
12964 lt_prog_compiler_pic_CXX='-pic'
12965 lt_prog_compiler_static_CXX='-Bstatic'
12969 lt_prog_compiler_pic_CXX='-pic'
12976 case $cc_basename in
12978 # NonStop-UX NCC 3.20
12979 lt_prog_compiler_pic_CXX='-KPIC'
12990 lt_prog_compiler_can_build_shared_CXX=no
12995 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12996 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12999 # Check to make sure the PIC flag actually works.
13001 if test -n "$lt_prog_compiler_pic_CXX"; then
13003 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13004 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13005 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 lt_prog_compiler_pic_works_CXX=no
13009 ac_outfile=conftest.$ac_objext
13010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13011 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13012 # Insert the option either (1) after the last *FLAGS variable, or
13013 # (2) before a word containing "conftest.", or (3) at the end.
13014 # Note that $ac_compile itself does not contain backslashes and begins
13015 # with a dollar sign (not a hyphen), so the echo should work correctly.
13016 # The option is referenced via a variable to avoid confusing sed.
13017 lt_compile=`echo "$ac_compile" | $SED \
13018 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13020 -e 's:$: $lt_compiler_flag:'`
13021 (eval echo "\"\$as_me:13021: $lt_compile\"" >&5)
13022 (eval "$lt_compile" 2>conftest.err)
13024 cat conftest.err >&5
13025 echo "$as_me:13025: \$? = $ac_status" >&5
13026 if (exit $ac_status) && test -s "$ac_outfile"; then
13027 # The compiler can only warn and ignore the option if not recognized
13028 # So say no if there are warnings
13029 if test ! -s conftest.err; then
13030 lt_prog_compiler_pic_works_CXX=yes
13036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13037 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13039 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13040 case $lt_prog_compiler_pic_CXX in
13042 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13045 lt_prog_compiler_pic_CXX=
13046 lt_prog_compiler_can_build_shared_CXX=no
13051 # For platforms which do not support PIC, -DPIC is meaningless:
13053 lt_prog_compiler_pic_CXX=
13056 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13060 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13061 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13062 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 lt_cv_prog_compiler_c_o_CXX=no
13066 $rm -r conftest 2>/dev/null
13070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13072 lt_compiler_flag="-o out/conftest2.$ac_objext"
13073 # Insert the option either (1) after the last *FLAGS variable, or
13074 # (2) before a word containing "conftest.", or (3) at the end.
13075 # Note that $ac_compile itself does not contain backslashes and begins
13076 # with a dollar sign (not a hyphen), so the echo should work correctly.
13077 lt_compile=`echo "$ac_compile" | $SED \
13078 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13080 -e 's:$: $lt_compiler_flag:'`
13081 (eval echo "\"\$as_me:13081: $lt_compile\"" >&5)
13082 (eval "$lt_compile" 2>out/conftest.err)
13084 cat out/conftest.err >&5
13085 echo "$as_me:13085: \$? = $ac_status" >&5
13086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13088 # The compiler can only warn and ignore the option if not recognized
13089 # So say no if there are warnings
13090 if test ! -s out/conftest.err; then
13091 lt_cv_prog_compiler_c_o_CXX=yes
13096 # SGI C++ compiler will create directory out/ii_files/ for
13097 # template instantiation
13098 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13099 $rm out/* && rmdir out
13105 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13106 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13109 hard_links="nottested"
13110 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13111 # do not overwrite the value of need_locks provided by the user
13112 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13113 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13118 ln conftest.a conftest.b 2>&5 || hard_links=no
13119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13120 echo "$as_me:$LINENO: result: $hard_links" >&5
13121 echo "${ECHO_T}$hard_links" >&6
13122 if test "$hard_links" = no; then
13123 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13124 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13131 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13132 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13134 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13137 # If we're using GNU nm, then we don't want the "-C" option.
13138 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13139 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13140 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'
13142 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'
13146 export_symbols_cmds_CXX="$ltdll_cmds"
13149 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13152 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13156 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13157 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13158 test "$ld_shlibs_CXX" = no && can_build_shared=no
13160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13161 if test "$GCC" = yes; then
13162 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13166 # Do we need to explicitly link libc?
13168 case "x$archive_cmds_need_lc_CXX" in
13170 # Assume -lc should be added
13171 archive_cmds_need_lc_CXX=yes
13173 if test "$enable_shared" = yes && test "$GCC" = yes; then
13174 case $archive_cmds_CXX in
13176 # FIXME: we may have to deal with multi-command sequences.
13179 # Test whether the compiler implicitly links with -lc since on some
13180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13181 # to ld, don't add -lc before -lgcc.
13182 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188 (eval $ac_compile) 2>&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); } 2>conftest.err; then
13194 libobjs=conftest.$ac_objext
13196 wl=$lt_prog_compiler_wl_CXX
13202 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13203 allow_undefined_flag_CXX=
13204 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13205 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }
13210 archive_cmds_need_lc_CXX=no
13212 archive_cmds_need_lc_CXX=yes
13214 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13216 cat conftest.err 1>&5
13219 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13220 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13227 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13228 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13229 library_names_spec=
13230 libname_spec='lib$name'
13234 postuninstall_cmds=
13238 shlibpath_overrides_runpath=unknown
13240 dynamic_linker="$host_os ld.so"
13241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13242 if test "$GCC" = yes; then
13243 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13244 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13245 # if the path contains ";" then we assume it to be the separator
13246 # otherwise default to the standard path separator (i.e. ":") - it is
13247 # assumed that no part of a normal pathname contains ";" but that should
13248 # okay in the real world where ";" in dirpaths is itself problematic.
13249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13254 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13256 need_lib_prefix=unknown
13257 hardcode_into_libs=no
13259 # when you set need_version to no, make sure it does not cause -set_version
13260 # flags to be left without arguments
13261 need_version=unknown
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13267 shlibpath_var=LIBPATH
13269 # AIX 3 has no versioning support, so we append a major version to the name.
13270 soname_spec='${libname}${release}${shared_ext}$major'
13277 hardcode_into_libs=yes
13278 if test "$host_cpu" = ia64; then
13279 # AIX 5 supports IA64
13280 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13281 shlibpath_var=LD_LIBRARY_PATH
13283 # With GCC up to 2.95.x, collect2 would create an import file
13284 # for dependence libraries. The import file would start with
13285 # the line `#! .'. This would cause the generated library to
13286 # depend on `.', always an invalid library. This was fixed in
13287 # development snapshots of GCC prior to 3.0.
13289 aix4 | aix4.[01] | aix4.[01].*)
13290 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13292 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13295 can_build_shared=no
13299 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13300 # soname into executable. Probably we can add versioning support to
13301 # collect2, so additional links can be useful in future.
13302 if test "$aix_use_runtimelinking" = yes; then
13303 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13304 # instead of lib<name>.a to let people know that these are not
13305 # typical AIX shared libraries.
13306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13308 # We preserve .a as extension for shared libraries through AIX4.2
13309 # and later when we are not doing run time linking.
13310 library_names_spec='${libname}${release}.a $libname.a'
13311 soname_spec='${libname}${release}${shared_ext}$major'
13313 shlibpath_var=LIBPATH
13318 library_names_spec='$libname.ixlibrary $libname.a'
13319 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13320 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'
13324 library_names_spec='${libname}${shared_ext}'
13325 dynamic_linker="$host_os ld.so"
13326 shlibpath_var=LIBRARY_PATH
13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13333 soname_spec='${libname}${release}${shared_ext}$major'
13334 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13335 shlibpath_var=LD_LIBRARY_PATH
13336 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13337 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13338 # the default ld.so.conf also contains /usr/contrib/lib and
13339 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13340 # libtool to hard-code these into programs
13343 cygwin* | mingw* | pw32*)
13344 version_type=windows
13349 case $GCC,$host_os in
13350 yes,cygwin* | yes,mingw* | yes,pw32*)
13351 library_names_spec='$libname.dll.a'
13352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13353 postinstall_cmds='base_file=`basename \${file}`~
13354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13355 dldir=$destdir/`dirname \$dlpath`~
13356 test -d \$dldir || mkdir -p \$dldir~
13357 $install_prog $dir/$dlname \$dldir/$dlname'
13358 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13359 dlpath=$dir/\$dldll~
13361 shlibpath_overrides_runpath=yes
13365 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13366 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13367 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13370 # MinGW DLLs use traditional 'lib' prefix
13371 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13372 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13373 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13374 # It is most probably a Windows format PATH printed by
13375 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13376 # path with ; separators, and with drive letters. We can handle the
13377 # drive letters (cygwin fileutils understands them), so leave them,
13378 # especially as we might pass files found there to a mingw objdump,
13379 # which wouldn't understand a cygwinified path. Ahh.
13380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13386 # pw32 DLLs use 'pw' prefix rather than 'lib'
13387 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13393 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13396 dynamic_linker='Win32 ld.exe'
13397 # FIXME: first we should search . and the directory the executable is in
13401 darwin* | rhapsody*)
13402 dynamic_linker="$host_os dyld"
13403 version_type=darwin
13406 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13407 soname_spec='${libname}${release}${major}$shared_ext'
13408 shlibpath_overrides_runpath=yes
13409 shlibpath_var=DYLD_LIBRARY_PATH
13410 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13411 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13412 if test "$GCC" = yes; then
13413 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"`
13415 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13417 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13425 soname_spec='${libname}${release}${shared_ext}$major'
13426 shlibpath_var=LD_LIBRARY_PATH
13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13438 soname_spec='${libname}${release}${shared_ext}$major'
13439 shlibpath_var=LD_LIBRARY_PATH
13440 shlibpath_overrides_runpath=no
13441 hardcode_into_libs=yes
13442 dynamic_linker='GNU ld.so'
13446 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13447 version_type=freebsd-$objformat
13448 case $version_type in
13450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13459 shlibpath_var=LD_LIBRARY_PATH
13462 shlibpath_overrides_runpath=yes
13464 freebsd3.01* | freebsdelf3.01*)
13465 shlibpath_overrides_runpath=yes
13466 hardcode_into_libs=yes
13469 shlibpath_overrides_runpath=no
13470 hardcode_into_libs=yes
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13480 soname_spec='${libname}${release}${shared_ext}$major'
13481 shlibpath_var=LD_LIBRARY_PATH
13482 hardcode_into_libs=yes
13485 hpux9* | hpux10* | hpux11*)
13486 # Give a soname corresponding to the major version so that dld.sl refuses to
13487 # link against other versions.
13491 case "$host_cpu" in
13494 hardcode_into_libs=yes
13495 dynamic_linker="$host_os dld.so"
13496 shlibpath_var=LD_LIBRARY_PATH
13497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499 soname_spec='${libname}${release}${shared_ext}$major'
13500 if test "X$HPUX_IA64_MODE" = X32; then
13501 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13503 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13505 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13509 hardcode_into_libs=yes
13510 dynamic_linker="$host_os dld.sl"
13511 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514 soname_spec='${libname}${release}${shared_ext}$major'
13515 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13520 dynamic_linker="$host_os dld.sl"
13521 shlibpath_var=SHLIB_PATH
13522 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524 soname_spec='${libname}${release}${shared_ext}$major'
13527 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13528 postinstall_cmds='chmod 555 $lib'
13531 irix5* | irix6* | nonstopux*)
13533 nonstopux*) version_type=nonstopux ;;
13535 if test "$lt_cv_prog_gnu_ld" = yes; then
13543 soname_spec='${libname}${release}${shared_ext}$major'
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13546 irix5* | nonstopux*)
13547 libsuff= shlibsuff=
13550 case $LD in # libtool.m4 will add one of these switches to LD
13551 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13552 libsuff= shlibsuff= libmagic=32-bit;;
13553 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13554 libsuff=32 shlibsuff=N32 libmagic=N32;;
13555 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13556 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13557 *) libsuff= shlibsuff= libmagic=never-match;;
13561 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13562 shlibpath_overrides_runpath=no
13563 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13564 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13565 hardcode_into_libs=yes
13568 # No shared lib support for Linux oldld, aout, or coff.
13569 linux*oldld* | linux*aout* | linux*coff*)
13573 # This must be Linux ELF.
13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13579 soname_spec='${libname}${release}${shared_ext}$major'
13580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13581 shlibpath_var=LD_LIBRARY_PATH
13582 shlibpath_overrides_runpath=no
13583 # This implies no fast_install, which is unacceptable.
13584 # Some rework will be needed to allow for fast_install
13585 # before this can be enabled.
13586 hardcode_into_libs=yes
13588 # find out which ABI we are using
13590 case "$host_cpu" in
13591 x86_64*|s390x*|powerpc64*)
13592 echo '#line 13592 "configure"' > conftest.$ac_ext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; then
13598 case `/usr/bin/file conftest.$ac_objext` in
13601 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13609 # Append ld.so.conf contents to the search path
13610 if test -f /etc/ld.so.conf; then
13611 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13612 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13615 # We used to test for /lib/ld.so.1 and disable shared libraries on
13616 # powerpc, because MkLinux only supported shared libraries with the
13617 # GNU dynamic linker. Since this was broken with cross compilers,
13618 # most powerpc-linux boxes support dynamic linking these days and
13619 # people can always --disable-shared, the test was removed, and we
13620 # assume the GNU/Linux dynamic linker is in use.
13621 dynamic_linker='GNU/Linux ld.so'
13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13629 soname_spec='${libname}${release}${shared_ext}$major'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 shlibpath_overrides_runpath=no
13632 hardcode_into_libs=yes
13633 dynamic_linker='GNU ld.so'
13640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13643 dynamic_linker='NetBSD (a.out) ld.so'
13645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13646 soname_spec='${libname}${release}${shared_ext}$major'
13647 dynamic_linker='NetBSD ld.elf_so'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=yes
13651 hardcode_into_libs=yes
13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657 shlibpath_var=LD_LIBRARY_PATH
13658 shlibpath_overrides_runpath=yes
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666 soname_spec='${libname}${release}${shared_ext}$major'
13667 shlibpath_var=LD_LIBRARY_PATH
13668 shlibpath_overrides_runpath=yes
13675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13677 shlibpath_var=LD_LIBRARY_PATH
13678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13680 openbsd2.[89] | openbsd2.[89].*)
13681 shlibpath_overrides_runpath=no
13684 shlibpath_overrides_runpath=yes
13688 shlibpath_overrides_runpath=yes
13693 libname_spec='$name'
13696 library_names_spec='$libname${shared_ext} $libname.a'
13697 dynamic_linker='OS/2 ld.exe'
13698 shlibpath_var=LIBPATH
13701 osf3* | osf4* | osf5*)
13705 soname_spec='${libname}${release}${shared_ext}$major'
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707 shlibpath_var=LD_LIBRARY_PATH
13708 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13709 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13714 soname_spec='${libname}${release}${shared_ext}$major'
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716 shlibpath_var=LD_LIBRARY_PATH
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724 soname_spec='${libname}${release}${shared_ext}$major'
13725 shlibpath_var=LD_LIBRARY_PATH
13726 shlibpath_overrides_runpath=yes
13727 hardcode_into_libs=yes
13728 # ldd complains unless libraries are executable
13729 postinstall_cmds='chmod +x $lib'
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13735 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 shlibpath_overrides_runpath=yes
13738 if test "$with_gnu_ld" = yes; then
13744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747 soname_spec='${libname}${release}${shared_ext}$major'
13748 shlibpath_var=LD_LIBRARY_PATH
13749 case $host_vendor in
13751 shlibpath_overrides_runpath=no
13753 export_dynamic_flag_spec='${wl}-Blargedynsym'
13754 runpath_var=LD_RUN_PATH
13762 shlibpath_overrides_runpath=no
13763 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13769 if test -d /usr/nec ;then
13771 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13772 soname_spec='$libname${shared_ext}.$major'
13773 shlibpath_var=LD_LIBRARY_PATH
13779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780 soname_spec='${libname}${release}${shared_ext}$major'
13781 shlibpath_var=LD_LIBRARY_PATH
13788 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13789 echo "${ECHO_T}$dynamic_linker" >&6
13790 test "$dynamic_linker" = no && can_build_shared=no
13792 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13793 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13794 hardcode_action_CXX=
13795 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13796 test -n "$runpath_var CXX" || \
13797 test "X$hardcode_automatic_CXX"="Xyes" ; then
13799 # We can hardcode non-existant directories.
13800 if test "$hardcode_direct_CXX" != no &&
13801 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13802 # have to relink, otherwise we might link with an installed library
13803 # when we should be linking with a yet-to-be-installed one
13804 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13805 test "$hardcode_minus_L_CXX" != no; then
13806 # Linking always hardcodes the temporary library directory.
13807 hardcode_action_CXX=relink
13809 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13810 hardcode_action_CXX=immediate
13813 # We cannot hardcode anything, or else we can only hardcode existing
13815 hardcode_action_CXX=unsupported
13817 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13818 echo "${ECHO_T}$hardcode_action_CXX" >&6
13820 if test "$hardcode_action_CXX" = relink; then
13821 # Fast installation is not supported
13822 enable_fast_install=no
13823 elif test "$shlibpath_overrides_runpath" = yes ||
13824 test "$enable_shared" = no; then
13825 # Fast installation is not necessary
13826 enable_fast_install=needless
13831 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13832 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13833 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13834 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13835 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13836 echo "$as_me:$LINENO: result: yes" >&5
13837 echo "${ECHO_T}yes" >&6
13839 # FIXME - insert some real tests, host_os isn't really good enough
13842 if test -n "$STRIP" ; then
13843 striplib="$STRIP -x"
13844 echo "$as_me:$LINENO: result: yes" >&5
13845 echo "${ECHO_T}yes" >&6
13847 echo "$as_me:$LINENO: result: no" >&5
13848 echo "${ECHO_T}no" >&6
13852 echo "$as_me:$LINENO: result: no" >&5
13853 echo "${ECHO_T}no" >&6
13858 if test "x$enable_dlopen" != xyes; then
13859 enable_dlopen=unknown
13860 enable_dlopen_self=unknown
13861 enable_dlopen_self_static=unknown
13868 lt_cv_dlopen="load_add_on"
13870 lt_cv_dlopen_self=yes
13874 lt_cv_dlopen="LoadLibrary"
13879 lt_cv_dlopen="dlopen"
13884 # if libdl is installed we need to link against it
13885 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13886 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 ac_check_lib_save_LIBS=$LIBS
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13899 /* Override any gcc2 internal prototype to avoid an error. */
13903 /* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13916 (eval $ac_link) 2>conftest.er1
13918 grep -v '^ *+' conftest.er1 >conftest.err
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
13923 { ac_try='test -z "$ac_cxx_werror_flag"
13924 || test ! -s conftest.err'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest$ac_exeext'
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_lib_dl_dlopen=yes
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ac_cv_lib_dl_dlopen=no
13943 rm -f conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13949 if test $ac_cv_lib_dl_dlopen = yes; then
13950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13953 lt_cv_dlopen="dyld"
13955 lt_cv_dlopen_self=yes
13962 echo "$as_me:$LINENO: checking for shl_load" >&5
13963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13964 if test "${ac_cv_func_shl_load+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13975 #define shl_load innocuous_shl_load
13977 /* System header to define __stub macros and hopefully few prototypes,
13978 which can conflict with char shl_load (); below.
13979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13980 <limits.h> exists even on freestanding compilers. */
13983 # include <limits.h>
13985 # include <assert.h>
13990 /* Override any gcc2 internal prototype to avoid an error. */
13995 /* We use char because int might match the return type of a gcc2
13996 builtin and then its argument prototype would still apply. */
13998 /* The GNU C library defines this for functions which it implements
13999 to always fail with ENOSYS. Some functions are actually named
14000 something starting with __ and the normal name is an alias. */
14001 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14004 char (*f) () = shl_load;
14013 return f != shl_load;
14018 rm -f conftest.$ac_objext conftest$ac_exeext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020 (eval $ac_link) 2>conftest.er1
14022 grep -v '^ *+' conftest.er1 >conftest.err
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_cxx_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_cv_func_shl_load=yes
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_cv_func_shl_load=no
14047 rm -f conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14050 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14051 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14052 if test $ac_cv_func_shl_load = yes; then
14053 lt_cv_dlopen="shl_load"
14055 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14056 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14057 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 ac_check_lib_save_LIBS=$LIBS
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14069 /* Override any gcc2 internal prototype to avoid an error. */
14073 /* We use char because int might match the return type of a gcc2
14074 builtin and then its argument prototype would still apply. */
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086 (eval $ac_link) 2>conftest.er1
14088 grep -v '^ *+' conftest.er1 >conftest.err
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
14093 { ac_try='test -z "$ac_cxx_werror_flag"
14094 || test ! -s conftest.err'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; } &&
14100 { ac_try='test -s conftest$ac_exeext'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 ac_cv_lib_dld_shl_load=yes
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14111 ac_cv_lib_dld_shl_load=no
14113 rm -f conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 LIBS=$ac_check_lib_save_LIBS
14117 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14118 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14119 if test $ac_cv_lib_dld_shl_load = yes; then
14120 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14122 echo "$as_me:$LINENO: checking for dlopen" >&5
14123 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14124 if test "${ac_cv_func_dlopen+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 cat >conftest.$ac_ext <<_ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14135 #define dlopen innocuous_dlopen
14137 /* System header to define __stub macros and hopefully few prototypes,
14138 which can conflict with char dlopen (); below.
14139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14140 <limits.h> exists even on freestanding compilers. */
14143 # include <limits.h>
14145 # include <assert.h>
14150 /* Override any gcc2 internal prototype to avoid an error. */
14155 /* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14158 /* The GNU C library defines this for functions which it implements
14159 to always fail with ENOSYS. Some functions are actually named
14160 something starting with __ and the normal name is an alias. */
14161 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14164 char (*f) () = dlopen;
14173 return f != dlopen;
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14180 (eval $ac_link) 2>conftest.er1
14182 grep -v '^ *+' conftest.er1 >conftest.err
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -z "$ac_cxx_werror_flag"
14188 || test ! -s conftest.err'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest$ac_exeext'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_func_dlopen=yes
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14205 ac_cv_func_dlopen=no
14207 rm -f conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14210 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14211 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14212 if test $ac_cv_func_dlopen = yes; then
14213 lt_cv_dlopen="dlopen"
14215 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 ac_check_lib_save_LIBS=$LIBS
14222 cat >conftest.$ac_ext <<_ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 /* Override any gcc2 internal prototype to avoid an error. */
14233 /* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14246 (eval $ac_link) 2>conftest.er1
14248 grep -v '^ *+' conftest.er1 >conftest.err
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -z "$ac_cxx_werror_flag"
14254 || test ! -s conftest.err'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest$ac_exeext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_cv_lib_dl_dlopen=yes
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 ac_cv_lib_dl_dlopen=no
14273 rm -f conftest.err conftest.$ac_objext \
14274 conftest$ac_exeext conftest.$ac_ext
14275 LIBS=$ac_check_lib_save_LIBS
14277 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14278 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14279 if test $ac_cv_lib_dl_dlopen = yes; then
14280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14282 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14283 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14284 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 ac_check_lib_save_LIBS=$LIBS
14288 LIBS="-lsvld $LIBS"
14289 cat >conftest.$ac_ext <<_ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14296 /* Override any gcc2 internal prototype to avoid an error. */
14300 /* We use char because int might match the return type of a gcc2
14301 builtin and then its argument prototype would still apply. */
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_cxx_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest$ac_exeext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_cv_lib_svld_dlopen=yes
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_cv_lib_svld_dlopen=no
14340 rm -f conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext conftest.$ac_ext
14342 LIBS=$ac_check_lib_save_LIBS
14344 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14345 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14346 if test $ac_cv_lib_svld_dlopen = yes; then
14347 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14349 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14350 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14351 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 ac_check_lib_save_LIBS=$LIBS
14356 cat >conftest.$ac_ext <<_ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14363 /* Override any gcc2 internal prototype to avoid an error. */
14367 /* We use char because int might match the return type of a gcc2
14368 builtin and then its argument prototype would still apply. */
14378 rm -f conftest.$ac_objext conftest$ac_exeext
14379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14380 (eval $ac_link) 2>conftest.er1
14382 grep -v '^ *+' conftest.er1 >conftest.err
14384 cat conftest.err >&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -z "$ac_cxx_werror_flag"
14388 || test ! -s conftest.err'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest$ac_exeext'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }; then
14400 ac_cv_lib_dld_dld_link=yes
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 ac_cv_lib_dld_dld_link=no
14407 rm -f conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
14409 LIBS=$ac_check_lib_save_LIBS
14411 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14412 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14413 if test $ac_cv_lib_dld_dld_link = yes; then
14414 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14435 if test "x$lt_cv_dlopen" != xno; then
14441 case $lt_cv_dlopen in
14443 save_CPPFLAGS="$CPPFLAGS"
14444 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14446 save_LDFLAGS="$LDFLAGS"
14447 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14450 LIBS="$lt_cv_dlopen_libs $LIBS"
14452 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14453 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14454 if test "${lt_cv_dlopen_self+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 if test "$cross_compiling" = yes; then :
14458 lt_cv_dlopen_self=cross
14460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14461 lt_status=$lt_dlunknown
14462 cat > conftest.$ac_ext <<EOF
14463 #line 14463 "configure"
14464 #include "confdefs.h"
14473 # define LT_DLGLOBAL RTLD_GLOBAL
14476 # define LT_DLGLOBAL DL_GLOBAL
14478 # define LT_DLGLOBAL 0
14482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14483 find out it does not work in some platform. */
14484 #ifndef LT_DLLAZY_OR_NOW
14486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14489 # define LT_DLLAZY_OR_NOW DL_LAZY
14492 # define LT_DLLAZY_OR_NOW RTLD_NOW
14495 # define LT_DLLAZY_OR_NOW DL_NOW
14497 # define LT_DLLAZY_OR_NOW 0
14505 extern "C" void exit (int);
14508 void fnord() { int i=42;}
14511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14512 int status = $lt_dlunknown;
14516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14517 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14518 /* dlclose (self); */
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14529 (./conftest; exit; ) 2>/dev/null
14531 case x$lt_status in
14532 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14533 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14534 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14537 # compilation failed
14538 lt_cv_dlopen_self=no
14545 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14546 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14548 if test "x$lt_cv_dlopen_self" = xyes; then
14549 LDFLAGS="$LDFLAGS $link_static_flag"
14550 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14551 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14552 if test "${lt_cv_dlopen_self_static+set}" = set; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14555 if test "$cross_compiling" = yes; then :
14556 lt_cv_dlopen_self_static=cross
14558 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14559 lt_status=$lt_dlunknown
14560 cat > conftest.$ac_ext <<EOF
14561 #line 14561 "configure"
14562 #include "confdefs.h"
14571 # define LT_DLGLOBAL RTLD_GLOBAL
14574 # define LT_DLGLOBAL DL_GLOBAL
14576 # define LT_DLGLOBAL 0
14580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14581 find out it does not work in some platform. */
14582 #ifndef LT_DLLAZY_OR_NOW
14584 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14587 # define LT_DLLAZY_OR_NOW DL_LAZY
14590 # define LT_DLLAZY_OR_NOW RTLD_NOW
14593 # define LT_DLLAZY_OR_NOW DL_NOW
14595 # define LT_DLLAZY_OR_NOW 0
14603 extern "C" void exit (int);
14606 void fnord() { int i=42;}
14609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14610 int status = $lt_dlunknown;
14614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14615 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14616 /* dlclose (self); */
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623 (eval $ac_link) 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14627 (./conftest; exit; ) 2>/dev/null
14629 case x$lt_status in
14630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14632 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14635 # compilation failed
14636 lt_cv_dlopen_self_static=no
14643 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14644 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14647 CPPFLAGS="$save_CPPFLAGS"
14648 LDFLAGS="$save_LDFLAGS"
14653 case $lt_cv_dlopen_self in
14654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14655 *) enable_dlopen_self=unknown ;;
14658 case $lt_cv_dlopen_self_static in
14659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14660 *) enable_dlopen_self_static=unknown ;;
14665 # The else clause should only fire when bootstrapping the
14666 # libtool distribution, otherwise you forgot to ship ltmain.sh
14667 # with your package, and you will get complaints that there are
14668 # no rules to generate ltmain.sh.
14669 if test -f "$ltmain"; then
14670 # See if we are running on zsh, and set the options which allow our commands through
14671 # without removal of \ escapes.
14672 if test -n "${ZSH_VERSION+set}" ; then
14673 setopt NO_GLOB_SUBST
14675 # Now quote all the things that may contain metacharacters while being
14676 # careful not to overquote the AC_SUBSTed values. We take copies of the
14677 # variables and quote the copies for generation of the libtool script.
14678 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14680 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14681 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14682 deplibs_check_method reload_flag reload_cmds need_locks \
14683 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14684 lt_cv_sys_global_symbol_to_c_name_address \
14685 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14686 old_postinstall_cmds old_postuninstall_cmds \
14690 lt_prog_compiler_wl_CXX \
14691 lt_prog_compiler_pic_CXX \
14692 lt_prog_compiler_static_CXX \
14693 lt_prog_compiler_no_builtin_flag_CXX \
14694 export_dynamic_flag_spec_CXX \
14695 thread_safe_flag_spec_CXX \
14696 whole_archive_flag_spec_CXX \
14697 enable_shared_with_static_runtimes_CXX \
14698 old_archive_cmds_CXX \
14699 old_archive_from_new_cmds_CXX \
14700 predep_objects_CXX \
14701 postdep_objects_CXX \
14704 compiler_lib_search_path_CXX \
14706 archive_expsym_cmds_CXX \
14707 postinstall_cmds_CXX \
14708 postuninstall_cmds_CXX \
14709 old_archive_from_expsyms_cmds_CXX \
14710 allow_undefined_flag_CXX \
14711 no_undefined_flag_CXX \
14712 export_symbols_cmds_CXX \
14713 hardcode_libdir_flag_spec_CXX \
14714 hardcode_libdir_flag_spec_ld_CXX \
14715 hardcode_libdir_separator_CXX \
14716 hardcode_automatic_CXX \
14718 module_expsym_cmds_CXX \
14719 lt_cv_prog_compiler_c_o_CXX \
14720 exclude_expsyms_CXX \
14721 include_expsyms_CXX; do
14724 old_archive_cmds_CXX | \
14725 old_archive_from_new_cmds_CXX | \
14726 archive_cmds_CXX | \
14727 archive_expsym_cmds_CXX | \
14728 module_cmds_CXX | \
14729 module_expsym_cmds_CXX | \
14730 old_archive_from_expsyms_cmds_CXX | \
14731 export_symbols_cmds_CXX | \
14732 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14733 postinstall_cmds | postuninstall_cmds | \
14734 old_postinstall_cmds | old_postuninstall_cmds | \
14735 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14736 # Double-quote double-evaled strings.
14737 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14746 *'\$0 --fallback-echo"')
14747 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14753 cat <<__EOF__ >> "$cfgfile"
14754 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14756 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14758 # Shell to use when invoking shell scripts.
14761 # Whether or not to build shared libraries.
14762 build_libtool_libs=$enable_shared
14764 # Whether or not to build static libraries.
14765 build_old_libs=$enable_static
14767 # Whether or not to add -lc for building shared libraries.
14768 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14770 # Whether or not to disallow shared libs when runtime libs are static
14771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14773 # Whether or not to optimize for fast installation.
14774 fast_install=$enable_fast_install
14777 host_alias=$host_alias
14780 # An echo program that does not interpret backslashes.
14785 AR_FLAGS=$lt_AR_FLAGS
14790 # A language-specific compiler.
14791 CC=$lt_compiler_CXX
14793 # Is the compiler the GNU C compiler?
14799 # The linker used to build libraries.
14802 # Whether we need hard or soft links.
14805 # A BSD-compatible nm program.
14808 # A symbol stripping program
14811 # Used to examine libraries when file_magic_cmd begins "file"
14812 MAGIC_CMD=$MAGIC_CMD
14814 # Used on cygwin: DLL creation program.
14817 # Used on cygwin: object dumper.
14820 # Used on cygwin: assembler.
14823 # The name of the directory that contains temporary libtool files.
14826 # How to create reloadable object files.
14827 reload_flag=$lt_reload_flag
14828 reload_cmds=$lt_reload_cmds
14830 # How to pass a linker flag through the compiler.
14831 wl=$lt_lt_prog_compiler_wl_CXX
14833 # Object file suffix (normally "o").
14834 objext="$ac_objext"
14836 # Old archive suffix (normally "a").
14839 # Shared library suffix (normally ".so").
14840 shrext_cmds='$shrext_cmds'
14842 # Executable file suffix (normally "").
14845 # Additional compiler flags for building library objects.
14846 pic_flag=$lt_lt_prog_compiler_pic_CXX
14849 # What is the maximum length of a command?
14850 max_cmd_len=$lt_cv_sys_max_cmd_len
14852 # Does compiler simultaneously support -c and -o options?
14853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14855 # Must we lock files when doing compilation ?
14856 need_locks=$lt_need_locks
14858 # Do we need the lib prefix for modules?
14859 need_lib_prefix=$need_lib_prefix
14861 # Do we need a version for libraries?
14862 need_version=$need_version
14864 # Whether dlopen is supported.
14865 dlopen_support=$enable_dlopen
14867 # Whether dlopen of programs is supported.
14868 dlopen_self=$enable_dlopen_self
14870 # Whether dlopen of statically linked programs is supported.
14871 dlopen_self_static=$enable_dlopen_self_static
14873 # Compiler flag to prevent dynamic linking.
14874 link_static_flag=$lt_lt_prog_compiler_static_CXX
14876 # Compiler flag to turn off builtin functions.
14877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14879 # Compiler flag to allow reflexive dlopens.
14880 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14882 # Compiler flag to generate shared objects directly from archives.
14883 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14885 # Compiler flag to generate thread-safe objects.
14886 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14888 # Library versioning type.
14889 version_type=$version_type
14891 # Format of library name prefix.
14892 libname_spec=$lt_libname_spec
14894 # List of archive names. First name is the real one, the rest are links.
14895 # The last name is the one that the linker finds with -lNAME.
14896 library_names_spec=$lt_library_names_spec
14898 # The coded name of the library, if different from the real name.
14899 soname_spec=$lt_soname_spec
14901 # Commands used to build and install an old-style archive.
14903 old_archive_cmds=$lt_old_archive_cmds_CXX
14904 old_postinstall_cmds=$lt_old_postinstall_cmds
14905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14907 # Create an old-style archive from a shared archive.
14908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14910 # Create a temporary old-style archive to link instead of a shared archive.
14911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14913 # Commands used to build and install a shared archive.
14914 archive_cmds=$lt_archive_cmds_CXX
14915 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14916 postinstall_cmds=$lt_postinstall_cmds
14917 postuninstall_cmds=$lt_postuninstall_cmds
14919 # Commands used to build a loadable module (assumed same as above if empty)
14920 module_cmds=$lt_module_cmds_CXX
14921 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14923 # Commands to strip libraries.
14924 old_striplib=$lt_old_striplib
14925 striplib=$lt_striplib
14927 # Dependencies to place before the objects being linked to create a
14929 predep_objects=$lt_predep_objects_CXX
14931 # Dependencies to place after the objects being linked to create a
14933 postdep_objects=$lt_postdep_objects_CXX
14935 # Dependencies to place before the objects being linked to create a
14937 predeps=$lt_predeps_CXX
14939 # Dependencies to place after the objects being linked to create a
14941 postdeps=$lt_postdeps_CXX
14943 # The library search path used internally by the compiler when linking
14944 # a shared library.
14945 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14947 # Method to check whether dependent libraries are shared objects.
14948 deplibs_check_method=$lt_deplibs_check_method
14950 # Command to use when deplibs_check_method == file_magic.
14951 file_magic_cmd=$lt_file_magic_cmd
14953 # Flag that allows shared libraries with undefined symbols to be built.
14954 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14956 # Flag that forces no undefined symbols.
14957 no_undefined_flag=$lt_no_undefined_flag_CXX
14959 # Commands used to finish a libtool library installation in a directory.
14960 finish_cmds=$lt_finish_cmds
14962 # Same as above, but a single script fragment to be evaled but not shown.
14963 finish_eval=$lt_finish_eval
14965 # Take the output of nm and produce a listing of raw symbols and C names.
14966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14968 # Transform the output of nm in a proper C declaration
14969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14971 # Transform the output of nm in a C name address pair
14972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14974 # This is the shared library runtime path variable.
14975 runpath_var=$runpath_var
14977 # This is the shared library path variable.
14978 shlibpath_var=$shlibpath_var
14980 # Is shlibpath searched before the hard-coded library search path?
14981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14983 # How to hardcode a shared library path into an executable.
14984 hardcode_action=$hardcode_action_CXX
14986 # Whether we should hardcode library paths into libraries.
14987 hardcode_into_libs=$hardcode_into_libs
14989 # Flag to hardcode \$libdir into a binary during linking.
14990 # This must work even if \$libdir does not exist.
14991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14993 # If ld is used when linking, flag to hardcode \$libdir into
14994 # a binary during linking. This must work even if \$libdir does
14996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14998 # Whether we need a single -rpath flag with a separated argument.
14999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15002 # resulting binary.
15003 hardcode_direct=$hardcode_direct_CXX
15005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15006 # resulting binary.
15007 hardcode_minus_L=$hardcode_minus_L_CXX
15009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15010 # the resulting binary.
15011 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15013 # Set to yes if building a shared library automatically hardcodes DIR into the library
15014 # and all subsequent libraries and executables linked against it.
15015 hardcode_automatic=$hardcode_automatic_CXX
15017 # Variables whose values should be saved in libtool wrapper scripts and
15018 # restored at relink time.
15019 variables_saved_for_relink="$variables_saved_for_relink"
15021 # Whether libtool must link a program against all its dependency libraries.
15022 link_all_deplibs=$link_all_deplibs_CXX
15024 # Compile-time system search path for libraries
15025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15027 # Run-time system search path for libraries
15028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15030 # Fix the shell variable \$srcfile for the compiler.
15031 fix_srcfile_path="$fix_srcfile_path_CXX"
15033 # Set to yes if exported symbols are required.
15034 always_export_symbols=$always_export_symbols_CXX
15036 # The commands to list exported symbols.
15037 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15039 # The commands to extract the exported symbol list from a shared archive.
15040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15042 # Symbols that should not be listed in the preloaded symbols.
15043 exclude_expsyms=$lt_exclude_expsyms_CXX
15045 # Symbols that must always be exported.
15046 include_expsyms=$lt_include_expsyms_CXX
15048 # ### END LIBTOOL TAG CONFIG: $tagname
15054 # If there is no Makefile yet, we rely on a make rule to execute
15055 # `config.status --recheck' to rerun these tests and create the
15056 # libtool script then.
15057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15058 if test -f "$ltmain_in"; then
15059 test -f Makefile && make "$ltmain"
15065 ac_cpp='$CPP $CPPFLAGS'
15066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15074 with_gnu_ldcxx=$with_gnu_ld
15075 with_gnu_ld=$lt_save_with_gnu_ld
15076 lt_cv_path_LDCXX=$lt_cv_path_LD
15077 lt_cv_path_LD=$lt_save_path_LD
15078 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15079 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15087 if test -n "$F77" && test "X$F77" != "Xno"; then
15090 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15091 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15092 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15095 archive_cmds_need_lc_F77=no
15096 allow_undefined_flag_F77=
15097 always_export_symbols_F77=no
15098 archive_expsym_cmds_F77=
15099 export_dynamic_flag_spec_F77=
15100 hardcode_direct_F77=no
15101 hardcode_libdir_flag_spec_F77=
15102 hardcode_libdir_flag_spec_ld_F77=
15103 hardcode_libdir_separator_F77=
15104 hardcode_minus_L_F77=no
15105 hardcode_automatic_F77=no
15107 module_expsym_cmds_F77=
15108 link_all_deplibs_F77=unknown
15109 old_archive_cmds_F77=$old_archive_cmds
15110 no_undefined_flag_F77=
15111 whole_archive_flag_spec_F77=
15112 enable_shared_with_static_runtimes_F77=no
15114 # Source file extension for f77 test sources.
15117 # Object file extension for compiled f77 test sources.
15121 # Code to be used in simple compile tests
15122 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15124 # Code to be used in simple link tests
15125 lt_simple_link_test_code=" program t\n end\n"
15127 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15129 # If no C compiler was specified, use CC.
15132 # Allow CC to be a program name with arguments.
15136 # Allow CC to be a program name with arguments.
15141 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15143 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15144 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15145 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15146 echo "${ECHO_T}$can_build_shared" >&6
15148 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15149 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15150 test "$can_build_shared" = "no" && enable_shared=no
15152 # On AIX, shared libraries and static libraries use the same namespace, and
15153 # are all built from PIC.
15156 test "$enable_shared" = yes && enable_static=no
15157 if test -n "$RANLIB"; then
15158 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15159 postinstall_cmds='$RANLIB $lib'
15163 test "$enable_shared" = yes && enable_static=no
15166 echo "$as_me:$LINENO: result: $enable_shared" >&5
15167 echo "${ECHO_T}$enable_shared" >&6
15169 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15170 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15171 # Make sure either enable_shared or enable_static is yes.
15172 test "$enable_shared" = yes || enable_static=yes
15173 echo "$as_me:$LINENO: result: $enable_static" >&5
15174 echo "${ECHO_T}$enable_static" >&6
15176 test "$ld_shlibs_F77" = no && can_build_shared=no
15181 lt_prog_compiler_wl_F77=
15182 lt_prog_compiler_pic_F77=
15183 lt_prog_compiler_static_F77=
15185 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15186 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15188 if test "$GCC" = yes; then
15189 lt_prog_compiler_wl_F77='-Wl,'
15190 lt_prog_compiler_static_F77='-static'
15194 # All AIX code is PIC.
15195 if test "$host_cpu" = ia64; then
15196 # AIX 5 now supports IA64 processor
15197 lt_prog_compiler_static_F77='-Bstatic'
15202 # FIXME: we need at least 68020 code to build shared libraries, but
15203 # adding the `-m68020' flag to GCC prevents building anything better,
15205 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15208 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15209 # PIC is the default for these OSes.
15212 mingw* | pw32* | os2*)
15213 # This hack is so that the source file can tell whether it is being
15214 # built for inclusion in a dll (and should export symbols for example).
15215 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15218 darwin* | rhapsody*)
15219 # PIC is the default on this platform
15220 # Common symbols not allowed in MH_DYLIB files
15221 lt_prog_compiler_pic_F77='-fno-common'
15225 # Just because we use GCC doesn't mean we suddenly get shared libraries
15226 # on systems that don't support them.
15227 lt_prog_compiler_can_build_shared_F77=no
15232 if test -d /usr/nec; then
15233 lt_prog_compiler_pic_F77=-Kconform_pic
15238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15239 # not for PA HP-UX.
15240 case "$host_cpu" in
15245 lt_prog_compiler_pic_F77='-fPIC'
15251 lt_prog_compiler_pic_F77='-fPIC'
15255 # PORTME Check for flag to pass linker flags through the system compiler.
15258 lt_prog_compiler_wl_F77='-Wl,'
15259 if test "$host_cpu" = ia64; then
15260 # AIX 5 now supports IA64 processor
15261 lt_prog_compiler_static_F77='-Bstatic'
15263 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15267 mingw* | pw32* | os2*)
15268 # This hack is so that the source file can tell whether it is being
15269 # built for inclusion in a dll (and should export symbols for example).
15270 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15273 hpux9* | hpux10* | hpux11*)
15274 lt_prog_compiler_wl_F77='-Wl,'
15275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15276 # not for PA HP-UX.
15277 case "$host_cpu" in
15282 lt_prog_compiler_pic_F77='+Z'
15285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15286 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15289 irix5* | irix6* | nonstopux*)
15290 lt_prog_compiler_wl_F77='-Wl,'
15291 # PIC (with -KPIC) is the default.
15292 lt_prog_compiler_static_F77='-non_shared'
15296 lt_prog_compiler_pic_F77='-KPIC'
15297 lt_prog_compiler_static_F77='-Bstatic'
15303 lt_prog_compiler_wl_F77='-Wl,'
15304 lt_prog_compiler_pic_F77='-KPIC'
15305 lt_prog_compiler_static_F77='-static'
15308 lt_prog_compiler_wl_F77='-Wl,'
15309 # All Alpha code is PIC.
15310 lt_prog_compiler_static_F77='-non_shared'
15315 osf3* | osf4* | osf5*)
15316 lt_prog_compiler_wl_F77='-Wl,'
15317 # All OSF/1 code is PIC.
15318 lt_prog_compiler_static_F77='-non_shared'
15322 lt_prog_compiler_pic_F77='-Kpic'
15323 lt_prog_compiler_static_F77='-dn'
15327 lt_prog_compiler_wl_F77='-Wl,'
15328 lt_prog_compiler_pic_F77='-KPIC'
15329 lt_prog_compiler_static_F77='-Bstatic'
15333 lt_prog_compiler_wl_F77='-Qoption ld '
15334 lt_prog_compiler_pic_F77='-PIC'
15335 lt_prog_compiler_static_F77='-Bstatic'
15338 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15339 lt_prog_compiler_wl_F77='-Wl,'
15340 lt_prog_compiler_pic_F77='-KPIC'
15341 lt_prog_compiler_static_F77='-Bstatic'
15345 if test -d /usr/nec ;then
15346 lt_prog_compiler_pic_F77='-Kconform_pic'
15347 lt_prog_compiler_static_F77='-Bstatic'
15352 lt_prog_compiler_pic_F77='-pic'
15353 lt_prog_compiler_static_F77='-Bstatic'
15357 lt_prog_compiler_can_build_shared_F77=no
15362 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15363 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15366 # Check to make sure the PIC flag actually works.
15368 if test -n "$lt_prog_compiler_pic_F77"; then
15370 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15371 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15372 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 lt_prog_compiler_pic_works_F77=no
15376 ac_outfile=conftest.$ac_objext
15377 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15378 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15379 # Insert the option either (1) after the last *FLAGS variable, or
15380 # (2) before a word containing "conftest.", or (3) at the end.
15381 # Note that $ac_compile itself does not contain backslashes and begins
15382 # with a dollar sign (not a hyphen), so the echo should work correctly.
15383 # The option is referenced via a variable to avoid confusing sed.
15384 lt_compile=`echo "$ac_compile" | $SED \
15385 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15387 -e 's:$: $lt_compiler_flag:'`
15388 (eval echo "\"\$as_me:15388: $lt_compile\"" >&5)
15389 (eval "$lt_compile" 2>conftest.err)
15391 cat conftest.err >&5
15392 echo "$as_me:15392: \$? = $ac_status" >&5
15393 if (exit $ac_status) && test -s "$ac_outfile"; then
15394 # The compiler can only warn and ignore the option if not recognized
15395 # So say no if there are warnings
15396 if test ! -s conftest.err; then
15397 lt_prog_compiler_pic_works_F77=yes
15403 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15404 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15406 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15407 case $lt_prog_compiler_pic_F77 in
15409 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15412 lt_prog_compiler_pic_F77=
15413 lt_prog_compiler_can_build_shared_F77=no
15418 # For platforms which do not support PIC, -DPIC is meaningless:
15420 lt_prog_compiler_pic_F77=
15423 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15427 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15428 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15429 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 lt_cv_prog_compiler_c_o_F77=no
15433 $rm -r conftest 2>/dev/null
15437 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15439 lt_compiler_flag="-o out/conftest2.$ac_objext"
15440 # Insert the option either (1) after the last *FLAGS variable, or
15441 # (2) before a word containing "conftest.", or (3) at the end.
15442 # Note that $ac_compile itself does not contain backslashes and begins
15443 # with a dollar sign (not a hyphen), so the echo should work correctly.
15444 lt_compile=`echo "$ac_compile" | $SED \
15445 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15447 -e 's:$: $lt_compiler_flag:'`
15448 (eval echo "\"\$as_me:15448: $lt_compile\"" >&5)
15449 (eval "$lt_compile" 2>out/conftest.err)
15451 cat out/conftest.err >&5
15452 echo "$as_me:15452: \$? = $ac_status" >&5
15453 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15455 # The compiler can only warn and ignore the option if not recognized
15456 # So say no if there are warnings
15457 if test ! -s out/conftest.err; then
15458 lt_cv_prog_compiler_c_o_F77=yes
15463 # SGI C++ compiler will create directory out/ii_files/ for
15464 # template instantiation
15465 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15466 $rm out/* && rmdir out
15472 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15473 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15476 hard_links="nottested"
15477 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15478 # do not overwrite the value of need_locks provided by the user
15479 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15480 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15485 ln conftest.a conftest.b 2>&5 || hard_links=no
15486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15487 echo "$as_me:$LINENO: result: $hard_links" >&5
15488 echo "${ECHO_T}$hard_links" >&6
15489 if test "$hard_links" = no; then
15490 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15491 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15498 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15499 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15502 allow_undefined_flag_F77=
15503 enable_shared_with_static_runtimes_F77=no
15505 archive_expsym_cmds_F77=
15506 old_archive_From_new_cmds_F77=
15507 old_archive_from_expsyms_cmds_F77=
15508 export_dynamic_flag_spec_F77=
15509 whole_archive_flag_spec_F77=
15510 thread_safe_flag_spec_F77=
15511 hardcode_libdir_flag_spec_F77=
15512 hardcode_libdir_flag_spec_ld_F77=
15513 hardcode_libdir_separator_F77=
15514 hardcode_direct_F77=no
15515 hardcode_minus_L_F77=no
15516 hardcode_shlibpath_var_F77=unsupported
15517 link_all_deplibs_F77=unknown
15518 hardcode_automatic_F77=no
15520 module_expsym_cmds_F77=
15521 always_export_symbols_F77=no
15522 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15523 # include_expsyms should be a list of space-separated symbols to be *always*
15524 # included in the symbol list
15525 include_expsyms_F77=
15526 # exclude_expsyms can be an extended regexp of symbols to exclude
15527 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15528 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15529 # as well as any symbol that contains `d'.
15530 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15531 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15532 # platforms (ab)use it in PIC code, but their linkers get confused if
15533 # the symbol is explicitly referenced. Since portable code cannot
15534 # rely on this symbol name, it's probably fine to never include it in
15535 # preloaded symbol tables.
15536 extract_expsyms_cmds=
15539 cygwin* | mingw* | pw32*)
15540 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15541 # When not using gcc, we currently assume that we are using
15542 # Microsoft Visual C++.
15543 if test "$GCC" != yes; then
15553 if test "$with_gnu_ld" = yes; then
15554 # If archive_cmds runs LD, not CC, wlarc should be empty
15557 # See if GNU ld supports shared libraries.
15559 aix3* | aix4* | aix5*)
15560 # On AIX/PPC, the GNU linker is very broken
15561 if test "$host_cpu" != ia64; then
15565 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15566 *** to be unable to reliably create shared libraries on AIX.
15567 *** Therefore, libtool is disabling shared libraries support. If you
15568 *** really care for shared libraries, you may want to modify your PATH
15569 *** so that a non-GNU linker is found, and then restart.
15576 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)'
15577 hardcode_libdir_flag_spec_F77='-L$libdir'
15578 hardcode_minus_L_F77=yes
15580 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15581 # that the semantics of dynamic libraries on AmigaOS, at least up
15582 # to version 4, is to share data among multiple programs linked
15583 # with the same dynamic library. Since this doesn't match the
15584 # behavior of shared libraries on other platforms, we can't use
15590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15591 allow_undefined_flag_F77=unsupported
15592 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15593 # support --undefined. This deserves some investigation. FIXME
15594 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15600 cygwin* | mingw* | pw32*)
15601 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15602 # as there is no search path for DLLs.
15603 hardcode_libdir_flag_spec_F77='-L$libdir'
15604 allow_undefined_flag_F77=unsupported
15605 always_export_symbols_F77=no
15606 enable_shared_with_static_runtimes_F77=yes
15607 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15609 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15610 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15611 # If the export-symbols file already is a .def file (1st line
15612 # is EXPORTS), use it as is; otherwise, prepend...
15613 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15614 cp $export_symbols $output_objdir/$soname.def;
15616 echo EXPORTS > $output_objdir/$soname.def;
15617 cat $export_symbols >> $output_objdir/$soname.def;
15619 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15627 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15630 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15631 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15636 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15641 *** create shared libraries on Solaris systems. Therefore, libtool
15642 *** is disabling shared libraries support. We urge you to upgrade GNU
15643 *** binutils to release 2.9.1 or newer. Another option is to modify
15644 *** your PATH or compiler configuration so that the native linker is
15645 *** used, and then restart.
15648 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15649 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15650 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15657 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15659 hardcode_direct_F77=yes
15660 hardcode_shlibpath_var_F77=no
15664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15665 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15666 archive_cmds_F77="$tmp_archive_cmds"
15667 supports_anon_versioning=no
15668 case `$LD -v 2>/dev/null` in
15669 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15670 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15671 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15672 *\ 2.11.*) ;; # other 2.11 versions
15673 *) supports_anon_versioning=yes ;;
15675 if test $supports_anon_versioning = yes; then
15676 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15677 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15678 $echo "local: *; };" >> $output_objdir/$libname.ver~
15679 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15681 archive_expsym_cmds_F77="$tmp_archive_cmds"
15689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15690 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15691 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15698 if test "$ld_shlibs_F77" = yes; then
15699 runpath_var=LD_RUN_PATH
15700 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15701 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15702 # ancient GNU ld didn't support --whole-archive et. al.
15703 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15704 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15706 whole_archive_flag_spec_F77=
15710 # PORTME fill in a description of your system's linker (not GNU ld)
15713 allow_undefined_flag_F77=unsupported
15714 always_export_symbols_F77=yes
15715 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'
15716 # Note: this linker hardcodes the directories in LIBPATH if there
15717 # are no directories specified by -L.
15718 hardcode_minus_L_F77=yes
15719 if test "$GCC" = yes && test -z "$link_static_flag"; then
15720 # Neither direct hardcoding nor static linking is supported with a
15722 hardcode_direct_F77=unsupported
15727 if test "$host_cpu" = ia64; then
15728 # On IA64, the linker does run time linking by default, so we don't
15729 # have to do anything special.
15730 aix_use_runtimelinking=no
15731 exp_sym_flag='-Bexport'
15734 # If we're using GNU nm, then we don't want the "-C" option.
15735 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15736 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15737 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'
15739 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'
15741 aix_use_runtimelinking=no
15743 # Test if we are trying to use run time linking or normal
15744 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15745 # need to do runtime linking.
15746 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15747 for ld_flag in $LDFLAGS; do
15748 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15749 aix_use_runtimelinking=yes
15755 exp_sym_flag='-bexport'
15756 no_entry_flag='-bnoentry'
15759 # When large executables or shared objects are built, AIX ld can
15760 # have problems creating the table of contents. If linking a library
15761 # or program results in "error TOC overflow" add -mminimal-toc to
15762 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15763 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15765 archive_cmds_F77=''
15766 hardcode_direct_F77=yes
15767 hardcode_libdir_separator_F77=':'
15768 link_all_deplibs_F77=yes
15770 if test "$GCC" = yes; then
15771 case $host_os in aix4.012|aix4.012.*)
15772 # We only want to do this on AIX 4.2 and lower, the check
15773 # below for broken collect2 doesn't work under 4.3+
15774 collect2name=`${CC} -print-prog-name=collect2`
15775 if test -f "$collect2name" && \
15776 strings "$collect2name" | grep resolve_lib_name >/dev/null
15778 # We have reworked collect2
15779 hardcode_direct_F77=yes
15781 # We have old collect2
15782 hardcode_direct_F77=unsupported
15783 # It fails to find uninstalled libraries when the uninstalled
15784 # path is not listed in the libpath. Setting hardcode_minus_L
15785 # to unsupported forces relinking
15786 hardcode_minus_L_F77=yes
15787 hardcode_libdir_flag_spec_F77='-L$libdir'
15788 hardcode_libdir_separator_F77=
15791 shared_flag='-shared'
15794 if test "$host_cpu" = ia64; then
15795 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15796 # chokes on -Wl,-G. The following line is correct:
15799 if test "$aix_use_runtimelinking" = yes; then
15800 shared_flag='${wl}-G'
15802 shared_flag='${wl}-bM:SRE'
15807 # It seems that -bexpall does not export symbols beginning with
15808 # underscore (_), so it is better to generate a list of symbols to export.
15809 always_export_symbols_F77=yes
15810 if test "$aix_use_runtimelinking" = yes; then
15811 # Warning - without using the other runtime loading flags (-brtl),
15812 # -berok will link without error, but may produce a broken library.
15813 allow_undefined_flag_F77='-berok'
15814 # Determine the default libpath from the value encoded in an empty executable.
15815 cat >conftest.$ac_ext <<_ACEOF
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15822 (eval $ac_link) 2>conftest.er1
15824 grep -v '^ *+' conftest.er1 >conftest.err
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -z "$ac_f77_werror_flag"
15830 || test ! -s conftest.err'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } &&
15836 { ac_try='test -s conftest$ac_exeext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15845 # Check for a 64-bit object if we didn't find anything.
15846 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; }
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15853 rm -f conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15857 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15858 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"
15860 if test "$host_cpu" = ia64; then
15861 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15862 allow_undefined_flag_F77="-z nodefs"
15863 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"
15865 # Determine the default libpath from the value encoded in an empty executable.
15866 cat >conftest.$ac_ext <<_ACEOF
15871 rm -f conftest.$ac_objext conftest$ac_exeext
15872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15873 (eval $ac_link) 2>conftest.er1
15875 grep -v '^ *+' conftest.er1 >conftest.err
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } &&
15880 { ac_try='test -z "$ac_f77_werror_flag"
15881 || test ! -s conftest.err'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; } &&
15887 { ac_try='test -s conftest$ac_exeext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15896 # Check for a 64-bit object if we didn't find anything.
15897 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; }
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15904 rm -f conftest.err conftest.$ac_objext \
15905 conftest$ac_exeext conftest.$ac_ext
15906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15908 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15909 # Warning - without using the other run time loading flags,
15910 # -berok will link without error, but may produce a broken library.
15911 no_undefined_flag_F77=' ${wl}-bernotok'
15912 allow_undefined_flag_F77=' ${wl}-berok'
15913 # -bexpall does not export symbols beginning with underscore (_)
15914 always_export_symbols_F77=yes
15915 # Exported symbols can be pulled into shared objects from archives
15916 whole_archive_flag_spec_F77=' '
15917 archive_cmds_need_lc_F77=yes
15918 # This is similar to how AIX traditionally builds it's shared libraries.
15919 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'
15925 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)'
15926 hardcode_libdir_flag_spec_F77='-L$libdir'
15927 hardcode_minus_L_F77=yes
15928 # see comment about different semantics on the GNU ld section
15933 export_dynamic_flag_spec_F77=-rdynamic
15936 cygwin* | mingw* | pw32*)
15937 # When not using gcc, we currently assume that we are using
15938 # Microsoft Visual C++.
15939 # hardcode_libdir_flag_spec is actually meaningless, as there is
15940 # no search path for DLLs.
15941 hardcode_libdir_flag_spec_F77=' '
15942 allow_undefined_flag_F77=unsupported
15943 # Tell ltmain to make .lib files, not .a files.
15945 # Tell ltmain to make .dll files, not .so files.
15947 # FIXME: Setting linknames here is a bad hack.
15948 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15949 # The linker will automatically build a .lib file if we build a DLL.
15950 old_archive_From_new_cmds_F77='true'
15951 # FIXME: Should let the user specify the lib program.
15952 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15953 fix_srcfile_path='`cygpath -w "$srcfile"`'
15954 enable_shared_with_static_runtimes_F77=yes
15957 darwin* | rhapsody*)
15958 if test "$GXX" = yes ; then
15959 archive_cmds_need_lc_F77=no
15961 rhapsody* | darwin1.[012])
15962 allow_undefined_flag_F77='-undefined suppress'
15965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15966 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15968 case ${MACOSX_DEPLOYMENT_TARGET} in
15970 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15973 allow_undefined_flag_F77='-undefined dynamic_lookup'
15979 lt_int_apple_cc_single_mod=no
15980 output_verbose_link_cmd='echo'
15981 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15982 lt_int_apple_cc_single_mod=yes
15984 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15985 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15987 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'
15989 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15990 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15991 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15992 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}'
15994 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}'
15996 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}'
15997 hardcode_direct_F77=no
15998 hardcode_automatic_F77=yes
15999 hardcode_shlibpath_var_F77=unsupported
16000 whole_archive_flag_spec_F77='-all_load $convenience'
16001 link_all_deplibs_F77=yes
16008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009 hardcode_libdir_flag_spec_F77='-L$libdir'
16010 hardcode_shlibpath_var_F77=no
16017 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16018 # support. Future versions do this automatically, but an explicit c++rt0.o
16019 # does not break anything, and helps significantly (at the cost of a little
16022 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16023 hardcode_libdir_flag_spec_F77='-R$libdir'
16024 hardcode_direct_F77=yes
16025 hardcode_shlibpath_var_F77=no
16028 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16030 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16031 hardcode_direct_F77=yes
16032 hardcode_minus_L_F77=yes
16033 hardcode_shlibpath_var_F77=no
16036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16037 freebsd* | kfreebsd*-gnu)
16038 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16039 hardcode_libdir_flag_spec_F77='-R$libdir'
16040 hardcode_direct_F77=yes
16041 hardcode_shlibpath_var_F77=no
16045 if test "$GCC" = yes; then
16046 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'
16048 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'
16050 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16051 hardcode_libdir_separator_F77=:
16052 hardcode_direct_F77=yes
16054 # hardcode_minus_L: Not really in the search PATH,
16055 # but as the default location of the library.
16056 hardcode_minus_L_F77=yes
16057 export_dynamic_flag_spec_F77='${wl}-E'
16061 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16062 case "$host_cpu" in
16064 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16067 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16071 case "$host_cpu" in
16073 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16076 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16080 if test "$with_gnu_ld" = no; then
16081 case "$host_cpu" in
16083 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16084 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16085 hardcode_libdir_separator_F77=:
16086 hardcode_direct_F77=no
16087 hardcode_shlibpath_var_F77=no
16090 hardcode_libdir_flag_spec_F77='-L$libdir'
16091 hardcode_direct_F77=no
16092 hardcode_shlibpath_var_F77=no
16094 # hardcode_minus_L: Not really in the search PATH,
16095 # but as the default location of the library.
16096 hardcode_minus_L_F77=yes
16099 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16100 hardcode_libdir_separator_F77=:
16101 hardcode_direct_F77=yes
16102 export_dynamic_flag_spec_F77='${wl}-E'
16104 # hardcode_minus_L: Not really in the search PATH,
16105 # but as the default location of the library.
16106 hardcode_minus_L_F77=yes
16112 irix5* | irix6* | nonstopux*)
16113 if test "$GCC" = yes; then
16114 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'
16116 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'
16117 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16120 hardcode_libdir_separator_F77=:
16121 link_all_deplibs_F77=yes
16125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16126 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16128 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16130 hardcode_libdir_flag_spec_F77='-R$libdir'
16131 hardcode_direct_F77=yes
16132 hardcode_shlibpath_var_F77=no
16136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137 hardcode_direct_F77=yes
16138 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16139 hardcode_libdir_separator_F77=:
16140 hardcode_shlibpath_var_F77=no
16144 hardcode_direct_F77=yes
16145 hardcode_shlibpath_var_F77=no
16146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16147 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16148 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16149 export_dynamic_flag_spec_F77='${wl}-E'
16152 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16153 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16154 hardcode_libdir_flag_spec_F77='-R$libdir'
16157 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16158 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16165 hardcode_libdir_flag_spec_F77='-L$libdir'
16166 hardcode_minus_L_F77=yes
16167 allow_undefined_flag_F77=unsupported
16168 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'
16169 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16173 if test "$GCC" = yes; then
16174 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16175 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'
16177 allow_undefined_flag_F77=' -expect_unresolved \*'
16178 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'
16180 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16181 hardcode_libdir_separator_F77=:
16184 osf4* | osf5*) # as osf3* with the addition of -msym flag
16185 if test "$GCC" = yes; then
16186 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16187 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'
16188 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16190 allow_undefined_flag_F77=' -expect_unresolved \*'
16191 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'
16192 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~
16193 $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'
16195 # Both c and cxx compiler support -rpath directly
16196 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16198 hardcode_libdir_separator_F77=:
16202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_shlibpath_var_F77=no
16204 export_dynamic_flag_spec_F77='${wl}-Bexport'
16205 runpath_var=LD_RUN_PATH
16206 hardcode_runpath_var=yes
16210 no_undefined_flag_F77=' -z text'
16211 if test "$GCC" = yes; then
16212 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16213 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16214 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16216 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16217 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16220 hardcode_libdir_flag_spec_F77='-R$libdir'
16221 hardcode_shlibpath_var_F77=no
16223 solaris2.[0-5] | solaris2.[0-5].*) ;;
16224 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16225 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16227 link_all_deplibs_F77=yes
16231 if test "x$host_vendor" = xsequent; then
16232 # Use $CC to link under sequent, because it throws in some extra .o
16233 # files that make .init and .fini sections work.
16234 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16236 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16238 hardcode_libdir_flag_spec_F77='-L$libdir'
16239 hardcode_direct_F77=yes
16240 hardcode_minus_L_F77=yes
16241 hardcode_shlibpath_var_F77=no
16245 case $host_vendor in
16247 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16248 hardcode_direct_F77=yes # is this really true???
16251 ## LD is ld it makes a PLAMLIB
16252 ## CC just makes a GrossModule.
16253 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16254 reload_cmds_F77='$CC -r -o $output$reload_objs'
16255 hardcode_direct_F77=no
16258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16262 runpath_var='LD_RUN_PATH'
16263 hardcode_shlibpath_var_F77=no
16267 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268 hardcode_shlibpath_var_F77=no
16269 export_dynamic_flag_spec_F77='-Bexport'
16273 if test -d /usr/nec; then
16274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16275 hardcode_shlibpath_var_F77=no
16276 runpath_var=LD_RUN_PATH
16277 hardcode_runpath_var=yes
16283 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16284 hardcode_direct_F77=yes
16285 hardcode_minus_L_F77=no
16286 hardcode_shlibpath_var_F77=no
16287 hardcode_runpath_var=yes
16288 runpath_var=LD_RUN_PATH
16291 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16292 no_undefined_flag_F77='${wl}-z ${wl}text'
16293 if test "$GCC" = yes; then
16294 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16296 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16298 runpath_var='LD_RUN_PATH'
16299 hardcode_shlibpath_var_F77=no
16303 no_undefined_flag_F77=' -z text'
16304 # $CC -shared without GNU ld will not create a library from C++
16305 # object files and a static libstdc++, better avoid it by now
16306 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16307 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16309 hardcode_libdir_flag_spec_F77=
16310 hardcode_shlibpath_var_F77=no
16311 runpath_var='LD_RUN_PATH'
16315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16316 hardcode_libdir_flag_spec_F77='-L$libdir'
16317 hardcode_shlibpath_var_F77=no
16326 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16327 echo "${ECHO_T}$ld_shlibs_F77" >&6
16328 test "$ld_shlibs_F77" = no && can_build_shared=no
16330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16331 if test "$GCC" = yes; then
16332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16336 # Do we need to explicitly link libc?
16338 case "x$archive_cmds_need_lc_F77" in
16340 # Assume -lc should be added
16341 archive_cmds_need_lc_F77=yes
16343 if test "$enable_shared" = yes && test "$GCC" = yes; then
16344 case $archive_cmds_F77 in
16346 # FIXME: we may have to deal with multi-command sequences.
16349 # Test whether the compiler implicitly links with -lc since on some
16350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16351 # to ld, don't add -lc before -lgcc.
16352 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16353 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16358 (eval $ac_compile) 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } 2>conftest.err; then
16364 libobjs=conftest.$ac_objext
16366 wl=$lt_prog_compiler_wl_F77
16372 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16373 allow_undefined_flag_F77=
16374 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16375 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }
16380 archive_cmds_need_lc_F77=no
16382 archive_cmds_need_lc_F77=yes
16384 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16386 cat conftest.err 1>&5
16389 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16390 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16397 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16398 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16399 library_names_spec=
16400 libname_spec='lib$name'
16404 postuninstall_cmds=
16408 shlibpath_overrides_runpath=unknown
16410 dynamic_linker="$host_os ld.so"
16411 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16412 if test "$GCC" = yes; then
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 ';' >/dev/null ; then
16415 # if the path contains ";" then we assume it to be the separator
16416 # otherwise default to the standard path separator (i.e. ":") - it is
16417 # assumed that no part of a normal pathname contains ";" but that should
16418 # okay in the real world where ";" in dirpaths is itself problematic.
16419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16426 need_lib_prefix=unknown
16427 hardcode_into_libs=no
16429 # when you set need_version to no, make sure it does not cause -set_version
16430 # flags to be left without arguments
16431 need_version=unknown
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16437 shlibpath_var=LIBPATH
16439 # AIX 3 has no versioning support, so we append a major version to the name.
16440 soname_spec='${libname}${release}${shared_ext}$major'
16447 hardcode_into_libs=yes
16448 if test "$host_cpu" = ia64; then
16449 # AIX 5 supports IA64
16450 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16451 shlibpath_var=LD_LIBRARY_PATH
16453 # With GCC up to 2.95.x, collect2 would create an import file
16454 # for dependence libraries. The import file would start with
16455 # the line `#! .'. This would cause the generated library to
16456 # depend on `.', always an invalid library. This was fixed in
16457 # development snapshots of GCC prior to 3.0.
16459 aix4 | aix4.[01] | aix4.[01].*)
16460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16462 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16465 can_build_shared=no
16469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16470 # soname into executable. Probably we can add versioning support to
16471 # collect2, so additional links can be useful in future.
16472 if test "$aix_use_runtimelinking" = yes; then
16473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16474 # instead of lib<name>.a to let people know that these are not
16475 # typical AIX shared libraries.
16476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16478 # We preserve .a as extension for shared libraries through AIX4.2
16479 # and later when we are not doing run time linking.
16480 library_names_spec='${libname}${release}.a $libname.a'
16481 soname_spec='${libname}${release}${shared_ext}$major'
16483 shlibpath_var=LIBPATH
16488 library_names_spec='$libname.ixlibrary $libname.a'
16489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16490 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'
16494 library_names_spec='${libname}${shared_ext}'
16495 dynamic_linker="$host_os ld.so"
16496 shlibpath_var=LIBRARY_PATH
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 soname_spec='${libname}${release}${shared_ext}$major'
16504 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16505 shlibpath_var=LD_LIBRARY_PATH
16506 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16507 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16508 # the default ld.so.conf also contains /usr/contrib/lib and
16509 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16510 # libtool to hard-code these into programs
16513 cygwin* | mingw* | pw32*)
16514 version_type=windows
16519 case $GCC,$host_os in
16520 yes,cygwin* | yes,mingw* | yes,pw32*)
16521 library_names_spec='$libname.dll.a'
16522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16523 postinstall_cmds='base_file=`basename \${file}`~
16524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16525 dldir=$destdir/`dirname \$dlpath`~
16526 test -d \$dldir || mkdir -p \$dldir~
16527 $install_prog $dir/$dlname \$dldir/$dlname'
16528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16529 dlpath=$dir/\$dldll~
16531 shlibpath_overrides_runpath=yes
16535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16537 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16540 # MinGW DLLs use traditional 'lib' prefix
16541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16543 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16544 # It is most probably a Windows format PATH printed by
16545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16546 # path with ; separators, and with drive letters. We can handle the
16547 # drive letters (cygwin fileutils understands them), so leave them,
16548 # especially as we might pass files found there to a mingw objdump,
16549 # which wouldn't understand a cygwinified path. Ahh.
16550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16556 # pw32 DLLs use 'pw' prefix rather than 'lib'
16557 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16563 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16566 dynamic_linker='Win32 ld.exe'
16567 # FIXME: first we should search . and the directory the executable is in
16571 darwin* | rhapsody*)
16572 dynamic_linker="$host_os dyld"
16573 version_type=darwin
16576 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16577 soname_spec='${libname}${release}${major}$shared_ext'
16578 shlibpath_overrides_runpath=yes
16579 shlibpath_var=DYLD_LIBRARY_PATH
16580 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16581 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16582 if test "$GCC" = yes; then
16583 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"`
16585 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16595 soname_spec='${libname}${release}${shared_ext}$major'
16596 shlibpath_var=LD_LIBRARY_PATH
16607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16608 soname_spec='${libname}${release}${shared_ext}$major'
16609 shlibpath_var=LD_LIBRARY_PATH
16610 shlibpath_overrides_runpath=no
16611 hardcode_into_libs=yes
16612 dynamic_linker='GNU ld.so'
16616 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16617 version_type=freebsd-$objformat
16618 case $version_type in
16620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16629 shlibpath_var=LD_LIBRARY_PATH
16632 shlibpath_overrides_runpath=yes
16634 freebsd3.01* | freebsdelf3.01*)
16635 shlibpath_overrides_runpath=yes
16636 hardcode_into_libs=yes
16639 shlibpath_overrides_runpath=no
16640 hardcode_into_libs=yes
16649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16650 soname_spec='${libname}${release}${shared_ext}$major'
16651 shlibpath_var=LD_LIBRARY_PATH
16652 hardcode_into_libs=yes
16655 hpux9* | hpux10* | hpux11*)
16656 # Give a soname corresponding to the major version so that dld.sl refuses to
16657 # link against other versions.
16661 case "$host_cpu" in
16664 hardcode_into_libs=yes
16665 dynamic_linker="$host_os dld.so"
16666 shlibpath_var=LD_LIBRARY_PATH
16667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16669 soname_spec='${libname}${release}${shared_ext}$major'
16670 if test "X$HPUX_IA64_MODE" = X32; then
16671 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16673 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16679 hardcode_into_libs=yes
16680 dynamic_linker="$host_os dld.sl"
16681 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16684 soname_spec='${libname}${release}${shared_ext}$major'
16685 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16690 dynamic_linker="$host_os dld.sl"
16691 shlibpath_var=SHLIB_PATH
16692 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694 soname_spec='${libname}${release}${shared_ext}$major'
16697 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16698 postinstall_cmds='chmod 555 $lib'
16701 irix5* | irix6* | nonstopux*)
16703 nonstopux*) version_type=nonstopux ;;
16705 if test "$lt_cv_prog_gnu_ld" = yes; then
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16716 irix5* | nonstopux*)
16717 libsuff= shlibsuff=
16720 case $LD in # libtool.m4 will add one of these switches to LD
16721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16722 libsuff= shlibsuff= libmagic=32-bit;;
16723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16724 libsuff=32 shlibsuff=N32 libmagic=N32;;
16725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16727 *) libsuff= shlibsuff= libmagic=never-match;;
16731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16732 shlibpath_overrides_runpath=no
16733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16735 hardcode_into_libs=yes
16738 # No shared lib support for Linux oldld, aout, or coff.
16739 linux*oldld* | linux*aout* | linux*coff*)
16743 # This must be Linux ELF.
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath=no
16753 # This implies no fast_install, which is unacceptable.
16754 # Some rework will be needed to allow for fast_install
16755 # before this can be enabled.
16756 hardcode_into_libs=yes
16758 # find out which ABI we are using
16760 case "$host_cpu" in
16761 x86_64*|s390x*|powerpc64*)
16762 echo '#line 16762 "configure"' > conftest.$ac_ext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764 (eval $ac_compile) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; then
16768 case `/usr/bin/file conftest.$ac_objext` in
16771 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16779 # Append ld.so.conf contents to the search path
16780 if test -f /etc/ld.so.conf; then
16781 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16782 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16785 # We used to test for /lib/ld.so.1 and disable shared libraries on
16786 # powerpc, because MkLinux only supported shared libraries with the
16787 # GNU dynamic linker. Since this was broken with cross compilers,
16788 # most powerpc-linux boxes support dynamic linking these days and
16789 # people can always --disable-shared, the test was removed, and we
16790 # assume the GNU/Linux dynamic linker is in use.
16791 dynamic_linker='GNU/Linux ld.so'
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16799 soname_spec='${libname}${release}${shared_ext}$major'
16800 shlibpath_var=LD_LIBRARY_PATH
16801 shlibpath_overrides_runpath=no
16802 hardcode_into_libs=yes
16803 dynamic_linker='GNU ld.so'
16810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16813 dynamic_linker='NetBSD (a.out) ld.so'
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16816 soname_spec='${libname}${release}${shared_ext}$major'
16817 dynamic_linker='NetBSD ld.elf_so'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 shlibpath_overrides_runpath=yes
16821 hardcode_into_libs=yes
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=yes
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 soname_spec='${libname}${release}${shared_ext}$major'
16837 shlibpath_var=LD_LIBRARY_PATH
16838 shlibpath_overrides_runpath=yes
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16847 shlibpath_var=LD_LIBRARY_PATH
16848 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16850 openbsd2.[89] | openbsd2.[89].*)
16851 shlibpath_overrides_runpath=no
16854 shlibpath_overrides_runpath=yes
16858 shlibpath_overrides_runpath=yes
16863 libname_spec='$name'
16866 library_names_spec='$libname${shared_ext} $libname.a'
16867 dynamic_linker='OS/2 ld.exe'
16868 shlibpath_var=LIBPATH
16871 osf3* | osf4* | osf5*)
16875 soname_spec='${libname}${release}${shared_ext}$major'
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16879 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 shlibpath_var=LD_LIBRARY_PATH
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 shlibpath_overrides_runpath=yes
16897 hardcode_into_libs=yes
16898 # ldd complains unless libraries are executable
16899 postinstall_cmds='chmod +x $lib'
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16905 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16906 shlibpath_var=LD_LIBRARY_PATH
16907 shlibpath_overrides_runpath=yes
16908 if test "$with_gnu_ld" = yes; then
16914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 shlibpath_var=LD_LIBRARY_PATH
16919 case $host_vendor in
16921 shlibpath_overrides_runpath=no
16923 export_dynamic_flag_spec='${wl}-Blargedynsym'
16924 runpath_var=LD_RUN_PATH
16932 shlibpath_overrides_runpath=no
16933 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16939 if test -d /usr/nec ;then
16941 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16942 soname_spec='$libname${shared_ext}.$major'
16943 shlibpath_var=LD_LIBRARY_PATH
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LD_LIBRARY_PATH
16958 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16959 echo "${ECHO_T}$dynamic_linker" >&6
16960 test "$dynamic_linker" = no && can_build_shared=no
16962 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16963 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16964 hardcode_action_F77=
16965 if test -n "$hardcode_libdir_flag_spec_F77" || \
16966 test -n "$runpath_var F77" || \
16967 test "X$hardcode_automatic_F77"="Xyes" ; then
16969 # We can hardcode non-existant directories.
16970 if test "$hardcode_direct_F77" != no &&
16971 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16972 # have to relink, otherwise we might link with an installed library
16973 # when we should be linking with a yet-to-be-installed one
16974 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16975 test "$hardcode_minus_L_F77" != no; then
16976 # Linking always hardcodes the temporary library directory.
16977 hardcode_action_F77=relink
16979 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16980 hardcode_action_F77=immediate
16983 # We cannot hardcode anything, or else we can only hardcode existing
16985 hardcode_action_F77=unsupported
16987 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16988 echo "${ECHO_T}$hardcode_action_F77" >&6
16990 if test "$hardcode_action_F77" = relink; then
16991 # Fast installation is not supported
16992 enable_fast_install=no
16993 elif test "$shlibpath_overrides_runpath" = yes ||
16994 test "$enable_shared" = no; then
16995 # Fast installation is not necessary
16996 enable_fast_install=needless
17001 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17002 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17003 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17004 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17005 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17006 echo "$as_me:$LINENO: result: yes" >&5
17007 echo "${ECHO_T}yes" >&6
17009 # FIXME - insert some real tests, host_os isn't really good enough
17012 if test -n "$STRIP" ; then
17013 striplib="$STRIP -x"
17014 echo "$as_me:$LINENO: result: yes" >&5
17015 echo "${ECHO_T}yes" >&6
17017 echo "$as_me:$LINENO: result: no" >&5
17018 echo "${ECHO_T}no" >&6
17022 echo "$as_me:$LINENO: result: no" >&5
17023 echo "${ECHO_T}no" >&6
17030 # The else clause should only fire when bootstrapping the
17031 # libtool distribution, otherwise you forgot to ship ltmain.sh
17032 # with your package, and you will get complaints that there are
17033 # no rules to generate ltmain.sh.
17034 if test -f "$ltmain"; then
17035 # See if we are running on zsh, and set the options which allow our commands through
17036 # without removal of \ escapes.
17037 if test -n "${ZSH_VERSION+set}" ; then
17038 setopt NO_GLOB_SUBST
17040 # Now quote all the things that may contain metacharacters while being
17041 # careful not to overquote the AC_SUBSTed values. We take copies of the
17042 # variables and quote the copies for generation of the libtool script.
17043 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17045 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17046 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17047 deplibs_check_method reload_flag reload_cmds need_locks \
17048 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17049 lt_cv_sys_global_symbol_to_c_name_address \
17050 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17051 old_postinstall_cmds old_postuninstall_cmds \
17055 lt_prog_compiler_wl_F77 \
17056 lt_prog_compiler_pic_F77 \
17057 lt_prog_compiler_static_F77 \
17058 lt_prog_compiler_no_builtin_flag_F77 \
17059 export_dynamic_flag_spec_F77 \
17060 thread_safe_flag_spec_F77 \
17061 whole_archive_flag_spec_F77 \
17062 enable_shared_with_static_runtimes_F77 \
17063 old_archive_cmds_F77 \
17064 old_archive_from_new_cmds_F77 \
17065 predep_objects_F77 \
17066 postdep_objects_F77 \
17069 compiler_lib_search_path_F77 \
17071 archive_expsym_cmds_F77 \
17072 postinstall_cmds_F77 \
17073 postuninstall_cmds_F77 \
17074 old_archive_from_expsyms_cmds_F77 \
17075 allow_undefined_flag_F77 \
17076 no_undefined_flag_F77 \
17077 export_symbols_cmds_F77 \
17078 hardcode_libdir_flag_spec_F77 \
17079 hardcode_libdir_flag_spec_ld_F77 \
17080 hardcode_libdir_separator_F77 \
17081 hardcode_automatic_F77 \
17083 module_expsym_cmds_F77 \
17084 lt_cv_prog_compiler_c_o_F77 \
17085 exclude_expsyms_F77 \
17086 include_expsyms_F77; do
17089 old_archive_cmds_F77 | \
17090 old_archive_from_new_cmds_F77 | \
17091 archive_cmds_F77 | \
17092 archive_expsym_cmds_F77 | \
17093 module_cmds_F77 | \
17094 module_expsym_cmds_F77 | \
17095 old_archive_from_expsyms_cmds_F77 | \
17096 export_symbols_cmds_F77 | \
17097 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17098 postinstall_cmds | postuninstall_cmds | \
17099 old_postinstall_cmds | old_postuninstall_cmds | \
17100 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17101 # Double-quote double-evaled strings.
17102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17111 *'\$0 --fallback-echo"')
17112 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17118 cat <<__EOF__ >> "$cfgfile"
17119 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17121 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17123 # Shell to use when invoking shell scripts.
17126 # Whether or not to build shared libraries.
17127 build_libtool_libs=$enable_shared
17129 # Whether or not to build static libraries.
17130 build_old_libs=$enable_static
17132 # Whether or not to add -lc for building shared libraries.
17133 build_libtool_need_lc=$archive_cmds_need_lc_F77
17135 # Whether or not to disallow shared libs when runtime libs are static
17136 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17138 # Whether or not to optimize for fast installation.
17139 fast_install=$enable_fast_install
17142 host_alias=$host_alias
17145 # An echo program that does not interpret backslashes.
17150 AR_FLAGS=$lt_AR_FLAGS
17155 # A language-specific compiler.
17156 CC=$lt_compiler_F77
17158 # Is the compiler the GNU C compiler?
17164 # The linker used to build libraries.
17167 # Whether we need hard or soft links.
17170 # A BSD-compatible nm program.
17173 # A symbol stripping program
17176 # Used to examine libraries when file_magic_cmd begins "file"
17177 MAGIC_CMD=$MAGIC_CMD
17179 # Used on cygwin: DLL creation program.
17182 # Used on cygwin: object dumper.
17185 # Used on cygwin: assembler.
17188 # The name of the directory that contains temporary libtool files.
17191 # How to create reloadable object files.
17192 reload_flag=$lt_reload_flag
17193 reload_cmds=$lt_reload_cmds
17195 # How to pass a linker flag through the compiler.
17196 wl=$lt_lt_prog_compiler_wl_F77
17198 # Object file suffix (normally "o").
17199 objext="$ac_objext"
17201 # Old archive suffix (normally "a").
17204 # Shared library suffix (normally ".so").
17205 shrext_cmds='$shrext_cmds'
17207 # Executable file suffix (normally "").
17210 # Additional compiler flags for building library objects.
17211 pic_flag=$lt_lt_prog_compiler_pic_F77
17214 # What is the maximum length of a command?
17215 max_cmd_len=$lt_cv_sys_max_cmd_len
17217 # Does compiler simultaneously support -c and -o options?
17218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17220 # Must we lock files when doing compilation ?
17221 need_locks=$lt_need_locks
17223 # Do we need the lib prefix for modules?
17224 need_lib_prefix=$need_lib_prefix
17226 # Do we need a version for libraries?
17227 need_version=$need_version
17229 # Whether dlopen is supported.
17230 dlopen_support=$enable_dlopen
17232 # Whether dlopen of programs is supported.
17233 dlopen_self=$enable_dlopen_self
17235 # Whether dlopen of statically linked programs is supported.
17236 dlopen_self_static=$enable_dlopen_self_static
17238 # Compiler flag to prevent dynamic linking.
17239 link_static_flag=$lt_lt_prog_compiler_static_F77
17241 # Compiler flag to turn off builtin functions.
17242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17244 # Compiler flag to allow reflexive dlopens.
17245 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17247 # Compiler flag to generate shared objects directly from archives.
17248 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17250 # Compiler flag to generate thread-safe objects.
17251 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17253 # Library versioning type.
17254 version_type=$version_type
17256 # Format of library name prefix.
17257 libname_spec=$lt_libname_spec
17259 # List of archive names. First name is the real one, the rest are links.
17260 # The last name is the one that the linker finds with -lNAME.
17261 library_names_spec=$lt_library_names_spec
17263 # The coded name of the library, if different from the real name.
17264 soname_spec=$lt_soname_spec
17266 # Commands used to build and install an old-style archive.
17268 old_archive_cmds=$lt_old_archive_cmds_F77
17269 old_postinstall_cmds=$lt_old_postinstall_cmds
17270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17272 # Create an old-style archive from a shared archive.
17273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17275 # Create a temporary old-style archive to link instead of a shared archive.
17276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17278 # Commands used to build and install a shared archive.
17279 archive_cmds=$lt_archive_cmds_F77
17280 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17281 postinstall_cmds=$lt_postinstall_cmds
17282 postuninstall_cmds=$lt_postuninstall_cmds
17284 # Commands used to build a loadable module (assumed same as above if empty)
17285 module_cmds=$lt_module_cmds_F77
17286 module_expsym_cmds=$lt_module_expsym_cmds_F77
17288 # Commands to strip libraries.
17289 old_striplib=$lt_old_striplib
17290 striplib=$lt_striplib
17292 # Dependencies to place before the objects being linked to create a
17294 predep_objects=$lt_predep_objects_F77
17296 # Dependencies to place after the objects being linked to create a
17298 postdep_objects=$lt_postdep_objects_F77
17300 # Dependencies to place before the objects being linked to create a
17302 predeps=$lt_predeps_F77
17304 # Dependencies to place after the objects being linked to create a
17306 postdeps=$lt_postdeps_F77
17308 # The library search path used internally by the compiler when linking
17309 # a shared library.
17310 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17312 # Method to check whether dependent libraries are shared objects.
17313 deplibs_check_method=$lt_deplibs_check_method
17315 # Command to use when deplibs_check_method == file_magic.
17316 file_magic_cmd=$lt_file_magic_cmd
17318 # Flag that allows shared libraries with undefined symbols to be built.
17319 allow_undefined_flag=$lt_allow_undefined_flag_F77
17321 # Flag that forces no undefined symbols.
17322 no_undefined_flag=$lt_no_undefined_flag_F77
17324 # Commands used to finish a libtool library installation in a directory.
17325 finish_cmds=$lt_finish_cmds
17327 # Same as above, but a single script fragment to be evaled but not shown.
17328 finish_eval=$lt_finish_eval
17330 # Take the output of nm and produce a listing of raw symbols and C names.
17331 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17333 # Transform the output of nm in a proper C declaration
17334 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17336 # Transform the output of nm in a C name address pair
17337 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17339 # This is the shared library runtime path variable.
17340 runpath_var=$runpath_var
17342 # This is the shared library path variable.
17343 shlibpath_var=$shlibpath_var
17345 # Is shlibpath searched before the hard-coded library search path?
17346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17348 # How to hardcode a shared library path into an executable.
17349 hardcode_action=$hardcode_action_F77
17351 # Whether we should hardcode library paths into libraries.
17352 hardcode_into_libs=$hardcode_into_libs
17354 # Flag to hardcode \$libdir into a binary during linking.
17355 # This must work even if \$libdir does not exist.
17356 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17358 # If ld is used when linking, flag to hardcode \$libdir into
17359 # a binary during linking. This must work even if \$libdir does
17361 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17363 # Whether we need a single -rpath flag with a separated argument.
17364 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17366 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17367 # resulting binary.
17368 hardcode_direct=$hardcode_direct_F77
17370 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17371 # resulting binary.
17372 hardcode_minus_L=$hardcode_minus_L_F77
17374 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17375 # the resulting binary.
17376 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17378 # Set to yes if building a shared library automatically hardcodes DIR into the library
17379 # and all subsequent libraries and executables linked against it.
17380 hardcode_automatic=$hardcode_automatic_F77
17382 # Variables whose values should be saved in libtool wrapper scripts and
17383 # restored at relink time.
17384 variables_saved_for_relink="$variables_saved_for_relink"
17386 # Whether libtool must link a program against all its dependency libraries.
17387 link_all_deplibs=$link_all_deplibs_F77
17389 # Compile-time system search path for libraries
17390 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17392 # Run-time system search path for libraries
17393 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17395 # Fix the shell variable \$srcfile for the compiler.
17396 fix_srcfile_path="$fix_srcfile_path_F77"
17398 # Set to yes if exported symbols are required.
17399 always_export_symbols=$always_export_symbols_F77
17401 # The commands to list exported symbols.
17402 export_symbols_cmds=$lt_export_symbols_cmds_F77
17404 # The commands to extract the exported symbol list from a shared archive.
17405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17407 # Symbols that should not be listed in the preloaded symbols.
17408 exclude_expsyms=$lt_exclude_expsyms_F77
17410 # Symbols that must always be exported.
17411 include_expsyms=$lt_include_expsyms_F77
17413 # ### END LIBTOOL TAG CONFIG: $tagname
17419 # If there is no Makefile yet, we rely on a make rule to execute
17420 # `config.status --recheck' to rerun these tests and create the
17421 # libtool script then.
17422 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17423 if test -f "$ltmain_in"; then
17424 test -f Makefile && make "$ltmain"
17430 ac_cpp='$CPP $CPPFLAGS'
17431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17443 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17447 # Source file extension for Java test sources.
17450 # Object file extension for compiled Java test sources.
17454 # Code to be used in simple compile tests
17455 lt_simple_compile_test_code="class foo {}\n"
17457 # Code to be used in simple link tests
17458 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17460 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17462 # If no C compiler was specified, use CC.
17465 # Allow CC to be a program name with arguments.
17469 # Allow CC to be a program name with arguments.
17475 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17476 archive_cmds_need_lc_GCJ=no
17479 ## There is no encapsulation within the following macros, do not change
17480 ## the running order or otherwise move them around unless you know exactly
17481 ## what you are doing...
17483 lt_prog_compiler_no_builtin_flag_GCJ=
17485 if test "$GCC" = yes; then
17486 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17489 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17490 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17491 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17494 lt_cv_prog_compiler_rtti_exceptions=no
17495 ac_outfile=conftest.$ac_objext
17496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17497 lt_compiler_flag="-fno-rtti -fno-exceptions"
17498 # Insert the option either (1) after the last *FLAGS variable, or
17499 # (2) before a word containing "conftest.", or (3) at the end.
17500 # Note that $ac_compile itself does not contain backslashes and begins
17501 # with a dollar sign (not a hyphen), so the echo should work correctly.
17502 # The option is referenced via a variable to avoid confusing sed.
17503 lt_compile=`echo "$ac_compile" | $SED \
17504 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17506 -e 's:$: $lt_compiler_flag:'`
17507 (eval echo "\"\$as_me:17507: $lt_compile\"" >&5)
17508 (eval "$lt_compile" 2>conftest.err)
17510 cat conftest.err >&5
17511 echo "$as_me:17511: \$? = $ac_status" >&5
17512 if (exit $ac_status) && test -s "$ac_outfile"; then
17513 # The compiler can only warn and ignore the option if not recognized
17514 # So say no if there are warnings
17515 if test ! -s conftest.err; then
17516 lt_cv_prog_compiler_rtti_exceptions=yes
17522 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17523 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17525 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17526 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17533 lt_prog_compiler_wl_GCJ=
17534 lt_prog_compiler_pic_GCJ=
17535 lt_prog_compiler_static_GCJ=
17537 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17538 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17540 if test "$GCC" = yes; then
17541 lt_prog_compiler_wl_GCJ='-Wl,'
17542 lt_prog_compiler_static_GCJ='-static'
17546 # All AIX code is PIC.
17547 if test "$host_cpu" = ia64; then
17548 # AIX 5 now supports IA64 processor
17549 lt_prog_compiler_static_GCJ='-Bstatic'
17554 # FIXME: we need at least 68020 code to build shared libraries, but
17555 # adding the `-m68020' flag to GCC prevents building anything better,
17557 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17560 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17561 # PIC is the default for these OSes.
17564 mingw* | pw32* | os2*)
17565 # This hack is so that the source file can tell whether it is being
17566 # built for inclusion in a dll (and should export symbols for example).
17567 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17570 darwin* | rhapsody*)
17571 # PIC is the default on this platform
17572 # Common symbols not allowed in MH_DYLIB files
17573 lt_prog_compiler_pic_GCJ='-fno-common'
17577 # Just because we use GCC doesn't mean we suddenly get shared libraries
17578 # on systems that don't support them.
17579 lt_prog_compiler_can_build_shared_GCJ=no
17584 if test -d /usr/nec; then
17585 lt_prog_compiler_pic_GCJ=-Kconform_pic
17590 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17591 # not for PA HP-UX.
17592 case "$host_cpu" in
17597 lt_prog_compiler_pic_GCJ='-fPIC'
17603 lt_prog_compiler_pic_GCJ='-fPIC'
17607 # PORTME Check for flag to pass linker flags through the system compiler.
17610 lt_prog_compiler_wl_GCJ='-Wl,'
17611 if test "$host_cpu" = ia64; then
17612 # AIX 5 now supports IA64 processor
17613 lt_prog_compiler_static_GCJ='-Bstatic'
17615 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17619 mingw* | pw32* | os2*)
17620 # This hack is so that the source file can tell whether it is being
17621 # built for inclusion in a dll (and should export symbols for example).
17622 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17625 hpux9* | hpux10* | hpux11*)
17626 lt_prog_compiler_wl_GCJ='-Wl,'
17627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17628 # not for PA HP-UX.
17629 case "$host_cpu" in
17634 lt_prog_compiler_pic_GCJ='+Z'
17637 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17638 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17641 irix5* | irix6* | nonstopux*)
17642 lt_prog_compiler_wl_GCJ='-Wl,'
17643 # PIC (with -KPIC) is the default.
17644 lt_prog_compiler_static_GCJ='-non_shared'
17648 lt_prog_compiler_pic_GCJ='-KPIC'
17649 lt_prog_compiler_static_GCJ='-Bstatic'
17655 lt_prog_compiler_wl_GCJ='-Wl,'
17656 lt_prog_compiler_pic_GCJ='-KPIC'
17657 lt_prog_compiler_static_GCJ='-static'
17660 lt_prog_compiler_wl_GCJ='-Wl,'
17661 # All Alpha code is PIC.
17662 lt_prog_compiler_static_GCJ='-non_shared'
17667 osf3* | osf4* | osf5*)
17668 lt_prog_compiler_wl_GCJ='-Wl,'
17669 # All OSF/1 code is PIC.
17670 lt_prog_compiler_static_GCJ='-non_shared'
17674 lt_prog_compiler_pic_GCJ='-Kpic'
17675 lt_prog_compiler_static_GCJ='-dn'
17679 lt_prog_compiler_wl_GCJ='-Wl,'
17680 lt_prog_compiler_pic_GCJ='-KPIC'
17681 lt_prog_compiler_static_GCJ='-Bstatic'
17685 lt_prog_compiler_wl_GCJ='-Qoption ld '
17686 lt_prog_compiler_pic_GCJ='-PIC'
17687 lt_prog_compiler_static_GCJ='-Bstatic'
17690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17691 lt_prog_compiler_wl_GCJ='-Wl,'
17692 lt_prog_compiler_pic_GCJ='-KPIC'
17693 lt_prog_compiler_static_GCJ='-Bstatic'
17697 if test -d /usr/nec ;then
17698 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17699 lt_prog_compiler_static_GCJ='-Bstatic'
17704 lt_prog_compiler_pic_GCJ='-pic'
17705 lt_prog_compiler_static_GCJ='-Bstatic'
17709 lt_prog_compiler_can_build_shared_GCJ=no
17714 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17715 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17718 # Check to make sure the PIC flag actually works.
17720 if test -n "$lt_prog_compiler_pic_GCJ"; then
17722 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17723 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17724 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17727 lt_prog_compiler_pic_works_GCJ=no
17728 ac_outfile=conftest.$ac_objext
17729 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17730 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17731 # Insert the option either (1) after the last *FLAGS variable, or
17732 # (2) before a word containing "conftest.", or (3) at the end.
17733 # Note that $ac_compile itself does not contain backslashes and begins
17734 # with a dollar sign (not a hyphen), so the echo should work correctly.
17735 # The option is referenced via a variable to avoid confusing sed.
17736 lt_compile=`echo "$ac_compile" | $SED \
17737 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17739 -e 's:$: $lt_compiler_flag:'`
17740 (eval echo "\"\$as_me:17740: $lt_compile\"" >&5)
17741 (eval "$lt_compile" 2>conftest.err)
17743 cat conftest.err >&5
17744 echo "$as_me:17744: \$? = $ac_status" >&5
17745 if (exit $ac_status) && test -s "$ac_outfile"; then
17746 # The compiler can only warn and ignore the option if not recognized
17747 # So say no if there are warnings
17748 if test ! -s conftest.err; then
17749 lt_prog_compiler_pic_works_GCJ=yes
17755 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17756 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17758 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17759 case $lt_prog_compiler_pic_GCJ in
17761 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17764 lt_prog_compiler_pic_GCJ=
17765 lt_prog_compiler_can_build_shared_GCJ=no
17770 # For platforms which do not support PIC, -DPIC is meaningless:
17772 lt_prog_compiler_pic_GCJ=
17775 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17779 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17780 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17781 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 lt_cv_prog_compiler_c_o_GCJ=no
17785 $rm -r conftest 2>/dev/null
17789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17791 lt_compiler_flag="-o out/conftest2.$ac_objext"
17792 # Insert the option either (1) after the last *FLAGS variable, or
17793 # (2) before a word containing "conftest.", or (3) at the end.
17794 # Note that $ac_compile itself does not contain backslashes and begins
17795 # with a dollar sign (not a hyphen), so the echo should work correctly.
17796 lt_compile=`echo "$ac_compile" | $SED \
17797 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17799 -e 's:$: $lt_compiler_flag:'`
17800 (eval echo "\"\$as_me:17800: $lt_compile\"" >&5)
17801 (eval "$lt_compile" 2>out/conftest.err)
17803 cat out/conftest.err >&5
17804 echo "$as_me:17804: \$? = $ac_status" >&5
17805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17807 # The compiler can only warn and ignore the option if not recognized
17808 # So say no if there are warnings
17809 if test ! -s out/conftest.err; then
17810 lt_cv_prog_compiler_c_o_GCJ=yes
17815 # SGI C++ compiler will create directory out/ii_files/ for
17816 # template instantiation
17817 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17818 $rm out/* && rmdir out
17824 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17828 hard_links="nottested"
17829 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17830 # do not overwrite the value of need_locks provided by the user
17831 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17837 ln conftest.a conftest.b 2>&5 || hard_links=no
17838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17839 echo "$as_me:$LINENO: result: $hard_links" >&5
17840 echo "${ECHO_T}$hard_links" >&6
17841 if test "$hard_links" = no; then
17842 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17854 allow_undefined_flag_GCJ=
17855 enable_shared_with_static_runtimes_GCJ=no
17857 archive_expsym_cmds_GCJ=
17858 old_archive_From_new_cmds_GCJ=
17859 old_archive_from_expsyms_cmds_GCJ=
17860 export_dynamic_flag_spec_GCJ=
17861 whole_archive_flag_spec_GCJ=
17862 thread_safe_flag_spec_GCJ=
17863 hardcode_libdir_flag_spec_GCJ=
17864 hardcode_libdir_flag_spec_ld_GCJ=
17865 hardcode_libdir_separator_GCJ=
17866 hardcode_direct_GCJ=no
17867 hardcode_minus_L_GCJ=no
17868 hardcode_shlibpath_var_GCJ=unsupported
17869 link_all_deplibs_GCJ=unknown
17870 hardcode_automatic_GCJ=no
17872 module_expsym_cmds_GCJ=
17873 always_export_symbols_GCJ=no
17874 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17875 # include_expsyms should be a list of space-separated symbols to be *always*
17876 # included in the symbol list
17877 include_expsyms_GCJ=
17878 # exclude_expsyms can be an extended regexp of symbols to exclude
17879 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17880 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17881 # as well as any symbol that contains `d'.
17882 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17883 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17884 # platforms (ab)use it in PIC code, but their linkers get confused if
17885 # the symbol is explicitly referenced. Since portable code cannot
17886 # rely on this symbol name, it's probably fine to never include it in
17887 # preloaded symbol tables.
17888 extract_expsyms_cmds=
17891 cygwin* | mingw* | pw32*)
17892 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17893 # When not using gcc, we currently assume that we are using
17894 # Microsoft Visual C++.
17895 if test "$GCC" != yes; then
17905 if test "$with_gnu_ld" = yes; then
17906 # If archive_cmds runs LD, not CC, wlarc should be empty
17909 # See if GNU ld supports shared libraries.
17911 aix3* | aix4* | aix5*)
17912 # On AIX/PPC, the GNU linker is very broken
17913 if test "$host_cpu" != ia64; then
17917 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17918 *** to be unable to reliably create shared libraries on AIX.
17919 *** Therefore, libtool is disabling shared libraries support. If you
17920 *** really care for shared libraries, you may want to modify your PATH
17921 *** so that a non-GNU linker is found, and then restart.
17928 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)'
17929 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17930 hardcode_minus_L_GCJ=yes
17932 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17933 # that the semantics of dynamic libraries on AmigaOS, at least up
17934 # to version 4, is to share data among multiple programs linked
17935 # with the same dynamic library. Since this doesn't match the
17936 # behavior of shared libraries on other platforms, we can't use
17942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17943 allow_undefined_flag_GCJ=unsupported
17944 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17945 # support --undefined. This deserves some investigation. FIXME
17946 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17952 cygwin* | mingw* | pw32*)
17953 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17954 # as there is no search path for DLLs.
17955 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17956 allow_undefined_flag_GCJ=unsupported
17957 always_export_symbols_GCJ=no
17958 enable_shared_with_static_runtimes_GCJ=yes
17959 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17961 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17962 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17963 # If the export-symbols file already is a .def file (1st line
17964 # is EXPORTS), use it as is; otherwise, prepend...
17965 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17966 cp $export_symbols $output_objdir/$soname.def;
17968 echo EXPORTS > $output_objdir/$soname.def;
17969 cat $export_symbols >> $output_objdir/$soname.def;
17971 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17978 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17979 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17982 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17983 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17988 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17992 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17993 *** create shared libraries on Solaris systems. Therefore, libtool
17994 *** is disabling shared libraries support. We urge you to upgrade GNU
17995 *** binutils to release 2.9.1 or newer. Another option is to modify
17996 *** your PATH or compiler configuration so that the native linker is
17997 *** used, and then restart.
18000 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18001 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18002 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18009 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18011 hardcode_direct_GCJ=yes
18012 hardcode_shlibpath_var_GCJ=no
18016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18017 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18018 archive_cmds_GCJ="$tmp_archive_cmds"
18019 supports_anon_versioning=no
18020 case `$LD -v 2>/dev/null` in
18021 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18022 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18023 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18024 *\ 2.11.*) ;; # other 2.11 versions
18025 *) supports_anon_versioning=yes ;;
18027 if test $supports_anon_versioning = yes; then
18028 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18030 $echo "local: *; };" >> $output_objdir/$libname.ver~
18031 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18033 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18042 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18043 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18050 if test "$ld_shlibs_GCJ" = yes; then
18051 runpath_var=LD_RUN_PATH
18052 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18053 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18054 # ancient GNU ld didn't support --whole-archive et. al.
18055 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18056 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18058 whole_archive_flag_spec_GCJ=
18062 # PORTME fill in a description of your system's linker (not GNU ld)
18065 allow_undefined_flag_GCJ=unsupported
18066 always_export_symbols_GCJ=yes
18067 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'
18068 # Note: this linker hardcodes the directories in LIBPATH if there
18069 # are no directories specified by -L.
18070 hardcode_minus_L_GCJ=yes
18071 if test "$GCC" = yes && test -z "$link_static_flag"; then
18072 # Neither direct hardcoding nor static linking is supported with a
18074 hardcode_direct_GCJ=unsupported
18079 if test "$host_cpu" = ia64; then
18080 # On IA64, the linker does run time linking by default, so we don't
18081 # have to do anything special.
18082 aix_use_runtimelinking=no
18083 exp_sym_flag='-Bexport'
18086 # If we're using GNU nm, then we don't want the "-C" option.
18087 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18088 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18089 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'
18091 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'
18093 aix_use_runtimelinking=no
18095 # Test if we are trying to use run time linking or normal
18096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18097 # need to do runtime linking.
18098 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18099 for ld_flag in $LDFLAGS; do
18100 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18101 aix_use_runtimelinking=yes
18107 exp_sym_flag='-bexport'
18108 no_entry_flag='-bnoentry'
18111 # When large executables or shared objects are built, AIX ld can
18112 # have problems creating the table of contents. If linking a library
18113 # or program results in "error TOC overflow" add -mminimal-toc to
18114 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18115 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18117 archive_cmds_GCJ=''
18118 hardcode_direct_GCJ=yes
18119 hardcode_libdir_separator_GCJ=':'
18120 link_all_deplibs_GCJ=yes
18122 if test "$GCC" = yes; then
18123 case $host_os in aix4.012|aix4.012.*)
18124 # We only want to do this on AIX 4.2 and lower, the check
18125 # below for broken collect2 doesn't work under 4.3+
18126 collect2name=`${CC} -print-prog-name=collect2`
18127 if test -f "$collect2name" && \
18128 strings "$collect2name" | grep resolve_lib_name >/dev/null
18130 # We have reworked collect2
18131 hardcode_direct_GCJ=yes
18133 # We have old collect2
18134 hardcode_direct_GCJ=unsupported
18135 # It fails to find uninstalled libraries when the uninstalled
18136 # path is not listed in the libpath. Setting hardcode_minus_L
18137 # to unsupported forces relinking
18138 hardcode_minus_L_GCJ=yes
18139 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140 hardcode_libdir_separator_GCJ=
18143 shared_flag='-shared'
18146 if test "$host_cpu" = ia64; then
18147 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18148 # chokes on -Wl,-G. The following line is correct:
18151 if test "$aix_use_runtimelinking" = yes; then
18152 shared_flag='${wl}-G'
18154 shared_flag='${wl}-bM:SRE'
18159 # It seems that -bexpall does not export symbols beginning with
18160 # underscore (_), so it is better to generate a list of symbols to export.
18161 always_export_symbols_GCJ=yes
18162 if test "$aix_use_runtimelinking" = yes; then
18163 # Warning - without using the other runtime loading flags (-brtl),
18164 # -berok will link without error, but may produce a broken library.
18165 allow_undefined_flag_GCJ='-berok'
18166 # Determine the default libpath from the value encoded in an empty executable.
18167 cat >conftest.$ac_ext <<_ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18184 (eval $ac_link) 2>conftest.er1
18186 grep -v '^ *+' conftest.er1 >conftest.err
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } &&
18191 { ac_try='test -z "$ac_c_werror_flag"
18192 || test ! -s conftest.err'
18193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194 (eval $ac_try) 2>&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; } &&
18198 { ac_try='test -s conftest$ac_exeext'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18207 # Check for a 64-bit object if we didn't find anything.
18208 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; }
18211 echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18215 rm -f conftest.err conftest.$ac_objext \
18216 conftest$ac_exeext conftest.$ac_ext
18217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18219 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18220 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"
18222 if test "$host_cpu" = ia64; then
18223 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18224 allow_undefined_flag_GCJ="-z nodefs"
18225 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"
18227 # Determine the default libpath from the value encoded in an empty executable.
18228 cat >conftest.$ac_ext <<_ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18245 (eval $ac_link) 2>conftest.er1
18247 grep -v '^ *+' conftest.er1 >conftest.err
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag"
18253 || test ! -s conftest.err'
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; } &&
18259 { ac_try='test -s conftest$ac_exeext'
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
18266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18268 # Check for a 64-bit object if we didn't find anything.
18269 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; }
18272 echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18276 rm -f conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext conftest.$ac_ext
18278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18280 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18281 # Warning - without using the other run time loading flags,
18282 # -berok will link without error, but may produce a broken library.
18283 no_undefined_flag_GCJ=' ${wl}-bernotok'
18284 allow_undefined_flag_GCJ=' ${wl}-berok'
18285 # -bexpall does not export symbols beginning with underscore (_)
18286 always_export_symbols_GCJ=yes
18287 # Exported symbols can be pulled into shared objects from archives
18288 whole_archive_flag_spec_GCJ=' '
18289 archive_cmds_need_lc_GCJ=yes
18290 # This is similar to how AIX traditionally builds it's shared libraries.
18291 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'
18297 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)'
18298 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18299 hardcode_minus_L_GCJ=yes
18300 # see comment about different semantics on the GNU ld section
18305 export_dynamic_flag_spec_GCJ=-rdynamic
18308 cygwin* | mingw* | pw32*)
18309 # When not using gcc, we currently assume that we are using
18310 # Microsoft Visual C++.
18311 # hardcode_libdir_flag_spec is actually meaningless, as there is
18312 # no search path for DLLs.
18313 hardcode_libdir_flag_spec_GCJ=' '
18314 allow_undefined_flag_GCJ=unsupported
18315 # Tell ltmain to make .lib files, not .a files.
18317 # Tell ltmain to make .dll files, not .so files.
18319 # FIXME: Setting linknames here is a bad hack.
18320 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18321 # The linker will automatically build a .lib file if we build a DLL.
18322 old_archive_From_new_cmds_GCJ='true'
18323 # FIXME: Should let the user specify the lib program.
18324 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18325 fix_srcfile_path='`cygpath -w "$srcfile"`'
18326 enable_shared_with_static_runtimes_GCJ=yes
18329 darwin* | rhapsody*)
18330 if test "$GXX" = yes ; then
18331 archive_cmds_need_lc_GCJ=no
18333 rhapsody* | darwin1.[012])
18334 allow_undefined_flag_GCJ='-undefined suppress'
18337 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18338 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18340 case ${MACOSX_DEPLOYMENT_TARGET} in
18342 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18345 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18351 lt_int_apple_cc_single_mod=no
18352 output_verbose_link_cmd='echo'
18353 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18354 lt_int_apple_cc_single_mod=yes
18356 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18357 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18359 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'
18361 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18362 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18363 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18364 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}'
18366 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}'
18368 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}'
18369 hardcode_direct_GCJ=no
18370 hardcode_automatic_GCJ=yes
18371 hardcode_shlibpath_var_GCJ=unsupported
18372 whole_archive_flag_spec_GCJ='-all_load $convenience'
18373 link_all_deplibs_GCJ=yes
18380 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18382 hardcode_shlibpath_var_GCJ=no
18389 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18390 # support. Future versions do this automatically, but an explicit c++rt0.o
18391 # does not break anything, and helps significantly (at the cost of a little
18394 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18395 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18396 hardcode_direct_GCJ=yes
18397 hardcode_shlibpath_var_GCJ=no
18400 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18403 hardcode_direct_GCJ=yes
18404 hardcode_minus_L_GCJ=yes
18405 hardcode_shlibpath_var_GCJ=no
18408 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18409 freebsd* | kfreebsd*-gnu)
18410 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18411 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18412 hardcode_direct_GCJ=yes
18413 hardcode_shlibpath_var_GCJ=no
18417 if test "$GCC" = yes; then
18418 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'
18420 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'
18422 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18423 hardcode_libdir_separator_GCJ=:
18424 hardcode_direct_GCJ=yes
18426 # hardcode_minus_L: Not really in the search PATH,
18427 # but as the default location of the library.
18428 hardcode_minus_L_GCJ=yes
18429 export_dynamic_flag_spec_GCJ='${wl}-E'
18433 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18434 case "$host_cpu" in
18436 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18439 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18443 case "$host_cpu" in
18445 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18448 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18452 if test "$with_gnu_ld" = no; then
18453 case "$host_cpu" in
18455 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18456 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18457 hardcode_libdir_separator_GCJ=:
18458 hardcode_direct_GCJ=no
18459 hardcode_shlibpath_var_GCJ=no
18462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18463 hardcode_direct_GCJ=no
18464 hardcode_shlibpath_var_GCJ=no
18466 # hardcode_minus_L: Not really in the search PATH,
18467 # but as the default location of the library.
18468 hardcode_minus_L_GCJ=yes
18471 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18472 hardcode_libdir_separator_GCJ=:
18473 hardcode_direct_GCJ=yes
18474 export_dynamic_flag_spec_GCJ='${wl}-E'
18476 # hardcode_minus_L: Not really in the search PATH,
18477 # but as the default location of the library.
18478 hardcode_minus_L_GCJ=yes
18484 irix5* | irix6* | nonstopux*)
18485 if test "$GCC" = yes; then
18486 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'
18488 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'
18489 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18491 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18492 hardcode_libdir_separator_GCJ=:
18493 link_all_deplibs_GCJ=yes
18497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18498 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18500 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18502 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18503 hardcode_direct_GCJ=yes
18504 hardcode_shlibpath_var_GCJ=no
18508 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18509 hardcode_direct_GCJ=yes
18510 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18511 hardcode_libdir_separator_GCJ=:
18512 hardcode_shlibpath_var_GCJ=no
18516 hardcode_direct_GCJ=yes
18517 hardcode_shlibpath_var_GCJ=no
18518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18519 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18520 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18521 export_dynamic_flag_spec_GCJ='${wl}-E'
18524 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18525 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18526 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18529 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18530 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18537 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18538 hardcode_minus_L_GCJ=yes
18539 allow_undefined_flag_GCJ=unsupported
18540 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'
18541 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18545 if test "$GCC" = yes; then
18546 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18547 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'
18549 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18550 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'
18552 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18553 hardcode_libdir_separator_GCJ=:
18556 osf4* | osf5*) # as osf3* with the addition of -msym flag
18557 if test "$GCC" = yes; then
18558 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18559 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'
18560 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18562 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18563 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'
18564 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~
18565 $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'
18567 # Both c and cxx compiler support -rpath directly
18568 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18570 hardcode_libdir_separator_GCJ=:
18574 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18575 hardcode_shlibpath_var_GCJ=no
18576 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18577 runpath_var=LD_RUN_PATH
18578 hardcode_runpath_var=yes
18582 no_undefined_flag_GCJ=' -z text'
18583 if test "$GCC" = yes; then
18584 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18585 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18586 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18588 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18589 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18590 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18592 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18593 hardcode_shlibpath_var_GCJ=no
18595 solaris2.[0-5] | solaris2.[0-5].*) ;;
18596 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18597 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18599 link_all_deplibs_GCJ=yes
18603 if test "x$host_vendor" = xsequent; then
18604 # Use $CC to link under sequent, because it throws in some extra .o
18605 # files that make .init and .fini sections work.
18606 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18608 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18611 hardcode_direct_GCJ=yes
18612 hardcode_minus_L_GCJ=yes
18613 hardcode_shlibpath_var_GCJ=no
18617 case $host_vendor in
18619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18620 hardcode_direct_GCJ=yes # is this really true???
18623 ## LD is ld it makes a PLAMLIB
18624 ## CC just makes a GrossModule.
18625 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18626 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18627 hardcode_direct_GCJ=no
18630 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18631 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18634 runpath_var='LD_RUN_PATH'
18635 hardcode_shlibpath_var_GCJ=no
18639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18640 hardcode_shlibpath_var_GCJ=no
18641 export_dynamic_flag_spec_GCJ='-Bexport'
18645 if test -d /usr/nec; then
18646 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18647 hardcode_shlibpath_var_GCJ=no
18648 runpath_var=LD_RUN_PATH
18649 hardcode_runpath_var=yes
18655 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18656 hardcode_direct_GCJ=yes
18657 hardcode_minus_L_GCJ=no
18658 hardcode_shlibpath_var_GCJ=no
18659 hardcode_runpath_var=yes
18660 runpath_var=LD_RUN_PATH
18663 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18664 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18665 if test "$GCC" = yes; then
18666 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18668 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18670 runpath_var='LD_RUN_PATH'
18671 hardcode_shlibpath_var_GCJ=no
18675 no_undefined_flag_GCJ=' -z text'
18676 # $CC -shared without GNU ld will not create a library from C++
18677 # object files and a static libstdc++, better avoid it by now
18678 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18679 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18680 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18681 hardcode_libdir_flag_spec_GCJ=
18682 hardcode_shlibpath_var_GCJ=no
18683 runpath_var='LD_RUN_PATH'
18687 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18688 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18689 hardcode_shlibpath_var_GCJ=no
18698 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18699 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18700 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18702 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18703 if test "$GCC" = yes; then
18704 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18708 # Do we need to explicitly link libc?
18710 case "x$archive_cmds_need_lc_GCJ" in
18712 # Assume -lc should be added
18713 archive_cmds_need_lc_GCJ=yes
18715 if test "$enable_shared" = yes && test "$GCC" = yes; then
18716 case $archive_cmds_GCJ in
18718 # FIXME: we may have to deal with multi-command sequences.
18721 # Test whether the compiler implicitly links with -lc since on some
18722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18723 # to ld, don't add -lc before -lgcc.
18724 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18725 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18727 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18730 (eval $ac_compile) 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } 2>conftest.err; then
18736 libobjs=conftest.$ac_objext
18738 wl=$lt_prog_compiler_wl_GCJ
18744 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18745 allow_undefined_flag_GCJ=
18746 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18747 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }
18752 archive_cmds_need_lc_GCJ=no
18754 archive_cmds_need_lc_GCJ=yes
18756 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18758 cat conftest.err 1>&5
18761 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18762 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18769 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18770 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18771 library_names_spec=
18772 libname_spec='lib$name'
18776 postuninstall_cmds=
18780 shlibpath_overrides_runpath=unknown
18782 dynamic_linker="$host_os ld.so"
18783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18784 if test "$GCC" = yes; then
18785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18786 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18787 # if the path contains ";" then we assume it to be the separator
18788 # otherwise default to the standard path separator (i.e. ":") - it is
18789 # assumed that no part of a normal pathname contains ";" but that should
18790 # okay in the real world where ";" in dirpaths is itself problematic.
18791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18798 need_lib_prefix=unknown
18799 hardcode_into_libs=no
18801 # when you set need_version to no, make sure it does not cause -set_version
18802 # flags to be left without arguments
18803 need_version=unknown
18808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18809 shlibpath_var=LIBPATH
18811 # AIX 3 has no versioning support, so we append a major version to the name.
18812 soname_spec='${libname}${release}${shared_ext}$major'
18819 hardcode_into_libs=yes
18820 if test "$host_cpu" = ia64; then
18821 # AIX 5 supports IA64
18822 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18823 shlibpath_var=LD_LIBRARY_PATH
18825 # With GCC up to 2.95.x, collect2 would create an import file
18826 # for dependence libraries. The import file would start with
18827 # the line `#! .'. This would cause the generated library to
18828 # depend on `.', always an invalid library. This was fixed in
18829 # development snapshots of GCC prior to 3.0.
18831 aix4 | aix4.[01] | aix4.[01].*)
18832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18834 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18837 can_build_shared=no
18841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18842 # soname into executable. Probably we can add versioning support to
18843 # collect2, so additional links can be useful in future.
18844 if test "$aix_use_runtimelinking" = yes; then
18845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18846 # instead of lib<name>.a to let people know that these are not
18847 # typical AIX shared libraries.
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18850 # We preserve .a as extension for shared libraries through AIX4.2
18851 # and later when we are not doing run time linking.
18852 library_names_spec='${libname}${release}.a $libname.a'
18853 soname_spec='${libname}${release}${shared_ext}$major'
18855 shlibpath_var=LIBPATH
18860 library_names_spec='$libname.ixlibrary $libname.a'
18861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18862 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'
18866 library_names_spec='${libname}${shared_ext}'
18867 dynamic_linker="$host_os ld.so"
18868 shlibpath_var=LIBRARY_PATH
18874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18875 soname_spec='${libname}${release}${shared_ext}$major'
18876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18877 shlibpath_var=LD_LIBRARY_PATH
18878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18880 # the default ld.so.conf also contains /usr/contrib/lib and
18881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18882 # libtool to hard-code these into programs
18885 cygwin* | mingw* | pw32*)
18886 version_type=windows
18891 case $GCC,$host_os in
18892 yes,cygwin* | yes,mingw* | yes,pw32*)
18893 library_names_spec='$libname.dll.a'
18894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18895 postinstall_cmds='base_file=`basename \${file}`~
18896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18897 dldir=$destdir/`dirname \$dlpath`~
18898 test -d \$dldir || mkdir -p \$dldir~
18899 $install_prog $dir/$dlname \$dldir/$dlname'
18900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18901 dlpath=$dir/\$dldll~
18903 shlibpath_overrides_runpath=yes
18907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18909 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18912 # MinGW DLLs use traditional 'lib' prefix
18913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18915 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18916 # It is most probably a Windows format PATH printed by
18917 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18918 # path with ; separators, and with drive letters. We can handle the
18919 # drive letters (cygwin fileutils understands them), so leave them,
18920 # especially as we might pass files found there to a mingw objdump,
18921 # which wouldn't understand a cygwinified path. Ahh.
18922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18928 # pw32 DLLs use 'pw' prefix rather than 'lib'
18929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18938 dynamic_linker='Win32 ld.exe'
18939 # FIXME: first we should search . and the directory the executable is in
18943 darwin* | rhapsody*)
18944 dynamic_linker="$host_os dyld"
18945 version_type=darwin
18948 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18949 soname_spec='${libname}${release}${major}$shared_ext'
18950 shlibpath_overrides_runpath=yes
18951 shlibpath_var=DYLD_LIBRARY_PATH
18952 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18953 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18954 if test "$GCC" = yes; then
18955 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"`
18957 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18967 soname_spec='${libname}${release}${shared_ext}$major'
18968 shlibpath_var=LD_LIBRARY_PATH
18979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18980 soname_spec='${libname}${release}${shared_ext}$major'
18981 shlibpath_var=LD_LIBRARY_PATH
18982 shlibpath_overrides_runpath=no
18983 hardcode_into_libs=yes
18984 dynamic_linker='GNU ld.so'
18988 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18989 version_type=freebsd-$objformat
18990 case $version_type in
18992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19001 shlibpath_var=LD_LIBRARY_PATH
19004 shlibpath_overrides_runpath=yes
19006 freebsd3.01* | freebsdelf3.01*)
19007 shlibpath_overrides_runpath=yes
19008 hardcode_into_libs=yes
19011 shlibpath_overrides_runpath=no
19012 hardcode_into_libs=yes
19021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19022 soname_spec='${libname}${release}${shared_ext}$major'
19023 shlibpath_var=LD_LIBRARY_PATH
19024 hardcode_into_libs=yes
19027 hpux9* | hpux10* | hpux11*)
19028 # Give a soname corresponding to the major version so that dld.sl refuses to
19029 # link against other versions.
19033 case "$host_cpu" in
19036 hardcode_into_libs=yes
19037 dynamic_linker="$host_os dld.so"
19038 shlibpath_var=LD_LIBRARY_PATH
19039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19041 soname_spec='${libname}${release}${shared_ext}$major'
19042 if test "X$HPUX_IA64_MODE" = X32; then
19043 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19045 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19051 hardcode_into_libs=yes
19052 dynamic_linker="$host_os dld.sl"
19053 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19056 soname_spec='${libname}${release}${shared_ext}$major'
19057 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19062 dynamic_linker="$host_os dld.sl"
19063 shlibpath_var=SHLIB_PATH
19064 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19066 soname_spec='${libname}${release}${shared_ext}$major'
19069 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19070 postinstall_cmds='chmod 555 $lib'
19073 irix5* | irix6* | nonstopux*)
19075 nonstopux*) version_type=nonstopux ;;
19077 if test "$lt_cv_prog_gnu_ld" = yes; then
19085 soname_spec='${libname}${release}${shared_ext}$major'
19086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19088 irix5* | nonstopux*)
19089 libsuff= shlibsuff=
19092 case $LD in # libtool.m4 will add one of these switches to LD
19093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19094 libsuff= shlibsuff= libmagic=32-bit;;
19095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19096 libsuff=32 shlibsuff=N32 libmagic=N32;;
19097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19099 *) libsuff= shlibsuff= libmagic=never-match;;
19103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19104 shlibpath_overrides_runpath=no
19105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19107 hardcode_into_libs=yes
19110 # No shared lib support for Linux oldld, aout, or coff.
19111 linux*oldld* | linux*aout* | linux*coff*)
19115 # This must be Linux ELF.
19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121 soname_spec='${libname}${release}${shared_ext}$major'
19122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19123 shlibpath_var=LD_LIBRARY_PATH
19124 shlibpath_overrides_runpath=no
19125 # This implies no fast_install, which is unacceptable.
19126 # Some rework will be needed to allow for fast_install
19127 # before this can be enabled.
19128 hardcode_into_libs=yes
19130 # find out which ABI we are using
19132 case "$host_cpu" in
19133 x86_64*|s390x*|powerpc64*)
19134 echo '#line 19134 "configure"' > conftest.$ac_ext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19136 (eval $ac_compile) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; then
19140 case `/usr/bin/file conftest.$ac_objext` in
19143 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19151 # Append ld.so.conf contents to the search path
19152 if test -f /etc/ld.so.conf; then
19153 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19154 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19157 # We used to test for /lib/ld.so.1 and disable shared libraries on
19158 # powerpc, because MkLinux only supported shared libraries with the
19159 # GNU dynamic linker. Since this was broken with cross compilers,
19160 # most powerpc-linux boxes support dynamic linking these days and
19161 # people can always --disable-shared, the test was removed, and we
19162 # assume the GNU/Linux dynamic linker is in use.
19163 dynamic_linker='GNU/Linux ld.so'
19170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19171 soname_spec='${libname}${release}${shared_ext}$major'
19172 shlibpath_var=LD_LIBRARY_PATH
19173 shlibpath_overrides_runpath=no
19174 hardcode_into_libs=yes
19175 dynamic_linker='GNU ld.so'
19182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19185 dynamic_linker='NetBSD (a.out) ld.so'
19187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19188 soname_spec='${libname}${release}${shared_ext}$major'
19189 dynamic_linker='NetBSD ld.elf_so'
19191 shlibpath_var=LD_LIBRARY_PATH
19192 shlibpath_overrides_runpath=yes
19193 hardcode_into_libs=yes
19198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19199 shlibpath_var=LD_LIBRARY_PATH
19200 shlibpath_overrides_runpath=yes
19207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19208 soname_spec='${libname}${release}${shared_ext}$major'
19209 shlibpath_var=LD_LIBRARY_PATH
19210 shlibpath_overrides_runpath=yes
19217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19219 shlibpath_var=LD_LIBRARY_PATH
19220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19222 openbsd2.[89] | openbsd2.[89].*)
19223 shlibpath_overrides_runpath=no
19226 shlibpath_overrides_runpath=yes
19230 shlibpath_overrides_runpath=yes
19235 libname_spec='$name'
19238 library_names_spec='$libname${shared_ext} $libname.a'
19239 dynamic_linker='OS/2 ld.exe'
19240 shlibpath_var=LIBPATH
19243 osf3* | osf4* | osf5*)
19247 soname_spec='${libname}${release}${shared_ext}$major'
19248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19249 shlibpath_var=LD_LIBRARY_PATH
19250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19256 soname_spec='${libname}${release}${shared_ext}$major'
19257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19258 shlibpath_var=LD_LIBRARY_PATH
19265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19266 soname_spec='${libname}${release}${shared_ext}$major'
19267 shlibpath_var=LD_LIBRARY_PATH
19268 shlibpath_overrides_runpath=yes
19269 hardcode_into_libs=yes
19270 # ldd complains unless libraries are executable
19271 postinstall_cmds='chmod +x $lib'
19276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19278 shlibpath_var=LD_LIBRARY_PATH
19279 shlibpath_overrides_runpath=yes
19280 if test "$with_gnu_ld" = yes; then
19286 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19289 soname_spec='${libname}${release}${shared_ext}$major'
19290 shlibpath_var=LD_LIBRARY_PATH
19291 case $host_vendor in
19293 shlibpath_overrides_runpath=no
19295 export_dynamic_flag_spec='${wl}-Blargedynsym'
19296 runpath_var=LD_RUN_PATH
19304 shlibpath_overrides_runpath=no
19305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19311 if test -d /usr/nec ;then
19313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19314 soname_spec='$libname${shared_ext}.$major'
19315 shlibpath_var=LD_LIBRARY_PATH
19321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19322 soname_spec='${libname}${release}${shared_ext}$major'
19323 shlibpath_var=LD_LIBRARY_PATH
19330 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19331 echo "${ECHO_T}$dynamic_linker" >&6
19332 test "$dynamic_linker" = no && can_build_shared=no
19334 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19335 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19336 hardcode_action_GCJ=
19337 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19338 test -n "$runpath_var GCJ" || \
19339 test "X$hardcode_automatic_GCJ"="Xyes" ; then
19341 # We can hardcode non-existant directories.
19342 if test "$hardcode_direct_GCJ" != no &&
19343 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19344 # have to relink, otherwise we might link with an installed library
19345 # when we should be linking with a yet-to-be-installed one
19346 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19347 test "$hardcode_minus_L_GCJ" != no; then
19348 # Linking always hardcodes the temporary library directory.
19349 hardcode_action_GCJ=relink
19351 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19352 hardcode_action_GCJ=immediate
19355 # We cannot hardcode anything, or else we can only hardcode existing
19357 hardcode_action_GCJ=unsupported
19359 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19360 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19362 if test "$hardcode_action_GCJ" = relink; then
19363 # Fast installation is not supported
19364 enable_fast_install=no
19365 elif test "$shlibpath_overrides_runpath" = yes ||
19366 test "$enable_shared" = no; then
19367 # Fast installation is not necessary
19368 enable_fast_install=needless
19373 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19374 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19375 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19376 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19377 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19378 echo "$as_me:$LINENO: result: yes" >&5
19379 echo "${ECHO_T}yes" >&6
19381 # FIXME - insert some real tests, host_os isn't really good enough
19384 if test -n "$STRIP" ; then
19385 striplib="$STRIP -x"
19386 echo "$as_me:$LINENO: result: yes" >&5
19387 echo "${ECHO_T}yes" >&6
19389 echo "$as_me:$LINENO: result: no" >&5
19390 echo "${ECHO_T}no" >&6
19394 echo "$as_me:$LINENO: result: no" >&5
19395 echo "${ECHO_T}no" >&6
19400 if test "x$enable_dlopen" != xyes; then
19401 enable_dlopen=unknown
19402 enable_dlopen_self=unknown
19403 enable_dlopen_self_static=unknown
19410 lt_cv_dlopen="load_add_on"
19412 lt_cv_dlopen_self=yes
19416 lt_cv_dlopen="LoadLibrary"
19421 lt_cv_dlopen="dlopen"
19426 # if libdl is installed we need to link against it
19427 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19428 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19429 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19432 ac_check_lib_save_LIBS=$LIBS
19434 cat >conftest.$ac_ext <<_ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19441 /* Override any gcc2 internal prototype to avoid an error. */
19445 /* We use char because int might match the return type of a gcc2
19446 builtin and then its argument prototype would still apply. */
19456 rm -f conftest.$ac_objext conftest$ac_exeext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19458 (eval $ac_link) 2>conftest.er1
19460 grep -v '^ *+' conftest.er1 >conftest.err
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_c_werror_flag"
19466 || test ! -s conftest.err'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest$ac_exeext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_lib_dl_dlopen=yes
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_cv_lib_dl_dlopen=no
19485 rm -f conftest.err conftest.$ac_objext \
19486 conftest$ac_exeext conftest.$ac_ext
19487 LIBS=$ac_check_lib_save_LIBS
19489 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19490 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19491 if test $ac_cv_lib_dl_dlopen = yes; then
19492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19495 lt_cv_dlopen="dyld"
19497 lt_cv_dlopen_self=yes
19504 echo "$as_me:$LINENO: checking for shl_load" >&5
19505 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19506 if test "${ac_cv_func_shl_load+set}" = set; then
19507 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 cat >conftest.$ac_ext <<_ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19515 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19517 #define shl_load innocuous_shl_load
19519 /* System header to define __stub macros and hopefully few prototypes,
19520 which can conflict with char shl_load (); below.
19521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19522 <limits.h> exists even on freestanding compilers. */
19525 # include <limits.h>
19527 # include <assert.h>
19532 /* Override any gcc2 internal prototype to avoid an error. */
19537 /* We use char because int might match the return type of a gcc2
19538 builtin and then its argument prototype would still apply. */
19540 /* The GNU C library defines this for functions which it implements
19541 to always fail with ENOSYS. Some functions are actually named
19542 something starting with __ and the normal name is an alias. */
19543 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19546 char (*f) () = shl_load;
19555 return f != shl_load;
19560 rm -f conftest.$ac_objext conftest$ac_exeext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19562 (eval $ac_link) 2>conftest.er1
19564 grep -v '^ *+' conftest.er1 >conftest.err
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_c_werror_flag"
19570 || test ! -s conftest.err'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest$ac_exeext'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 ac_cv_func_shl_load=yes
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19587 ac_cv_func_shl_load=no
19589 rm -f conftest.err conftest.$ac_objext \
19590 conftest$ac_exeext conftest.$ac_ext
19592 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19593 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19594 if test $ac_cv_func_shl_load = yes; then
19595 lt_cv_dlopen="shl_load"
19597 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19598 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19599 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 ac_check_lib_save_LIBS=$LIBS
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19611 /* Override any gcc2 internal prototype to avoid an error. */
19615 /* We use char because int might match the return type of a gcc2
19616 builtin and then its argument prototype would still apply. */
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19628 (eval $ac_link) 2>conftest.er1
19630 grep -v '^ *+' conftest.er1 >conftest.err
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -z "$ac_c_werror_flag"
19636 || test ! -s conftest.err'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest$ac_exeext'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 ac_cv_lib_dld_shl_load=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_cv_lib_dld_shl_load=no
19655 rm -f conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
19657 LIBS=$ac_check_lib_save_LIBS
19659 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19660 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19661 if test $ac_cv_lib_dld_shl_load = yes; then
19662 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19664 echo "$as_me:$LINENO: checking for dlopen" >&5
19665 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19666 if test "${ac_cv_func_dlopen+set}" = set; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 cat >conftest.$ac_ext <<_ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19675 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19677 #define dlopen innocuous_dlopen
19679 /* System header to define __stub macros and hopefully few prototypes,
19680 which can conflict with char dlopen (); below.
19681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19682 <limits.h> exists even on freestanding compilers. */
19685 # include <limits.h>
19687 # include <assert.h>
19692 /* Override any gcc2 internal prototype to avoid an error. */
19697 /* We use char because int might match the return type of a gcc2
19698 builtin and then its argument prototype would still apply. */
19700 /* The GNU C library defines this for functions which it implements
19701 to always fail with ENOSYS. Some functions are actually named
19702 something starting with __ and the normal name is an alias. */
19703 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19706 char (*f) () = dlopen;
19715 return f != dlopen;
19720 rm -f conftest.$ac_objext conftest$ac_exeext
19721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19722 (eval $ac_link) 2>conftest.er1
19724 grep -v '^ *+' conftest.er1 >conftest.err
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } &&
19729 { ac_try='test -z "$ac_c_werror_flag"
19730 || test ! -s conftest.err'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest$ac_exeext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 ac_cv_func_dlopen=yes
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_cv_func_dlopen=no
19749 rm -f conftest.err conftest.$ac_objext \
19750 conftest$ac_exeext conftest.$ac_ext
19752 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19753 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19754 if test $ac_cv_func_dlopen = yes; then
19755 lt_cv_dlopen="dlopen"
19757 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19758 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19759 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 ac_check_lib_save_LIBS=$LIBS
19764 cat >conftest.$ac_ext <<_ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19771 /* Override any gcc2 internal prototype to avoid an error. */
19775 /* We use char because int might match the return type of a gcc2
19776 builtin and then its argument prototype would still apply. */
19786 rm -f conftest.$ac_objext conftest$ac_exeext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19788 (eval $ac_link) 2>conftest.er1
19790 grep -v '^ *+' conftest.er1 >conftest.err
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
19795 { ac_try='test -z "$ac_c_werror_flag"
19796 || test ! -s conftest.err'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; } &&
19802 { ac_try='test -s conftest$ac_exeext'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19808 ac_cv_lib_dl_dlopen=yes
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19813 ac_cv_lib_dl_dlopen=no
19815 rm -f conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19817 LIBS=$ac_check_lib_save_LIBS
19819 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19820 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19821 if test $ac_cv_lib_dl_dlopen = yes; then
19822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19824 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19825 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19826 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 ac_check_lib_save_LIBS=$LIBS
19830 LIBS="-lsvld $LIBS"
19831 cat >conftest.$ac_ext <<_ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19838 /* Override any gcc2 internal prototype to avoid an error. */
19842 /* We use char because int might match the return type of a gcc2
19843 builtin and then its argument prototype would still apply. */
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19855 (eval $ac_link) 2>conftest.er1
19857 grep -v '^ *+' conftest.er1 >conftest.err
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } &&
19862 { ac_try='test -z "$ac_c_werror_flag"
19863 || test ! -s conftest.err'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; } &&
19869 { ac_try='test -s conftest$ac_exeext'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
19875 ac_cv_lib_svld_dlopen=yes
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 ac_cv_lib_svld_dlopen=no
19882 rm -f conftest.err conftest.$ac_objext \
19883 conftest$ac_exeext conftest.$ac_ext
19884 LIBS=$ac_check_lib_save_LIBS
19886 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19887 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19888 if test $ac_cv_lib_svld_dlopen = yes; then
19889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19891 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19892 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19893 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 ac_check_lib_save_LIBS=$LIBS
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19905 /* Override any gcc2 internal prototype to avoid an error. */
19909 /* We use char because int might match the return type of a gcc2
19910 builtin and then its argument prototype would still apply. */
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19922 (eval $ac_link) 2>conftest.er1
19924 grep -v '^ *+' conftest.er1 >conftest.err
19926 cat conftest.err >&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } &&
19929 { ac_try='test -z "$ac_c_werror_flag"
19930 || test ! -s conftest.err'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; } &&
19936 { ac_try='test -s conftest$ac_exeext'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
19942 ac_cv_lib_dld_dld_link=yes
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 ac_cv_lib_dld_dld_link=no
19949 rm -f conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19953 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19954 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19955 if test $ac_cv_lib_dld_dld_link = yes; then
19956 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19977 if test "x$lt_cv_dlopen" != xno; then
19983 case $lt_cv_dlopen in
19985 save_CPPFLAGS="$CPPFLAGS"
19986 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19988 save_LDFLAGS="$LDFLAGS"
19989 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19992 LIBS="$lt_cv_dlopen_libs $LIBS"
19994 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19995 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19996 if test "${lt_cv_dlopen_self+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 if test "$cross_compiling" = yes; then :
20000 lt_cv_dlopen_self=cross
20002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20003 lt_status=$lt_dlunknown
20004 cat > conftest.$ac_ext <<EOF
20005 #line 20005 "configure"
20006 #include "confdefs.h"
20015 # define LT_DLGLOBAL RTLD_GLOBAL
20018 # define LT_DLGLOBAL DL_GLOBAL
20020 # define LT_DLGLOBAL 0
20024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20025 find out it does not work in some platform. */
20026 #ifndef LT_DLLAZY_OR_NOW
20028 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20031 # define LT_DLLAZY_OR_NOW DL_LAZY
20034 # define LT_DLLAZY_OR_NOW RTLD_NOW
20037 # define LT_DLLAZY_OR_NOW DL_NOW
20039 # define LT_DLLAZY_OR_NOW 0
20047 extern "C" void exit (int);
20050 void fnord() { int i=42;}
20053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20054 int status = $lt_dlunknown;
20058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20059 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20060 /* dlclose (self); */
20066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20067 (eval $ac_link) 2>&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20071 (./conftest; exit; ) 2>/dev/null
20073 case x$lt_status in
20074 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20075 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20076 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20079 # compilation failed
20080 lt_cv_dlopen_self=no
20087 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20088 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20090 if test "x$lt_cv_dlopen_self" = xyes; then
20091 LDFLAGS="$LDFLAGS $link_static_flag"
20092 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20093 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20094 if test "${lt_cv_dlopen_self_static+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 if test "$cross_compiling" = yes; then :
20098 lt_cv_dlopen_self_static=cross
20100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20101 lt_status=$lt_dlunknown
20102 cat > conftest.$ac_ext <<EOF
20103 #line 20103 "configure"
20104 #include "confdefs.h"
20113 # define LT_DLGLOBAL RTLD_GLOBAL
20116 # define LT_DLGLOBAL DL_GLOBAL
20118 # define LT_DLGLOBAL 0
20122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20123 find out it does not work in some platform. */
20124 #ifndef LT_DLLAZY_OR_NOW
20126 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20129 # define LT_DLLAZY_OR_NOW DL_LAZY
20132 # define LT_DLLAZY_OR_NOW RTLD_NOW
20135 # define LT_DLLAZY_OR_NOW DL_NOW
20137 # define LT_DLLAZY_OR_NOW 0
20145 extern "C" void exit (int);
20148 void fnord() { int i=42;}
20151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20152 int status = $lt_dlunknown;
20156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20157 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20158 /* dlclose (self); */
20164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20165 (eval $ac_link) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20169 (./conftest; exit; ) 2>/dev/null
20171 case x$lt_status in
20172 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20173 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20174 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20177 # compilation failed
20178 lt_cv_dlopen_self_static=no
20185 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20186 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20189 CPPFLAGS="$save_CPPFLAGS"
20190 LDFLAGS="$save_LDFLAGS"
20195 case $lt_cv_dlopen_self in
20196 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20197 *) enable_dlopen_self=unknown ;;
20200 case $lt_cv_dlopen_self_static in
20201 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20202 *) enable_dlopen_self_static=unknown ;;
20207 # The else clause should only fire when bootstrapping the
20208 # libtool distribution, otherwise you forgot to ship ltmain.sh
20209 # with your package, and you will get complaints that there are
20210 # no rules to generate ltmain.sh.
20211 if test -f "$ltmain"; then
20212 # See if we are running on zsh, and set the options which allow our commands through
20213 # without removal of \ escapes.
20214 if test -n "${ZSH_VERSION+set}" ; then
20215 setopt NO_GLOB_SUBST
20217 # Now quote all the things that may contain metacharacters while being
20218 # careful not to overquote the AC_SUBSTed values. We take copies of the
20219 # variables and quote the copies for generation of the libtool script.
20220 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20222 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20223 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20224 deplibs_check_method reload_flag reload_cmds need_locks \
20225 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20226 lt_cv_sys_global_symbol_to_c_name_address \
20227 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20228 old_postinstall_cmds old_postuninstall_cmds \
20232 lt_prog_compiler_wl_GCJ \
20233 lt_prog_compiler_pic_GCJ \
20234 lt_prog_compiler_static_GCJ \
20235 lt_prog_compiler_no_builtin_flag_GCJ \
20236 export_dynamic_flag_spec_GCJ \
20237 thread_safe_flag_spec_GCJ \
20238 whole_archive_flag_spec_GCJ \
20239 enable_shared_with_static_runtimes_GCJ \
20240 old_archive_cmds_GCJ \
20241 old_archive_from_new_cmds_GCJ \
20242 predep_objects_GCJ \
20243 postdep_objects_GCJ \
20246 compiler_lib_search_path_GCJ \
20248 archive_expsym_cmds_GCJ \
20249 postinstall_cmds_GCJ \
20250 postuninstall_cmds_GCJ \
20251 old_archive_from_expsyms_cmds_GCJ \
20252 allow_undefined_flag_GCJ \
20253 no_undefined_flag_GCJ \
20254 export_symbols_cmds_GCJ \
20255 hardcode_libdir_flag_spec_GCJ \
20256 hardcode_libdir_flag_spec_ld_GCJ \
20257 hardcode_libdir_separator_GCJ \
20258 hardcode_automatic_GCJ \
20260 module_expsym_cmds_GCJ \
20261 lt_cv_prog_compiler_c_o_GCJ \
20262 exclude_expsyms_GCJ \
20263 include_expsyms_GCJ; do
20266 old_archive_cmds_GCJ | \
20267 old_archive_from_new_cmds_GCJ | \
20268 archive_cmds_GCJ | \
20269 archive_expsym_cmds_GCJ | \
20270 module_cmds_GCJ | \
20271 module_expsym_cmds_GCJ | \
20272 old_archive_from_expsyms_cmds_GCJ | \
20273 export_symbols_cmds_GCJ | \
20274 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20275 postinstall_cmds | postuninstall_cmds | \
20276 old_postinstall_cmds | old_postuninstall_cmds | \
20277 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20278 # Double-quote double-evaled strings.
20279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20288 *'\$0 --fallback-echo"')
20289 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20295 cat <<__EOF__ >> "$cfgfile"
20296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20300 # Shell to use when invoking shell scripts.
20303 # Whether or not to build shared libraries.
20304 build_libtool_libs=$enable_shared
20306 # Whether or not to build static libraries.
20307 build_old_libs=$enable_static
20309 # Whether or not to add -lc for building shared libraries.
20310 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20312 # Whether or not to disallow shared libs when runtime libs are static
20313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20315 # Whether or not to optimize for fast installation.
20316 fast_install=$enable_fast_install
20319 host_alias=$host_alias
20322 # An echo program that does not interpret backslashes.
20327 AR_FLAGS=$lt_AR_FLAGS
20332 # A language-specific compiler.
20333 CC=$lt_compiler_GCJ
20335 # Is the compiler the GNU C compiler?
20341 # The linker used to build libraries.
20344 # Whether we need hard or soft links.
20347 # A BSD-compatible nm program.
20350 # A symbol stripping program
20353 # Used to examine libraries when file_magic_cmd begins "file"
20354 MAGIC_CMD=$MAGIC_CMD
20356 # Used on cygwin: DLL creation program.
20359 # Used on cygwin: object dumper.
20362 # Used on cygwin: assembler.
20365 # The name of the directory that contains temporary libtool files.
20368 # How to create reloadable object files.
20369 reload_flag=$lt_reload_flag
20370 reload_cmds=$lt_reload_cmds
20372 # How to pass a linker flag through the compiler.
20373 wl=$lt_lt_prog_compiler_wl_GCJ
20375 # Object file suffix (normally "o").
20376 objext="$ac_objext"
20378 # Old archive suffix (normally "a").
20381 # Shared library suffix (normally ".so").
20382 shrext_cmds='$shrext_cmds'
20384 # Executable file suffix (normally "").
20387 # Additional compiler flags for building library objects.
20388 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20391 # What is the maximum length of a command?
20392 max_cmd_len=$lt_cv_sys_max_cmd_len
20394 # Does compiler simultaneously support -c and -o options?
20395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20397 # Must we lock files when doing compilation ?
20398 need_locks=$lt_need_locks
20400 # Do we need the lib prefix for modules?
20401 need_lib_prefix=$need_lib_prefix
20403 # Do we need a version for libraries?
20404 need_version=$need_version
20406 # Whether dlopen is supported.
20407 dlopen_support=$enable_dlopen
20409 # Whether dlopen of programs is supported.
20410 dlopen_self=$enable_dlopen_self
20412 # Whether dlopen of statically linked programs is supported.
20413 dlopen_self_static=$enable_dlopen_self_static
20415 # Compiler flag to prevent dynamic linking.
20416 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20418 # Compiler flag to turn off builtin functions.
20419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20421 # Compiler flag to allow reflexive dlopens.
20422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20424 # Compiler flag to generate shared objects directly from archives.
20425 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20427 # Compiler flag to generate thread-safe objects.
20428 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20430 # Library versioning type.
20431 version_type=$version_type
20433 # Format of library name prefix.
20434 libname_spec=$lt_libname_spec
20436 # List of archive names. First name is the real one, the rest are links.
20437 # The last name is the one that the linker finds with -lNAME.
20438 library_names_spec=$lt_library_names_spec
20440 # The coded name of the library, if different from the real name.
20441 soname_spec=$lt_soname_spec
20443 # Commands used to build and install an old-style archive.
20445 old_archive_cmds=$lt_old_archive_cmds_GCJ
20446 old_postinstall_cmds=$lt_old_postinstall_cmds
20447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20449 # Create an old-style archive from a shared archive.
20450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20452 # Create a temporary old-style archive to link instead of a shared archive.
20453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20455 # Commands used to build and install a shared archive.
20456 archive_cmds=$lt_archive_cmds_GCJ
20457 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20458 postinstall_cmds=$lt_postinstall_cmds
20459 postuninstall_cmds=$lt_postuninstall_cmds
20461 # Commands used to build a loadable module (assumed same as above if empty)
20462 module_cmds=$lt_module_cmds_GCJ
20463 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20465 # Commands to strip libraries.
20466 old_striplib=$lt_old_striplib
20467 striplib=$lt_striplib
20469 # Dependencies to place before the objects being linked to create a
20471 predep_objects=$lt_predep_objects_GCJ
20473 # Dependencies to place after the objects being linked to create a
20475 postdep_objects=$lt_postdep_objects_GCJ
20477 # Dependencies to place before the objects being linked to create a
20479 predeps=$lt_predeps_GCJ
20481 # Dependencies to place after the objects being linked to create a
20483 postdeps=$lt_postdeps_GCJ
20485 # The library search path used internally by the compiler when linking
20486 # a shared library.
20487 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20489 # Method to check whether dependent libraries are shared objects.
20490 deplibs_check_method=$lt_deplibs_check_method
20492 # Command to use when deplibs_check_method == file_magic.
20493 file_magic_cmd=$lt_file_magic_cmd
20495 # Flag that allows shared libraries with undefined symbols to be built.
20496 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20498 # Flag that forces no undefined symbols.
20499 no_undefined_flag=$lt_no_undefined_flag_GCJ
20501 # Commands used to finish a libtool library installation in a directory.
20502 finish_cmds=$lt_finish_cmds
20504 # Same as above, but a single script fragment to be evaled but not shown.
20505 finish_eval=$lt_finish_eval
20507 # Take the output of nm and produce a listing of raw symbols and C names.
20508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20510 # Transform the output of nm in a proper C declaration
20511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20513 # Transform the output of nm in a C name address pair
20514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20516 # This is the shared library runtime path variable.
20517 runpath_var=$runpath_var
20519 # This is the shared library path variable.
20520 shlibpath_var=$shlibpath_var
20522 # Is shlibpath searched before the hard-coded library search path?
20523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20525 # How to hardcode a shared library path into an executable.
20526 hardcode_action=$hardcode_action_GCJ
20528 # Whether we should hardcode library paths into libraries.
20529 hardcode_into_libs=$hardcode_into_libs
20531 # Flag to hardcode \$libdir into a binary during linking.
20532 # This must work even if \$libdir does not exist.
20533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20535 # If ld is used when linking, flag to hardcode \$libdir into
20536 # a binary during linking. This must work even if \$libdir does
20538 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20540 # Whether we need a single -rpath flag with a separated argument.
20541 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20543 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20544 # resulting binary.
20545 hardcode_direct=$hardcode_direct_GCJ
20547 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20548 # resulting binary.
20549 hardcode_minus_L=$hardcode_minus_L_GCJ
20551 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20552 # the resulting binary.
20553 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20555 # Set to yes if building a shared library automatically hardcodes DIR into the library
20556 # and all subsequent libraries and executables linked against it.
20557 hardcode_automatic=$hardcode_automatic_GCJ
20559 # Variables whose values should be saved in libtool wrapper scripts and
20560 # restored at relink time.
20561 variables_saved_for_relink="$variables_saved_for_relink"
20563 # Whether libtool must link a program against all its dependency libraries.
20564 link_all_deplibs=$link_all_deplibs_GCJ
20566 # Compile-time system search path for libraries
20567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20569 # Run-time system search path for libraries
20570 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20572 # Fix the shell variable \$srcfile for the compiler.
20573 fix_srcfile_path="$fix_srcfile_path_GCJ"
20575 # Set to yes if exported symbols are required.
20576 always_export_symbols=$always_export_symbols_GCJ
20578 # The commands to list exported symbols.
20579 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20581 # The commands to extract the exported symbol list from a shared archive.
20582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20584 # Symbols that should not be listed in the preloaded symbols.
20585 exclude_expsyms=$lt_exclude_expsyms_GCJ
20587 # Symbols that must always be exported.
20588 include_expsyms=$lt_include_expsyms_GCJ
20590 # ### END LIBTOOL TAG CONFIG: $tagname
20596 # If there is no Makefile yet, we rely on a make rule to execute
20597 # `config.status --recheck' to rerun these tests and create the
20598 # libtool script then.
20599 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20600 if test -f "$ltmain_in"; then
20601 test -f Makefile && make "$ltmain"
20607 ac_cpp='$CPP $CPPFLAGS'
20608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20623 # Source file extension for RC test sources.
20626 # Object file extension for compiled RC test sources.
20630 # Code to be used in simple compile tests
20631 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20633 # Code to be used in simple link tests
20634 lt_simple_link_test_code="$lt_simple_compile_test_code"
20636 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20638 # If no C compiler was specified, use CC.
20641 # Allow CC to be a program name with arguments.
20645 # Allow CC to be a program name with arguments.
20650 lt_cv_prog_compiler_c_o_RC=yes
20652 # The else clause should only fire when bootstrapping the
20653 # libtool distribution, otherwise you forgot to ship ltmain.sh
20654 # with your package, and you will get complaints that there are
20655 # no rules to generate ltmain.sh.
20656 if test -f "$ltmain"; then
20657 # See if we are running on zsh, and set the options which allow our commands through
20658 # without removal of \ escapes.
20659 if test -n "${ZSH_VERSION+set}" ; then
20660 setopt NO_GLOB_SUBST
20662 # Now quote all the things that may contain metacharacters while being
20663 # careful not to overquote the AC_SUBSTed values. We take copies of the
20664 # variables and quote the copies for generation of the libtool script.
20665 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20667 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20668 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20669 deplibs_check_method reload_flag reload_cmds need_locks \
20670 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20671 lt_cv_sys_global_symbol_to_c_name_address \
20672 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20673 old_postinstall_cmds old_postuninstall_cmds \
20677 lt_prog_compiler_wl_RC \
20678 lt_prog_compiler_pic_RC \
20679 lt_prog_compiler_static_RC \
20680 lt_prog_compiler_no_builtin_flag_RC \
20681 export_dynamic_flag_spec_RC \
20682 thread_safe_flag_spec_RC \
20683 whole_archive_flag_spec_RC \
20684 enable_shared_with_static_runtimes_RC \
20685 old_archive_cmds_RC \
20686 old_archive_from_new_cmds_RC \
20687 predep_objects_RC \
20688 postdep_objects_RC \
20691 compiler_lib_search_path_RC \
20693 archive_expsym_cmds_RC \
20694 postinstall_cmds_RC \
20695 postuninstall_cmds_RC \
20696 old_archive_from_expsyms_cmds_RC \
20697 allow_undefined_flag_RC \
20698 no_undefined_flag_RC \
20699 export_symbols_cmds_RC \
20700 hardcode_libdir_flag_spec_RC \
20701 hardcode_libdir_flag_spec_ld_RC \
20702 hardcode_libdir_separator_RC \
20703 hardcode_automatic_RC \
20705 module_expsym_cmds_RC \
20706 lt_cv_prog_compiler_c_o_RC \
20707 exclude_expsyms_RC \
20708 include_expsyms_RC; do
20711 old_archive_cmds_RC | \
20712 old_archive_from_new_cmds_RC | \
20713 archive_cmds_RC | \
20714 archive_expsym_cmds_RC | \
20716 module_expsym_cmds_RC | \
20717 old_archive_from_expsyms_cmds_RC | \
20718 export_symbols_cmds_RC | \
20719 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20720 postinstall_cmds | postuninstall_cmds | \
20721 old_postinstall_cmds | old_postuninstall_cmds | \
20722 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20723 # Double-quote double-evaled strings.
20724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20727 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20733 *'\$0 --fallback-echo"')
20734 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20740 cat <<__EOF__ >> "$cfgfile"
20741 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20743 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20745 # Shell to use when invoking shell scripts.
20748 # Whether or not to build shared libraries.
20749 build_libtool_libs=$enable_shared
20751 # Whether or not to build static libraries.
20752 build_old_libs=$enable_static
20754 # Whether or not to add -lc for building shared libraries.
20755 build_libtool_need_lc=$archive_cmds_need_lc_RC
20757 # Whether or not to disallow shared libs when runtime libs are static
20758 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20760 # Whether or not to optimize for fast installation.
20761 fast_install=$enable_fast_install
20764 host_alias=$host_alias
20767 # An echo program that does not interpret backslashes.
20772 AR_FLAGS=$lt_AR_FLAGS
20777 # A language-specific compiler.
20780 # Is the compiler the GNU C compiler?
20786 # The linker used to build libraries.
20789 # Whether we need hard or soft links.
20792 # A BSD-compatible nm program.
20795 # A symbol stripping program
20798 # Used to examine libraries when file_magic_cmd begins "file"
20799 MAGIC_CMD=$MAGIC_CMD
20801 # Used on cygwin: DLL creation program.
20804 # Used on cygwin: object dumper.
20807 # Used on cygwin: assembler.
20810 # The name of the directory that contains temporary libtool files.
20813 # How to create reloadable object files.
20814 reload_flag=$lt_reload_flag
20815 reload_cmds=$lt_reload_cmds
20817 # How to pass a linker flag through the compiler.
20818 wl=$lt_lt_prog_compiler_wl_RC
20820 # Object file suffix (normally "o").
20821 objext="$ac_objext"
20823 # Old archive suffix (normally "a").
20826 # Shared library suffix (normally ".so").
20827 shrext_cmds='$shrext_cmds'
20829 # Executable file suffix (normally "").
20832 # Additional compiler flags for building library objects.
20833 pic_flag=$lt_lt_prog_compiler_pic_RC
20836 # What is the maximum length of a command?
20837 max_cmd_len=$lt_cv_sys_max_cmd_len
20839 # Does compiler simultaneously support -c and -o options?
20840 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20842 # Must we lock files when doing compilation ?
20843 need_locks=$lt_need_locks
20845 # Do we need the lib prefix for modules?
20846 need_lib_prefix=$need_lib_prefix
20848 # Do we need a version for libraries?
20849 need_version=$need_version
20851 # Whether dlopen is supported.
20852 dlopen_support=$enable_dlopen
20854 # Whether dlopen of programs is supported.
20855 dlopen_self=$enable_dlopen_self
20857 # Whether dlopen of statically linked programs is supported.
20858 dlopen_self_static=$enable_dlopen_self_static
20860 # Compiler flag to prevent dynamic linking.
20861 link_static_flag=$lt_lt_prog_compiler_static_RC
20863 # Compiler flag to turn off builtin functions.
20864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20866 # Compiler flag to allow reflexive dlopens.
20867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20869 # Compiler flag to generate shared objects directly from archives.
20870 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20872 # Compiler flag to generate thread-safe objects.
20873 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20875 # Library versioning type.
20876 version_type=$version_type
20878 # Format of library name prefix.
20879 libname_spec=$lt_libname_spec
20881 # List of archive names. First name is the real one, the rest are links.
20882 # The last name is the one that the linker finds with -lNAME.
20883 library_names_spec=$lt_library_names_spec
20885 # The coded name of the library, if different from the real name.
20886 soname_spec=$lt_soname_spec
20888 # Commands used to build and install an old-style archive.
20890 old_archive_cmds=$lt_old_archive_cmds_RC
20891 old_postinstall_cmds=$lt_old_postinstall_cmds
20892 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20894 # Create an old-style archive from a shared archive.
20895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20897 # Create a temporary old-style archive to link instead of a shared archive.
20898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20900 # Commands used to build and install a shared archive.
20901 archive_cmds=$lt_archive_cmds_RC
20902 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20903 postinstall_cmds=$lt_postinstall_cmds
20904 postuninstall_cmds=$lt_postuninstall_cmds
20906 # Commands used to build a loadable module (assumed same as above if empty)
20907 module_cmds=$lt_module_cmds_RC
20908 module_expsym_cmds=$lt_module_expsym_cmds_RC
20910 # Commands to strip libraries.
20911 old_striplib=$lt_old_striplib
20912 striplib=$lt_striplib
20914 # Dependencies to place before the objects being linked to create a
20916 predep_objects=$lt_predep_objects_RC
20918 # Dependencies to place after the objects being linked to create a
20920 postdep_objects=$lt_postdep_objects_RC
20922 # Dependencies to place before the objects being linked to create a
20924 predeps=$lt_predeps_RC
20926 # Dependencies to place after the objects being linked to create a
20928 postdeps=$lt_postdeps_RC
20930 # The library search path used internally by the compiler when linking
20931 # a shared library.
20932 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20934 # Method to check whether dependent libraries are shared objects.
20935 deplibs_check_method=$lt_deplibs_check_method
20937 # Command to use when deplibs_check_method == file_magic.
20938 file_magic_cmd=$lt_file_magic_cmd
20940 # Flag that allows shared libraries with undefined symbols to be built.
20941 allow_undefined_flag=$lt_allow_undefined_flag_RC
20943 # Flag that forces no undefined symbols.
20944 no_undefined_flag=$lt_no_undefined_flag_RC
20946 # Commands used to finish a libtool library installation in a directory.
20947 finish_cmds=$lt_finish_cmds
20949 # Same as above, but a single script fragment to be evaled but not shown.
20950 finish_eval=$lt_finish_eval
20952 # Take the output of nm and produce a listing of raw symbols and C names.
20953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20955 # Transform the output of nm in a proper C declaration
20956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20958 # Transform the output of nm in a C name address pair
20959 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20961 # This is the shared library runtime path variable.
20962 runpath_var=$runpath_var
20964 # This is the shared library path variable.
20965 shlibpath_var=$shlibpath_var
20967 # Is shlibpath searched before the hard-coded library search path?
20968 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20970 # How to hardcode a shared library path into an executable.
20971 hardcode_action=$hardcode_action_RC
20973 # Whether we should hardcode library paths into libraries.
20974 hardcode_into_libs=$hardcode_into_libs
20976 # Flag to hardcode \$libdir into a binary during linking.
20977 # This must work even if \$libdir does not exist.
20978 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20980 # If ld is used when linking, flag to hardcode \$libdir into
20981 # a binary during linking. This must work even if \$libdir does
20983 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20985 # Whether we need a single -rpath flag with a separated argument.
20986 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20988 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20989 # resulting binary.
20990 hardcode_direct=$hardcode_direct_RC
20992 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20993 # resulting binary.
20994 hardcode_minus_L=$hardcode_minus_L_RC
20996 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20997 # the resulting binary.
20998 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21000 # Set to yes if building a shared library automatically hardcodes DIR into the library
21001 # and all subsequent libraries and executables linked against it.
21002 hardcode_automatic=$hardcode_automatic_RC
21004 # Variables whose values should be saved in libtool wrapper scripts and
21005 # restored at relink time.
21006 variables_saved_for_relink="$variables_saved_for_relink"
21008 # Whether libtool must link a program against all its dependency libraries.
21009 link_all_deplibs=$link_all_deplibs_RC
21011 # Compile-time system search path for libraries
21012 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21014 # Run-time system search path for libraries
21015 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21017 # Fix the shell variable \$srcfile for the compiler.
21018 fix_srcfile_path="$fix_srcfile_path_RC"
21020 # Set to yes if exported symbols are required.
21021 always_export_symbols=$always_export_symbols_RC
21023 # The commands to list exported symbols.
21024 export_symbols_cmds=$lt_export_symbols_cmds_RC
21026 # The commands to extract the exported symbol list from a shared archive.
21027 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21029 # Symbols that should not be listed in the preloaded symbols.
21030 exclude_expsyms=$lt_exclude_expsyms_RC
21032 # Symbols that must always be exported.
21033 include_expsyms=$lt_include_expsyms_RC
21035 # ### END LIBTOOL TAG CONFIG: $tagname
21041 # If there is no Makefile yet, we rely on a make rule to execute
21042 # `config.status --recheck' to rerun these tests and create the
21043 # libtool script then.
21044 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21045 if test -f "$ltmain_in"; then
21046 test -f Makefile && make "$ltmain"
21052 ac_cpp='$CPP $CPPFLAGS'
21053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21063 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21064 { (exit 1); exit 1; }; }
21068 # Append the new tag name to the list of available tags.
21069 if test -n "$tagname" ; then
21070 available_tags="$available_tags $tagname"
21076 # Now substitute the updated list of available tags.
21077 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21078 mv "${ofile}T" "$ofile"
21082 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21083 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21084 { (exit 1); exit 1; }; }
21090 # This can be used to rebuild libtool when needed
21091 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21093 # Always use our own libtool.
21094 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21096 # Prevent multiple expansion
21119 ac_cpp='$CPP $CPPFLAGS'
21120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21125 # Checks for typedefs, structures, and compiler characteristics.
21126 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21127 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21128 if test "${ac_cv_c_const+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21141 /* FIXME: Include the comments suggested by Paul. */
21142 #ifndef __cplusplus
21143 /* Ultrix mips cc rejects this. */
21144 typedef int charset[2];
21146 /* SunOS 4.1.1 cc rejects this. */
21147 char const *const *ccp;
21149 /* NEC SVR4.0.2 mips cc rejects this. */
21150 struct point {int x, y;};
21151 static struct point const zero = {0,0};
21152 /* AIX XL C 1.02.0.0 rejects this.
21153 It does not let you subtract one const X* pointer from another in
21154 an arm of an if-expression whose if-part is not a constant
21156 const char *g = "string";
21157 ccp = &g + (g ? g-g : 0);
21158 /* HPUX 7.0 cc rejects these. */
21161 ccp = (char const *const *) p;
21162 { /* SCO 3.2v4 cc rejects this. */
21164 char const *s = 0 ? (char *) 0 : (char const *) 0;
21168 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21169 int x[] = {25, 17};
21170 const int *foo = &x[0];
21173 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21174 typedef const int *iptr;
21178 { /* AIX XL C 1.02.0.0 rejects this saying
21179 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21180 struct s { int j; const int *ap[3]; };
21181 struct s *b; b->j = 5;
21183 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21184 const int foo = 10;
21192 rm -f conftest.$ac_objext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194 (eval $ac_compile) 2>conftest.er1
21196 grep -v '^ *+' conftest.er1 >conftest.err
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try='test -z "$ac_c_werror_flag"
21202 || test ! -s conftest.err'
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; } &&
21208 { ac_try='test -s conftest.$ac_objext'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21223 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21224 echo "${ECHO_T}$ac_cv_c_const" >&6
21225 if test $ac_cv_c_const = no; then
21227 cat >>confdefs.h <<\_ACEOF
21233 echo "$as_me:$LINENO: checking for size_t" >&5
21234 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21235 if test "${ac_cv_type_size_t+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 $ac_includes_default
21250 if (sizeof (size_t))
21256 rm -f conftest.$ac_objext
21257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21258 (eval $ac_compile) 2>conftest.er1
21260 grep -v '^ *+' conftest.er1 >conftest.err
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
21265 { ac_try='test -z "$ac_c_werror_flag"
21266 || test ! -s conftest.err'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_cv_type_size_t=yes
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21283 ac_cv_type_size_t=no
21285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21287 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21288 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21289 if test $ac_cv_type_size_t = yes; then
21293 cat >>confdefs.h <<_ACEOF
21294 #define size_t unsigned
21299 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21300 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21301 if test "${ac_cv_struct_tm+set}" = set; then
21302 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 #include <sys/types.h>
21316 struct tm *tp; tp->tm_sec;
21321 rm -f conftest.$ac_objext
21322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21323 (eval $ac_compile) 2>conftest.er1
21325 grep -v '^ *+' conftest.er1 >conftest.err
21327 cat conftest.err >&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } &&
21330 { ac_try='test -z "$ac_c_werror_flag"
21331 || test ! -s conftest.err'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; } &&
21337 { ac_try='test -s conftest.$ac_objext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_cv_struct_tm=time.h
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21348 ac_cv_struct_tm=sys/time.h
21350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21352 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21353 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21354 if test $ac_cv_struct_tm = sys/time.h; then
21356 cat >>confdefs.h <<\_ACEOF
21357 #define TM_IN_SYS_TIME 1
21363 # Checks for library functions.
21365 for ac_func in strftime
21367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21368 echo "$as_me:$LINENO: checking for $ac_func" >&5
21369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21370 if eval "test \"\${$as_ac_var+set}\" = set"; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 cat >conftest.$ac_ext <<_ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21381 #define $ac_func innocuous_$ac_func
21383 /* System header to define __stub macros and hopefully few prototypes,
21384 which can conflict with char $ac_func (); below.
21385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21386 <limits.h> exists even on freestanding compilers. */
21389 # include <limits.h>
21391 # include <assert.h>
21396 /* Override any gcc2 internal prototype to avoid an error. */
21401 /* We use char because int might match the return type of a gcc2
21402 builtin and then its argument prototype would still apply. */
21404 /* The GNU C library defines this for functions which it implements
21405 to always fail with ENOSYS. Some functions are actually named
21406 something starting with __ and the normal name is an alias. */
21407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21410 char (*f) () = $ac_func;
21419 return f != $ac_func;
21424 rm -f conftest.$ac_objext conftest$ac_exeext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426 (eval $ac_link) 2>conftest.er1
21428 grep -v '^ *+' conftest.er1 >conftest.err
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try='test -z "$ac_c_werror_flag"
21434 || test ! -s conftest.err'
21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436 (eval $ac_try) 2>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; } &&
21440 { ac_try='test -s conftest$ac_exeext'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
21446 eval "$as_ac_var=yes"
21448 echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21451 eval "$as_ac_var=no"
21453 rm -f conftest.err conftest.$ac_objext \
21454 conftest$ac_exeext conftest.$ac_ext
21456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21458 if test `eval echo '${'$as_ac_var'}'` = yes; then
21459 cat >>confdefs.h <<_ACEOF
21460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21464 # strftime is in -lintl on SCO UNIX.
21465 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21466 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21467 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21470 ac_check_lib_save_LIBS=$LIBS
21471 LIBS="-lintl $LIBS"
21472 cat >conftest.$ac_ext <<_ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21479 /* Override any gcc2 internal prototype to avoid an error. */
21483 /* We use char because int might match the return type of a gcc2
21484 builtin and then its argument prototype would still apply. */
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21496 (eval $ac_link) 2>conftest.er1
21498 grep -v '^ *+' conftest.er1 >conftest.err
21500 cat conftest.err >&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } &&
21503 { ac_try='test -z "$ac_c_werror_flag"
21504 || test ! -s conftest.err'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; } &&
21510 { ac_try='test -s conftest$ac_exeext'
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21516 ac_cv_lib_intl_strftime=yes
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 ac_cv_lib_intl_strftime=no
21523 rm -f conftest.err conftest.$ac_objext \
21524 conftest$ac_exeext conftest.$ac_ext
21525 LIBS=$ac_check_lib_save_LIBS
21527 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21528 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21529 if test $ac_cv_lib_intl_strftime = yes; then
21530 cat >>confdefs.h <<\_ACEOF
21531 #define HAVE_STRFTIME 1
21534 LIBS="-lintl $LIBS"
21540 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
21541 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
21542 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
21543 echo $ECHO_N "(cached) $ECHO_C" >&6
21545 cat >conftest.$ac_ext <<_ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h. */
21551 $ac_includes_default
21556 char *p = (char *) strerror_r;
21563 rm -f conftest.$ac_objext
21564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21565 (eval $ac_compile) 2>conftest.er1
21567 grep -v '^ *+' conftest.er1 >conftest.err
21569 cat conftest.err >&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } &&
21572 { ac_try='test -z "$ac_c_werror_flag"
21573 || test ! -s conftest.err'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; } &&
21579 { ac_try='test -s conftest.$ac_objext'
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; }; then
21585 ac_cv_have_decl_strerror_r=yes
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_cv_have_decl_strerror_r=no
21592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21594 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
21595 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
21596 if test $ac_cv_have_decl_strerror_r = yes; then
21598 cat >>confdefs.h <<_ACEOF
21599 #define HAVE_DECL_STRERROR_R 1
21604 cat >>confdefs.h <<_ACEOF
21605 #define HAVE_DECL_STRERROR_R 0
21613 for ac_func in strerror_r
21615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21616 echo "$as_me:$LINENO: checking for $ac_func" >&5
21617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21618 if eval "test \"\${$as_ac_var+set}\" = set"; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 cat >conftest.$ac_ext <<_ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21629 #define $ac_func innocuous_$ac_func
21631 /* System header to define __stub macros and hopefully few prototypes,
21632 which can conflict with char $ac_func (); below.
21633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21634 <limits.h> exists even on freestanding compilers. */
21637 # include <limits.h>
21639 # include <assert.h>
21644 /* Override any gcc2 internal prototype to avoid an error. */
21649 /* We use char because int might match the return type of a gcc2
21650 builtin and then its argument prototype would still apply. */
21652 /* The GNU C library defines this for functions which it implements
21653 to always fail with ENOSYS. Some functions are actually named
21654 something starting with __ and the normal name is an alias. */
21655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21658 char (*f) () = $ac_func;
21667 return f != $ac_func;
21672 rm -f conftest.$ac_objext conftest$ac_exeext
21673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21674 (eval $ac_link) 2>conftest.er1
21676 grep -v '^ *+' conftest.er1 >conftest.err
21678 cat conftest.err >&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
21681 { ac_try='test -z "$ac_c_werror_flag"
21682 || test ! -s conftest.err'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; } &&
21688 { ac_try='test -s conftest$ac_exeext'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21694 eval "$as_ac_var=yes"
21696 echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.$ac_ext >&5
21699 eval "$as_ac_var=no"
21701 rm -f conftest.err conftest.$ac_objext \
21702 conftest$ac_exeext conftest.$ac_ext
21704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21706 if test `eval echo '${'$as_ac_var'}'` = yes; then
21707 cat >>confdefs.h <<_ACEOF
21708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21714 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
21715 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
21716 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
21717 echo $ECHO_N "(cached) $ECHO_C" >&6
21720 ac_cv_func_strerror_r_char_p=no
21721 if test $ac_cv_have_decl_strerror_r = yes; then
21722 cat >conftest.$ac_ext <<_ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h. */
21728 $ac_includes_default
21734 char x = *strerror_r (0, buf, sizeof buf);
21735 char *p = strerror_r (0, buf, sizeof buf);
21741 rm -f conftest.$ac_objext
21742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21743 (eval $ac_compile) 2>conftest.er1
21745 grep -v '^ *+' conftest.er1 >conftest.err
21747 cat conftest.err >&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } &&
21750 { ac_try='test -z "$ac_c_werror_flag"
21751 || test ! -s conftest.err'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; } &&
21757 { ac_try='test -s conftest.$ac_objext'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }; then
21763 ac_cv_func_strerror_r_char_p=yes
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21771 # strerror_r is not declared. Choose between
21772 # systems that have relatively inaccessible declarations for the
21773 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21774 # former has a strerror_r that returns char*, while the latter
21775 # has a strerror_r that returns `int'.
21776 # This test should segfault on the DEC system.
21777 if test "$cross_compiling" = yes; then
21780 cat >conftest.$ac_ext <<_ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21786 $ac_includes_default
21787 extern char *strerror_r ();
21792 char x = *strerror_r (0, buf, sizeof buf);
21793 exit (!isalpha (x));
21798 rm -f conftest$ac_exeext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21800 (eval $ac_link) 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; }; then
21809 ac_cv_func_strerror_r_char_p=yes
21811 echo "$as_me: program exited with status $ac_status" >&5
21812 echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21821 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
21822 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
21823 if test $ac_cv_func_strerror_r_char_p = yes; then
21825 cat >>confdefs.h <<\_ACEOF
21826 #define STRERROR_R_CHAR_P 1
21838 for ac_func in strchr strdup strstr timegm gmtime_r strtok_r strcasecmp
21840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21841 echo "$as_me:$LINENO: checking for $ac_func" >&5
21842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21843 if eval "test \"\${$as_ac_var+set}\" = set"; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 cat >conftest.$ac_ext <<_ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21854 #define $ac_func innocuous_$ac_func
21856 /* System header to define __stub macros and hopefully few prototypes,
21857 which can conflict with char $ac_func (); below.
21858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21859 <limits.h> exists even on freestanding compilers. */
21862 # include <limits.h>
21864 # include <assert.h>
21869 /* Override any gcc2 internal prototype to avoid an error. */
21874 /* We use char because int might match the return type of a gcc2
21875 builtin and then its argument prototype would still apply. */
21877 /* The GNU C library defines this for functions which it implements
21878 to always fail with ENOSYS. Some functions are actually named
21879 something starting with __ and the normal name is an alias. */
21880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21883 char (*f) () = $ac_func;
21892 return f != $ac_func;
21897 rm -f conftest.$ac_objext conftest$ac_exeext
21898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21899 (eval $ac_link) 2>conftest.er1
21901 grep -v '^ *+' conftest.er1 >conftest.err
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
21906 { ac_try='test -z "$ac_c_werror_flag"
21907 || test ! -s conftest.err'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; } &&
21913 { ac_try='test -s conftest$ac_exeext'
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; }; then
21919 eval "$as_ac_var=yes"
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21924 eval "$as_ac_var=no"
21926 rm -f conftest.err conftest.$ac_objext \
21927 conftest$ac_exeext conftest.$ac_ext
21929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21931 if test `eval echo '${'$as_ac_var'}'` = yes; then
21932 cat >>confdefs.h <<_ACEOF
21933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21940 # checks for pthreads
21946 ac_cpp='$CPP $CPPFLAGS'
21947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21953 # We used to check for pthread.h first, but this fails if pthread.h
21954 # requires special compiler flags (e.g. on True64 or Sequent).
21955 # It gets checked for in the link test anyway.
21957 # First of all, check if the user has set any of the PTHREAD_LIBS,
21958 # etcetera environment variables, and if threads linking works using
21960 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21961 save_CFLAGS="$CFLAGS"
21962 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21964 LIBS="$PTHREAD_LIBS $LIBS"
21965 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21966 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21974 /* Override any gcc2 internal prototype to avoid an error. */
21978 /* We use char because int might match the return type of a gcc2
21979 builtin and then its argument prototype would still apply. */
21980 char pthread_join ();
21989 rm -f conftest.$ac_objext conftest$ac_exeext
21990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21991 (eval $ac_link) 2>conftest.er1
21993 grep -v '^ *+' conftest.er1 >conftest.err
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } &&
21998 { ac_try='test -z "$ac_c_werror_flag"
21999 || test ! -s conftest.err'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; } &&
22005 { ac_try='test -s conftest$ac_exeext'
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22017 rm -f conftest.err conftest.$ac_objext \
22018 conftest$ac_exeext conftest.$ac_ext
22019 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22020 echo "${ECHO_T}$acx_pthread_ok" >&6
22021 if test x"$acx_pthread_ok" = xno; then
22026 CFLAGS="$save_CFLAGS"
22029 # We must check for the threads library under a number of different
22030 # names; the ordering is very important because some systems
22031 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22032 # libraries is broken (non-POSIX).
22034 # Create a list of thread flags to try. Items starting with a "-" are
22035 # C compiler flags, and other items are library names, except for "none"
22036 # which indicates that we try without any flags at all, and "pthread-config"
22037 # which is a program returning the flags for the Pth emulation library.
22039 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22041 # The ordering *is* (sometimes) important. Some notes on the
22042 # individual items follow:
22044 # pthreads: AIX (must check this before -lpthread)
22045 # none: in case threads are in libc; should be tried before -Kthread and
22046 # other compiler flags to prevent continual compiler warnings
22047 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22048 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22049 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22050 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22051 # -pthreads: Solaris/gcc
22052 # -mthreads: Mingw32/gcc, Lynx/gcc
22053 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22054 # doesn't hurt to check since this sometimes defines pthreads too;
22055 # also defines -D_REENTRANT)
22056 # ... -mt is also the pthreads flag for HP/aCC
22057 # pthread: Linux, etcetera
22058 # --thread-safe: KAI C++
22059 # pthread-config: use pthread-config program (for GNU Pth library)
22061 case "${host_cpu}-${host_os}" in
22064 # On Solaris (at least, for some versions), libc contains stubbed
22065 # (non-functional) versions of the pthreads routines, so link-based
22066 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
22067 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22068 # a function called by this macro, so we could check for that, but
22069 # who knows whether they'll stub that too in a future libc.) So,
22070 # we'll just look for -pthreads and -lpthread first:
22072 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22076 if test x"$acx_pthread_ok" = xno; then
22077 for flag in $acx_pthread_flags; do
22081 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22082 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
22086 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22087 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
22088 PTHREAD_CFLAGS="$flag"
22092 # Extract the first word of "pthread-config", so it can be a program name with args.
22093 set dummy pthread-config; ac_word=$2
22094 echo "$as_me:$LINENO: checking for $ac_word" >&5
22095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22096 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 if test -n "$acx_pthread_config"; then
22100 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22103 for as_dir in $PATH
22106 test -z "$as_dir" && as_dir=.
22107 for ac_exec_ext in '' $ac_executable_extensions; do
22108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22109 ac_cv_prog_acx_pthread_config="yes"
22110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22116 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22119 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22120 if test -n "$acx_pthread_config"; then
22121 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22122 echo "${ECHO_T}$acx_pthread_config" >&6
22124 echo "$as_me:$LINENO: result: no" >&5
22125 echo "${ECHO_T}no" >&6
22128 if test x"$acx_pthread_config" = xno; then continue; fi
22129 PTHREAD_CFLAGS="`pthread-config --cflags`"
22130 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22134 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22135 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
22136 PTHREAD_LIBS="-l$flag"
22141 save_CFLAGS="$CFLAGS"
22142 LIBS="$PTHREAD_LIBS $LIBS"
22143 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22145 # Check for various functions. We must include pthread.h,
22146 # since some functions may be macros. (On the Sequent, we
22147 # need a special flag -Kthread to make this header compile.)
22148 # We check for pthread_join because it is in -lpthread on IRIX
22149 # while pthread_create is in libc. We check for pthread_attr_init
22150 # due to DEC craziness with -lpthreads. We check for
22151 # pthread_cleanup_push because it is one of the few pthread
22152 # functions on Solaris that doesn't have a non-functional libc stub.
22153 # We try pthread_create on general principles.
22154 cat >conftest.$ac_ext <<_ACEOF
22157 cat confdefs.h >>conftest.$ac_ext
22158 cat >>conftest.$ac_ext <<_ACEOF
22159 /* end confdefs.h. */
22160 #include <pthread.h>
22164 pthread_t th; pthread_join(th, 0);
22165 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22166 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22171 rm -f conftest.$ac_objext conftest$ac_exeext
22172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22173 (eval $ac_link) 2>conftest.er1
22175 grep -v '^ *+' conftest.er1 >conftest.err
22177 cat conftest.err >&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } &&
22180 { ac_try='test -z "$ac_c_werror_flag"
22181 || test ! -s conftest.err'
22182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183 (eval $ac_try) 2>&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); }; } &&
22187 { ac_try='test -s conftest$ac_exeext'
22188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22189 (eval $ac_try) 2>&5
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); }; }; then
22195 echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22199 rm -f conftest.err conftest.$ac_objext \
22200 conftest$ac_exeext conftest.$ac_ext
22203 CFLAGS="$save_CFLAGS"
22205 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22206 echo "${ECHO_T}$acx_pthread_ok" >&6
22207 if test "x$acx_pthread_ok" = xyes; then
22216 # Various other checks:
22217 if test "x$acx_pthread_ok" = xyes; then
22219 LIBS="$PTHREAD_LIBS $LIBS"
22220 save_CFLAGS="$CFLAGS"
22221 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22223 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22224 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22225 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22227 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22228 cat >conftest.$ac_ext <<_ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22234 #include <pthread.h>
22238 int attr=$attr; return attr;
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22245 (eval $ac_link) 2>conftest.er1
22247 grep -v '^ *+' conftest.er1 >conftest.err
22249 cat conftest.err >&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
22252 { ac_try='test -z "$ac_c_werror_flag"
22253 || test ! -s conftest.err'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest$ac_exeext'
22260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; }; then
22265 attr_name=$attr; break
22267 echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22271 rm -f conftest.err conftest.$ac_objext \
22272 conftest$ac_exeext conftest.$ac_ext
22274 echo "$as_me:$LINENO: result: $attr_name" >&5
22275 echo "${ECHO_T}$attr_name" >&6
22276 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22278 cat >>confdefs.h <<_ACEOF
22279 #define PTHREAD_CREATE_JOINABLE $attr_name
22284 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22285 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22287 case "${host_cpu}-${host_os}" in
22288 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
22289 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22291 if test "$GCC" = "yes"; then
22292 flag="-D_REENTRANT"
22294 flag="-mt -D_REENTRANT"
22298 echo "$as_me:$LINENO: result: ${flag}" >&5
22299 echo "${ECHO_T}${flag}" >&6
22300 if test "x$flag" != xno; then
22301 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22305 CFLAGS="$save_CFLAGS"
22307 # More AIX lossage: must compile with xlc_r or cc_r
22308 if test x"$GCC" != xyes; then
22309 for ac_prog in xlc_r cc_r
22311 # Extract the first word of "$ac_prog", so it can be a program name with args.
22312 set dummy $ac_prog; ac_word=$2
22313 echo "$as_me:$LINENO: checking for $ac_word" >&5
22314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22315 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22316 echo $ECHO_N "(cached) $ECHO_C" >&6
22318 if test -n "$PTHREAD_CC"; then
22319 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22322 for as_dir in $PATH
22325 test -z "$as_dir" && as_dir=.
22326 for ac_exec_ext in '' $ac_executable_extensions; do
22327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22328 ac_cv_prog_PTHREAD_CC="$ac_prog"
22329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22337 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22338 if test -n "$PTHREAD_CC"; then
22339 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22340 echo "${ECHO_T}$PTHREAD_CC" >&6
22342 echo "$as_me:$LINENO: result: no" >&5
22343 echo "${ECHO_T}no" >&6
22346 test -n "$PTHREAD_CC" && break
22348 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22361 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22362 if test x"$acx_pthread_ok" = xyes; then
22363 enable_threads="pthread"
22367 enable_threads="no"
22370 ac_cpp='$CPP $CPPFLAGS'
22371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22376 if test $enable_threads != "pthread"; then
22377 { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22378 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22379 { (exit 1); exit 1; }; }
22382 cat >>confdefs.h <<\_ACEOF
22383 #define HAVE_PTHREAD 1
22386 LIBS="$PTHREAD_LIBS $LIBS"
22387 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22388 CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22391 # Thank you Solaris, really.
22392 echo "$as_me:$LINENO: checking for ctime_r" >&5
22393 echo $ECHO_N "checking for ctime_r... $ECHO_C" >&6
22394 if test -z "$ac_cv_ctime_args"; then
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22408 ctime_r(&clock, buf);
22414 rm -f conftest.$ac_objext
22415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22416 (eval $ac_compile) 2>conftest.er1
22418 grep -v '^ *+' conftest.er1 >conftest.err
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } &&
22423 { ac_try='test -z "$ac_c_werror_flag"
22424 || test ! -s conftest.err'
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; } &&
22430 { ac_try='test -s conftest.$ac_objext'
22431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22432 (eval $ac_try) 2>&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; }; then
22438 echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22444 cat >conftest.$ac_ext <<_ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22457 ctime_r(&clock, buf, 26);
22463 rm -f conftest.$ac_objext
22464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22465 (eval $ac_compile) 2>conftest.er1
22467 grep -v '^ *+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } &&
22472 { ac_try='test -z "$ac_c_werror_flag"
22473 || test ! -s conftest.err'
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest.$ac_objext'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22493 if test -z "$ac_cv_ctime_args"; then
22494 echo "$as_me:$LINENO: result: no" >&5
22495 echo "${ECHO_T}no" >&6
22497 if test "$ac_cv_ctime_args" = 2; then
22499 cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_CTIME_R_2 1
22503 elif test "$ac_cv_ctime_args" = 3; then
22505 cat >>confdefs.h <<\_ACEOF
22506 #define HAVE_CTIME_R_3 1
22510 echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
22511 echo "${ECHO_T}yes, and it takes $ac_cv_ctime_args arguments" >&6
22516 # Check whether --with-openssl or --without-openssl was given.
22517 if test "${with_openssl+set}" = set; then
22518 withval="$with_openssl"
22519 if test x_$with_openssl != x_/usr; then
22520 SSLFLAGS="-I${with_openssl}/include"
22524 if test "x$SSLFLAGS" = "x" ; then
22525 # Extract the first word of "pkg-config", so it can be a program name with args.
22526 set dummy pkg-config; ac_word=$2
22527 echo "$as_me:$LINENO: checking for $ac_word" >&5
22528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22529 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 case $PKG_CONFIG in
22534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22538 for as_dir in $PATH
22541 test -z "$as_dir" && as_dir=.
22542 for ac_exec_ext in '' $ac_executable_extensions; do
22543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22544 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22556 if test -n "$PKG_CONFIG"; then
22557 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22558 echo "${ECHO_T}$PKG_CONFIG" >&6
22560 echo "$as_me:$LINENO: result: no" >&5
22561 echo "${ECHO_T}no" >&6
22564 if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
22565 if pkg-config openssl ; then
22566 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
22568 { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
22569 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
22570 { (exit 1); exit 1; }; }
22575 echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
22576 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
22577 echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
22578 echo "${ECHO_T}$SSLFLAGS" >&6
22579 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
22581 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22582 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22583 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22584 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22588 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22590 # Is the header compilable?
22591 echo "$as_me:$LINENO: checking openssl/x509.h usability" >&5
22592 echo $ECHO_N "checking openssl/x509.h usability... $ECHO_C" >&6
22593 cat >conftest.$ac_ext <<_ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h. */
22599 $ac_includes_default
22600 #include <openssl/x509.h>
22602 rm -f conftest.$ac_objext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22604 (eval $ac_compile) 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } &&
22611 { ac_try='test -z "$ac_c_werror_flag"
22612 || test ! -s conftest.err'
22613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614 (eval $ac_try) 2>&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; } &&
22618 { ac_try='test -s conftest.$ac_objext'
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; }; then
22624 ac_header_compiler=yes
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22629 ac_header_compiler=no
22631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22633 echo "${ECHO_T}$ac_header_compiler" >&6
22635 # Is the header present?
22636 echo "$as_me:$LINENO: checking openssl/x509.h presence" >&5
22637 echo $ECHO_N "checking openssl/x509.h presence... $ECHO_C" >&6
22638 cat >conftest.$ac_ext <<_ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h. */
22644 #include <openssl/x509.h>
22646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22649 grep -v '^ *+' conftest.er1 >conftest.err
22651 cat conftest.err >&5
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } >/dev/null; then
22654 if test -s conftest.err; then
22655 ac_cpp_err=$ac_c_preproc_warn_flag
22656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22663 if test -z "$ac_cpp_err"; then
22664 ac_header_preproc=yes
22666 echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22669 ac_header_preproc=no
22671 rm -f conftest.err conftest.$ac_ext
22672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22673 echo "${ECHO_T}$ac_header_preproc" >&6
22675 # So? What about this header?
22676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22678 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&5
22679 echo "$as_me: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22680 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the compiler's result" >&5
22681 echo "$as_me: WARNING: openssl/x509.h: proceeding with the compiler's result" >&2;}
22682 ac_header_preproc=yes
22685 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: present but cannot be compiled" >&5
22686 echo "$as_me: WARNING: openssl/x509.h: present but cannot be compiled" >&2;}
22687 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: check for missing prerequisite headers?" >&5
22688 echo "$as_me: WARNING: openssl/x509.h: check for missing prerequisite headers?" >&2;}
22689 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: see the Autoconf documentation" >&5
22690 echo "$as_me: WARNING: openssl/x509.h: see the Autoconf documentation" >&2;}
22691 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: section \"Present But Cannot Be Compiled\"" >&5
22692 echo "$as_me: WARNING: openssl/x509.h: section \"Present But Cannot Be Compiled\"" >&2;}
22693 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&5
22694 echo "$as_me: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&2;}
22695 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&5
22696 echo "$as_me: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&2;}
22699 ## --------------------------------------------- ##
22700 ## Report this to shibboleth-users@internet2.edu ##
22701 ## --------------------------------------------- ##
22704 sed "s/^/$as_me: WARNING: /" >&2
22707 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22708 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22709 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22712 ac_cv_header_openssl_x509_h=$ac_header_preproc
22714 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22715 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22718 if test $ac_cv_header_openssl_x509_h = yes; then
22721 { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
22722 echo "$as_me: error: unable to find openssl header files" >&2;}
22723 { (exit 1); exit 1; }; }
22729 ac_cpp='$CXXCPP $CPPFLAGS'
22730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22736 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22737 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22738 if test "${ac_cv_cxx_namespaces+set}" = set; then
22739 echo $ECHO_N "(cached) $ECHO_C" >&6
22744 ac_cpp='$CXXCPP $CPPFLAGS'
22745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22749 cat >conftest.$ac_ext <<_ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 namespace Outer { namespace Inner { int i = 0; }}
22759 using namespace Outer::Inner; return i;
22764 rm -f conftest.$ac_objext
22765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766 (eval $ac_compile) 2>conftest.er1
22768 grep -v '^ *+' conftest.er1 >conftest.err
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } &&
22773 { ac_try='test -z "$ac_cxx_werror_flag"
22774 || test ! -s conftest.err'
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; } &&
22780 { ac_try='test -s conftest.$ac_objext'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; }; then
22786 ac_cv_cxx_namespaces=yes
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22791 ac_cv_cxx_namespaces=no
22793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22795 ac_cpp='$CXXCPP $CPPFLAGS'
22796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22802 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22803 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22804 if test "$ac_cv_cxx_namespaces" = yes; then
22806 cat >>confdefs.h <<\_ACEOF
22807 #define HAVE_NAMESPACES 1
22812 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22813 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22814 if test "${ac_cv_cxx_have_stl+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22821 ac_cpp='$CXXCPP $CPPFLAGS'
22822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22826 cat >conftest.$ac_ext <<_ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22834 #ifdef HAVE_NAMESPACES
22835 using namespace std;
22840 list<int> x; x.push_back(5);
22841 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22846 rm -f conftest.$ac_objext
22847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22848 (eval $ac_compile) 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } &&
22855 { ac_try='test -z "$ac_cxx_werror_flag"
22856 || test ! -s conftest.err'
22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; } &&
22862 { ac_try='test -s conftest.$ac_objext'
22863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864 (eval $ac_try) 2>&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; }; then
22868 ac_cv_cxx_have_stl=yes
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 ac_cv_cxx_have_stl=no
22875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22877 ac_cpp='$CXXCPP $CPPFLAGS'
22878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22884 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22885 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22886 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22887 { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22888 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22889 { (exit 1); exit 1; }; }
22892 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22893 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22894 if test "${ac_cv_cxx_namespaces+set}" = set; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22900 ac_cpp='$CXXCPP $CPPFLAGS'
22901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22905 cat >conftest.$ac_ext <<_ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h. */
22911 namespace Outer { namespace Inner { int i = 0; }}
22915 using namespace Outer::Inner; return i;
22920 rm -f conftest.$ac_objext
22921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22922 (eval $ac_compile) 2>conftest.er1
22924 grep -v '^ *+' conftest.er1 >conftest.err
22926 cat conftest.err >&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } &&
22929 { ac_try='test -z "$ac_cxx_werror_flag"
22930 || test ! -s conftest.err'
22931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932 (eval $ac_try) 2>&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; } &&
22936 { ac_try='test -s conftest.$ac_objext'
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; }; then
22942 ac_cv_cxx_namespaces=yes
22944 echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22947 ac_cv_cxx_namespaces=no
22949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22951 ac_cpp='$CXXCPP $CPPFLAGS'
22952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22958 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22959 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22960 if test "$ac_cv_cxx_namespaces" = yes; then
22962 cat >>confdefs.h <<\_ACEOF
22963 #define HAVE_NAMESPACES 1
22969 # log4shib settings (favor this version over the log4cpp code)
22970 # Extract the first word of "log4shib-config", so it can be a program name with args.
22971 set dummy log4shib-config; ac_word=$2
22972 echo "$as_me:$LINENO: checking for $ac_word" >&5
22973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22974 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22975 echo $ECHO_N "(cached) $ECHO_C" >&6
22977 case $LOG4SHIB_CONFIG in
22979 ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22983 for as_dir in $PATH
22986 test -z "$as_dir" && as_dir=.
22987 for ac_exec_ext in '' $ac_executable_extensions; do
22988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22989 ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22999 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
23001 if test -n "$LOG4SHIB_CONFIG"; then
23002 echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
23003 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
23005 echo "$as_me:$LINENO: result: no" >&5
23006 echo "${ECHO_T}no" >&6
23010 # Check whether --with-log4shib or --without-log4shib was given.
23011 if test "${with_log4shib+set}" = set; then
23012 withval="$with_log4shib"
23014 LOG4SHIB_CONFIG="${with_log4shib}"
23015 if ! test -f "${LOG4SHIB_CONFIG}" ; then
23016 LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
23020 if test -f "${LOG4SHIB_CONFIG}"; then
23021 LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
23022 CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
23024 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23025 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23026 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23027 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23028 echo $ECHO_N "(cached) $ECHO_C" >&6
23030 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23031 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23033 # Is the header compilable?
23034 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23035 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23036 cat >conftest.$ac_ext <<_ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 $ac_includes_default
23043 #include <log4shib/CategoryStream.hh>
23045 rm -f conftest.$ac_objext
23046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23047 (eval $ac_compile) 2>conftest.er1
23049 grep -v '^ *+' conftest.er1 >conftest.err
23051 cat conftest.err >&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); } &&
23054 { ac_try='test -z "$ac_cxx_werror_flag"
23055 || test ! -s conftest.err'
23056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057 (eval $ac_try) 2>&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; } &&
23061 { ac_try='test -s conftest.$ac_objext'
23062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063 (eval $ac_try) 2>&5
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); }; }; then
23067 ac_header_compiler=yes
23069 echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23072 ac_header_compiler=no
23074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23076 echo "${ECHO_T}$ac_header_compiler" >&6
23078 # Is the header present?
23079 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23080 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23081 cat >conftest.$ac_ext <<_ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h. */
23087 #include <log4shib/CategoryStream.hh>
23089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23092 grep -v '^ *+' conftest.er1 >conftest.err
23094 cat conftest.err >&5
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } >/dev/null; then
23097 if test -s conftest.err; then
23098 ac_cpp_err=$ac_cxx_preproc_warn_flag
23099 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23106 if test -z "$ac_cpp_err"; then
23107 ac_header_preproc=yes
23109 echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23112 ac_header_preproc=no
23114 rm -f conftest.err conftest.$ac_ext
23115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23116 echo "${ECHO_T}$ac_header_preproc" >&6
23118 # So? What about this header?
23119 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23121 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23122 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23123 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23124 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23125 ac_header_preproc=yes
23128 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23129 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23130 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: check for missing prerequisite headers?" >&5
23131 echo "$as_me: WARNING: log4shib/CategoryStream.hh: check for missing prerequisite headers?" >&2;}
23132 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23133 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23134 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&5
23135 echo "$as_me: WARNING: log4shib/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&2;}
23136 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23137 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23138 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23139 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23142 ## --------------------------------------------- ##
23143 ## Report this to shibboleth-users@internet2.edu ##
23144 ## --------------------------------------------- ##
23147 sed "s/^/$as_me: WARNING: /" >&2
23150 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23151 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23152 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23155 ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23157 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23158 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23161 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23164 { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23165 echo "$as_me: error: unable to find log4shib header files" >&2;}
23166 { (exit 1); exit 1; }; }
23170 cat >conftest.$ac_ext <<_ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23176 #include <log4shib/Category.hh>
23177 #include <log4shib/CategoryStream.hh>
23181 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23186 rm -f conftest.$ac_objext conftest$ac_exeext
23187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23188 (eval $ac_link) 2>conftest.er1
23190 grep -v '^ *+' conftest.er1 >conftest.err
23192 cat conftest.err >&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } &&
23195 { ac_try='test -z "$ac_cxx_werror_flag"
23196 || test ! -s conftest.err'
23197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; } &&
23202 { ac_try='test -s conftest$ac_exeext'
23203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204 (eval $ac_try) 2>&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); }; }; then
23209 cat >>confdefs.h <<\_ACEOF
23210 #define SHIBSP_LOG4SHIB 1
23214 echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23217 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23218 echo "$as_me: error: unable to link with log4shib" >&2;}
23219 { (exit 1); exit 1; }; }
23221 rm -f conftest.err conftest.$ac_objext \
23222 conftest$ac_exeext conftest.$ac_ext
23224 { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23225 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23226 { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23227 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23230 # Extract the first word of "log4cpp-config", so it can be a program name with args.
23231 set dummy log4cpp-config; ac_word=$2
23232 echo "$as_me:$LINENO: checking for $ac_word" >&5
23233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23234 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23235 echo $ECHO_N "(cached) $ECHO_C" >&6
23237 case $LOG4CPP_CONFIG in
23239 ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23243 for as_dir in $PATH
23246 test -z "$as_dir" && as_dir=.
23247 for ac_exec_ext in '' $ac_executable_extensions; do
23248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23249 ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23259 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23261 if test -n "$LOG4CPP_CONFIG"; then
23262 echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23263 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23265 echo "$as_me:$LINENO: result: no" >&5
23266 echo "${ECHO_T}no" >&6
23270 # Check whether --with-log4cpp or --without-log4cpp was given.
23271 if test "${with_log4cpp+set}" = set; then
23272 withval="$with_log4cpp"
23274 LOG4CPP_CONFIG="${with_log4cpp}"
23275 if ! test -f "${LOG4CPP_CONFIG}" ; then
23276 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23280 if test -f "${LOG4CPP_CONFIG}"; then
23281 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23282 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23283 LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23284 CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23285 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23286 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23287 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23288 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23289 echo $ECHO_N "(cached) $ECHO_C" >&6
23291 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23292 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23294 # Is the header compilable?
23295 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23296 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23297 cat >conftest.$ac_ext <<_ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23303 $ac_includes_default
23304 #include <log4cpp/CategoryStream.hh>
23306 rm -f conftest.$ac_objext
23307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23308 (eval $ac_compile) 2>conftest.er1
23310 grep -v '^ *+' conftest.er1 >conftest.err
23312 cat conftest.err >&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } &&
23315 { ac_try='test -z "$ac_cxx_werror_flag"
23316 || test ! -s conftest.err'
23317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318 (eval $ac_try) 2>&5
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); }; } &&
23322 { ac_try='test -s conftest.$ac_objext'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; }; then
23328 ac_header_compiler=yes
23330 echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23333 ac_header_compiler=no
23335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23337 echo "${ECHO_T}$ac_header_compiler" >&6
23339 # Is the header present?
23340 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23341 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23342 cat >conftest.$ac_ext <<_ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h. */
23348 #include <log4cpp/CategoryStream.hh>
23350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23353 grep -v '^ *+' conftest.er1 >conftest.err
23355 cat conftest.err >&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); } >/dev/null; then
23358 if test -s conftest.err; then
23359 ac_cpp_err=$ac_cxx_preproc_warn_flag
23360 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23367 if test -z "$ac_cpp_err"; then
23368 ac_header_preproc=yes
23370 echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.$ac_ext >&5
23373 ac_header_preproc=no
23375 rm -f conftest.err conftest.$ac_ext
23376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23377 echo "${ECHO_T}$ac_header_preproc" >&6
23379 # So? What about this header?
23380 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23382 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23383 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23384 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23385 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23386 ac_header_preproc=yes
23389 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23390 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23391 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: check for missing prerequisite headers?" >&5
23392 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: check for missing prerequisite headers?" >&2;}
23393 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23394 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23395 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&5
23396 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&2;}
23397 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23398 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23399 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23400 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23403 ## --------------------------------------------- ##
23404 ## Report this to shibboleth-users@internet2.edu ##
23405 ## --------------------------------------------- ##
23408 sed "s/^/$as_me: WARNING: /" >&2
23411 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23412 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23413 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23416 ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23418 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23419 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23422 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23425 { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23426 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23427 { (exit 1); exit 1; }; }
23431 cat >conftest.$ac_ext <<_ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23437 #include <log4cpp/Category.hh>
23438 #include <log4cpp/CategoryStream.hh>
23442 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23447 rm -f conftest.$ac_objext conftest$ac_exeext
23448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23449 (eval $ac_link) 2>conftest.er1
23451 grep -v '^ *+' conftest.er1 >conftest.err
23453 cat conftest.err >&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } &&
23456 { ac_try='test -z "$ac_cxx_werror_flag"
23457 || test ! -s conftest.err'
23458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459 (eval $ac_try) 2>&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); }; } &&
23463 { ac_try='test -s conftest$ac_exeext'
23464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23465 (eval $ac_try) 2>&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); }; }; then
23470 cat >>confdefs.h <<\_ACEOF
23471 #define SHIBSP_LOG4CPP 1
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23478 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23479 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23480 { (exit 1); exit 1; }; }
23482 rm -f conftest.err conftest.$ac_objext \
23483 conftest$ac_exeext conftest.$ac_ext
23485 { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23486 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23487 { (exit 1); exit 1; }; }
23493 # Check whether --with-xerces or --without-xerces was given.
23494 if test "${with_xerces+set}" = set; then
23495 withval="$with_xerces"
23496 if test x_$with_xerces != x_/usr; then
23497 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23498 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23501 LIBS="-lxerces-c $LIBS"
23502 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23503 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23504 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23505 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23506 echo $ECHO_N "(cached) $ECHO_C" >&6
23508 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23509 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23511 # Is the header compilable?
23512 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23513 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23514 cat >conftest.$ac_ext <<_ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h. */
23520 $ac_includes_default
23521 #include <xercesc/dom/DOM.hpp>
23523 rm -f conftest.$ac_objext
23524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23525 (eval $ac_compile) 2>conftest.er1
23527 grep -v '^ *+' conftest.er1 >conftest.err
23529 cat conftest.err >&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } &&
23532 { ac_try='test -z "$ac_cxx_werror_flag"
23533 || test ! -s conftest.err'
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; } &&
23539 { ac_try='test -s conftest.$ac_objext'
23540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541 (eval $ac_try) 2>&5
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); }; }; then
23545 ac_header_compiler=yes
23547 echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23550 ac_header_compiler=no
23552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23554 echo "${ECHO_T}$ac_header_compiler" >&6
23556 # Is the header present?
23557 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23558 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23559 cat >conftest.$ac_ext <<_ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 #include <xercesc/dom/DOM.hpp>
23567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23570 grep -v '^ *+' conftest.er1 >conftest.err
23572 cat conftest.err >&5
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); } >/dev/null; then
23575 if test -s conftest.err; then
23576 ac_cpp_err=$ac_cxx_preproc_warn_flag
23577 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23584 if test -z "$ac_cpp_err"; then
23585 ac_header_preproc=yes
23587 echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23590 ac_header_preproc=no
23592 rm -f conftest.err conftest.$ac_ext
23593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23594 echo "${ECHO_T}$ac_header_preproc" >&6
23596 # So? What about this header?
23597 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23599 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23600 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23601 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23602 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23603 ac_header_preproc=yes
23606 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23607 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23608 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: check for missing prerequisite headers?" >&5
23609 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: check for missing prerequisite headers?" >&2;}
23610 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23611 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23612 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: section \"Present But Cannot Be Compiled\"" >&5
23613 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
23614 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23615 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23616 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23617 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23620 ## --------------------------------------------- ##
23621 ## Report this to shibboleth-users@internet2.edu ##
23622 ## --------------------------------------------- ##
23625 sed "s/^/$as_me: WARNING: /" >&2
23628 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23629 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23630 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23633 ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23635 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23636 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23639 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23642 { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23643 echo "$as_me: error: unable to find xerces header files" >&2;}
23644 { (exit 1); exit 1; }; }
23648 echo "$as_me:$LINENO: checking Xerces version" >&5
23649 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23650 cat >conftest.$ac_ext <<_ACEOF
23653 cat confdefs.h >>conftest.$ac_ext
23654 cat >>conftest.$ac_ext <<_ACEOF
23655 /* end confdefs.h. */
23656 #include <xercesc/util/XercesVersion.hpp>
23660 #if _XERCES_VERSION != 20600
23663 #error cannot use version 2.6.0
23669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23672 grep -v '^ *+' conftest.er1 >conftest.err
23674 cat conftest.err >&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } >/dev/null; then
23677 if test -s conftest.err; then
23678 ac_cpp_err=$ac_cxx_preproc_warn_flag
23679 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23686 if test -z "$ac_cpp_err"; then
23687 echo "$as_me:$LINENO: result: OK" >&5
23688 echo "${ECHO_T}OK" >&6
23690 echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23693 { { echo "$as_me:$LINENO: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23694 See \`config.log' for more details." >&5
23695 echo "$as_me: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23696 See \`config.log' for more details." >&2;}
23697 { (exit 1); exit 1; }; }
23699 rm -f conftest.err conftest.$ac_ext
23700 cat >conftest.$ac_ext <<_ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h. */
23706 #include <xercesc/util/PlatformUtils.hpp>
23710 xercesc::XMLPlatformUtils::Initialize()
23715 rm -f conftest.$ac_objext conftest$ac_exeext
23716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23717 (eval $ac_link) 2>conftest.er1
23719 grep -v '^ *+' conftest.er1 >conftest.err
23721 cat conftest.err >&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } &&
23724 { ac_try='test -z "$ac_cxx_werror_flag"
23725 || test ! -s conftest.err'
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; } &&
23731 { ac_try='test -s conftest$ac_exeext'
23732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23733 (eval $ac_try) 2>&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; }; then
23738 cat >>confdefs.h <<\_ACEOF
23739 #define HAVE_LIBXERCESC 1
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23746 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23747 echo "$as_me: error: unable to link with Xerces" >&2;}
23748 { (exit 1); exit 1; }; }
23750 rm -f conftest.err conftest.$ac_objext \
23751 conftest$ac_exeext conftest.$ac_ext
23754 #XML-Tooling settings
23756 # Check whether --with-xmltooling or --without-xmltooling was given.
23757 if test "${with_xmltooling+set}" = set; then
23758 withval="$with_xmltooling"
23759 if test x_$with_xmltooling != x_/usr; then
23760 LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
23761 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
23764 LITE_LIBS="-lxmltooling-lite"
23765 XMLSEC_LIBS="-lxmltooling"
23766 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23767 echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
23768 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
23769 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23770 echo $ECHO_N "(cached) $ECHO_C" >&6
23772 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
23773 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
23775 # Is the header compilable?
23776 echo "$as_me:$LINENO: checking xmltooling/base.h usability" >&5
23777 echo $ECHO_N "checking xmltooling/base.h usability... $ECHO_C" >&6
23778 cat >conftest.$ac_ext <<_ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h. */
23784 $ac_includes_default
23785 #include <xmltooling/base.h>
23787 rm -f conftest.$ac_objext
23788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23789 (eval $ac_compile) 2>conftest.er1
23791 grep -v '^ *+' conftest.er1 >conftest.err
23793 cat conftest.err >&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); } &&
23796 { ac_try='test -z "$ac_cxx_werror_flag"
23797 || test ! -s conftest.err'
23798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23799 (eval $ac_try) 2>&5
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); }; } &&
23803 { ac_try='test -s conftest.$ac_objext'
23804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805 (eval $ac_try) 2>&5
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); }; }; then
23809 ac_header_compiler=yes
23811 echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 ac_header_compiler=no
23816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23818 echo "${ECHO_T}$ac_header_compiler" >&6
23820 # Is the header present?
23821 echo "$as_me:$LINENO: checking xmltooling/base.h presence" >&5
23822 echo $ECHO_N "checking xmltooling/base.h presence... $ECHO_C" >&6
23823 cat >conftest.$ac_ext <<_ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h. */
23829 #include <xmltooling/base.h>
23831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23834 grep -v '^ *+' conftest.er1 >conftest.err
23836 cat conftest.err >&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } >/dev/null; then
23839 if test -s conftest.err; then
23840 ac_cpp_err=$ac_cxx_preproc_warn_flag
23841 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23848 if test -z "$ac_cpp_err"; then
23849 ac_header_preproc=yes
23851 echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23854 ac_header_preproc=no
23856 rm -f conftest.err conftest.$ac_ext
23857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23858 echo "${ECHO_T}$ac_header_preproc" >&6
23860 # So? What about this header?
23861 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23863 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&5
23864 echo "$as_me: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23865 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&5
23866 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&2;}
23867 ac_header_preproc=yes
23870 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: present but cannot be compiled" >&5
23871 echo "$as_me: WARNING: xmltooling/base.h: present but cannot be compiled" >&2;}
23872 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: check for missing prerequisite headers?" >&5
23873 echo "$as_me: WARNING: xmltooling/base.h: check for missing prerequisite headers?" >&2;}
23874 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: see the Autoconf documentation" >&5
23875 echo "$as_me: WARNING: xmltooling/base.h: see the Autoconf documentation" >&2;}
23876 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: section \"Present But Cannot Be Compiled\"" >&5
23877 echo "$as_me: WARNING: xmltooling/base.h: section \"Present But Cannot Be Compiled\"" >&2;}
23878 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&5
23879 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&2;}
23880 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&5
23881 echo "$as_me: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&2;}
23884 ## --------------------------------------------- ##
23885 ## Report this to shibboleth-users@internet2.edu ##
23886 ## --------------------------------------------- ##
23889 sed "s/^/$as_me: WARNING: /" >&2
23892 echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
23893 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
23894 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23895 echo $ECHO_N "(cached) $ECHO_C" >&6
23897 ac_cv_header_xmltooling_base_h=$ac_header_preproc
23899 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
23900 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
23903 if test $ac_cv_header_xmltooling_base_h = yes; then
23906 { { echo "$as_me:$LINENO: error: unable to find xmltooling header files" >&5
23907 echo "$as_me: error: unable to find xmltooling header files" >&2;}
23908 { (exit 1); exit 1; }; }
23913 # Establish location of xmltooling catalog.
23914 XMLTOOLINGXMLDIR=""
23915 if test "x$with_xmltooling" = "x" ; then
23916 with_xmltooling="/usr"
23918 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
23919 XMLTOOLINGXMLDIR="$with_xmltooling"
23920 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
23921 XMLTOOLINGXMLDIR="$with_xerces"
23922 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
23923 XMLTOOLINGXMLDIR="$with_log4shib"
23925 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
23926 { { echo "$as_me:$LINENO: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&5
23927 echo "$as_me: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&2;}
23928 { (exit 1); exit 1; }; }
23930 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
23933 # XML-Security settings
23935 # Check whether --with-xmlsec or --without-xmlsec was given.
23936 if test "${with_xmlsec+set}" = set; then
23937 withval="$with_xmlsec"
23943 if test x_$with_xmlsec != x_/usr; then
23944 LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
23945 CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
23947 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
23949 # save and append master libs
23951 LIBS="$XMLSEC_LIBS $LIBS"
23953 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23954 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
23955 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
23956 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23959 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
23960 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
23962 # Is the header compilable?
23963 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
23964 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
23965 cat >conftest.$ac_ext <<_ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h. */
23971 $ac_includes_default
23972 #include <xsec/utils/XSECPlatformUtils.hpp>
23974 rm -f conftest.$ac_objext
23975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23976 (eval $ac_compile) 2>conftest.er1
23978 grep -v '^ *+' conftest.er1 >conftest.err
23980 cat conftest.err >&5
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } &&
23983 { ac_try='test -z "$ac_cxx_werror_flag"
23984 || test ! -s conftest.err'
23985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986 (eval $ac_try) 2>&5
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); }; } &&
23990 { ac_try='test -s conftest.$ac_objext'
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 ac_header_compiler=yes
23998 echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24001 ac_header_compiler=no
24003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24005 echo "${ECHO_T}$ac_header_compiler" >&6
24007 # Is the header present?
24008 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
24009 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
24010 cat >conftest.$ac_ext <<_ACEOF
24013 cat confdefs.h >>conftest.$ac_ext
24014 cat >>conftest.$ac_ext <<_ACEOF
24015 /* end confdefs.h. */
24016 #include <xsec/utils/XSECPlatformUtils.hpp>
24018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24021 grep -v '^ *+' conftest.er1 >conftest.err
24023 cat conftest.err >&5
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); } >/dev/null; then
24026 if test -s conftest.err; then
24027 ac_cpp_err=$ac_cxx_preproc_warn_flag
24028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24035 if test -z "$ac_cpp_err"; then
24036 ac_header_preproc=yes
24038 echo "$as_me: failed program was:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24041 ac_header_preproc=no
24043 rm -f conftest.err conftest.$ac_ext
24044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24045 echo "${ECHO_T}$ac_header_preproc" >&6
24047 # So? What about this header?
24048 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24050 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
24051 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
24052 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
24053 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
24054 ac_header_preproc=yes
24057 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
24058 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
24059 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: check for missing prerequisite headers?" >&5
24060 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: check for missing prerequisite headers?" >&2;}
24061 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
24062 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
24063 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: section \"Present But Cannot Be Compiled\"" >&5
24064 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
24065 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
24066 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
24067 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
24068 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
24071 ## --------------------------------------------- ##
24072 ## Report this to shibboleth-users@internet2.edu ##
24073 ## --------------------------------------------- ##
24076 sed "s/^/$as_me: WARNING: /" >&2
24079 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24080 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24081 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24082 echo $ECHO_N "(cached) $ECHO_C" >&6
24084 ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
24086 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24087 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24090 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
24093 { { echo "$as_me:$LINENO: error: unable to find XML-Security header files" >&5
24094 echo "$as_me: error: unable to find XML-Security header files" >&2;}
24095 { (exit 1); exit 1; }; }
24099 echo "$as_me:$LINENO: checking XML-Security version" >&5
24100 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
24101 cat >conftest.$ac_ext <<_ACEOF
24104 cat confdefs.h >>conftest.$ac_ext
24105 cat >>conftest.$ac_ext <<_ACEOF
24106 /* end confdefs.h. */
24107 #include <xsec/utils/XSECPlatformUtils.hpp>
24111 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
24114 #error need version 1.4.0 or later
24120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24123 grep -v '^ *+' conftest.er1 >conftest.err
24125 cat conftest.err >&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } >/dev/null; then
24128 if test -s conftest.err; then
24129 ac_cpp_err=$ac_cxx_preproc_warn_flag
24130 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24137 if test -z "$ac_cpp_err"; then
24138 echo "$as_me:$LINENO: result: OK" >&5
24139 echo "${ECHO_T}OK" >&6
24141 echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24144 { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
24145 See \`config.log' for more details." >&5
24146 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
24147 See \`config.log' for more details." >&2;}
24148 { (exit 1); exit 1; }; }
24150 rm -f conftest.err conftest.$ac_ext
24151 cat >conftest.$ac_ext <<_ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h. */
24157 #include <xsec/utils/XSECPlatformUtils.hpp>
24161 XSECPlatformUtils::Initialise()
24166 rm -f conftest.$ac_objext conftest$ac_exeext
24167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24168 (eval $ac_link) 2>conftest.er1
24170 grep -v '^ *+' conftest.er1 >conftest.err
24172 cat conftest.err >&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } &&
24175 { ac_try='test -z "$ac_cxx_werror_flag"
24176 || test ! -s conftest.err'
24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; } &&
24182 { ac_try='test -s conftest$ac_exeext'
24183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 (eval $ac_try) 2>&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); }; }; then
24190 echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24193 { { echo "$as_me:$LINENO: error: unable to link with XML-Security" >&5
24194 echo "$as_me: error: unable to link with XML-Security" >&2;}
24195 { (exit 1); exit 1; }; }
24197 rm -f conftest.err conftest.$ac_objext \
24198 conftest$ac_exeext conftest.$ac_ext
24200 # restore master libs
24203 # OpenSAML settings
24205 # Check whether --with-saml or --without-saml was given.
24206 if test "${with_saml+set}" = set; then
24207 withval="$with_saml"
24208 if test x_$with_saml != x_/usr; then
24209 LDFLAGS="-L${with_saml}/lib $LDFLAGS"
24210 CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
24213 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
24215 # save and append master libs
24217 LIBS="$XMLSEC_LIBS $LIBS"
24219 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24220 echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24221 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24222 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24223 echo $ECHO_N "(cached) $ECHO_C" >&6
24225 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24226 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24228 # Is the header compilable?
24229 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h usability" >&5
24230 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h usability... $ECHO_C" >&6
24231 cat >conftest.$ac_ext <<_ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h. */
24237 $ac_includes_default
24238 #include <saml/saml2/metadata/Metadata.h>
24240 rm -f conftest.$ac_objext
24241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24242 (eval $ac_compile) 2>conftest.er1
24244 grep -v '^ *+' conftest.er1 >conftest.err
24246 cat conftest.err >&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } &&
24249 { ac_try='test -z "$ac_cxx_werror_flag"
24250 || test ! -s conftest.err'
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 (eval $ac_try) 2>&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; } &&
24256 { ac_try='test -s conftest.$ac_objext'
24257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258 (eval $ac_try) 2>&5
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); }; }; then
24262 ac_header_compiler=yes
24264 echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24267 ac_header_compiler=no
24269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24271 echo "${ECHO_T}$ac_header_compiler" >&6
24273 # Is the header present?
24274 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h presence" >&5
24275 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h presence... $ECHO_C" >&6
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24282 #include <saml/saml2/metadata/Metadata.h>
24284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24287 grep -v '^ *+' conftest.er1 >conftest.err
24289 cat conftest.err >&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } >/dev/null; then
24292 if test -s conftest.err; then
24293 ac_cpp_err=$ac_cxx_preproc_warn_flag
24294 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24301 if test -z "$ac_cpp_err"; then
24302 ac_header_preproc=yes
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24307 ac_header_preproc=no
24309 rm -f conftest.err conftest.$ac_ext
24310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24311 echo "${ECHO_T}$ac_header_preproc" >&6
24313 # So? What about this header?
24314 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24316 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&5
24317 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24318 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&5
24319 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&2;}
24320 ac_header_preproc=yes
24323 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&5
24324 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&2;}
24325 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: check for missing prerequisite headers?" >&5
24326 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: check for missing prerequisite headers?" >&2;}
24327 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&5
24328 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&2;}
24329 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: section \"Present But Cannot Be Compiled\"" >&5
24330 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: section \"Present But Cannot Be Compiled\"" >&2;}
24331 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&5
24332 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&2;}
24333 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&5
24334 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&2;}
24337 ## --------------------------------------------- ##
24338 ## Report this to shibboleth-users@internet2.edu ##
24339 ## --------------------------------------------- ##
24342 sed "s/^/$as_me: WARNING: /" >&2
24345 echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24346 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24347 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24348 echo $ECHO_N "(cached) $ECHO_C" >&6
24350 ac_cv_header_saml_saml2_metadata_Metadata_h=$ac_header_preproc
24352 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24353 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24356 if test $ac_cv_header_saml_saml2_metadata_Metadata_h = yes; then
24359 { { echo "$as_me:$LINENO: error: unable to find OpenSAML header files" >&5
24360 echo "$as_me: error: unable to find OpenSAML header files" >&2;}
24361 { (exit 1); exit 1; }; }
24365 cat >conftest.$ac_ext <<_ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24371 #include <saml/SAMLConfig.h>
24372 #include <saml/version.h>
24376 #if _OPENSAML_VERSION >= 20000
24377 opensaml::SAMLConfig::getConfig();
24379 #error Need OpenSAML version 2.0 or higher
24385 rm -f conftest.$ac_objext conftest$ac_exeext
24386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24387 (eval $ac_link) 2>conftest.er1
24389 grep -v '^ *+' conftest.er1 >conftest.err
24391 cat conftest.err >&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); } &&
24394 { ac_try='test -z "$ac_cxx_werror_flag"
24395 || test ! -s conftest.err'
24396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397 (eval $ac_try) 2>&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); }; } &&
24401 { ac_try='test -s conftest$ac_exeext'
24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403 (eval $ac_try) 2>&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; }; then
24408 cat >>confdefs.h <<\_ACEOF
24409 #define HAVE_SAML 1
24413 echo "$as_me: failed program was:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24416 { { echo "$as_me:$LINENO: error: unable to link with OpenSAML, or version was too old" >&5
24417 echo "$as_me: error: unable to link with OpenSAML, or version was too old" >&2;}
24418 { (exit 1); exit 1; }; }
24420 rm -f conftest.err conftest.$ac_objext \
24421 conftest$ac_exeext conftest.$ac_ext
24423 # restore master libs
24426 # Establish location of opensaml catalogs.
24428 if test "x$with_saml" = "x" ; then
24431 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
24432 OPENSAMLXMLDIR="$with_saml"
24433 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
24434 OPENSAMLXMLDIR="$with_xmltooling"
24435 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
24436 OPENSAMLXMLDIR="$with_xerces"
24437 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
24438 OPENSAMLXMLDIR="$with_log4shib"
24440 if test "x$OPENSAMLXMLDIR" = "x" ; then
24441 { { echo "$as_me:$LINENO: error: opensaml XML catalogs not found, may need to use --with-saml option" >&5
24442 echo "$as_me: error: opensaml XML catalogs not found, may need to use --with-saml option" >&2;}
24443 { (exit 1); exit 1; }; }
24445 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
24451 # output the underlying makefiles
24452 WANT_SUBDIRS="doc schemas configs shibsp shibd util"
24453 ac_config_files="$ac_config_files Makefile doc/Makefile schemas/Makefile configs/Makefile shibsp/Makefile shibd/Makefile util/Makefile selinux/Makefile"
24457 ac_config_files="$ac_config_files adfs/Makefile"
24459 # Check whether --enable-adfs or --disable-adfs was given.
24460 if test "${enable_adfs+set}" = set; then
24461 enableval="$enable_adfs"
24462 adfs_enabled=$enableval
24466 if test "x$adfs_enabled" = "x" ; then
24469 echo "$as_me:$LINENO: checking whether to build the ADFS module" >&5
24470 echo $ECHO_N "checking whether to build the ADFS module... $ECHO_C" >&6
24471 if test "$adfs_enabled" = "no" ; then
24472 echo "$as_me:$LINENO: result: no" >&5
24473 echo "${ECHO_T}no" >&6
24475 echo "$as_me:$LINENO: result: yes" >&5
24476 echo "${ECHO_T}yes" >&6
24477 WANT_SUBDIRS="$WANT_SUBDIRS adfs"
24482 # Build NSAPI module?
24484 echo "$as_me:$LINENO: checking for NSAPI module option" >&5
24485 echo $ECHO_N "checking for NSAPI module option... $ECHO_C" >&6
24487 # Check whether --with-nsapi or --without-nsapi was given.
24488 if test "${with_nsapi+set}" = set; then
24489 withval="$with_nsapi"
24490 WANT_NSAPI=$withval
24494 echo "$as_me:$LINENO: result: $WANT_NSAPI" >&5
24495 echo "${ECHO_T}$WANT_NSAPI" >&6
24497 if test "$WANT_NSAPI" != "no"; then
24498 if test ! -d $WANT_NSAPI/bin ; then
24499 { { echo "$as_me:$LINENO: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&5
24500 echo "$as_me: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&2;}
24501 { (exit 1); exit 1; }; }
24503 echo "$as_me:$LINENO: checking for NSAPI include files" >&5
24504 echo $ECHO_N "checking for NSAPI include files... $ECHO_C" >&6
24505 if test -d $WANT_NSAPI/include ; then
24506 NSAPI_INCLUDE=$WANT_NSAPI/include
24507 echo "$as_me:$LINENO: result: Netscape-Enterprise 3.x style" >&5
24508 echo "${ECHO_T}Netscape-Enterprise 3.x style" >&6
24510 for ac_header in $NSAPI_INCLUDE/nsapi.h
24512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24513 echo "$as_me:$LINENO: checking for $ac_header" >&5
24514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24516 echo $ECHO_N "(cached) $ECHO_C" >&6
24518 cat >conftest.$ac_ext <<_ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24526 #include <$ac_header>
24528 rm -f conftest.$ac_objext
24529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24530 (eval $ac_compile) 2>conftest.er1
24532 grep -v '^ *+' conftest.er1 >conftest.err
24534 cat conftest.err >&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); } &&
24537 { ac_try='test -z "$ac_cxx_werror_flag"
24538 || test ! -s conftest.err'
24539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24540 (eval $ac_try) 2>&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); }; } &&
24544 { ac_try='test -s conftest.$ac_objext'
24545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546 (eval $ac_try) 2>&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); }; }; then
24550 eval "$as_ac_Header=yes"
24552 echo "$as_me: failed program was:" >&5
24553 sed 's/^/| /' conftest.$ac_ext >&5
24555 eval "$as_ac_Header=no"
24557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24562 cat >>confdefs.h <<_ACEOF
24563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24570 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24572 if test -d $WANT_NSAPI/plugins/include ; then
24573 test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
24574 NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
24575 echo "$as_me:$LINENO: result: iPlanet 4.x / SunONE 6.x style" >&5
24576 echo "${ECHO_T}iPlanet 4.x / SunONE 6.x style" >&6
24578 for ac_header in $NSAPI_INCLUDE/nsapi.h
24580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24581 echo "$as_me:$LINENO: checking for $ac_header" >&5
24582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24584 echo $ECHO_N "(cached) $ECHO_C" >&6
24586 cat >conftest.$ac_ext <<_ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h. */
24594 #include <$ac_header>
24596 rm -f conftest.$ac_objext
24597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24598 (eval $ac_compile) 2>conftest.er1
24600 grep -v '^ *+' conftest.er1 >conftest.err
24602 cat conftest.err >&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } &&
24605 { ac_try='test -z "$ac_cxx_werror_flag"
24606 || test ! -s conftest.err'
24607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608 (eval $ac_try) 2>&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); }; } &&
24612 { ac_try='test -s conftest.$ac_objext'
24613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614 (eval $ac_try) 2>&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; }; then
24618 eval "$as_ac_Header=yes"
24620 echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24623 eval "$as_ac_Header=no"
24625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24630 cat >>confdefs.h <<_ACEOF
24631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24638 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24640 if test "$NSAPI_INCLUDE" = ""; then
24641 { { echo "$as_me:$LINENO: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&5
24642 echo "$as_me: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&2;}
24643 { (exit 1); exit 1; }; }
24649 # always output the Makefile, even if you don't use it
24650 ac_config_files="$ac_config_files nsapi_shib/Makefile"
24654 if test ! "$WANT_NSAPI" = "no"; then
24656 BUILD_NSAPI_FALSE='#'
24658 BUILD_NSAPI_TRUE='#'
24663 # add the NSAPI module to the list of wanted subdirs..
24664 if test ! "$WANT_NSAPI" = "no" ; then
24665 WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
24670 # Build FastCGI support?
24672 echo "$as_me:$LINENO: checking for FastCGI support" >&5
24673 echo $ECHO_N "checking for FastCGI support... $ECHO_C" >&6
24675 # Check whether --with-fastcgi or --without-fastcgi was given.
24676 if test "${with_fastcgi+set}" = set; then
24677 withval="$with_fastcgi"
24678 WANT_FASTCGI=$withval
24682 echo "$as_me:$LINENO: result: $WANT_FASTCGI" >&5
24683 echo "${ECHO_T}$WANT_FASTCGI" >&6
24685 if test "$WANT_FASTCGI" != "no"; then
24686 if test "$WANT_FASTCGI" != "yes"; then
24687 if test x_$WANT_FASTCGI != x_/usr; then
24688 FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
24689 FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
24692 if test "${ac_cv_header_fcgio_h+set}" = set; then
24693 echo "$as_me:$LINENO: checking for fcgio.h" >&5
24694 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24695 if test "${ac_cv_header_fcgio_h+set}" = set; then
24696 echo $ECHO_N "(cached) $ECHO_C" >&6
24698 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24699 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24701 # Is the header compilable?
24702 echo "$as_me:$LINENO: checking fcgio.h usability" >&5
24703 echo $ECHO_N "checking fcgio.h usability... $ECHO_C" >&6
24704 cat >conftest.$ac_ext <<_ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h. */
24710 $ac_includes_default
24713 rm -f conftest.$ac_objext
24714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24715 (eval $ac_compile) 2>conftest.er1
24717 grep -v '^ *+' conftest.er1 >conftest.err
24719 cat conftest.err >&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } &&
24722 { ac_try='test -z "$ac_cxx_werror_flag"
24723 || test ! -s conftest.err'
24724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725 (eval $ac_try) 2>&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); }; } &&
24729 { ac_try='test -s conftest.$ac_objext'
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; }; then
24735 ac_header_compiler=yes
24737 echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24740 ac_header_compiler=no
24742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24744 echo "${ECHO_T}$ac_header_compiler" >&6
24746 # Is the header present?
24747 echo "$as_me:$LINENO: checking fcgio.h presence" >&5
24748 echo $ECHO_N "checking fcgio.h presence... $ECHO_C" >&6
24749 cat >conftest.$ac_ext <<_ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24760 grep -v '^ *+' conftest.er1 >conftest.err
24762 cat conftest.err >&5
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); } >/dev/null; then
24765 if test -s conftest.err; then
24766 ac_cpp_err=$ac_cxx_preproc_warn_flag
24767 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24774 if test -z "$ac_cpp_err"; then
24775 ac_header_preproc=yes
24777 echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24780 ac_header_preproc=no
24782 rm -f conftest.err conftest.$ac_ext
24783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24784 echo "${ECHO_T}$ac_header_preproc" >&6
24786 # So? What about this header?
24787 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24789 { echo "$as_me:$LINENO: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24790 echo "$as_me: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24791 { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the compiler's result" >&5
24792 echo "$as_me: WARNING: fcgio.h: proceeding with the compiler's result" >&2;}
24793 ac_header_preproc=yes
24796 { echo "$as_me:$LINENO: WARNING: fcgio.h: present but cannot be compiled" >&5
24797 echo "$as_me: WARNING: fcgio.h: present but cannot be compiled" >&2;}
24798 { echo "$as_me:$LINENO: WARNING: fcgio.h: check for missing prerequisite headers?" >&5
24799 echo "$as_me: WARNING: fcgio.h: check for missing prerequisite headers?" >&2;}
24800 { echo "$as_me:$LINENO: WARNING: fcgio.h: see the Autoconf documentation" >&5
24801 echo "$as_me: WARNING: fcgio.h: see the Autoconf documentation" >&2;}
24802 { echo "$as_me:$LINENO: WARNING: fcgio.h: section \"Present But Cannot Be Compiled\"" >&5
24803 echo "$as_me: WARNING: fcgio.h: section \"Present But Cannot Be Compiled\"" >&2;}
24804 { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the preprocessor's result" >&5
24805 echo "$as_me: WARNING: fcgio.h: proceeding with the preprocessor's result" >&2;}
24806 { echo "$as_me:$LINENO: WARNING: fcgio.h: in the future, the compiler will take precedence" >&5
24807 echo "$as_me: WARNING: fcgio.h: in the future, the compiler will take precedence" >&2;}
24810 ## --------------------------------------------- ##
24811 ## Report this to shibboleth-users@internet2.edu ##
24812 ## --------------------------------------------- ##
24815 sed "s/^/$as_me: WARNING: /" >&2
24818 echo "$as_me:$LINENO: checking for fcgio.h" >&5
24819 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24820 if test "${ac_cv_header_fcgio_h+set}" = set; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24823 ac_cv_header_fcgio_h=$ac_header_preproc
24825 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24826 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24829 if test $ac_cv_header_fcgio_h = yes; then
24832 { { echo "$as_me:$LINENO: error: unable to find FastCGI header files" >&5
24833 echo "$as_me: error: unable to find FastCGI header files" >&2;}
24834 { (exit 1); exit 1; }; }
24838 FASTCGI_LIBS="-lfcgi -lfcgi++"
24845 # always output the Makefile, even if you don't use it
24846 ac_config_files="$ac_config_files fastcgi/Makefile"
24850 if test ! "$WANT_FASTCGI" = "no"; then
24851 BUILD_FASTCGI_TRUE=
24852 BUILD_FASTCGI_FALSE='#'
24854 BUILD_FASTCGI_TRUE='#'
24855 BUILD_FASTCGI_FALSE=
24859 if test ! "$WANT_FASTCGI" = "no" ; then
24860 WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
24865 # If no --enable-apache-xx specified
24866 # find a default and fake the specific parameters
24869 # simple macro to peek at an enable or a with
24872 echo "$as_me:$LINENO: checking if default apache needed" >&5
24873 echo $ECHO_N "checking if default apache needed... $ECHO_C" >&6
24875 if test "${enable_apache_13+set}" = set; then
24876 peekval="${enable_apache_13}"
24879 if test "${enable_apache_20+set}" = set; then
24880 peekval="${enable_apache_20}"
24883 if test "${enable_apache_22+set}" = set; then
24884 peekval="${enable_apache_22}"
24887 echo "$as_me:$LINENO: result: $need_default" >&5
24888 echo "${ECHO_T}$need_default" >&6
24890 if test "$need_default" = "yes"; then
24891 # find an apxs, then the httpd
24893 if test "${with_apxs+set}" = set; then
24894 peekval="${with_apxs}"
24897 if test "${with_apxs2+set}" = set; then
24898 peekval="${with_apxs2}"
24901 if test "${with_apxs22+set}" = set; then
24902 peekval="${with_apxs22}"
24905 if test "x$xs" = "x"; then
24906 for ac_prog in apxs2 apxs
24908 # Extract the first word of "$ac_prog", so it can be a program name with args.
24909 set dummy $ac_prog; ac_word=$2
24910 echo "$as_me:$LINENO: checking for $ac_word" >&5
24911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24912 if test "${ac_cv_path_xs+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24917 ac_cv_path_xs="$xs" # Let the user override the test with a path.
24920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24921 as_dummy="/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH"
24922 for as_dir in $as_dummy
24925 test -z "$as_dir" && as_dir=.
24926 for ac_exec_ext in '' $ac_executable_extensions; do
24927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24928 ac_cv_path_xs="$as_dir/$ac_word$ac_exec_ext"
24929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24940 if test -n "$xs"; then
24941 echo "$as_me:$LINENO: result: $xs" >&5
24942 echo "${ECHO_T}$xs" >&6
24944 echo "$as_me:$LINENO: result: no" >&5
24945 echo "${ECHO_T}no" >&6
24948 test -n "$xs" && break
24950 test -n "$xs" || xs="{ { echo "$as_me:$LINENO: error: No apxs" >&5
24951 echo "$as_me: error: No apxs" >&2;}
24952 { (exit no apache found. Try --with-apxs); exit no apache found. Try --with-apxs; }; }"
24955 # ask the daemon for the version and set parameters
24956 echo "$as_me:$LINENO: checking default apache version" >&5
24957 echo $ECHO_N "checking default apache version... $ECHO_C" >&6
24958 httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
24959 if test "x$httpd" != "x" && test -f $httpd ; then
24960 v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
24962 1.3*) enable_apache_13=yes
24964 echo "$as_me:$LINENO: result: 1.3" >&5
24965 echo "${ECHO_T}1.3" >&6
24967 2.0*) enable_apache_20=yes
24969 echo "$as_me:$LINENO: result: 2.0" >&5
24970 echo "${ECHO_T}2.0" >&6
24972 2.2*) enable_apache_22=yes
24974 echo "$as_me:$LINENO: result: 2.2" >&5
24975 echo "${ECHO_T}2.2" >&6
24977 *) { { echo "$as_me:$LINENO: error: unusable apache versions: $v. Try setting --with-apxs" >&5
24978 echo "$as_me: error: unusable apache versions: $v. Try setting --with-apxs" >&2;}
24979 { (exit 1); exit 1; }; }
24982 echo "$as_me:$LINENO: result: cannot determine version. Try setting --with-apxs" >&5
24983 echo "${ECHO_T}cannot determine version. Try setting --with-apxs" >&6
24987 # Apache 1.3 (mod_shib_13)
24988 # --enable-apache-13
24989 # --with-apxs (DSO build, the normal way, uses apxs to derive build flags)
24991 # Check whether --enable-apache-13 or --disable-apache-13 was given.
24992 if test "${enable_apache_13+set}" = set; then
24993 enableval="$enable_apache_13"
24994 if test "x$enableval" = "x" ; then
24997 WANT_APACHE_13="$enableval"
25003 echo "$as_me:$LINENO: checking whether to build Apache 1.3 module" >&5
25004 echo $ECHO_N "checking whether to build Apache 1.3 module... $ECHO_C" >&6
25005 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
25008 echo "$as_me:$LINENO: result: $WANT_APACHE_13" >&5
25009 echo "${ECHO_T}$WANT_APACHE_13" >&6
25011 if test "$WANT_APACHE_13" = "yes" ; then
25013 # Check whether --with-apxs or --without-apxs was given.
25014 if test "${with_apxs+set}" = set; then
25015 withval="$with_apxs"
25017 echo "$as_me:$LINENO: checking for user-specified apxs name/location" >&5
25018 echo $ECHO_N "checking for user-specified apxs name/location... $ECHO_C" >&6
25019 if test "$withval" != "no" ; then
25020 if test "$withval" != "yes"; then
25022 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25023 echo "${ECHO_T}\"$withval\"" >&6
25029 # Extract the first word of "apxs", so it can be a program name with args.
25030 set dummy apxs; ac_word=$2
25031 echo "$as_me:$LINENO: checking for $ac_word" >&5
25032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25033 if test "${ac_cv_path_APXS+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25038 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
25041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25042 for as_dir in $PATH
25045 test -z "$as_dir" && as_dir=.
25046 for ac_exec_ext in '' $ac_executable_extensions; do
25047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25048 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
25049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25055 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
25059 APXS=$ac_cv_path_APXS
25061 if test -n "$APXS"; then
25062 echo "$as_me:$LINENO: result: $APXS" >&5
25063 echo "${ECHO_T}$APXS" >&6
25065 echo "$as_me:$LINENO: result: no" >&5
25066 echo "${ECHO_T}no" >&6
25069 if test "$APXS" = "no" ; then
25070 for i in /usr/sbin /usr/local/apache/bin ; do
25071 if test "$APXS" = "no" && test -f "$i/apxs"; then
25079 echo "$as_me:$LINENO: checking to see if apxs was located" >&5
25080 echo $ECHO_N "checking to see if apxs was located... $ECHO_C" >&6
25081 if test ! -f "$APXS" ; then
25082 echo "$as_me:$LINENO: result: no" >&5
25083 echo "${ECHO_T}no" >&6
25084 { { echo "$as_me:$LINENO: error: Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option." >&5
25085 echo "$as_me: error: Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option." >&2;}
25086 { (exit 1); exit 1; }; }
25088 echo "$as_me:$LINENO: result: $APXS" >&5
25089 echo "${ECHO_T}$APXS" >&6
25092 # extract settings we need from APXS -q
25093 APXS_CC="`$APXS -q CC`"
25094 APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
25095 APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
25102 # Apache 2.0 (mod_shib_20)
25103 # --enable-apache-20
25104 # --with-apxs2 (DSO build, the normal way, uses apxs to derive build flags)
25105 # --with-apr (DSO build, APR development package installed separately)
25107 # Check whether --enable-apache-20 or --disable-apache-20 was given.
25108 if test "${enable_apache_20+set}" = set; then
25109 enableval="$enable_apache_20"
25110 if test "x$enableval" = "x" ; then
25113 WANT_APACHE_20="$enableval"
25119 echo "$as_me:$LINENO: checking whether to build Apache 2.0 module" >&5
25120 echo $ECHO_N "checking whether to build Apache 2.0 module... $ECHO_C" >&6
25121 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
25124 echo "$as_me:$LINENO: result: $WANT_APACHE_20" >&5
25125 echo "${ECHO_T}$WANT_APACHE_20" >&6
25127 if test "$WANT_APACHE_20" = "yes" ; then
25129 # Check whether --with-apxs2 or --without-apxs2 was given.
25130 if test "${with_apxs2+set}" = set; then
25131 withval="$with_apxs2"
25133 echo "$as_me:$LINENO: checking for user-specified Apache2 apxs name/location" >&5
25134 echo $ECHO_N "checking for user-specified Apache2 apxs name/location... $ECHO_C" >&6
25135 if test "$withval" != "no" ; then
25136 if test "$withval" != "yes"; then
25138 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25139 echo "${ECHO_T}\"$withval\"" >&6
25145 # Extract the first word of "apxs2", so it can be a program name with args.
25146 set dummy apxs2; ac_word=$2
25147 echo "$as_me:$LINENO: checking for $ac_word" >&5
25148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25149 if test "${ac_cv_path_APXS2+set}" = set; then
25150 echo $ECHO_N "(cached) $ECHO_C" >&6
25154 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25158 for as_dir in $PATH
25161 test -z "$as_dir" && as_dir=.
25162 for ac_exec_ext in '' $ac_executable_extensions; do
25163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25164 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25171 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25175 APXS2=$ac_cv_path_APXS2
25177 if test -n "$APXS2"; then
25178 echo "$as_me:$LINENO: result: $APXS2" >&5
25179 echo "${ECHO_T}$APXS2" >&6
25181 echo "$as_me:$LINENO: result: no" >&5
25182 echo "${ECHO_T}no" >&6
25185 if test "$APXS2" = "no" ; then
25186 # Extract the first word of "apxs", so it can be a program name with args.
25187 set dummy apxs; ac_word=$2
25188 echo "$as_me:$LINENO: checking for $ac_word" >&5
25189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25190 if test "${ac_cv_path_APXS2+set}" = set; then
25191 echo $ECHO_N "(cached) $ECHO_C" >&6
25195 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25199 for as_dir in $PATH
25202 test -z "$as_dir" && as_dir=.
25203 for ac_exec_ext in '' $ac_executable_extensions; do
25204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25205 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25212 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25216 APXS2=$ac_cv_path_APXS2
25218 if test -n "$APXS2"; then
25219 echo "$as_me:$LINENO: result: $APXS2" >&5
25220 echo "${ECHO_T}$APXS2" >&6
25222 echo "$as_me:$LINENO: result: no" >&5
25223 echo "${ECHO_T}no" >&6
25227 if test "$APXS2" = "no" ; then
25228 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25229 if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
25233 if test "$APXS2" = "no" ; then
25234 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25235 if test "$APXS2" = "no" && test -f "$i/apxs" ; then
25244 echo "$as_me:$LINENO: checking to see if Apache2 apxs was located" >&5
25245 echo $ECHO_N "checking to see if Apache2 apxs was located... $ECHO_C" >&6
25246 if test ! -f "$APXS2" ; then
25247 echo "$as_me:$LINENO: result: no" >&5
25248 echo "${ECHO_T}no" >&6
25249 { { echo "$as_me:$LINENO: error: Unable to locate Apache2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option." >&5
25250 echo "$as_me: error: Unable to locate Apache2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option." >&2;}
25251 { (exit 1); exit 1; }; }
25253 echo "$as_me:$LINENO: result: $APXS2" >&5
25254 echo "${ECHO_T}$APXS2" >&6
25259 # Check whether --with-apr or --without-apr was given.
25260 if test "${with_apr+set}" = set; then
25261 withval="$with_apr"
25263 echo "$as_me:$LINENO: checking for user-specified apr-config name/location" >&5
25264 echo $ECHO_N "checking for user-specified apr-config name/location... $ECHO_C" >&6
25265 if test "$withval" != "no" ; then
25266 if test "$withval" != "yes"; then
25267 APR_CONFIG=$withval
25268 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25269 echo "${ECHO_T}\"$withval\"" >&6
25275 # Extract the first word of "apr-config", so it can be a program name with args.
25276 set dummy apr-config; ac_word=$2
25277 echo "$as_me:$LINENO: checking for $ac_word" >&5
25278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25279 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
25280 echo $ECHO_N "(cached) $ECHO_C" >&6
25282 case $APR_CONFIG in
25284 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
25287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25288 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
25289 for as_dir in $as_dummy
25292 test -z "$as_dir" && as_dir=.
25293 for ac_exec_ext in '' $ac_executable_extensions; do
25294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25295 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25305 APR_CONFIG=$ac_cv_path_APR_CONFIG
25307 if test -n "$APR_CONFIG"; then
25308 echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
25309 echo "${ECHO_T}$APR_CONFIG" >&6
25311 echo "$as_me:$LINENO: result: no" >&5
25312 echo "${ECHO_T}no" >&6
25317 if test -f "${APR_CONFIG}"; then
25318 APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
25320 { { echo "$as_me:$LINENO: error: Unable to locate apr-config, may need --with-apr option." >&5
25321 echo "$as_me: error: Unable to locate apr-config, may need --with-apr option." >&2;}
25322 { (exit 1); exit 1; }; }
25325 # extract settings we need from APXS2 -q
25326 APXS2_CC="`$APXS2 -q CC`"
25327 APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APR_CFLAGS"
25328 APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
25335 # Apache 2.2 (mod_shib_22)
25336 # --enable-apache-22
25337 # --with-apxs22 (DSO build, the normal way, uses apxs to derive build flags)
25338 # --with-apr1 (DSO build, APR development package installed separately)
25340 # Check whether --enable-apache-22 or --disable-apache-22 was given.
25341 if test "${enable_apache_22+set}" = set; then
25342 enableval="$enable_apache_22"
25343 if test "x$enableval" = "x" ; then
25346 WANT_APACHE_22="$enableval"
25352 echo "$as_me:$LINENO: checking whether to build Apache 2.2 module" >&5
25353 echo $ECHO_N "checking whether to build Apache 2.2 module... $ECHO_C" >&6
25354 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
25357 echo "$as_me:$LINENO: result: $WANT_APACHE_22" >&5
25358 echo "${ECHO_T}$WANT_APACHE_22" >&6
25360 if test "$WANT_APACHE_22" = "yes" ; then
25362 # Check whether --with-apxs22 or --without-apxs22 was given.
25363 if test "${with_apxs22+set}" = set; then
25364 withval="$with_apxs22"
25366 echo "$as_me:$LINENO: checking for user-specified Apache2.2 apxs name/location" >&5
25367 echo $ECHO_N "checking for user-specified Apache2.2 apxs name/location... $ECHO_C" >&6
25368 if test "$withval" != "no" ; then
25369 if test "$withval" != "yes"; then
25371 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25372 echo "${ECHO_T}\"$withval\"" >&6
25378 # Extract the first word of "apxs2", so it can be a program name with args.
25379 set dummy apxs2; ac_word=$2
25380 echo "$as_me:$LINENO: checking for $ac_word" >&5
25381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25382 if test "${ac_cv_path_APXS22+set}" = set; then
25383 echo $ECHO_N "(cached) $ECHO_C" >&6
25387 ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25391 for as_dir in $PATH
25394 test -z "$as_dir" && as_dir=.
25395 for ac_exec_ext in '' $ac_executable_extensions; do
25396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25397 ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25404 test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25408 APXS22=$ac_cv_path_APXS22
25410 if test -n "$APXS22"; then
25411 echo "$as_me:$LINENO: result: $APXS22" >&5
25412 echo "${ECHO_T}$APXS22" >&6
25414 echo "$as_me:$LINENO: result: no" >&5
25415 echo "${ECHO_T}no" >&6
25418 if test "$APXS22" = "no" ; then
25419 # Extract the first word of "apxs", so it can be a program name with args.
25420 set dummy apxs; ac_word=$2
25421 echo "$as_me:$LINENO: checking for $ac_word" >&5
25422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25423 if test "${ac_cv_path_APXS22+set}" = set; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25428 ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25432 for as_dir in $PATH
25435 test -z "$as_dir" && as_dir=.
25436 for ac_exec_ext in '' $ac_executable_extensions; do
25437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25438 ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25445 test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25449 APXS22=$ac_cv_path_APXS22
25451 if test -n "$APXS22"; then
25452 echo "$as_me:$LINENO: result: $APXS22" >&5
25453 echo "${ECHO_T}$APXS22" >&6
25455 echo "$as_me:$LINENO: result: no" >&5
25456 echo "${ECHO_T}no" >&6
25460 if test "$APXS22" = "no" ; then
25461 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25462 if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
25466 if test "$APXS22" = "no" ; then
25467 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25468 if test "$APXS22" = "no" && test -f "$i/apxs" ; then
25477 echo "$as_me:$LINENO: checking to see if Apache2.2 apxs was located" >&5
25478 echo $ECHO_N "checking to see if Apache2.2 apxs was located... $ECHO_C" >&6
25479 if test ! -f "$APXS22" ; then
25480 echo "$as_me:$LINENO: result: no" >&5
25481 echo "${ECHO_T}no" >&6
25482 { { echo "$as_me:$LINENO: error: Unable to locate Apache2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option." >&5
25483 echo "$as_me: error: Unable to locate Apache2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option." >&2;}
25484 { (exit 1); exit 1; }; }
25486 echo "$as_me:$LINENO: result: $APXS22" >&5
25487 echo "${ECHO_T}$APXS22" >&6
25492 # Check whether --with-apr1 or --without-apr1 was given.
25493 if test "${with_apr1+set}" = set; then
25494 withval="$with_apr1"
25496 echo "$as_me:$LINENO: checking for user-specified apr-1-config name/location" >&5
25497 echo $ECHO_N "checking for user-specified apr-1-config name/location... $ECHO_C" >&6
25498 if test "$withval" != "no" ; then
25499 if test "$withval" != "yes"; then
25500 APR1_CONFIG=$withval
25501 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25502 echo "${ECHO_T}\"$withval\"" >&6
25508 # Extract the first word of "apr-1-config", so it can be a program name with args.
25509 set dummy apr-1-config; ac_word=$2
25510 echo "$as_me:$LINENO: checking for $ac_word" >&5
25511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25512 if test "${ac_cv_path_APR1_CONFIG+set}" = set; then
25513 echo $ECHO_N "(cached) $ECHO_C" >&6
25515 case $APR1_CONFIG in
25517 ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
25520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25521 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
25522 for as_dir in $as_dummy
25525 test -z "$as_dir" && as_dir=.
25526 for ac_exec_ext in '' $ac_executable_extensions; do
25527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25528 ac_cv_path_APR1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25538 APR1_CONFIG=$ac_cv_path_APR1_CONFIG
25540 if test -n "$APR1_CONFIG"; then
25541 echo "$as_me:$LINENO: result: $APR1_CONFIG" >&5
25542 echo "${ECHO_T}$APR1_CONFIG" >&6
25544 echo "$as_me:$LINENO: result: no" >&5
25545 echo "${ECHO_T}no" >&6
25550 if test -f "${APR1_CONFIG}"; then
25551 APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
25553 { { echo "$as_me:$LINENO: error: Unable to locate apr-1-config, may need --with-apr1 option." >&5
25554 echo "$as_me: error: Unable to locate apr-1-config, may need --with-apr1 option." >&2;}
25555 { (exit 1); exit 1; }; }
25558 # extract settings we need from APXS22 -q
25559 APXS22_CC="`$APXS22 -q CC`"
25560 APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS"
25561 APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
25567 # always output the Makefile, even if you don't use it
25568 ac_config_files="$ac_config_files apache/Makefile"
25572 if test "$WANT_APACHE_13" = "yes"; then
25574 BUILD_AP13_FALSE='#'
25576 BUILD_AP13_TRUE='#'
25582 if test "$WANT_APACHE_20" = "yes"; then
25584 BUILD_AP20_FALSE='#'
25586 BUILD_AP20_TRUE='#'
25592 if test "$WANT_APACHE_22" = "yes"; then
25594 BUILD_AP22_FALSE='#'
25596 BUILD_AP22_TRUE='#'
25601 # add the apache module to the list of wanted subdirs..
25602 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" ; then
25603 WANT_SUBDIRS="$WANT_SUBDIRS apache"
25608 # Implement the checks of the ODBC Storage Service
25610 # 1) Assume the user wants ODBC; if it's not found then just continue without
25611 # 2) If the user specifically requested odbc, look for it and ERROR if not found
25612 # 3) If the user specifically requested no odbc, don't build it.
25615 ac_config_files="$ac_config_files odbc-store/Makefile"
25618 # determine whether we should enable the odbc ccache
25619 # Check whether --enable-odbc or --disable-odbc was given.
25620 if test "${enable_odbc+set}" = set; then
25621 enableval="$enable_odbc"
25622 odbc_enabled=$enableval
25624 odbc_enabled=default
25627 if test "x$odbc_enabled" = "x" ; then
25631 # Are we trying to build ODBC?
25632 echo "$as_me:$LINENO: checking whether to build the ODBC storage service" >&5
25633 echo $ECHO_N "checking whether to build the ODBC storage service... $ECHO_C" >&6
25634 if test "$odbc_enabled" = "yes" ; then
25636 echo "$as_me:$LINENO: result: yes" >&5
25637 echo "${ECHO_T}yes" >&6
25638 elif test "$odbc_enabled" = "default" ; then
25640 echo "$as_me:$LINENO: result: yes, if it can be found" >&5
25641 echo "${ECHO_T}yes, if it can be found" >&6
25644 echo "$as_me:$LINENO: result: no" >&5
25645 echo "${ECHO_T}no" >&6
25648 # If we're trying to build ODBC, try to find the odbc_config program.
25649 if test "$build_odbc" = "yes" ; then
25652 # Check whether --with-odbc or --without-odbc was given.
25653 if test "${with_odbc+set}" = set; then
25654 withval="$with_odbc"
25655 if test "$with_odbc" = no ; then
25656 { { echo "$as_me:$LINENO: error: Try running --disable-odbc instead." >&5
25657 echo "$as_me: error: Try running --disable-odbc instead." >&2;}
25658 { (exit 1); exit 1; }; }
25659 elif test "$with_odbc" != yes ; then
25660 odbc_dir="$with_odbc/bin"
25661 if test "$with_odbc" != /usr ; then
25662 ODBC_CFLAGS="-I$with_odbc/include"
25663 ODBC_LIBS="-L$with_odbc/lib"
25668 # Extract the first word of "odbc_config", so it can be a program name with args.
25669 set dummy odbc_config; ac_word=$2
25670 echo "$as_me:$LINENO: checking for $ac_word" >&5
25671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25672 if test "${ac_cv_path_ODBC_CONFIG+set}" = set; then
25673 echo $ECHO_N "(cached) $ECHO_C" >&6
25675 case $ODBC_CONFIG in
25677 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
25680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25681 for as_dir in $odbc_dir $PATH
25684 test -z "$as_dir" && as_dir=.
25685 for ac_exec_ext in '' $ac_executable_extensions; do
25686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25687 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25694 test -z "$ac_cv_path_ODBC_CONFIG" && ac_cv_path_ODBC_CONFIG="no"
25698 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
25700 if test -n "$ODBC_CONFIG"; then
25701 echo "$as_me:$LINENO: result: $ODBC_CONFIG" >&5
25702 echo "${ECHO_T}$ODBC_CONFIG" >&6
25704 echo "$as_me:$LINENO: result: no" >&5
25705 echo "${ECHO_T}no" >&6
25708 if test "$ODBC_CONFIG" = no ; then
25709 { echo "$as_me:$LINENO: WARNING: Cannot find odbc_config, will try to guess settings." >&5
25710 echo "$as_me: WARNING: Cannot find odbc_config, will try to guess settings." >&2;}
25711 ODBC_LIBS="$ODBC_LIBS -lodbc"
25713 ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
25714 ODBC_LIBS=`$ODBC_CONFIG --libs`
25717 save_CPPFLAGS="$CPPFLAGS"
25718 CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
25720 if test "${ac_cv_header_sql_h+set}" = set; then
25721 echo "$as_me:$LINENO: checking for sql.h" >&5
25722 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25723 if test "${ac_cv_header_sql_h+set}" = set; then
25724 echo $ECHO_N "(cached) $ECHO_C" >&6
25726 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25727 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25729 # Is the header compilable?
25730 echo "$as_me:$LINENO: checking sql.h usability" >&5
25731 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
25732 cat >conftest.$ac_ext <<_ACEOF
25735 cat confdefs.h >>conftest.$ac_ext
25736 cat >>conftest.$ac_ext <<_ACEOF
25737 /* end confdefs.h. */
25738 $ac_includes_default
25741 rm -f conftest.$ac_objext
25742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25743 (eval $ac_compile) 2>conftest.er1
25745 grep -v '^ *+' conftest.er1 >conftest.err
25747 cat conftest.err >&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } &&
25750 { ac_try='test -z "$ac_cxx_werror_flag"
25751 || test ! -s conftest.err'
25752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753 (eval $ac_try) 2>&5
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); }; } &&
25757 { ac_try='test -s conftest.$ac_objext'
25758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25759 (eval $ac_try) 2>&5
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); }; }; then
25763 ac_header_compiler=yes
25765 echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25768 ac_header_compiler=no
25770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25772 echo "${ECHO_T}$ac_header_compiler" >&6
25774 # Is the header present?
25775 echo "$as_me:$LINENO: checking sql.h presence" >&5
25776 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
25777 cat >conftest.$ac_ext <<_ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h. */
25785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25788 grep -v '^ *+' conftest.er1 >conftest.err
25790 cat conftest.err >&5
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); } >/dev/null; then
25793 if test -s conftest.err; then
25794 ac_cpp_err=$ac_cxx_preproc_warn_flag
25795 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25802 if test -z "$ac_cpp_err"; then
25803 ac_header_preproc=yes
25805 echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25808 ac_header_preproc=no
25810 rm -f conftest.err conftest.$ac_ext
25811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25812 echo "${ECHO_T}$ac_header_preproc" >&6
25814 # So? What about this header?
25815 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25817 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25818 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
25820 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
25821 ac_header_preproc=yes
25824 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
25825 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
25826 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
25827 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
25828 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
25829 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
25830 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
25831 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
25832 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25833 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25834 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
25835 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
25838 ## --------------------------------------------- ##
25839 ## Report this to shibboleth-users@internet2.edu ##
25840 ## --------------------------------------------- ##
25843 sed "s/^/$as_me: WARNING: /" >&2
25846 echo "$as_me:$LINENO: checking for sql.h" >&5
25847 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25848 if test "${ac_cv_header_sql_h+set}" = set; then
25849 echo $ECHO_N "(cached) $ECHO_C" >&6
25851 ac_cv_header_sql_h=$ac_header_preproc
25853 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25854 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25857 if test $ac_cv_header_sql_h = yes; then
25864 if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
25865 { { echo "$as_me:$LINENO: error: unable to find ODBC header files" >&5
25866 echo "$as_me: error: unable to find ODBC header files" >&2;}
25867 { (exit 1); exit 1; }; }
25870 if test "$have_sql_h" = yes ; then
25872 LIBS="$LIBS $ODBC_LIBS"
25873 echo "$as_me:$LINENO: checking if we can link againt ODBC" >&5
25874 echo $ECHO_N "checking if we can link againt ODBC... $ECHO_C" >&6
25875 cat >conftest.$ac_ext <<_ACEOF
25878 cat confdefs.h >>conftest.$ac_ext
25879 cat >>conftest.$ac_ext <<_ACEOF
25880 /* end confdefs.h. */
25882 #include <sqlext.h>
25887 SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)
25892 rm -f conftest.$ac_objext conftest$ac_exeext
25893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25894 (eval $ac_link) 2>conftest.er1
25896 grep -v '^ *+' conftest.er1 >conftest.err
25898 cat conftest.err >&5
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); } &&
25901 { ac_try='test -z "$ac_cxx_werror_flag"
25902 || test ! -s conftest.err'
25903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25904 (eval $ac_try) 2>&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); }; } &&
25908 { ac_try='test -s conftest$ac_exeext'
25909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25910 (eval $ac_try) 2>&5
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); }; }; then
25916 echo "$as_me: failed program was:" >&5
25917 sed 's/^/| /' conftest.$ac_ext >&5
25921 rm -f conftest.err conftest.$ac_objext \
25922 conftest$ac_exeext conftest.$ac_ext
25925 if test "$have_odbc_libs" = no ; then
25926 if test "$odbc_enabled" = "yes" ; then
25927 { { echo "$as_me:$LINENO: error: unable to link with ODBC Library" >&5
25928 echo "$as_me: error: unable to link with ODBC Library" >&2;}
25929 { (exit 1); exit 1; }; }
25931 echo "$as_me:$LINENO: result: no" >&5
25932 echo "${ECHO_T}no" >&6
25937 CPPFLAGS="$save_CPPFLAGS"
25940 # if have_odbc_libs=yes then go ahead with building ODBC
25941 if test "$have_odbc_libs" = yes ; then
25942 # this AC_MSG_RESULT is from above!
25943 echo "$as_me:$LINENO: result: yes" >&5
25944 echo "${ECHO_T}yes" >&6
25945 WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
25953 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
25954 echo "=================================================================="
25955 echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
25956 echo " compiler than the one used to compile Apache."
25958 echo " Current compiler: $CC"
25959 echo " Apache's compiler: $APXS_CC"
25961 echo "This could cause problems."
25962 echo "=================================================================="
25965 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
25966 echo "=================================================================="
25967 echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
25968 echo " compiler than the one used to compile Apache."
25970 echo " Current compiler: $CC"
25971 echo " Apache's compiler: $APXS2_CC"
25973 echo "This could cause problems."
25974 echo "=================================================================="
25977 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
25978 echo "=================================================================="
25979 echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
25980 echo " compiler than the one used to compile Apache."
25982 echo " Current compiler: $CC"
25983 echo " Apache's compiler: $APXS22_CC"
25985 echo "This could cause problems."
25986 echo "=================================================================="
25989 LIBTOOL="$LIBTOOL --silent"
25991 cat >confcache <<\_ACEOF
25992 # This file is a shell script that caches the results of configure
25993 # tests run on this system so they can be shared between configure
25994 # scripts and configure runs, see configure's option --config-cache.
25995 # It is not useful on other systems. If it contains results you don't
25996 # want to keep, you may remove or edit it.
25998 # config.status only pays attention to the cache file if you give it
25999 # the --recheck option to rerun configure.
26001 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26002 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26003 # following values.
26007 # The following way of writing the cache mishandles newlines in values,
26008 # but we know of no workaround that is simple, portable, and efficient.
26009 # So, don't put newlines in cache variables' values.
26010 # Ultrix sh set writes to stderr and can't be redirected directly,
26011 # and sets the high bit in the cache file unless we assign to the vars.
26014 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26016 # `set' does not quote correctly, so add quotes (double-quote
26017 # substitution turns \\\\ into \\, and sed turns \\ into \).
26020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26023 # `set' quotes correctly as required by POSIX, so do not add quotes.
26025 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26034 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26036 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26037 if test -w $cache_file; then
26038 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26039 cat confcache >$cache_file
26041 echo "not updating unwritable cache $cache_file"
26046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26047 # Let make expand exec_prefix.
26048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26050 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26051 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26052 # trailing colons and then remove the whole line if VPATH becomes empty
26053 # (actually we leave an empty line to preserve line numbers).
26054 if test "x$srcdir" = x.; then
26055 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26056 s/:*\$(srcdir):*/:/;
26057 s/:*\${srcdir}:*/:/;
26059 s/^\([^=]*=[ ]*\):*/\1/;
26065 DEFS=-DHAVE_CONFIG_H
26069 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26070 # 1. Remove the extension, and $U if already installed.
26071 ac_i=`echo "$ac_i" |
26072 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26074 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26075 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26077 LIBOBJS=$ac_libobjs
26079 LTLIBOBJS=$ac_ltlibobjs
26082 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26083 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26084 Usually this means the macro was only invoked conditionally." >&5
26085 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26086 Usually this means the macro was only invoked conditionally." >&2;}
26087 { (exit 1); exit 1; }; }
26089 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26090 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26091 Usually this means the macro was only invoked conditionally." >&5
26092 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26093 Usually this means the macro was only invoked conditionally." >&2;}
26094 { (exit 1); exit 1; }; }
26096 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26097 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26098 Usually this means the macro was only invoked conditionally." >&5
26099 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26100 Usually this means the macro was only invoked conditionally." >&2;}
26101 { (exit 1); exit 1; }; }
26103 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26104 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26105 Usually this means the macro was only invoked conditionally." >&5
26106 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26107 Usually this means the macro was only invoked conditionally." >&2;}
26108 { (exit 1); exit 1; }; }
26110 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26111 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26112 Usually this means the macro was only invoked conditionally." >&5
26113 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26114 Usually this means the macro was only invoked conditionally." >&2;}
26115 { (exit 1); exit 1; }; }
26117 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26118 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26119 Usually this means the macro was only invoked conditionally." >&5
26120 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26121 Usually this means the macro was only invoked conditionally." >&2;}
26122 { (exit 1); exit 1; }; }
26124 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26125 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26126 Usually this means the macro was only invoked conditionally." >&5
26127 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26128 Usually this means the macro was only invoked conditionally." >&2;}
26129 { (exit 1); exit 1; }; }
26131 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26132 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26133 Usually this means the macro was only invoked conditionally." >&5
26134 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26135 Usually this means the macro was only invoked conditionally." >&2;}
26136 { (exit 1); exit 1; }; }
26138 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26139 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26140 Usually this means the macro was only invoked conditionally." >&5
26141 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26142 Usually this means the macro was only invoked conditionally." >&2;}
26143 { (exit 1); exit 1; }; }
26145 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26146 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26147 Usually this means the macro was only invoked conditionally." >&5
26148 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26149 Usually this means the macro was only invoked conditionally." >&2;}
26150 { (exit 1); exit 1; }; }
26152 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26153 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26154 Usually this means the macro was only invoked conditionally." >&5
26155 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26156 Usually this means the macro was only invoked conditionally." >&2;}
26157 { (exit 1); exit 1; }; }
26159 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26160 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26161 Usually this means the macro was only invoked conditionally." >&5
26162 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26163 Usually this means the macro was only invoked conditionally." >&2;}
26164 { (exit 1); exit 1; }; }
26166 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26167 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26168 Usually this means the macro was only invoked conditionally." >&5
26169 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26170 Usually this means the macro was only invoked conditionally." >&2;}
26171 { (exit 1); exit 1; }; }
26173 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26174 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26175 Usually this means the macro was only invoked conditionally." >&5
26176 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26177 Usually this means the macro was only invoked conditionally." >&2;}
26178 { (exit 1); exit 1; }; }
26180 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26181 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26182 Usually this means the macro was only invoked conditionally." >&5
26183 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26184 Usually this means the macro was only invoked conditionally." >&2;}
26185 { (exit 1); exit 1; }; }
26187 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26188 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26189 Usually this means the macro was only invoked conditionally." >&5
26190 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26191 Usually this means the macro was only invoked conditionally." >&2;}
26192 { (exit 1); exit 1; }; }
26194 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26195 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26196 Usually this means the macro was only invoked conditionally." >&5
26197 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26198 Usually this means the macro was only invoked conditionally." >&2;}
26199 { (exit 1); exit 1; }; }
26201 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26202 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26203 Usually this means the macro was only invoked conditionally." >&5
26204 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26205 Usually this means the macro was only invoked conditionally." >&2;}
26206 { (exit 1); exit 1; }; }
26208 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26209 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26210 Usually this means the macro was only invoked conditionally." >&5
26211 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26212 Usually this means the macro was only invoked conditionally." >&2;}
26213 { (exit 1); exit 1; }; }
26215 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26216 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26217 Usually this means the macro was only invoked conditionally." >&5
26218 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26219 Usually this means the macro was only invoked conditionally." >&2;}
26220 { (exit 1); exit 1; }; }
26222 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26223 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26224 Usually this means the macro was only invoked conditionally." >&5
26225 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26226 Usually this means the macro was only invoked conditionally." >&2;}
26227 { (exit 1); exit 1; }; }
26229 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26230 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26231 Usually this means the macro was only invoked conditionally." >&5
26232 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26233 Usually this means the macro was only invoked conditionally." >&2;}
26234 { (exit 1); exit 1; }; }
26236 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26237 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26238 Usually this means the macro was only invoked conditionally." >&5
26239 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26240 Usually this means the macro was only invoked conditionally." >&2;}
26241 { (exit 1); exit 1; }; }
26243 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26244 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26245 Usually this means the macro was only invoked conditionally." >&5
26246 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26247 Usually this means the macro was only invoked conditionally." >&2;}
26248 { (exit 1); exit 1; }; }
26250 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26251 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26252 Usually this means the macro was only invoked conditionally." >&5
26253 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26254 Usually this means the macro was only invoked conditionally." >&2;}
26255 { (exit 1); exit 1; }; }
26257 if test -z "${BUILD_NSAPI_TRUE}" && test -z "${BUILD_NSAPI_FALSE}"; then
26258 { { echo "$as_me:$LINENO: error: conditional \"BUILD_NSAPI\" was never defined.
26259 Usually this means the macro was only invoked conditionally." >&5
26260 echo "$as_me: error: conditional \"BUILD_NSAPI\" was never defined.
26261 Usually this means the macro was only invoked conditionally." >&2;}
26262 { (exit 1); exit 1; }; }
26264 if test -z "${BUILD_FASTCGI_TRUE}" && test -z "${BUILD_FASTCGI_FALSE}"; then
26265 { { echo "$as_me:$LINENO: error: conditional \"BUILD_FASTCGI\" was never defined.
26266 Usually this means the macro was only invoked conditionally." >&5
26267 echo "$as_me: error: conditional \"BUILD_FASTCGI\" was never defined.
26268 Usually this means the macro was only invoked conditionally." >&2;}
26269 { (exit 1); exit 1; }; }
26271 if test -z "${BUILD_AP13_TRUE}" && test -z "${BUILD_AP13_FALSE}"; then
26272 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP13\" was never defined.
26273 Usually this means the macro was only invoked conditionally." >&5
26274 echo "$as_me: error: conditional \"BUILD_AP13\" was never defined.
26275 Usually this means the macro was only invoked conditionally." >&2;}
26276 { (exit 1); exit 1; }; }
26278 if test -z "${BUILD_AP20_TRUE}" && test -z "${BUILD_AP20_FALSE}"; then
26279 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP20\" was never defined.
26280 Usually this means the macro was only invoked conditionally." >&5
26281 echo "$as_me: error: conditional \"BUILD_AP20\" was never defined.
26282 Usually this means the macro was only invoked conditionally." >&2;}
26283 { (exit 1); exit 1; }; }
26285 if test -z "${BUILD_AP22_TRUE}" && test -z "${BUILD_AP22_FALSE}"; then
26286 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP22\" was never defined.
26287 Usually this means the macro was only invoked conditionally." >&5
26288 echo "$as_me: error: conditional \"BUILD_AP22\" was never defined.
26289 Usually this means the macro was only invoked conditionally." >&2;}
26290 { (exit 1); exit 1; }; }
26293 : ${CONFIG_STATUS=./config.status}
26294 ac_clean_files_save=$ac_clean_files
26295 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26296 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26297 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26298 cat >$CONFIG_STATUS <<_ACEOF
26300 # Generated by $as_me.
26301 # Run this file to recreate the current configuration.
26302 # Compiler output produced by configure, useful for debugging
26303 # configure, is in config.log if it exists.
26306 ac_cs_recheck=false
26308 SHELL=\${CONFIG_SHELL-$SHELL}
26311 cat >>$CONFIG_STATUS <<\_ACEOF
26312 ## --------------------- ##
26313 ## M4sh Initialization. ##
26314 ## --------------------- ##
26316 # Be Bourne compatible
26317 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26320 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26321 # is contrary to our usage. Disable this feature.
26322 alias -g '${1+"$@"}'='"$@"'
26323 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26326 DUALCASE=1; export DUALCASE # for MKS sh
26328 # Support unset when possible.
26329 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26336 # Work around bugs in pre-3.0 UWIN ksh.
26337 $as_unset ENV MAIL MAILPATH
26344 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26345 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26346 LC_TELEPHONE LC_TIME
26348 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26349 eval $as_var=C; export $as_var
26355 # Required to use basename.
26356 if expr a : '\(a\)' >/dev/null 2>&1; then
26362 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26363 as_basename=basename
26369 # Name of the executable.
26370 as_me=`$as_basename "$0" ||
26371 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26372 X"$0" : 'X\(//\)$' \| \
26373 X"$0" : 'X\(/\)$' \| \
26374 . : '\(.\)' 2>/dev/null ||
26376 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26377 /^X\/\(\/\/\)$/{ s//\1/; q; }
26378 /^X\/\(\/\).*/{ s//\1/; q; }
26382 # PATH needs CR, and LINENO needs CR and PATH.
26383 # Avoid depending upon Character Ranges.
26384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26387 as_cr_digits='0123456789'
26388 as_cr_alnum=$as_cr_Letters$as_cr_digits
26390 # The user is always right.
26391 if test "${PATH_SEPARATOR+set}" != set; then
26392 echo "#! /bin/sh" >conf$$.sh
26393 echo "exit 0" >>conf$$.sh
26395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26404 as_lineno_1=$LINENO
26405 as_lineno_2=$LINENO
26406 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26407 test "x$as_lineno_1" != "x$as_lineno_2" &&
26408 test "x$as_lineno_3" = "x$as_lineno_2" || {
26409 # Find who we are. Look in the path if we contain no path at all
26412 *[\\/]* ) as_myself=$0 ;;
26413 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26414 for as_dir in $PATH
26417 test -z "$as_dir" && as_dir=.
26418 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26423 # We did not find ourselves, most probably we were run as `sh COMMAND'
26424 # in which case we are not to be found in the path.
26425 if test "x$as_myself" = x; then
26428 if test ! -f "$as_myself"; then
26429 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26430 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26431 { (exit 1); exit 1; }; }
26433 case $CONFIG_SHELL in
26435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26436 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26439 test -z "$as_dir" && as_dir=.
26440 for as_base in sh bash ksh sh5; do
26443 if ("$as_dir/$as_base" -c '
26444 as_lineno_1=$LINENO
26445 as_lineno_2=$LINENO
26446 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26447 test "x$as_lineno_1" != "x$as_lineno_2" &&
26448 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26449 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26450 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26451 CONFIG_SHELL=$as_dir/$as_base
26452 export CONFIG_SHELL
26453 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26461 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26462 # uniformly replaced by the line number. The first 'sed' inserts a
26463 # line-number line before each line; the second 'sed' does the real
26464 # work. The second script uses 'N' to pair each line-number line
26465 # with the numbered line, and appends trailing '-' during
26466 # substitution so that $LINENO is not a special case at line end.
26467 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26468 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26469 sed '=' <$as_myself |
26474 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26477 s,^['$as_cr_digits']*\n,,
26478 ' >$as_me.lineno &&
26479 chmod +x $as_me.lineno ||
26480 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26481 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26482 { (exit 1); exit 1; }; }
26484 # Don't try to exec as it changes $[0], causing all sort of problems
26485 # (the dirname of $[0] is not the place where we might find the
26486 # original and so on. Autoconf is especially sensible to this).
26488 # Exit status is that of the last command.
26493 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26494 *c*,-n*) ECHO_N= ECHO_C='
26496 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26497 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26500 if expr a : '\(a\)' >/dev/null 2>&1; then
26506 rm -f conf$$ conf$$.exe conf$$.file
26508 if ln -s conf$$.file conf$$ 2>/dev/null; then
26509 # We could just check for DJGPP; but this test a) works b) is more generic
26510 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26511 if test -f conf$$.exe; then
26512 # Don't use ln at all; we don't have any links
26517 elif ln conf$$.file conf$$ 2>/dev/null; then
26522 rm -f conf$$ conf$$.exe conf$$.file
26524 if mkdir -p . 2>/dev/null; then
26527 test -d ./-p && rmdir ./-p
26531 as_executable_p="test -f"
26533 # Sed expression to map a string onto a valid CPP name.
26534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26536 # Sed expression to map a string onto a valid variable name.
26537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26541 # We need space, tab and new line, in precisely that order.
26551 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26552 # report actual input values of CONFIG_FILES etc. instead of their
26553 # values after options handling. Logging --version etc. is OK.
26557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26558 ## Running $as_me. ##
26563 This file was extended by shibboleth $as_me 2.0, which was
26564 generated by GNU Autoconf 2.59. Invocation command line was
26566 CONFIG_FILES = $CONFIG_FILES
26567 CONFIG_HEADERS = $CONFIG_HEADERS
26568 CONFIG_LINKS = $CONFIG_LINKS
26569 CONFIG_COMMANDS = $CONFIG_COMMANDS
26573 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26577 # Files that config.status was made for.
26578 if test -n "$ac_config_files"; then
26579 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26582 if test -n "$ac_config_headers"; then
26583 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26586 if test -n "$ac_config_links"; then
26587 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26590 if test -n "$ac_config_commands"; then
26591 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26594 cat >>$CONFIG_STATUS <<\_ACEOF
26597 \`$as_me' instantiates files from templates according to the
26598 current configuration.
26600 Usage: $0 [OPTIONS] [FILE]...
26602 -h, --help print this help, then exit
26603 -V, --version print version number, then exit
26604 -q, --quiet do not print progress messages
26605 -d, --debug don't remove temporary files
26606 --recheck update $as_me by reconfiguring in the same conditions
26607 --file=FILE[:TEMPLATE]
26608 instantiate the configuration file FILE
26609 --header=FILE[:TEMPLATE]
26610 instantiate the configuration header FILE
26612 Configuration files:
26615 Configuration headers:
26618 Configuration commands:
26621 Report bugs to <bug-autoconf@gnu.org>."
26624 cat >>$CONFIG_STATUS <<_ACEOF
26626 shibboleth config.status 2.0
26627 configured by $0, generated by GNU Autoconf 2.59,
26628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26630 Copyright (C) 2003 Free Software Foundation, Inc.
26631 This config.status script is free software; the Free Software Foundation
26632 gives unlimited permission to copy, distribute and modify it."
26637 cat >>$CONFIG_STATUS <<\_ACEOF
26638 # If no file are specified by the user, then we need to provide default
26639 # value. By we need to know if files were specified by the user.
26645 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26646 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26654 *) # This is not an option, so the user has probably given explicit
26657 ac_need_defaults=false;;
26661 # Handling of the options.
26663 cat >>$CONFIG_STATUS <<\_ACEOF
26664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26666 --version | --vers* | -V )
26667 echo "$ac_cs_version"; exit 0 ;;
26669 # Conflict between --help and --header
26670 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26671 Try \`$0 --help' for more information." >&5
26672 echo "$as_me: error: ambiguous option: $1
26673 Try \`$0 --help' for more information." >&2;}
26674 { (exit 1); exit 1; }; };;
26675 --help | --hel | -h )
26676 echo "$ac_cs_usage"; exit 0 ;;
26677 --debug | --d* | -d )
26679 --file | --fil | --fi | --f )
26681 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26682 ac_need_defaults=false;;
26683 --header | --heade | --head | --hea )
26685 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26686 ac_need_defaults=false;;
26687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26688 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26691 # This is an error.
26692 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26693 Try \`$0 --help' for more information." >&5
26694 echo "$as_me: error: unrecognized option: $1
26695 Try \`$0 --help' for more information." >&2;}
26696 { (exit 1); exit 1; }; } ;;
26698 *) ac_config_targets="$ac_config_targets $1" ;;
26704 ac_configure_extra_args=
26706 if $ac_cs_silent; then
26708 ac_configure_extra_args="$ac_configure_extra_args --silent"
26712 cat >>$CONFIG_STATUS <<_ACEOF
26713 if \$ac_cs_recheck; then
26714 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26715 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26720 cat >>$CONFIG_STATUS <<_ACEOF
26722 # INIT-COMMANDS section.
26725 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26731 cat >>$CONFIG_STATUS <<\_ACEOF
26732 for ac_config_target in $ac_config_targets
26734 case "$ac_config_target" in
26735 # Handling of arguments.
26736 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26737 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26738 "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
26739 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
26740 "shibsp/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibsp/Makefile" ;;
26741 "shibd/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibd/Makefile" ;;
26742 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
26743 "selinux/Makefile" ) CONFIG_FILES="$CONFIG_FILES selinux/Makefile" ;;
26744 "adfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES adfs/Makefile" ;;
26745 "nsapi_shib/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsapi_shib/Makefile" ;;
26746 "fastcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES fastcgi/Makefile" ;;
26747 "apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache/Makefile" ;;
26748 "odbc-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES odbc-store/Makefile" ;;
26749 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26750 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26751 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26752 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26753 { (exit 1); exit 1; }; };;
26757 # If the user did not use the arguments to specify the items to instantiate,
26758 # then the envvar interface is used. Set only those that are not.
26759 # We use the long form for the default assignment because of an extremely
26760 # bizarre bug on SunOS 4.1.3.
26761 if $ac_need_defaults; then
26762 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26763 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26764 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26767 # Have a temporary directory for convenience. Make it in the build tree
26768 # simply because there is no reason to put it here, and in addition,
26769 # creating and moving files from /tmp can sometimes cause problems.
26770 # Create a temporary directory, and hook for its removal unless debugging.
26773 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26774 trap '{ (exit 1); exit 1; }' 1 2 13 15
26777 # Create a (secure) tmp directory for tmp files.
26780 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26781 test -n "$tmp" && test -d "$tmp"
26784 tmp=./confstat$$-$RANDOM
26785 (umask 077 && mkdir $tmp)
26788 echo "$me: cannot create a temporary directory in ." >&2
26789 { (exit 1); exit 1; }
26794 cat >>$CONFIG_STATUS <<_ACEOF
26797 # CONFIG_FILES section.
26800 # No need to generate the scripts if there are no CONFIG_FILES.
26801 # This happens for instance when ./config.status config.h
26802 if test -n "\$CONFIG_FILES"; then
26803 # Protect against being on the right side of a sed subst in config.status.
26804 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26805 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26806 s,@SHELL@,$SHELL,;t t
26807 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26808 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26809 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26810 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26811 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26812 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26813 s,@exec_prefix@,$exec_prefix,;t t
26814 s,@prefix@,$prefix,;t t
26815 s,@program_transform_name@,$program_transform_name,;t t
26816 s,@bindir@,$bindir,;t t
26817 s,@sbindir@,$sbindir,;t t
26818 s,@libexecdir@,$libexecdir,;t t
26819 s,@datadir@,$datadir,;t t
26820 s,@sysconfdir@,$sysconfdir,;t t
26821 s,@sharedstatedir@,$sharedstatedir,;t t
26822 s,@localstatedir@,$localstatedir,;t t
26823 s,@libdir@,$libdir,;t t
26824 s,@includedir@,$includedir,;t t
26825 s,@oldincludedir@,$oldincludedir,;t t
26826 s,@infodir@,$infodir,;t t
26827 s,@mandir@,$mandir,;t t
26828 s,@build_alias@,$build_alias,;t t
26829 s,@host_alias@,$host_alias,;t t
26830 s,@target_alias@,$target_alias,;t t
26831 s,@DEFS@,$DEFS,;t t
26832 s,@ECHO_C@,$ECHO_C,;t t
26833 s,@ECHO_N@,$ECHO_N,;t t
26834 s,@ECHO_T@,$ECHO_T,;t t
26835 s,@LIBS@,$LIBS,;t t
26836 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26837 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26838 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26839 s,@CYGPATH_W@,$CYGPATH_W,;t t
26840 s,@PACKAGE@,$PACKAGE,;t t
26841 s,@VERSION@,$VERSION,;t t
26842 s,@ACLOCAL@,$ACLOCAL,;t t
26843 s,@AUTOCONF@,$AUTOCONF,;t t
26844 s,@AUTOMAKE@,$AUTOMAKE,;t t
26845 s,@AUTOHEADER@,$AUTOHEADER,;t t
26846 s,@MAKEINFO@,$MAKEINFO,;t t
26847 s,@install_sh@,$install_sh,;t t
26848 s,@STRIP@,$STRIP,;t t
26849 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26850 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26851 s,@mkdir_p@,$mkdir_p,;t t
26853 s,@SET_MAKE@,$SET_MAKE,;t t
26854 s,@am__leading_dot@,$am__leading_dot,;t t
26855 s,@AMTAR@,$AMTAR,;t t
26856 s,@am__tar@,$am__tar,;t t
26857 s,@am__untar@,$am__untar,;t t
26858 s,@DX_PROJECT@,$DX_PROJECT,;t t
26859 s,@DX_CONFIG@,$DX_CONFIG,;t t
26860 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
26861 s,@DX_ENV@,$DX_ENV,;t t
26862 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
26863 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
26864 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
26865 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26866 s,@DX_PERL@,$DX_PERL,;t t
26867 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
26868 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26869 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
26870 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
26871 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
26872 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26873 s,@DX_DOT@,$DX_DOT,;t t
26874 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
26875 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26876 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
26877 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
26878 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
26879 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26880 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
26881 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
26882 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
26883 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26884 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
26885 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
26886 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
26887 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26888 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
26889 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
26890 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
26891 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26892 s,@DX_HHC@,$DX_HHC,;t t
26893 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
26894 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26895 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
26896 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
26897 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
26898 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26899 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
26900 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
26901 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
26902 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26903 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26904 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
26905 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
26906 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
26907 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26908 s,@DX_LATEX@,$DX_LATEX,;t t
26909 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
26910 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26911 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
26912 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
26913 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26914 s,@DX_DVIPS@,$DX_DVIPS,;t t
26915 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
26916 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26917 s,@DX_EGREP@,$DX_EGREP,;t t
26918 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
26919 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26920 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
26921 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
26922 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26923 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26924 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
26925 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
26926 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26927 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26928 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26929 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
26930 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
26931 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
26932 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
26933 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
26935 s,@CFLAGS@,$CFLAGS,;t t
26936 s,@LDFLAGS@,$LDFLAGS,;t t
26937 s,@CPPFLAGS@,$CPPFLAGS,;t t
26938 s,@ac_ct_CC@,$ac_ct_CC,;t t
26939 s,@EXEEXT@,$EXEEXT,;t t
26940 s,@OBJEXT@,$OBJEXT,;t t
26941 s,@DEPDIR@,$DEPDIR,;t t
26942 s,@am__include@,$am__include,;t t
26943 s,@am__quote@,$am__quote,;t t
26944 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26945 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26946 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26947 s,@CCDEPMODE@,$CCDEPMODE,;t t
26948 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26949 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26951 s,@CXXFLAGS@,$CXXFLAGS,;t t
26952 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26953 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26954 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26955 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26956 s,@build@,$build,;t t
26957 s,@build_cpu@,$build_cpu,;t t
26958 s,@build_vendor@,$build_vendor,;t t
26959 s,@build_os@,$build_os,;t t
26960 s,@host@,$host,;t t
26961 s,@host_cpu@,$host_cpu,;t t
26962 s,@host_vendor@,$host_vendor,;t t
26963 s,@host_os@,$host_os,;t t
26964 s,@EGREP@,$EGREP,;t t
26965 s,@LN_S@,$LN_S,;t t
26966 s,@ECHO@,$ECHO,;t t
26968 s,@ac_ct_AR@,$ac_ct_AR,;t t
26969 s,@RANLIB@,$RANLIB,;t t
26970 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26972 s,@CXXCPP@,$CXXCPP,;t t
26974 s,@FFLAGS@,$FFLAGS,;t t
26975 s,@ac_ct_F77@,$ac_ct_F77,;t t
26976 s,@LIBTOOL@,$LIBTOOL,;t t
26977 s,@acx_pthread_config@,$acx_pthread_config,;t t
26978 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
26979 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
26980 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
26981 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
26982 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
26983 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
26984 s,@XMLTOOLINGXMLDIR@,$XMLTOOLINGXMLDIR,;t t
26985 s,@OPENSAMLXMLDIR@,$OPENSAMLXMLDIR,;t t
26986 s,@LITE_LIBS@,$LITE_LIBS,;t t
26987 s,@XMLSEC_LIBS@,$XMLSEC_LIBS,;t t
26988 s,@NSAPI_INCLUDE@,$NSAPI_INCLUDE,;t t
26989 s,@BUILD_NSAPI_TRUE@,$BUILD_NSAPI_TRUE,;t t
26990 s,@BUILD_NSAPI_FALSE@,$BUILD_NSAPI_FALSE,;t t
26991 s,@FASTCGI_INCLUDE@,$FASTCGI_INCLUDE,;t t
26992 s,@FASTCGI_LDFLAGS@,$FASTCGI_LDFLAGS,;t t
26993 s,@FASTCGI_LIBS@,$FASTCGI_LIBS,;t t
26994 s,@BUILD_FASTCGI_TRUE@,$BUILD_FASTCGI_TRUE,;t t
26995 s,@BUILD_FASTCGI_FALSE@,$BUILD_FASTCGI_FALSE,;t t
26997 s,@APXS@,$APXS,;t t
26998 s,@APXS_CFLAGS@,$APXS_CFLAGS,;t t
26999 s,@APXS_INCLUDE@,$APXS_INCLUDE,;t t
27000 s,@APXS2@,$APXS2,;t t
27001 s,@APR_CONFIG@,$APR_CONFIG,;t t
27002 s,@APXS2_CFLAGS@,$APXS2_CFLAGS,;t t
27003 s,@APXS2_INCLUDE@,$APXS2_INCLUDE,;t t
27004 s,@APXS22@,$APXS22,;t t
27005 s,@APR1_CONFIG@,$APR1_CONFIG,;t t
27006 s,@APXS22_CFLAGS@,$APXS22_CFLAGS,;t t
27007 s,@APXS22_INCLUDE@,$APXS22_INCLUDE,;t t
27008 s,@BUILD_AP13_TRUE@,$BUILD_AP13_TRUE,;t t
27009 s,@BUILD_AP13_FALSE@,$BUILD_AP13_FALSE,;t t
27010 s,@BUILD_AP20_TRUE@,$BUILD_AP20_TRUE,;t t
27011 s,@BUILD_AP20_FALSE@,$BUILD_AP20_FALSE,;t t
27012 s,@BUILD_AP22_TRUE@,$BUILD_AP22_TRUE,;t t
27013 s,@BUILD_AP22_FALSE@,$BUILD_AP22_FALSE,;t t
27014 s,@ODBC_CONFIG@,$ODBC_CONFIG,;t t
27015 s,@ODBC_CFLAGS@,$ODBC_CFLAGS,;t t
27016 s,@ODBC_LIBS@,$ODBC_LIBS,;t t
27017 s,@WANT_SUBDIRS@,$WANT_SUBDIRS,;t t
27018 s,@LIBOBJS@,$LIBOBJS,;t t
27019 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27024 cat >>$CONFIG_STATUS <<\_ACEOF
27025 # Split the substitutions into bite-sized pieces for seds with
27026 # small command number limits, like on Digital OSF/1 and HP-UX.
27027 ac_max_sed_lines=48
27028 ac_sed_frag=1 # Number of current file.
27029 ac_beg=1 # First line for current file.
27030 ac_end=$ac_max_sed_lines # Line after last line for current file.
27033 while $ac_more_lines; do
27034 if test $ac_beg -gt 1; then
27035 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27037 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27039 if test ! -s $tmp/subs.frag; then
27040 ac_more_lines=false
27042 # The purpose of the label and of the branching condition is to
27043 # speed up the sed processing (if there are no `@' at all, there
27044 # is no need to browse any of the substitutions).
27045 # These are the two extra sed commands mentioned above.
27047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27048 if test -z "$ac_sed_cmds"; then
27049 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27051 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27053 ac_sed_frag=`expr $ac_sed_frag + 1`
27055 ac_end=`expr $ac_end + $ac_max_sed_lines`
27058 if test -z "$ac_sed_cmds"; then
27061 fi # test -n "$CONFIG_FILES"
27064 cat >>$CONFIG_STATUS <<\_ACEOF
27065 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27066 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27068 - | *:- | *:-:* ) # input from stdin
27070 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27071 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27072 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27073 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27074 * ) ac_file_in=$ac_file.in ;;
27077 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27078 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27080 X"$ac_file" : 'X\(//\)[^/]' \| \
27081 X"$ac_file" : 'X\(//\)$' \| \
27082 X"$ac_file" : 'X\(/\)' \| \
27083 . : '\(.\)' 2>/dev/null ||
27085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27087 /^X\(\/\/\)$/{ s//\1/; q; }
27088 /^X\(\/\).*/{ s//\1/; q; }
27090 { if $as_mkdir_p; then
27095 while test ! -d "$as_dir"; do
27096 as_dirs="$as_dir $as_dirs"
27097 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27099 X"$as_dir" : 'X\(//\)[^/]' \| \
27100 X"$as_dir" : 'X\(//\)$' \| \
27101 X"$as_dir" : 'X\(/\)' \| \
27102 . : '\(.\)' 2>/dev/null ||
27104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27106 /^X\(\/\/\)$/{ s//\1/; q; }
27107 /^X\(\/\).*/{ s//\1/; q; }
27110 test ! -n "$as_dirs" || mkdir $as_dirs
27111 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27113 { (exit 1); exit 1; }; }; }
27117 if test "$ac_dir" != .; then
27118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27119 # A "../" for each directory in $ac_dir_suffix.
27120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27122 ac_dir_suffix= ac_top_builddir=
27126 .) # No --srcdir option. We are building in place.
27128 if test -z "$ac_top_builddir"; then
27131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27133 [\\/]* | ?:[\\/]* ) # Absolute path.
27134 ac_srcdir=$srcdir$ac_dir_suffix;
27135 ac_top_srcdir=$srcdir ;;
27136 *) # Relative path.
27137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27141 # Do not use `cd foo && pwd` to compute absolute paths, because
27142 # the directories may not exist.
27144 .) ac_abs_builddir="$ac_dir";;
27147 .) ac_abs_builddir=`pwd`;;
27148 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27149 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27152 case $ac_abs_builddir in
27153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27155 case ${ac_top_builddir}. in
27156 .) ac_abs_top_builddir=$ac_abs_builddir;;
27157 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27158 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27161 case $ac_abs_builddir in
27162 .) ac_abs_srcdir=$ac_srcdir;;
27165 .) ac_abs_srcdir=$ac_abs_builddir;;
27166 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27167 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27170 case $ac_abs_builddir in
27171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27173 case $ac_top_srcdir in
27174 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27175 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27176 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27182 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27183 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27186 if test x"$ac_file" != x-; then
27187 { echo "$as_me:$LINENO: creating $ac_file" >&5
27188 echo "$as_me: creating $ac_file" >&6;}
27191 # Let's still pretend it is `configure' which instantiates (i.e., don't
27192 # use $as_me), people would be surprised to read:
27193 # /* config.h. Generated by config.status. */
27194 if test x"$ac_file" = x-; then
27197 configure_input="$ac_file. "
27199 configure_input=$configure_input"Generated from `echo $ac_file_in |
27200 sed 's,.*/,,'` by configure."
27202 # First look for the input files in the build tree, otherwise in the
27204 ac_file_inputs=`IFS=:
27205 for f in $ac_file_in; do
27207 -) echo $tmp/stdin ;;
27209 # Absolute (can't be DOS-style, as IFS=:)
27210 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27211 echo "$as_me: error: cannot find input file: $f" >&2;}
27212 { (exit 1); exit 1; }; }
27215 if test -f "$f"; then
27218 elif test -f "$srcdir/$f"; then
27223 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27224 echo "$as_me: error: cannot find input file: $f" >&2;}
27225 { (exit 1); exit 1; }; }
27228 done` || { (exit 1); exit 1; }
27230 cat >>$CONFIG_STATUS <<_ACEOF
27234 cat >>$CONFIG_STATUS <<\_ACEOF
27236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27237 s,@configure_input@,$configure_input,;t t
27238 s,@srcdir@,$ac_srcdir,;t t
27239 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27240 s,@top_srcdir@,$ac_top_srcdir,;t t
27241 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27242 s,@builddir@,$ac_builddir,;t t
27243 s,@abs_builddir@,$ac_abs_builddir,;t t
27244 s,@top_builddir@,$ac_top_builddir,;t t
27245 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27246 s,@INSTALL@,$ac_INSTALL,;t t
27247 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27249 if test x"$ac_file" != x-; then
27250 mv $tmp/out $ac_file
27258 cat >>$CONFIG_STATUS <<\_ACEOF
27261 # CONFIG_HEADER section.
27264 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27265 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27267 # ac_d sets the value in "#define NAME VALUE" lines.
27268 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27269 ac_dB='[ ].*$,\1#\2'
27272 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27273 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27274 ac_uB='$,\1#\2define\3'
27278 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27279 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27281 - | *:- | *:-:* ) # input from stdin
27283 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27284 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27285 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27286 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27287 * ) ac_file_in=$ac_file.in ;;
27290 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27291 echo "$as_me: creating $ac_file" >&6;}
27293 # First look for the input files in the build tree, otherwise in the
27295 ac_file_inputs=`IFS=:
27296 for f in $ac_file_in; do
27298 -) echo $tmp/stdin ;;
27300 # Absolute (can't be DOS-style, as IFS=:)
27301 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27302 echo "$as_me: error: cannot find input file: $f" >&2;}
27303 { (exit 1); exit 1; }; }
27304 # Do quote $f, to prevent DOS paths from being IFS'd.
27307 if test -f "$f"; then
27310 elif test -f "$srcdir/$f"; then
27315 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27316 echo "$as_me: error: cannot find input file: $f" >&2;}
27317 { (exit 1); exit 1; }; }
27320 done` || { (exit 1); exit 1; }
27321 # Remove the trailing spaces.
27322 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27326 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27327 # `conftest.undefs', that substitutes the proper values into
27328 # config.h.in to produce config.h. The first handles `#define'
27329 # templates, and the second `#undef' templates.
27330 # And first: Protect against being on the right side of a sed subst in
27331 # config.status. Protect against being in an unquoted here document
27332 # in config.status.
27333 rm -f conftest.defines conftest.undefs
27334 # Using a here document instead of a string reduces the quoting nightmare.
27335 # Putting comments in sed scripts is not portable.
27337 # `end' is used to avoid that the second main sed command (meant for
27338 # 0-ary CPP macros) applies to n-ary macro definitions.
27339 # See the Autoconf documentation for `clear'.
27340 cat >confdef2sed.sed <<\_ACEOF
27345 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27347 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27350 # If some macros were called several times there might be several times
27351 # the same #defines, which is useless. Nevertheless, we may not want to
27352 # sort them, since we want the *last* AC-DEFINE to be honored.
27353 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27354 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27355 rm -f confdef2sed.sed
27357 # This sed command replaces #undef with comments. This is necessary, for
27358 # example, in the case of _POSIX_SOURCE, which is predefined and required
27359 # on some systems where configure will not decide to define it.
27360 cat >>conftest.undefs <<\_ACEOF
27361 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27364 # Break up conftest.defines because some shells have a limit on the size
27365 # of here documents, and old seds have small limits too (100 cmds).
27366 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27367 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27368 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27369 echo ' :' >>$CONFIG_STATUS
27370 rm -f conftest.tail
27371 while grep . conftest.defines >/dev/null
27373 # Write a limited-size here document to $tmp/defines.sed.
27374 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27375 # Speed up: don't consider the non `#define' lines.
27376 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27377 # Work around the forget-to-reset-the-flag bug.
27378 echo 't clr' >>$CONFIG_STATUS
27379 echo ': clr' >>$CONFIG_STATUS
27380 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27382 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27384 mv $tmp/out $tmp/in
27386 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27387 rm -f conftest.defines
27388 mv conftest.tail conftest.defines
27390 rm -f conftest.defines
27391 echo ' fi # grep' >>$CONFIG_STATUS
27392 echo >>$CONFIG_STATUS
27394 # Break up conftest.undefs because some shells have a limit on the size
27395 # of here documents, and old seds have small limits too (100 cmds).
27396 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27397 rm -f conftest.tail
27398 while grep . conftest.undefs >/dev/null
27400 # Write a limited-size here document to $tmp/undefs.sed.
27401 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27402 # Speed up: don't consider the non `#undef'
27403 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27404 # Work around the forget-to-reset-the-flag bug.
27405 echo 't clr' >>$CONFIG_STATUS
27406 echo ': clr' >>$CONFIG_STATUS
27407 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27409 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27411 mv $tmp/out $tmp/in
27413 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27414 rm -f conftest.undefs
27415 mv conftest.tail conftest.undefs
27417 rm -f conftest.undefs
27419 cat >>$CONFIG_STATUS <<\_ACEOF
27420 # Let's still pretend it is `configure' which instantiates (i.e., don't
27421 # use $as_me), people would be surprised to read:
27422 # /* config.h. Generated by config.status. */
27423 if test x"$ac_file" = x-; then
27424 echo "/* Generated by configure. */" >$tmp/config.h
27426 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27428 cat $tmp/in >>$tmp/config.h
27430 if test x"$ac_file" != x-; then
27431 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27432 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27433 echo "$as_me: $ac_file is unchanged" >&6;}
27435 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27436 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27437 X"$ac_file" : 'X\(//\)[^/]' \| \
27438 X"$ac_file" : 'X\(//\)$' \| \
27439 X"$ac_file" : 'X\(/\)' \| \
27440 . : '\(.\)' 2>/dev/null ||
27442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27444 /^X\(\/\/\)$/{ s//\1/; q; }
27445 /^X\(\/\).*/{ s//\1/; q; }
27447 { if $as_mkdir_p; then
27452 while test ! -d "$as_dir"; do
27453 as_dirs="$as_dir $as_dirs"
27454 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27456 X"$as_dir" : 'X\(//\)[^/]' \| \
27457 X"$as_dir" : 'X\(//\)$' \| \
27458 X"$as_dir" : 'X\(/\)' \| \
27459 . : '\(.\)' 2>/dev/null ||
27461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27463 /^X\(\/\/\)$/{ s//\1/; q; }
27464 /^X\(\/\).*/{ s//\1/; q; }
27467 test ! -n "$as_dirs" || mkdir $as_dirs
27468 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27469 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27470 { (exit 1); exit 1; }; }; }
27473 mv $tmp/config.h $ac_file
27477 rm -f $tmp/config.h
27479 # Compute $ac_file's index in $config_headers.
27481 for _am_header in $config_headers :; do
27482 case $_am_header in
27483 $ac_file | $ac_file:* )
27486 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27489 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27490 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27491 X$ac_file : 'X\(//\)[^/]' \| \
27492 X$ac_file : 'X\(//\)$' \| \
27493 X$ac_file : 'X\(/\)' \| \
27494 . : '\(.\)' 2>/dev/null ||
27496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27498 /^X\(\/\/\)$/{ s//\1/; q; }
27499 /^X\(\/\).*/{ s//\1/; q; }
27500 s/.*/./; q'`/stamp-h$_am_stamp_count
27503 cat >>$CONFIG_STATUS <<\_ACEOF
27506 # CONFIG_COMMANDS section.
27508 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27509 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27510 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27511 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27512 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27513 X"$ac_dest" : 'X\(//\)[^/]' \| \
27514 X"$ac_dest" : 'X\(//\)$' \| \
27515 X"$ac_dest" : 'X\(/\)' \| \
27516 . : '\(.\)' 2>/dev/null ||
27518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27520 /^X\(\/\/\)$/{ s//\1/; q; }
27521 /^X\(\/\).*/{ s//\1/; q; }
27523 { if $as_mkdir_p; then
27528 while test ! -d "$as_dir"; do
27529 as_dirs="$as_dir $as_dirs"
27530 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27532 X"$as_dir" : 'X\(//\)[^/]' \| \
27533 X"$as_dir" : 'X\(//\)$' \| \
27534 X"$as_dir" : 'X\(/\)' \| \
27535 . : '\(.\)' 2>/dev/null ||
27537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27539 /^X\(\/\/\)$/{ s//\1/; q; }
27540 /^X\(\/\).*/{ s//\1/; q; }
27543 test ! -n "$as_dirs" || mkdir $as_dirs
27544 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27545 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27546 { (exit 1); exit 1; }; }; }
27550 if test "$ac_dir" != .; then
27551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27552 # A "../" for each directory in $ac_dir_suffix.
27553 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27555 ac_dir_suffix= ac_top_builddir=
27559 .) # No --srcdir option. We are building in place.
27561 if test -z "$ac_top_builddir"; then
27564 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27566 [\\/]* | ?:[\\/]* ) # Absolute path.
27567 ac_srcdir=$srcdir$ac_dir_suffix;
27568 ac_top_srcdir=$srcdir ;;
27569 *) # Relative path.
27570 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27571 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27574 # Do not use `cd foo && pwd` to compute absolute paths, because
27575 # the directories may not exist.
27577 .) ac_abs_builddir="$ac_dir";;
27580 .) ac_abs_builddir=`pwd`;;
27581 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27582 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27585 case $ac_abs_builddir in
27586 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27588 case ${ac_top_builddir}. in
27589 .) ac_abs_top_builddir=$ac_abs_builddir;;
27590 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27591 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27594 case $ac_abs_builddir in
27595 .) ac_abs_srcdir=$ac_srcdir;;
27598 .) ac_abs_srcdir=$ac_abs_builddir;;
27599 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27600 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27603 case $ac_abs_builddir in
27604 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27606 case $ac_top_srcdir in
27607 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27608 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27609 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27614 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27615 echo "$as_me: executing $ac_dest commands" >&6;}
27617 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27618 # Strip MF so we end up with the name of the file.
27619 mf=`echo "$mf" | sed -e 's/:.*$//'`
27620 # Check whether this is an Automake generated Makefile or not.
27621 # We used to match only the files named `Makefile.in', but
27622 # some people rename them; so instead we look at the file content.
27623 # Grep'ing the first line is not enough: some people post-process
27624 # each Makefile.in and add a new line on top of each file to say so.
27625 # So let's grep whole file.
27626 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27627 dirpart=`(dirname "$mf") 2>/dev/null ||
27628 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27629 X"$mf" : 'X\(//\)[^/]' \| \
27630 X"$mf" : 'X\(//\)$' \| \
27631 X"$mf" : 'X\(/\)' \| \
27632 . : '\(.\)' 2>/dev/null ||
27634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27636 /^X\(\/\/\)$/{ s//\1/; q; }
27637 /^X\(\/\).*/{ s//\1/; q; }
27642 # Extract the definition of DEPDIR, am__include, and am__quote
27643 # from the Makefile without running `make'.
27644 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27645 test -z "$DEPDIR" && continue
27646 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27647 test -z "am__include" && continue
27648 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27649 # When using ansi2knr, U may be empty or an underscore; expand it
27650 U=`sed -n 's/^U = //p' < "$mf"`
27651 # Find all dependency output files, they are included files with
27652 # $(DEPDIR) in their names. We invoke sed twice because it is the
27653 # simplest approach to changing $(DEPDIR) to its actual value in the
27655 for file in `sed -n "
27656 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27657 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27658 # Make sure the directory exists.
27659 test -f "$dirpart/$file" && continue
27660 fdir=`(dirname "$file") 2>/dev/null ||
27661 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27662 X"$file" : 'X\(//\)[^/]' \| \
27663 X"$file" : 'X\(//\)$' \| \
27664 X"$file" : 'X\(/\)' \| \
27665 . : '\(.\)' 2>/dev/null ||
27667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27669 /^X\(\/\/\)$/{ s//\1/; q; }
27670 /^X\(\/\).*/{ s//\1/; q; }
27672 { if $as_mkdir_p; then
27673 mkdir -p $dirpart/$fdir
27675 as_dir=$dirpart/$fdir
27677 while test ! -d "$as_dir"; do
27678 as_dirs="$as_dir $as_dirs"
27679 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27681 X"$as_dir" : 'X\(//\)[^/]' \| \
27682 X"$as_dir" : 'X\(//\)$' \| \
27683 X"$as_dir" : 'X\(/\)' \| \
27684 . : '\(.\)' 2>/dev/null ||
27686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27688 /^X\(\/\/\)$/{ s//\1/; q; }
27689 /^X\(\/\).*/{ s//\1/; q; }
27692 test ! -n "$as_dirs" || mkdir $as_dirs
27693 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27694 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27695 { (exit 1); exit 1; }; }; }
27697 # echo "creating $dirpart/$file"
27698 echo '# dummy' > "$dirpart/$file"
27706 cat >>$CONFIG_STATUS <<\_ACEOF
27708 { (exit 0); exit 0; }
27710 chmod +x $CONFIG_STATUS
27711 ac_clean_files=$ac_clean_files_save
27714 # configure is writing to config.log, and then calls config.status.
27715 # config.status does its own redirection, appending to config.log.
27716 # Unfortunately, on DOS this fails, as config.log is still kept open
27717 # by configure, so config.status won't be able to write to it; its
27718 # output is simply discarded. So we exec the FD to /dev/null,
27719 # effectively closing config.log, so it can be properly (re)opened and
27720 # appended to by config.status. When coming back to configure, we
27721 # need to make the FD available again.
27722 if test "$no_create" != yes; then
27724 ac_config_status_args=
27725 test "$silent" = yes &&
27726 ac_config_status_args="$ac_config_status_args --quiet"
27728 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27730 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27731 # would make configure fail if this is the last instruction.
27732 $ac_cs_success || { (exit 1); exit 1; }