2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for shibboleth 2.2.1.
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.2.1'
427 PACKAGE_STRING='shibboleth 2.2.1'
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_PERL ac_pt_DX_PERL DX_COND_doc_TRUE DX_COND_doc_FALSE DX_FLAG_dot DX_DOT ac_pt_DX_DOT DX_COND_dot_TRUE DX_COND_dot_FALSE DX_FLAG_man DX_COND_man_TRUE DX_COND_man_FALSE DX_FLAG_rtf DX_COND_rtf_TRUE DX_COND_rtf_FALSE DX_FLAG_xml DX_COND_xml_TRUE DX_COND_xml_FALSE DX_FLAG_chm DX_HHC ac_pt_DX_HHC DX_COND_chm_TRUE DX_COND_chm_FALSE DX_FLAG_chi DX_COND_chi_TRUE DX_COND_chi_FALSE DX_FLAG_html DX_COND_html_TRUE DX_COND_html_FALSE DX_FLAG_ps DX_LATEX ac_pt_DX_LATEX DX_MAKEINDEX ac_pt_DX_MAKEINDEX DX_DVIPS ac_pt_DX_DVIPS DX_EGREP ac_pt_DX_EGREP DX_COND_ps_TRUE DX_COND_ps_FALSE DX_FLAG_pdf DX_PDFLATEX ac_pt_DX_PDFLATEX 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 MEMCACHED_INCLUDE MEMCACHED_LDFLAGS MEMCACHED_LIBS BUILD_MEMCACHED_TRUE BUILD_MEMCACHED_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.2.1 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.2.1:";;
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-memcached=DIR Build Memcached support
1078 --with-apxs=FILE Specifies where to find the Apache 1.3 apxs script.
1079 --with-apxs2=FILE Specifies where to find the Apache 2.0 apxs script.
1080 --with-apr=PATH where apr-config is installed
1081 --with-apxs22=FILE Specifies where to find the Apache 2.2 apxs script.
1082 --with-apr1=PATH where apr-1-config is installed
1083 --with-odbc=PATH directory where odbc is installed
1085 Some influential environment variables:
1087 a4wide (default), a4, letter, legal or executive
1088 CC C compiler command
1089 CFLAGS C compiler flags
1090 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1091 nonstandard directory <lib dir>
1092 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1093 headers in a nonstandard directory <include dir>
1094 CXX C++ compiler command
1095 CXXFLAGS C++ compiler flags
1097 CXXCPP C++ preprocessor
1098 F77 Fortran 77 compiler command
1099 FFLAGS Fortran 77 compiler flags
1101 Use these variables to override the choices made by `configure' or to help
1102 it to find libraries and programs with nonstandard names/locations.
1104 Report bugs to <shibboleth-users@internet2.edu>.
1108 if test "$ac_init_help" = "recursive"; then
1109 # If there are subdirs, report their specific --help.
1111 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112 test -d $ac_dir || continue
1115 if test "$ac_dir" != .; then
1116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117 # A "../" for each directory in $ac_dir_suffix.
1118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120 ac_dir_suffix= ac_top_builddir=
1124 .) # No --srcdir option. We are building in place.
1126 if test -z "$ac_top_builddir"; then
1129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 [\\/]* | ?:[\\/]* ) # Absolute path.
1132 ac_srcdir=$srcdir$ac_dir_suffix;
1133 ac_top_srcdir=$srcdir ;;
1135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1139 # Do not use `cd foo && pwd` to compute absolute paths, because
1140 # the directories may not exist.
1142 .) ac_abs_builddir="$ac_dir";;
1145 .) ac_abs_builddir=`pwd`;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1150 case $ac_abs_builddir in
1151 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1153 case ${ac_top_builddir}. in
1154 .) ac_abs_top_builddir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1159 case $ac_abs_builddir in
1160 .) ac_abs_srcdir=$ac_srcdir;;
1163 .) ac_abs_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1168 case $ac_abs_builddir in
1169 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1171 case $ac_top_srcdir in
1172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1179 # Check for guested configure; otherwise get Cygnus style configure.
1180 if test -f $ac_srcdir/configure.gnu; then
1182 $SHELL $ac_srcdir/configure.gnu --help=recursive
1183 elif test -f $ac_srcdir/configure; then
1185 $SHELL $ac_srcdir/configure --help=recursive
1186 elif test -f $ac_srcdir/configure.ac ||
1187 test -f $ac_srcdir/configure.in; then
1189 $ac_configure --help
1191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1197 test -n "$ac_init_help" && exit 0
1198 if $ac_init_version; then
1200 shibboleth configure 2.2.1
1201 generated by GNU Autoconf 2.59
1203 Copyright (C) 2003 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1211 This file contains any messages produced by compilers while
1212 running configure, to aid debugging if configure makes a mistake.
1214 It was created by shibboleth $as_me 2.2.1, which was
1215 generated by GNU Autoconf 2.59. Invocation command line was
1226 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1265 # Keep a trace of the command line.
1266 # Strip out --no-create and --no-recursion so they do not pile up.
1267 # Strip out --silent because we don't want to record it for future runs.
1268 # Also quote any args containing shell meta-characters.
1269 # Make two passes to allow for proper duplicate-argument suppression.
1274 ac_must_keep_next=false
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
1292 ac_must_keep_next=false # Got value, back to normal.
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1303 -* ) ac_must_keep_next=true ;;
1306 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307 # Get rid of the leading space.
1313 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316 # When interrupted or exit'd, cleanup temporary files, and complete
1317 # config.log. We remove comments because anyway the quotes in there
1318 # would cause problems or look ugly.
1319 # WARNING: Be sure not to use single quotes in there, as some shells,
1320 # such as our DU 5.0 friend, will then `close' the trap.
1321 trap 'exit_status=$?
1322 # Save into config.log some information that might help in debugging.
1327 ## ---------------- ##
1328 ## Cache variables. ##
1329 ## ---------------- ##
1332 # The following way of writing the cache mishandles newlines in values,
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1350 ## ----------------- ##
1351 ## Output variables. ##
1352 ## ----------------- ##
1355 for ac_var in $ac_subst_vars
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1362 if test -n "$ac_subst_files"; then
1369 for ac_var in $ac_subst_files
1371 eval ac_val=$`echo $ac_var`
1372 echo "$ac_var='"'"'$ac_val'"'"'"
1377 if test -s confdefs.h; then
1384 sed "/^$/d" confdefs.h | sort
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1391 rm -f core *.core &&
1392 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1395 for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1401 rm -rf conftest* confdefs.h
1402 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1405 # Predefined preprocessor variables.
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_NAME "$PACKAGE_NAME"
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_STRING "$PACKAGE_STRING"
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1432 # Let the site file select an alternate cache file if it wants to.
1433 # Prefer explicitly selected file to automatically selected ones.
1434 if test -z "$CONFIG_SITE"; then
1435 if test "x$prefix" != xNONE; then
1436 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1441 for ac_site_file in $CONFIG_SITE; do
1442 if test -r "$ac_site_file"; then
1443 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444 echo "$as_me: loading site script $ac_site_file" >&6;}
1445 sed 's/^/| /' "$ac_site_file" >&5
1450 if test -r "$cache_file"; then
1451 # Some versions of bash will fail to source /dev/null (special
1452 # files actually), so we avoid doing that.
1453 if test -f "$cache_file"; then
1454 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455 echo "$as_me: loading cache $cache_file" >&6;}
1457 [\\/]* | ?:[\\/]* ) . $cache_file;;
1458 *) . ./$cache_file;;
1462 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463 echo "$as_me: creating cache $cache_file" >&6;}
1467 # Check that the precious variables saved in the cache have kept the same
1469 ac_cache_corrupted=false
1470 for ac_var in `(set) 2>&1 |
1471 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473 eval ac_new_set=\$ac_env_${ac_var}_set
1474 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475 eval ac_new_val="\$ac_env_${ac_var}_value"
1476 case $ac_old_set,$ac_new_set in
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1487 if test "x$ac_old_val" != "x$ac_new_val"; then
1488 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1489 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1490 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1491 echo "$as_me: former value: $ac_old_val" >&2;}
1492 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1493 echo "$as_me: current value: $ac_new_val" >&2;}
1494 ac_cache_corrupted=:
1497 # Pass precious variables to config.status.
1498 if test "$ac_new_set" = set; then
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 *) ac_arg=$ac_var=$ac_new_val ;;
1504 case " $ac_configure_args " in
1505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1510 if $ac_cache_corrupted; then
1511 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515 { (exit 1); exit 1; }; }
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1550 ac_config_headers="$ac_config_headers config.h"
1552 am__api_version="1.9"
1554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 elif test -f $ac_dir/install.sh; then
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 elif test -f $ac_dir/shtool; then
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1569 if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578 # Find a good install program. We prefer a C program (faster),
1579 # so one script is as good as another. But avoid the broken or
1580 # incompatible versions:
1581 # SysV /etc/install, /usr/sbin/install
1582 # SunOS /usr/etc/install
1583 # IRIX /sbin/install
1585 # AmigaOS /C/install, which installs bootblocks on floppy discs
1586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1589 # OS/2's system install, which has a completely different semantic
1590 # ./install, which can be erroneously created by make from ./install.sh.
1591 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1592 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1593 if test -z "$INSTALL"; then
1594 if test "${ac_cv_path_install+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 test -z "$as_dir" && as_dir=.
1602 # Account for people who put trailing slashes in PATH elements.
1604 ./ | .// | /cC/* | \
1605 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1606 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1609 # OSF1 and SCO ODT 3.0 have their own names for install.
1610 # Don't use installbsd from OSF since it installs stuff as root
1612 for ac_prog in ginstall scoinst install; do
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1615 if test $ac_prog = install &&
1616 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1617 # AIX install. It has an incompatible calling convention.
1619 elif test $ac_prog = install &&
1620 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1621 # program-specific install script used by HP pwplus--don't use.
1624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1636 if test "${ac_cv_path_install+set}" = set; then
1637 INSTALL=$ac_cv_path_install
1639 # As a last resort, use the slow shell script. We don't cache a
1640 # path for INSTALL within a source directory, because that will
1641 # break other packages using the cache if that directory is
1642 # removed, or if the path is relative.
1643 INSTALL=$ac_install_sh
1646 echo "$as_me:$LINENO: result: $INSTALL" >&5
1647 echo "${ECHO_T}$INSTALL" >&6
1649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1650 # It thinks the first close brace ends the variable substitution.
1651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1657 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1658 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1661 echo timestamp > conftest.file
1662 # Do `set' in a subshell so we don't clobber the current shell's
1663 # arguments. Must try -L first in case configure is actually a
1664 # symlink; some systems play weird games with the mod time of symlinks
1665 # (eg FreeBSD returns the mod time of the symlink's containing
1668 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1669 if test "$*" = "X"; then
1671 set X `ls -t $srcdir/configure conftest.file`
1674 if test "$*" != "X $srcdir/configure conftest.file" \
1675 && test "$*" != "X conftest.file $srcdir/configure"; then
1677 # If neither matched, then we have a broken ls. This can happen
1678 # if, for instance, CONFIG_SHELL is bash and it inherits a
1679 # broken ls alias from the environment. This has actually
1680 # happened. Such a system could not be considered "sane".
1681 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1682 alias in your environment" >&5
1683 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1684 alias in your environment" >&2;}
1685 { (exit 1); exit 1; }; }
1688 test "$2" = conftest.file
1694 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1695 Check your system clock" >&5
1696 echo "$as_me: error: newly created file is older than distributed files!
1697 Check your system clock" >&2;}
1698 { (exit 1); exit 1; }; }
1700 echo "$as_me:$LINENO: result: yes" >&5
1701 echo "${ECHO_T}yes" >&6
1702 test "$program_prefix" != NONE &&
1703 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1704 # Use a double $ so make ignores it.
1705 test "$program_suffix" != NONE &&
1706 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1707 # Double any \ or $. echo might interpret backslashes.
1708 # By default was `s,x,x', remove it if useless.
1709 cat <<\_ACEOF >conftest.sed
1710 s/[\\$]/&&/g;s/;s,x,x,$//
1712 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1715 # expand $ac_aux_dir to an absolute path
1716 am_aux_dir=`cd $ac_aux_dir && pwd`
1718 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1719 # Use eval to expand $SHELL
1720 if eval "$MISSING --run true"; then
1721 am_missing_run="$MISSING --run "
1724 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1725 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1728 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1729 # We used to keeping the `.' as first argument, in order to
1730 # allow $(mkdir_p) to be used without argument. As in
1731 # $(mkdir_p) $(somedir)
1732 # where $(somedir) is conditionally defined. However this is wrong
1734 # 1. if the package is installed by a user who cannot write `.'
1735 # make install will fail,
1736 # 2. the above comment should most certainly read
1737 # $(mkdir_p) $(DESTDIR)$(somedir)
1738 # so it does not work when $(somedir) is undefined and
1739 # $(DESTDIR) is not.
1740 # To support the latter case, we have to write
1741 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1742 # so the `.' trick is pointless.
1743 mkdir_p='mkdir -p --'
1745 # On NextStep and OpenStep, the `mkdir' command does not
1746 # recognize any option. It will interpret all options as
1747 # directories to create, and then abort because `.' already
1749 for d in ./-p ./--version;
1751 test -d $d && rmdir $d
1753 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1754 if test -f "$ac_aux_dir/mkinstalldirs"; then
1755 mkdir_p='$(mkinstalldirs)'
1757 mkdir_p='$(install_sh) -d'
1761 for ac_prog in gawk mawk nawk awk
1763 # Extract the first word of "$ac_prog", so it can be a program name with args.
1764 set dummy $ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_AWK+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 if test -n "$AWK"; then
1771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_AWK="$ac_prog"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 if test -n "$AWK"; then
1791 echo "$as_me:$LINENO: result: $AWK" >&5
1792 echo "${ECHO_T}$AWK" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1798 test -n "$AWK" && break
1801 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1802 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1803 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1804 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 cat >conftest.make <<\_ACEOF
1809 @echo 'ac_maketemp="$(MAKE)"'
1811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1812 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1813 if test -n "$ac_maketemp"; then
1814 eval ac_cv_prog_make_${ac_make}_set=yes
1816 eval ac_cv_prog_make_${ac_make}_set=no
1820 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1821 echo "$as_me:$LINENO: result: yes" >&5
1822 echo "${ECHO_T}yes" >&6
1825 echo "$as_me:$LINENO: result: no" >&5
1826 echo "${ECHO_T}no" >&6
1827 SET_MAKE="MAKE=${MAKE-make}"
1830 rm -rf .tst 2>/dev/null
1831 mkdir .tst 2>/dev/null
1832 if test -d .tst; then
1837 rmdir .tst 2>/dev/null
1839 # test to see if srcdir already configured
1840 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1841 test -f $srcdir/config.status; then
1842 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1843 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1844 { (exit 1); exit 1; }; }
1847 # test whether we have cygpath
1848 if test -z "$CYGPATH_W"; then
1849 if (cygpath --version) >/dev/null 2>/dev/null; then
1850 CYGPATH_W='cygpath -w'
1857 # Define the identity of the package.
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE "$PACKAGE"
1867 cat >>confdefs.h <<_ACEOF
1868 #define VERSION "$VERSION"
1871 # Some tools Automake needs.
1873 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1876 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1879 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1882 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1885 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1887 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1889 # Installed binaries are usually stripped using `strip' when the user
1890 # run `make install-strip'. However `strip' might not be the right
1891 # tool to use in cross-compilation environments, therefore Automake
1892 # will honor the `STRIP' environment variable to overrule this program.
1893 if test "$cross_compiling" != no; then
1894 if test -n "$ac_tool_prefix"; then
1895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1896 set dummy ${ac_tool_prefix}strip; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_STRIP+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$STRIP"; then
1903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 STRIP=$ac_cv_prog_STRIP
1922 if test -n "$STRIP"; then
1923 echo "$as_me:$LINENO: result: $STRIP" >&5
1924 echo "${ECHO_T}$STRIP" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1931 if test -z "$ac_cv_prog_STRIP"; then
1933 # Extract the first word of "strip", so it can be a program name with args.
1934 set dummy strip; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$ac_ct_STRIP"; then
1941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_ac_ct_STRIP="strip"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1961 if test -n "$ac_ct_STRIP"; then
1962 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1963 echo "${ECHO_T}$ac_ct_STRIP" >&6
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1971 STRIP="$ac_cv_prog_STRIP"
1975 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1977 # We need awk for the "check" target. The system "awk" is bad on
1979 # Always define AMTAR for backward compatibility.
1981 AMTAR=${AMTAR-"${am_missing_run}tar"}
1983 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1990 # This file is part of Autoconf. -*- Autoconf -*-
1992 # Copyright (C) 2004 Oren Ben-Kiki
1993 # This file is distributed under the same terms as the Autoconf macro files.
1995 # Generate automatic documentation using Doxygen. Works in concert with the
1996 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
1997 # following public macros:
1999 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
2000 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
2001 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
2002 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
2003 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
2004 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
2007 # By default, HTML, PDF and PS documentation is generated as this seems to be
2008 # the most popular and portable combination. MAN pages created by Doxygen are
2009 # usually problematic, though by picking an appropriate subset and doing some
2010 # massaging they might be better than nothing. CHM and RTF are specific for MS
2011 # (note that you can't generate both HTML and CHM at the same time). The XML is
2012 # rather useless unless you apply specialized post-processing to it.
2014 # The macro mainly controls the default state of the feature. The use can
2015 # override the default by specifying --enable or --disable. The macros ensure
2016 # that contradictory flags are not given (e.g., --enable-doxygen-html and
2017 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
2018 # Finally, each feature will be automatically disabled (with a warning) if the
2019 # required programs are missing.
2021 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
2022 # the following parameters: a one-word name for the project for use as a
2023 # filename base etc., an optional configuration file name (the default is
2024 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
2025 # name (the default is 'doxygen-doc').
2043 # Compatibility with older autoconf versions.
2046 ## --------------- ##
2047 ## Private macros. ##
2048 ## --------------- ##
2050 # DX_ENV_APPEND(VARIABLE, VALUE)
2051 # ------------------------------
2052 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2057 # Expand into a shell expression prints the directory part of a path.
2060 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2061 # -------------------------------------
2062 # Expands according to the M4 (static) status of the feature.
2065 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2066 # ----------------------------------
2067 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2070 # DX_TEST_FEATURE(FEATURE)
2071 # ------------------------
2072 # Expand to a shell expression testing whether the feature is active.
2075 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2076 # -------------------------------------------------
2077 # Verify that a required features has the right state before trying to turn on
2078 # the DX_CURRENT_FEATURE.
2081 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2082 # ----------------------------------------------------------
2083 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2086 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2087 # CHECK_DEPEND, CLEAR_DEPEND,
2088 # REQUIRE, DO-IF-ON, DO-IF-OFF)
2089 # --------------------------------------------
2090 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2091 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2092 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2093 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2094 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2095 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2098 ## -------------- ##
2099 ## Public macros. ##
2100 ## -------------- ##
2102 # DX_XXX_FEATURE(DEFAULT_STATE)
2103 # -----------------------------
2115 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2116 # ---------------------------------------------------------
2117 # PROJECT also serves as the base name for the documentation files.
2118 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2121 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2125 # ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2129 # This macro figures out how to build C programs using POSIX threads.
2130 # It sets the PTHREAD_LIBS output variable to the threads library and
2131 # linker flags, and the PTHREAD_CFLAGS output variable to any special
2132 # C compiler flags that are needed. (The user can also force certain
2133 # compiler flags/libs to be tested by setting these environment
2136 # Also sets PTHREAD_CC to any special C compiler that is needed for
2137 # multi-threaded programs (defaults to the value of CC otherwise).
2138 # (This is necessary on AIX to use the special cc_r compiler alias.)
2140 # NOTE: You are assumed to not only compile your program with these
2141 # flags, but also link it with them as well. e.g. you should link
2142 # with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2145 # If you are only building threads programs, you may wish to use
2146 # these variables in your default LIBS, CFLAGS, and CC:
2148 # LIBS="$PTHREAD_LIBS $LIBS"
2149 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2152 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2153 # constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2154 # that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2156 # ACTION-IF-FOUND is a list of shell commands to run if a threads
2157 # library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2158 # run it if it is not found. If ACTION-IF-FOUND is not specified, the
2159 # default action will define HAVE_PTHREAD.
2161 # Please let the authors know if this macro fails on any platform, or
2162 # if you have any other suggestions or comments. This macro was based
2163 # on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2164 # (with help from M. Frigo), as well as ac_pthread and hb_pthread
2165 # macros posted by Alejandro Forero Cuervo to the autoconf macro
2166 # repository. We are also grateful for the helpful feedback of
2175 # Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2177 # This program is free software; you can redistribute it and/or
2178 # modify it under the terms of the GNU General Public License as
2179 # published by the Free Software Foundation; either version 2 of the
2180 # License, or (at your option) any later version.
2182 # This program is distributed in the hope that it will be useful, but
2183 # WITHOUT ANY WARRANTY; without even the implied warranty of
2184 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2185 # General Public License for more details.
2187 # You should have received a copy of the GNU General Public License
2188 # along with this program; if not, write to the Free Software
2189 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2192 # As a special exception, the respective Autoconf Macro's copyright
2193 # owner gives unlimited permission to copy, distribute and modify the
2194 # configure scripts that are the output of Autoconf when processing
2195 # the Macro. You need not follow the terms of the GNU General Public
2196 # License when using or distributing such scripts, even though
2197 # portions of the text of the Macro appear in them. The GNU General
2198 # Public License (GPL) does govern all other use of the material that
2199 # constitutes the Autoconf Macro.
2201 # This special exception to the GPL applies to versions of the
2202 # Autoconf Macro released by the Autoconf Macro Archive. When you
2203 # make and distribute a modified version of the Autoconf Macro, you
2204 # may extend this special exception to the GPL to apply to your
2205 # modified version as well.
2221 DX_PROJECT=shibboleth
2223 DX_CONFIG=doxygen.cfg
2228 # Environment variables used inside doxygen.cfg:
2229 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2231 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2233 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2235 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2242 # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2243 if test "${enable_doxygen_doc+set}" = set; then
2244 enableval="$enable_doxygen_doc"
2246 case "$enableval" in
2258 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2259 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2260 { (exit 1); exit 1; }; }
2271 if test "$DX_FLAG_doc" = 1; then
2273 if test -n "$ac_tool_prefix"; then
2274 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2275 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2276 echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2278 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2305 if test -n "$DX_DOXYGEN"; then
2306 echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2307 echo "${ECHO_T}$DX_DOXYGEN" >&6
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2314 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2315 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2316 # Extract the first word of "doxygen", so it can be a program name with args.
2317 set dummy doxygen; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 case $ac_pt_DX_DOXYGEN in
2325 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2335 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2347 if test -n "$ac_pt_DX_DOXYGEN"; then
2348 echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2349 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2351 echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6
2355 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2357 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2360 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2361 { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2362 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2368 if test -n "$ac_tool_prefix"; then
2369 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2370 set dummy ${ac_tool_prefix}perl; ac_word=$2
2371 echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_path_DX_PERL+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2388 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 DX_PERL=$ac_cv_path_DX_PERL
2400 if test -n "$DX_PERL"; then
2401 echo "$as_me:$LINENO: result: $DX_PERL" >&5
2402 echo "${ECHO_T}$DX_PERL" >&6
2404 echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6
2409 if test -z "$ac_cv_path_DX_PERL"; then
2410 ac_pt_DX_PERL=$DX_PERL
2411 # Extract the first word of "perl", so it can be a program name with args.
2412 set dummy perl; ac_word=$2
2413 echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2415 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 case $ac_pt_DX_PERL in
2420 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2430 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2442 if test -n "$ac_pt_DX_PERL"; then
2443 echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2444 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2450 DX_PERL=$ac_pt_DX_PERL
2452 DX_PERL="$ac_cv_path_DX_PERL"
2455 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2456 { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2457 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2464 if test "$DX_FLAG_doc" = 1; then
2469 DX_COND_doc_FALSE='#'
2471 DX_COND_doc_TRUE='#'
2475 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2483 DX_COND_doc_FALSE='#'
2485 DX_COND_doc_TRUE='#'
2498 # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2499 if test "${enable_doxygen_dot+set}" = set; then
2500 enableval="$enable_doxygen_dot"
2502 case "$enableval" in
2508 test "$DX_FLAG_doc" = "1" \
2509 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2510 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2511 { (exit 1); exit 1; }; }
2519 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2520 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2521 { (exit 1); exit 1; }; }
2530 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2535 if test "$DX_FLAG_dot" = 1; then
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}dot; ac_word=$2
2540 echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542 if test "${ac_cv_path_DX_DOT+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 DX_DOT=$ac_cv_path_DX_DOT
2569 if test -n "$DX_DOT"; then
2570 echo "$as_me:$LINENO: result: $DX_DOT" >&5
2571 echo "${ECHO_T}$DX_DOT" >&6
2573 echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2578 if test -z "$ac_cv_path_DX_DOT"; then
2579 ac_pt_DX_DOT=$DX_DOT
2580 # Extract the first word of "dot", so it can be a program name with args.
2581 set dummy dot; ac_word=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 case $ac_pt_DX_DOT in
2589 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2611 if test -n "$ac_pt_DX_DOT"; then
2612 echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2613 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2615 echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6
2619 DX_DOT=$ac_pt_DX_DOT
2621 DX_DOT="$ac_cv_path_DX_DOT"
2624 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2625 { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2626 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2633 if test "$DX_FLAG_dot" = 1; then
2638 DX_COND_dot_FALSE='#'
2640 DX_COND_dot_TRUE='#'
2644 DX_ENV="$DX_ENV HAVE_DOT='YES'"
2646 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2654 DX_COND_dot_FALSE='#'
2656 DX_COND_dot_TRUE='#'
2660 DX_ENV="$DX_ENV HAVE_DOT='NO'"
2666 # Man pages generation:
2670 # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2671 if test "${enable_doxygen_man+set}" = set; then
2672 enableval="$enable_doxygen_man"
2674 case "$enableval" in
2680 test "$DX_FLAG_doc" = "1" \
2681 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2682 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2683 { (exit 1); exit 1; }; }
2691 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2692 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2693 { (exit 1); exit 1; }; }
2702 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2707 if test "$DX_FLAG_man" = 1; then
2711 if test "$DX_FLAG_man" = 1; then
2716 DX_COND_man_FALSE='#'
2718 DX_COND_man_TRUE='#'
2722 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2730 DX_COND_man_FALSE='#'
2732 DX_COND_man_TRUE='#'
2736 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2742 # RTF file generation:
2746 # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2747 if test "${enable_doxygen_rtf+set}" = set; then
2748 enableval="$enable_doxygen_rtf"
2750 case "$enableval" in
2756 test "$DX_FLAG_doc" = "1" \
2757 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2758 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2759 { (exit 1); exit 1; }; }
2767 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2768 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2769 { (exit 1); exit 1; }; }
2778 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2783 if test "$DX_FLAG_rtf" = 1; then
2787 if test "$DX_FLAG_rtf" = 1; then
2792 DX_COND_rtf_FALSE='#'
2794 DX_COND_rtf_TRUE='#'
2798 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2806 DX_COND_rtf_FALSE='#'
2808 DX_COND_rtf_TRUE='#'
2812 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2818 # XML file generation:
2822 # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2823 if test "${enable_doxygen_xml+set}" = set; then
2824 enableval="$enable_doxygen_xml"
2826 case "$enableval" in
2832 test "$DX_FLAG_doc" = "1" \
2833 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2834 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2835 { (exit 1); exit 1; }; }
2843 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2844 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2845 { (exit 1); exit 1; }; }
2854 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2859 if test "$DX_FLAG_xml" = 1; then
2863 if test "$DX_FLAG_xml" = 1; then
2868 DX_COND_xml_FALSE='#'
2870 DX_COND_xml_TRUE='#'
2874 DX_ENV="$DX_ENV GENERATE_XML='YES'"
2882 DX_COND_xml_FALSE='#'
2884 DX_COND_xml_TRUE='#'
2888 DX_ENV="$DX_ENV GENERATE_XML='NO'"
2894 # (Compressed) HTML help generation:
2898 # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2899 if test "${enable_doxygen_chm+set}" = set; then
2900 enableval="$enable_doxygen_chm"
2902 case "$enableval" in
2908 test "$DX_FLAG_doc" = "1" \
2909 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2910 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2911 { (exit 1); exit 1; }; }
2919 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2920 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2921 { (exit 1); exit 1; }; }
2930 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2935 if test "$DX_FLAG_chm" = 1; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2940 echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942 if test "${ac_cv_path_DX_HHC+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 DX_HHC=$ac_cv_path_DX_HHC
2969 if test -n "$DX_HHC"; then
2970 echo "$as_me:$LINENO: result: $DX_HHC" >&5
2971 echo "${ECHO_T}$DX_HHC" >&6
2973 echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2978 if test -z "$ac_cv_path_DX_HHC"; then
2979 ac_pt_DX_HHC=$DX_HHC
2980 # Extract the first word of "hhc", so it can be a program name with args.
2981 set dummy hhc; ac_word=$2
2982 echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 case $ac_pt_DX_HHC in
2989 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
3011 if test -n "$ac_pt_DX_HHC"; then
3012 echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
3013 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3019 DX_HHC=$ac_pt_DX_HHC
3021 DX_HHC="$ac_cv_path_DX_HHC"
3024 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3025 { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3026 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3033 if test "$DX_FLAG_chm" = 1; then
3038 DX_COND_chm_FALSE='#'
3040 DX_COND_chm_TRUE='#'
3044 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3046 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3048 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3056 DX_COND_chm_FALSE='#'
3058 DX_COND_chm_TRUE='#'
3062 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3068 # Seperate CHI file generation.
3072 # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3073 if test "${enable_doxygen_chi+set}" = set; then
3074 enableval="$enable_doxygen_chi"
3076 case "$enableval" in
3082 test "$DX_FLAG_chm" = "1" \
3083 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3084 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3085 { (exit 1); exit 1; }; }
3093 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3094 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3095 { (exit 1); exit 1; }; }
3104 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3109 if test "$DX_FLAG_chi" = 1; then
3113 if test "$DX_FLAG_chi" = 1; then
3118 DX_COND_chi_FALSE='#'
3120 DX_COND_chi_TRUE='#'
3124 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3132 DX_COND_chi_FALSE='#'
3134 DX_COND_chi_TRUE='#'
3138 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3144 # Plain HTML pages generation:
3148 # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3149 if test "${enable_doxygen_html+set}" = set; then
3150 enableval="$enable_doxygen_html"
3152 case "$enableval" in
3158 test "$DX_FLAG_doc" = "1" \
3159 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3160 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3161 { (exit 1); exit 1; }; }
3163 test "$DX_FLAG_chm" = "0" \
3164 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3165 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3166 { (exit 1); exit 1; }; }
3174 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3175 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3176 { (exit 1); exit 1; }; }
3185 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3188 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3193 if test "$DX_FLAG_html" = 1; then
3197 if test "$DX_FLAG_html" = 1; then
3202 DX_COND_html_FALSE='#'
3204 DX_COND_html_TRUE='#'
3208 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3216 DX_COND_html_FALSE='#'
3218 DX_COND_html_TRUE='#'
3222 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3228 # PostScript file generation:
3232 # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3233 if test "${enable_doxygen_ps+set}" = set; then
3234 enableval="$enable_doxygen_ps"
3236 case "$enableval" in
3242 test "$DX_FLAG_doc" = "1" \
3243 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3244 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3245 { (exit 1); exit 1; }; }
3253 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3254 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3255 { (exit 1); exit 1; }; }
3264 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3269 if test "$DX_FLAG_ps" = 1; then
3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}latex; ac_word=$2
3274 echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 DX_LATEX=$ac_cv_path_DX_LATEX
3303 if test -n "$DX_LATEX"; then
3304 echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3305 echo "${ECHO_T}$DX_LATEX" >&6
3307 echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3312 if test -z "$ac_cv_path_DX_LATEX"; then
3313 ac_pt_DX_LATEX=$DX_LATEX
3314 # Extract the first word of "latex", so it can be a program name with args.
3315 set dummy latex; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 case $ac_pt_DX_LATEX in
3323 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3345 if test -n "$ac_pt_DX_LATEX"; then
3346 echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3347 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3349 echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6
3353 DX_LATEX=$ac_pt_DX_LATEX
3355 DX_LATEX="$ac_cv_path_DX_LATEX"
3358 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3359 { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3360 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3369 echo "$as_me:$LINENO: checking for $ac_word" >&5
3370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3371 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 case $DX_MAKEINDEX in
3376 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3398 if test -n "$DX_MAKEINDEX"; then
3399 echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3400 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3402 echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3407 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3408 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3409 # Extract the first word of "makeindex", so it can be a program name with args.
3410 set dummy makeindex; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 case $ac_pt_DX_MAKEINDEX in
3418 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3440 if test -n "$ac_pt_DX_MAKEINDEX"; then
3441 echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3442 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3444 echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3448 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3450 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3453 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3454 { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3455 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3481 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 DX_DVIPS=$ac_cv_path_DX_DVIPS
3493 if test -n "$DX_DVIPS"; then
3494 echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3495 echo "${ECHO_T}$DX_DVIPS" >&6
3497 echo "$as_me:$LINENO: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3502 if test -z "$ac_cv_path_DX_DVIPS"; then
3503 ac_pt_DX_DVIPS=$DX_DVIPS
3504 # Extract the first word of "dvips", so it can be a program name with args.
3505 set dummy dvips; ac_word=$2
3506 echo "$as_me:$LINENO: checking for $ac_word" >&5
3507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3508 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 case $ac_pt_DX_DVIPS in
3513 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3535 if test -n "$ac_pt_DX_DVIPS"; then
3536 echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3537 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3543 DX_DVIPS=$ac_pt_DX_DVIPS
3545 DX_DVIPS="$ac_cv_path_DX_DVIPS"
3548 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3549 { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3550 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3556 if test -n "$ac_tool_prefix"; then
3557 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3558 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3559 echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 DX_EGREP=$ac_cv_path_DX_EGREP
3588 if test -n "$DX_EGREP"; then
3589 echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3590 echo "${ECHO_T}$DX_EGREP" >&6
3592 echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6
3597 if test -z "$ac_cv_path_DX_EGREP"; then
3598 ac_pt_DX_EGREP=$DX_EGREP
3599 # Extract the first word of "egrep", so it can be a program name with args.
3600 set dummy egrep; ac_word=$2
3601 echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3603 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 case $ac_pt_DX_EGREP in
3608 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3630 if test -n "$ac_pt_DX_EGREP"; then
3631 echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3632 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3634 echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3638 DX_EGREP=$ac_pt_DX_EGREP
3640 DX_EGREP="$ac_cv_path_DX_EGREP"
3643 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3644 { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3645 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3652 if test "$DX_FLAG_ps" = 1; then
3657 DX_COND_ps_FALSE='#'
3670 DX_COND_ps_FALSE='#'
3681 # PDF file generation:
3685 # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3686 if test "${enable_doxygen_pdf+set}" = set; then
3687 enableval="$enable_doxygen_pdf"
3689 case "$enableval" in
3695 test "$DX_FLAG_doc" = "1" \
3696 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3697 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3698 { (exit 1); exit 1; }; }
3706 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3707 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3708 { (exit 1); exit 1; }; }
3717 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3722 if test "$DX_FLAG_pdf" = 1; then
3724 if test -n "$ac_tool_prefix"; then
3725 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3726 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3727 echo "$as_me:$LINENO: checking for $ac_word" >&5
3728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3729 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 case $DX_PDFLATEX in
3734 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3756 if test -n "$DX_PDFLATEX"; then
3757 echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3758 echo "${ECHO_T}$DX_PDFLATEX" >&6
3760 echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6
3765 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3766 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3767 # Extract the first word of "pdflatex", so it can be a program name with args.
3768 set dummy pdflatex; ac_word=$2
3769 echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 case $ac_pt_DX_PDFLATEX in
3776 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3798 if test -n "$ac_pt_DX_PDFLATEX"; then
3799 echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3800 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3802 echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6
3806 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3808 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3811 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3812 { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3813 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3819 if test -n "$ac_tool_prefix"; then
3820 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3821 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 case $DX_MAKEINDEX in
3829 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3851 if test -n "$DX_MAKEINDEX"; then
3852 echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3853 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3860 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3861 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3862 # Extract the first word of "makeindex", so it can be a program name with args.
3863 set dummy makeindex; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 case $ac_pt_DX_MAKEINDEX in
3871 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3893 if test -n "$ac_pt_DX_MAKEINDEX"; then
3894 echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3895 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3897 echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3901 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3903 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3906 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3907 { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3908 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3914 if test -n "$ac_tool_prefix"; then
3915 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3916 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 DX_EGREP=$ac_cv_path_DX_EGREP
3946 if test -n "$DX_EGREP"; then
3947 echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3948 echo "${ECHO_T}$DX_EGREP" >&6
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3955 if test -z "$ac_cv_path_DX_EGREP"; then
3956 ac_pt_DX_EGREP=$DX_EGREP
3957 # Extract the first word of "egrep", so it can be a program name with args.
3958 set dummy egrep; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 case $ac_pt_DX_EGREP in
3966 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3988 if test -n "$ac_pt_DX_EGREP"; then
3989 echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3990 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 DX_EGREP=$ac_pt_DX_EGREP
3998 DX_EGREP="$ac_cv_path_DX_EGREP"
4001 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
4002 { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
4003 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
4010 if test "$DX_FLAG_pdf" = 1; then
4015 DX_COND_pdf_FALSE='#'
4017 DX_COND_pdf_TRUE='#'
4028 DX_COND_pdf_FALSE='#'
4030 DX_COND_pdf_TRUE='#'
4039 # LaTeX generation for PS and/or PDF:
4040 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4045 DX_COND_latex_FALSE='#'
4047 DX_COND_latex_TRUE='#'
4048 DX_COND_latex_FALSE=
4051 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4058 DX_COND_latex_FALSE='#'
4060 DX_COND_latex_TRUE='#'
4061 DX_COND_latex_FALSE=
4064 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4068 # Paper size for PS and/or PDF:
4070 case "$DOXYGEN_PAPER_SIZE" in
4073 DOXYGEN_PAPER_SIZE=""
4076 a4wide|a4|letter|legal|executive)
4077 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4081 { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4082 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4083 { (exit 1); exit 1; }; }
4088 #echo DX_FLAG_doc=$DX_FLAG_doc
4089 #echo DX_FLAG_dot=$DX_FLAG_dot
4090 #echo DX_FLAG_man=$DX_FLAG_man
4091 #echo DX_FLAG_html=$DX_FLAG_html
4092 #echo DX_FLAG_chm=$DX_FLAG_chm
4093 #echo DX_FLAG_chi=$DX_FLAG_chi
4094 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4095 #echo DX_FLAG_xml=$DX_FLAG_xml
4096 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4097 #echo DX_FLAG_ps=$DX_FLAG_ps
4098 #echo DX_ENV=$DX_ENV
4102 # Check whether --enable-debug or --disable-debug was given.
4103 if test "${enable_debug+set}" = set; then
4104 enableval="$enable_debug"
4105 enable_debug=$enableval
4110 if test "$enable_debug" = "yes" ; then
4111 GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
4112 GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
4114 GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
4115 GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123 if test -n "$ac_tool_prefix"; then
4124 for ac_prog in gcc gcc3 cc
4126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4128 echo "$as_me:$LINENO: checking for $ac_word" >&5
4129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4130 if test "${ac_cv_prog_CC+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 if test -n "$CC"; then
4134 ac_cv_prog_CC="$CC" # Let the user override the test.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 if test -n "$CC"; then
4154 echo "$as_me:$LINENO: result: $CC" >&5
4155 echo "${ECHO_T}$CC" >&6
4157 echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4161 test -n "$CC" && break
4164 if test -z "$CC"; then
4166 for ac_prog in gcc gcc3 cc
4168 # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 echo "$as_me:$LINENO: checking for $ac_word" >&5
4171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 if test -n "$ac_ct_CC"; then
4176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_ac_ct_CC="$ac_prog"
4186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195 if test -n "$ac_ct_CC"; then
4196 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4197 echo "${ECHO_T}$ac_ct_CC" >&6
4199 echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6
4203 test -n "$ac_ct_CC" && break
4210 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4211 See \`config.log' for more details." >&5
4212 echo "$as_me: error: no acceptable C compiler found in \$PATH
4213 See \`config.log' for more details." >&2;}
4214 { (exit 1); exit 1; }; }
4216 # Provide some information about the compiler.
4217 echo "$as_me:$LINENO:" \
4218 "checking for C compiler version" >&5
4219 ac_compiler=`set X $ac_compile; echo $2`
4220 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4221 (eval $ac_compiler --version </dev/null >&5) 2>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }
4225 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4226 (eval $ac_compiler -v </dev/null >&5) 2>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }
4230 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4231 (eval $ac_compiler -V </dev/null >&5) 2>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4251 ac_clean_files_save=$ac_clean_files
4252 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4253 # Try to create an executable without -o first, disregard a.out.
4254 # It will help us diagnose broken compilers, and finding out an intuition
4256 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4257 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4258 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4259 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4260 (eval $ac_link_default) 2>&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; then
4264 # Find the output, starting from the most likely. This scheme is
4265 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4268 # Be careful to initialize this variable, since it used to be cached.
4269 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4271 # b.out is created by i960 compilers.
4272 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4274 test -f "$ac_file" || continue
4276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4279 # This is the source file.
4282 # We found the default executable, but exeext='' is most
4286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4287 # FIXME: I believe we export ac_cv_exeext for Libtool,
4288 # but it would be cool to find out if it's true. Does anybody
4289 # maintain Libtool? --akim.
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4301 See \`config.log' for more details." >&5
4302 echo "$as_me: error: C compiler cannot create executables
4303 See \`config.log' for more details." >&2;}
4304 { (exit 77); exit 77; }; }
4307 ac_exeext=$ac_cv_exeext
4308 echo "$as_me:$LINENO: result: $ac_file" >&5
4309 echo "${ECHO_T}$ac_file" >&6
4311 # Check the compiler produces executables we can run. If not, either
4312 # the compiler is broken, or we cross compile.
4313 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4314 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4315 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4316 # If not cross compiling, check that we can run a simple program.
4317 if test "$cross_compiling" != yes; then
4318 if { ac_try='./$ac_file'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4326 if test "$cross_compiling" = maybe; then
4329 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4330 If you meant to cross compile, use \`--host'.
4331 See \`config.log' for more details." >&5
4332 echo "$as_me: error: cannot run C compiled programs.
4333 If you meant to cross compile, use \`--host'.
4334 See \`config.log' for more details." >&2;}
4335 { (exit 1); exit 1; }; }
4339 echo "$as_me:$LINENO: result: yes" >&5
4340 echo "${ECHO_T}yes" >&6
4342 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4343 ac_clean_files=$ac_clean_files_save
4344 # Check the compiler produces executables we can run. If not, either
4345 # the compiler is broken, or we cross compile.
4346 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4347 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4348 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4349 echo "${ECHO_T}$cross_compiling" >&6
4351 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4352 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 (eval $ac_link) 2>&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; then
4358 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4359 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4360 # work properly (i.e., refer to `conftest.exe'), while it won't with
4362 for ac_file in conftest.exe conftest conftest.*; do
4363 test -f "$ac_file" || continue
4365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4366 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4373 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4374 See \`config.log' for more details." >&5
4375 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4376 See \`config.log' for more details." >&2;}
4377 { (exit 1); exit 1; }; }
4380 rm -f conftest$ac_cv_exeext
4381 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4382 echo "${ECHO_T}$ac_cv_exeext" >&6
4384 rm -f conftest.$ac_ext
4385 EXEEXT=$ac_cv_exeext
4387 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4388 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4389 if test "${ac_cv_objext+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4407 rm -f conftest.o conftest.obj
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; then
4413 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4416 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4425 See \`config.log' for more details." >&5
4426 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4427 See \`config.log' for more details." >&2;}
4428 { (exit 1); exit 1; }; }
4431 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4434 echo "${ECHO_T}$ac_cv_objext" >&6
4435 OBJEXT=$ac_cv_objext
4437 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4438 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4439 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>conftest.er1
4464 grep -v '^ *+' conftest.er1 >conftest.err
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -z "$ac_c_werror_flag"
4470 || test ! -s conftest.err'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; } &&
4476 { ac_try='test -s conftest.$ac_objext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4493 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4494 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4495 GCC=`test $ac_compiler_gnu = yes && echo yes`
4496 ac_test_CFLAGS=${CFLAGS+set}
4497 ac_save_CFLAGS=$CFLAGS
4499 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4500 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4501 if test "${ac_cv_prog_cc_g+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 cat >conftest.$ac_ext <<_ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4523 grep -v '^ *+' conftest.er1 >conftest.err
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4551 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4552 if test "$ac_test_CFLAGS" = set; then
4553 CFLAGS=$ac_save_CFLAGS
4554 elif test $ac_cv_prog_cc_g = yes; then
4555 if test "$GCC" = yes; then
4561 if test "$GCC" = yes; then
4567 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4568 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4569 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 ac_cv_prog_cc_stdc=no
4574 cat >conftest.$ac_ext <<_ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4582 #include <sys/types.h>
4583 #include <sys/stat.h>
4584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4585 struct buf { int x; };
4586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4587 static char *e (p, i)
4593 static char *f (char * (*g) (char **, int), char **p, ...)
4598 s = g (p, va_arg (v,int));
4603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4604 function prototypes and stuff, but not '\xHH' hex character constants.
4605 These don't provoke an error unfortunately, instead are silently treated
4606 as 'x'. The following induces an error, until -std1 is added to get
4607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4608 array size at least. It's necessary to write '\x00'==0 to get something
4609 that's true only with -std1. */
4610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4612 int test (int i, double x);
4613 struct s1 {int (*f) (int a);};
4614 struct s2 {int (*f) (double a);};
4615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4621 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4626 # Don't try gcc -ansi; that turns off useful extensions and
4627 # breaks some systems' header files.
4628 # AIX -qlanglvl=ansi
4629 # Ultrix and OSF/1 -std1
4630 # HP-UX 10.20 and later -Ae
4631 # HP-UX older versions -Aa -D_HPUX_SOURCE
4632 # SVR4 -Xc -D__EXTENSIONS__
4633 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4635 CC="$ac_save_CC $ac_arg"
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1 >conftest.err
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_c_werror_flag"
4646 || test ! -s conftest.err'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try='test -s conftest.$ac_objext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_cv_prog_cc_stdc=$ac_arg
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4665 rm -f conftest.err conftest.$ac_objext
4667 rm -f conftest.$ac_ext conftest.$ac_objext
4672 case "x$ac_cv_prog_cc_stdc" in
4674 echo "$as_me:$LINENO: result: none needed" >&5
4675 echo "${ECHO_T}none needed" >&6 ;;
4677 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4678 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4679 CC="$CC $ac_cv_prog_cc_stdc" ;;
4682 # Some people use a C++ compiler to compile C. Since we use `exit',
4683 # in C++ we need to declare it. In case someone uses the same compiler
4684 # for both compiling C and C++ we need to have the C++ compiler decide
4685 # the declaration of exit, since it's the most demanding environment.
4686 cat >conftest.$ac_ext <<_ACEOF
4691 rm -f conftest.$ac_objext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693 (eval $ac_compile) 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -z "$ac_c_werror_flag"
4701 || test ! -s conftest.err'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; } &&
4707 { ac_try='test -s conftest.$ac_objext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 for ac_declaration in \
4715 'extern "C" void std::exit (int) throw (); using std::exit;' \
4716 'extern "C" void std::exit (int); using std::exit;' \
4717 'extern "C" void exit (int) throw ();' \
4718 'extern "C" void exit (int);' \
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag"
4747 || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 cat >conftest.$ac_ext <<_ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>conftest.er1
4786 grep -v '^ *+' conftest.er1 >conftest.err
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_c_werror_flag"
4792 || test ! -s conftest.err'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; } &&
4798 { ac_try='test -s conftest.$ac_objext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813 if test -n "$ac_declaration"; then
4814 echo '#ifdef __cplusplus' >>confdefs.h
4815 echo $ac_declaration >>confdefs.h
4816 echo '#endif' >>confdefs.h
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826 ac_cpp='$CPP $CPPFLAGS'
4827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 DEPDIR="${am__leading_dot}deps"
4832 ac_config_commands="$ac_config_commands depfiles"
4835 am_make=${MAKE-make}
4836 cat > confinc << 'END'
4841 # If we don't find an include directive, just comment out the code.
4842 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4843 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4847 # First try GNU make style include.
4848 echo "include confinc" > confmf
4849 # We grep out `Entering directory' and `Leaving directory'
4850 # messages which can occur if `w' ends up in MAKEFLAGS.
4851 # In particular we don't look at `^make:' because GNU make might
4852 # be invoked under some other name (usually "gmake"), in which
4853 # case it prints its new name instead of `make'.
4854 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4859 # Now try BSD make style include.
4860 if test "$am__include" = "#"; then
4861 echo '.include "confinc"' > confmf
4862 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4863 am__include=.include
4870 echo "$as_me:$LINENO: result: $_am_result" >&5
4871 echo "${ECHO_T}$_am_result" >&6
4872 rm -f confinc confmf
4874 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4875 if test "${enable_dependency_tracking+set}" = set; then
4876 enableval="$enable_dependency_tracking"
4879 if test "x$enable_dependency_tracking" != xno; then
4880 am_depcomp="$ac_aux_dir/depcomp"
4885 if test "x$enable_dependency_tracking" != xno; then
4896 depcc="$CC" am_compiler_list=
4898 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4899 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4900 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4904 # We make a subdir and do the tests there. Otherwise we can end up
4905 # making bogus files that we don't know about and never remove. For
4906 # instance it was reported that on HP-UX the gcc test will end up
4907 # making a dummy file named `D' -- because `-MD' means `put the output
4910 # Copy depcomp to subdir because otherwise we won't find it if we're
4911 # using a relative directory.
4912 cp "$am_depcomp" conftest.dir
4914 # We will build objects and dependencies in a subdirectory because
4915 # it helps to detect inapplicable dependency modes. For instance
4916 # both Tru64's cc and ICC support -MD to output dependencies as a
4917 # side effect of compilation, but ICC will put the dependencies in
4918 # the current directory while Tru64 will put them in the object
4922 am_cv_CC_dependencies_compiler_type=none
4923 if test "$am_compiler_list" = ""; then
4924 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4926 for depmode in $am_compiler_list; do
4927 # Setup a source with many dependencies, because some compilers
4928 # like to wrap large dependency lists on column 80 (with \), and
4929 # we should not choose a depcomp mode which is confused by this.
4931 # We need to recreate these files for each test, as the compiler may
4932 # overwrite some of them when testing with obscure command lines.
4933 # This happens at least with the AIX C compiler.
4935 for i in 1 2 3 4 5 6; do
4936 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4937 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4938 # Solaris 8's {/usr,}/bin/sh.
4939 touch sub/conftst$i.h
4941 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4945 # after this tag, mechanisms are not by side-effect, so they'll
4946 # only be used when explicitly requested
4947 if test "x$enable_dependency_tracking" = xyes; then
4955 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4956 # mode. It turns out that the SunPro C++ compiler does not properly
4957 # handle `-M -o', and we need to detect this.
4958 if depmode=$depmode \
4959 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4960 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4961 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4962 >/dev/null 2>conftest.err &&
4963 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4964 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4965 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4966 # icc doesn't choke on unknown options, it will just issue warnings
4967 # or remarks (even with -Werror). So we grep stderr for any message
4968 # that says an option was ignored or not supported.
4969 # When given -MP, icc 7.0 and 7.1 complain thusly:
4970 # icc: Command line warning: ignoring option '-M'; no argument required
4971 # The diagnosis changed in icc 8.0:
4972 # icc: Command line remark: option '-MP' not supported
4973 if (grep 'ignoring option' conftest.err ||
4974 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4975 am_cv_CC_dependencies_compiler_type=$depmode
4984 am_cv_CC_dependencies_compiler_type=none
4988 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4989 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4990 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4995 test "x$enable_dependency_tracking" != xno \
4996 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4998 am__fastdepCC_FALSE='#'
5000 am__fastdepCC_TRUE='#'
5001 am__fastdepCC_FALSE=
5006 ac_cpp='$CXXCPP $CPPFLAGS'
5007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5010 if test -n "$ac_tool_prefix"; then
5011 for ac_prog in $CCC g++ g++3 c++ CC
5013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5015 echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017 if test "${ac_cv_prog_CXX+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 if test -n "$CXX"; then
5021 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 if test -n "$CXX"; then
5041 echo "$as_me:$LINENO: result: $CXX" >&5
5042 echo "${ECHO_T}$CXX" >&6
5044 echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5048 test -n "$CXX" && break
5051 if test -z "$CXX"; then
5053 for ac_prog in $CCC g++ g++3 c++ CC
5055 # Extract the first word of "$ac_prog", so it can be a program name with args.
5056 set dummy $ac_prog; ac_word=$2
5057 echo "$as_me:$LINENO: checking for $ac_word" >&5
5058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5059 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 if test -n "$ac_ct_CXX"; then
5063 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_ac_ct_CXX="$ac_prog"
5073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5082 if test -n "$ac_ct_CXX"; then
5083 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5084 echo "${ECHO_T}$ac_ct_CXX" >&6
5086 echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5090 test -n "$ac_ct_CXX" && break
5092 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5098 # Provide some information about the compiler.
5099 echo "$as_me:$LINENO:" \
5100 "checking for C++ compiler version" >&5
5101 ac_compiler=`set X $ac_compile; echo $2`
5102 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5103 (eval $ac_compiler --version </dev/null >&5) 2>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }
5107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5108 (eval $ac_compiler -v </dev/null >&5) 2>&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }
5112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5113 (eval $ac_compiler -V </dev/null >&5) 2>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }
5118 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5119 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5120 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5141 rm -f conftest.$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143 (eval $ac_compile) 2>conftest.er1
5145 grep -v '^ *+' conftest.er1 >conftest.err
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
5150 { ac_try='test -z "$ac_cxx_werror_flag"
5151 || test ! -s conftest.err'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; } &&
5157 { ac_try='test -s conftest.$ac_objext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5171 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5174 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5175 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5176 GXX=`test $ac_compiler_gnu = yes && echo yes`
5177 ac_test_CXXFLAGS=${CXXFLAGS+set}
5178 ac_save_CXXFLAGS=$CXXFLAGS
5180 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5181 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5182 if test "${ac_cv_prog_cxx_g+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 cat >conftest.$ac_ext <<_ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202 (eval $ac_compile) 2>conftest.er1
5204 grep -v '^ *+' conftest.er1 >conftest.err
5206 cat conftest.err >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try='test -z "$ac_cxx_werror_flag"
5210 || test ! -s conftest.err'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; } &&
5216 { ac_try='test -s conftest.$ac_objext'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 ac_cv_prog_cxx_g=yes
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5231 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5232 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5233 if test "$ac_test_CXXFLAGS" = set; then
5234 CXXFLAGS=$ac_save_CXXFLAGS
5235 elif test $ac_cv_prog_cxx_g = yes; then
5236 if test "$GXX" = yes; then
5242 if test "$GXX" = yes; then
5248 for ac_declaration in \
5250 'extern "C" void std::exit (int) throw (); using std::exit;' \
5251 'extern "C" void std::exit (int); using std::exit;' \
5252 'extern "C" void exit (int) throw ();' \
5253 'extern "C" void exit (int);' \
5256 cat >conftest.$ac_ext <<_ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5272 rm -f conftest.$ac_objext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274 (eval $ac_compile) 2>conftest.er1
5276 grep -v '^ *+' conftest.er1 >conftest.err
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -z "$ac_cxx_werror_flag"
5282 || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302 cat >conftest.$ac_ext <<_ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_cxx_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 if test -n "$ac_declaration"; then
5349 echo '#ifdef __cplusplus' >>confdefs.h
5350 echo $ac_declaration >>confdefs.h
5351 echo '#endif' >>confdefs.h
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360 depcc="$CXX" am_compiler_list=
5362 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5363 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5364 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5368 # We make a subdir and do the tests there. Otherwise we can end up
5369 # making bogus files that we don't know about and never remove. For
5370 # instance it was reported that on HP-UX the gcc test will end up
5371 # making a dummy file named `D' -- because `-MD' means `put the output
5374 # Copy depcomp to subdir because otherwise we won't find it if we're
5375 # using a relative directory.
5376 cp "$am_depcomp" conftest.dir
5378 # We will build objects and dependencies in a subdirectory because
5379 # it helps to detect inapplicable dependency modes. For instance
5380 # both Tru64's cc and ICC support -MD to output dependencies as a
5381 # side effect of compilation, but ICC will put the dependencies in
5382 # the current directory while Tru64 will put them in the object
5386 am_cv_CXX_dependencies_compiler_type=none
5387 if test "$am_compiler_list" = ""; then
5388 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5390 for depmode in $am_compiler_list; do
5391 # Setup a source with many dependencies, because some compilers
5392 # like to wrap large dependency lists on column 80 (with \), and
5393 # we should not choose a depcomp mode which is confused by this.
5395 # We need to recreate these files for each test, as the compiler may
5396 # overwrite some of them when testing with obscure command lines.
5397 # This happens at least with the AIX C compiler.
5399 for i in 1 2 3 4 5 6; do
5400 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5401 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5402 # Solaris 8's {/usr,}/bin/sh.
5403 touch sub/conftst$i.h
5405 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5409 # after this tag, mechanisms are not by side-effect, so they'll
5410 # only be used when explicitly requested
5411 if test "x$enable_dependency_tracking" = xyes; then
5419 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5420 # mode. It turns out that the SunPro C++ compiler does not properly
5421 # handle `-M -o', and we need to detect this.
5422 if depmode=$depmode \
5423 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5424 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5425 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5426 >/dev/null 2>conftest.err &&
5427 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5428 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5429 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5430 # icc doesn't choke on unknown options, it will just issue warnings
5431 # or remarks (even with -Werror). So we grep stderr for any message
5432 # that says an option was ignored or not supported.
5433 # When given -MP, icc 7.0 and 7.1 complain thusly:
5434 # icc: Command line warning: ignoring option '-M'; no argument required
5435 # The diagnosis changed in icc 8.0:
5436 # icc: Command line remark: option '-MP' not supported
5437 if (grep 'ignoring option' conftest.err ||
5438 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5439 am_cv_CXX_dependencies_compiler_type=$depmode
5448 am_cv_CXX_dependencies_compiler_type=none
5452 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5453 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5454 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5459 test "x$enable_dependency_tracking" != xno \
5460 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5461 am__fastdepCXX_TRUE=
5462 am__fastdepCXX_FALSE='#'
5464 am__fastdepCXX_TRUE='#'
5465 am__fastdepCXX_FALSE=
5469 # Make sure we can run config.sub.
5470 $ac_config_sub sun4 >/dev/null 2>&1 ||
5471 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5472 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5473 { (exit 1); exit 1; }; }
5475 echo "$as_me:$LINENO: checking build system type" >&5
5476 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5477 if test "${ac_cv_build+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 ac_cv_build_alias=$build_alias
5481 test -z "$ac_cv_build_alias" &&
5482 ac_cv_build_alias=`$ac_config_guess`
5483 test -z "$ac_cv_build_alias" &&
5484 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5485 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5486 { (exit 1); exit 1; }; }
5487 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5489 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5490 { (exit 1); exit 1; }; }
5493 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5494 echo "${ECHO_T}$ac_cv_build" >&6
5496 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5497 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5498 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5501 echo "$as_me:$LINENO: checking host system type" >&5
5502 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5503 if test "${ac_cv_host+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 ac_cv_host_alias=$host_alias
5507 test -z "$ac_cv_host_alias" &&
5508 ac_cv_host_alias=$ac_cv_build_alias
5509 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5510 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5511 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5512 { (exit 1); exit 1; }; }
5515 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5516 echo "${ECHO_T}$ac_cv_host" >&6
5518 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5519 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5520 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5524 if test "$GCC" = "yes" ; then
5525 # AC_HAVE_GCC_VERSION(4,0,0,0,
5527 # AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
5528 # [Define to enable class visibility control in gcc.])
5529 # GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5530 # GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5532 CFLAGS="-Wall $GCC_CFLAGS"
5533 CXXFLAGS="-Wall $GCC_CXXFLAGS"
5535 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
5536 case "${host_cpu}-${host_os}" in
5538 if test "$CXX" = "CC" ; then
5539 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
5543 CXXFLAGS="$CXXFLAGS -D_POSIX_PII_SOCKET"
5548 # Check whether --enable-static or --disable-static was given.
5549 if test "${enable_static+set}" = set; then
5550 enableval="$enable_static"
5551 p=${PACKAGE-default}
5553 yes) enable_static=yes ;;
5554 no) enable_static=no ;;
5557 # Look at the argument we got. We use all the common list separators.
5558 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5559 for pkg in $enableval; do
5561 if test "X$pkg" = "X$p"; then
5573 # Check whether --enable-shared or --disable-shared was given.
5574 if test "${enable_shared+set}" = set; then
5575 enableval="$enable_shared"
5576 p=${PACKAGE-default}
5578 yes) enable_shared=yes ;;
5579 no) enable_shared=no ;;
5582 # Look at the argument we got. We use all the common list separators.
5583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5584 for pkg in $enableval; do
5586 if test "X$pkg" = "X$p"; then
5597 # Check whether --enable-fast-install or --disable-fast-install was given.
5598 if test "${enable_fast_install+set}" = set; then
5599 enableval="$enable_fast_install"
5600 p=${PACKAGE-default}
5602 yes) enable_fast_install=yes ;;
5603 no) enable_fast_install=no ;;
5605 enable_fast_install=no
5606 # Look at the argument we got. We use all the common list separators.
5607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5608 for pkg in $enableval; do
5610 if test "X$pkg" = "X$p"; then
5611 enable_fast_install=yes
5618 enable_fast_install=yes
5621 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5622 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5623 if test "${lt_cv_path_SED+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 # Loop through the user's path and test for sed and gsed.
5627 # Then use that list of sed's as ones to test for truncation.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for lt_ac_prog in sed gsed; do
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5636 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5643 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5644 # along with /bin/sed that truncates output.
5645 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5646 test ! -f $lt_ac_sed && break
5647 cat /dev/null > conftest.in
5649 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5650 # Check for GNU sed and select it if it is found.
5651 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5652 lt_cv_path_SED=$lt_ac_sed
5656 cat conftest.in conftest.in >conftest.tmp
5657 mv conftest.tmp conftest.in
5658 cp conftest.in conftest.nl
5660 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5661 cmp -s conftest.out conftest.nl || break
5662 # 10000 chars as input seems more than enough
5663 test $lt_ac_count -gt 10 && break
5664 lt_ac_count=`expr $lt_ac_count + 1`
5665 if test $lt_ac_count -gt $lt_ac_max; then
5666 lt_ac_max=$lt_ac_count
5667 lt_cv_path_SED=$lt_ac_sed
5675 echo "$as_me:$LINENO: result: $SED" >&5
5676 echo "${ECHO_T}$SED" >&6
5678 echo "$as_me:$LINENO: checking for egrep" >&5
5679 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5680 if test "${ac_cv_prog_egrep+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5684 then ac_cv_prog_egrep='grep -E'
5685 else ac_cv_prog_egrep='egrep'
5688 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5689 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5690 EGREP=$ac_cv_prog_egrep
5694 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5695 if test "${with_gnu_ld+set}" = set; then
5696 withval="$with_gnu_ld"
5697 test "$withval" = no || with_gnu_ld=yes
5702 if test "$GCC" = yes; then
5703 # Check if gcc -print-prog-name=ld gives a path.
5704 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5705 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5708 # gcc leaves a trailing carriage return which upsets mingw
5709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5714 # Accept absolute paths.
5716 re_direlt='/[^/][^/]*/\.\./'
5717 # Canonicalize the pathname of ld
5718 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5720 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5722 test -z "$LD" && LD="$ac_prog"
5725 # If it fails, then pretend we aren't using GCC.
5729 # If it is relative, then search for the first ld in PATH.
5733 elif test "$with_gnu_ld" = yes; then
5734 echo "$as_me:$LINENO: checking for GNU ld" >&5
5735 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5737 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5738 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5740 if test "${lt_cv_path_LD+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 if test -z "$LD"; then
5744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5745 for ac_dir in $PATH; do
5747 test -z "$ac_dir" && ac_dir=.
5748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5749 lt_cv_path_LD="$ac_dir/$ac_prog"
5750 # Check to see if the program is GNU ld. I'd rather use --version,
5751 # but apparently some GNU ld's only accept -v.
5752 # Break only if it was the GNU/non-GNU ld that we prefer.
5753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5754 *GNU* | *'with BFD'*)
5755 test "$with_gnu_ld" != no && break
5758 test "$with_gnu_ld" != yes && break
5765 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5770 if test -n "$LD"; then
5771 echo "$as_me:$LINENO: result: $LD" >&5
5772 echo "${ECHO_T}$LD" >&6
5774 echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5777 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5778 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5779 { (exit 1); exit 1; }; }
5780 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5781 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5782 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5786 case `$LD -v 2>&1 </dev/null` in
5787 *GNU* | *'with BFD'*)
5788 lt_cv_prog_gnu_ld=yes
5791 lt_cv_prog_gnu_ld=no
5795 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5796 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5797 with_gnu_ld=$lt_cv_prog_gnu_ld
5800 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5801 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5802 if test "${lt_cv_ld_reload_flag+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 lt_cv_ld_reload_flag='-r'
5807 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5808 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5809 reload_flag=$lt_cv_ld_reload_flag
5810 case $reload_flag in
5812 *) reload_flag=" $reload_flag" ;;
5814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5816 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5817 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5818 if test "${lt_cv_path_NM+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 if test -n "$NM"; then
5822 # Let the user override the test.
5825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5826 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5828 test -z "$ac_dir" && ac_dir=.
5829 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5830 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5831 # Check to see if the nm accepts a BSD-compat flag.
5832 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5833 # nm: unknown option "B" ignored
5834 # Tru64's nm complains that /dev/null is an invalid object file
5835 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5836 */dev/null* | *'Invalid file or object type'*)
5837 lt_cv_path_NM="$tmp_nm -B"
5841 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5843 lt_cv_path_NM="$tmp_nm -p"
5847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5848 continue # so that we can try to find one that supports BSD flags
5855 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5858 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5859 echo "${ECHO_T}$lt_cv_path_NM" >&6
5862 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5863 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5865 if test "$LN_S" = "ln -s"; then
5866 echo "$as_me:$LINENO: result: yes" >&5
5867 echo "${ECHO_T}yes" >&6
5869 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5870 echo "${ECHO_T}no, using $LN_S" >&6
5873 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5874 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5875 if test "${lt_cv_deplibs_check_method+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 lt_cv_file_magic_cmd='$MAGIC_CMD'
5879 lt_cv_file_magic_test_file=
5880 lt_cv_deplibs_check_method='unknown'
5881 # Need to set the preceding variable on all platforms that support
5882 # interlibrary dependencies.
5883 # 'none' -- dependencies not supported.
5884 # `unknown' -- same as none, but documents that we really don't know.
5885 # 'pass_all' -- all dependencies passed with no checks.
5886 # 'test_compile' -- check by making test program.
5887 # 'file_magic [[regex]]' -- check by looking for files in library path
5888 # which responds to the $file_magic_cmd with a given extended regex.
5889 # If you have `file' or equivalent on your system and you're not sure
5890 # whether `pass_all' will *always* work, you probably want this one.
5894 lt_cv_deplibs_check_method=pass_all
5898 lt_cv_deplibs_check_method=pass_all
5902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5903 lt_cv_file_magic_cmd='/usr/bin/file -L'
5904 lt_cv_file_magic_test_file=/shlib/libc.so
5908 # func_win32_libid is a shell function defined in ltmain.sh
5909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5910 lt_cv_file_magic_cmd='func_win32_libid'
5914 # Base MSYS/MinGW do not provide the 'file' command needed by
5915 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5916 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5917 lt_cv_file_magic_cmd='$OBJDUMP -f'
5920 darwin* | rhapsody*)
5921 lt_cv_deplibs_check_method=pass_all
5924 freebsd* | kfreebsd*-gnu)
5925 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5928 # Not sure whether the presence of OpenBSD here was a mistake.
5929 # Let's accept both of them until this is cleared up.
5930 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5931 lt_cv_file_magic_cmd=/usr/bin/file
5932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5936 lt_cv_deplibs_check_method=pass_all
5941 lt_cv_deplibs_check_method=pass_all
5944 hpux10.20* | hpux11*)
5945 lt_cv_file_magic_cmd=/usr/bin/file
5948 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5949 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5952 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]'
5953 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5956 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5957 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5962 irix5* | irix6* | nonstopux*)
5964 *-32|*"-32 ") libmagic=32-bit;;
5965 *-n32|*"-n32 ") libmagic=N32;;
5966 *-64|*"-64 ") libmagic=64-bit;;
5967 *) libmagic=never-match;;
5969 lt_cv_deplibs_check_method=pass_all
5972 # This must be Linux ELF.
5975 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
5976 lt_cv_deplibs_check_method=pass_all ;;
5978 # glibc up to 2.1.1 does not perform some relocations on ARM
5979 # this will be overridden with pass_all, but let us keep it just in case
5980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5982 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5983 lt_cv_deplibs_check_method=pass_all
5987 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5996 lt_cv_file_magic_cmd=/usr/bin/file
5997 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6001 lt_cv_deplibs_check_method=unknown
6005 lt_cv_file_magic_cmd=/usr/bin/file
6006 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6010 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6014 osf3* | osf4* | osf5*)
6015 lt_cv_deplibs_check_method=pass_all
6019 lt_cv_deplibs_check_method=pass_all
6023 lt_cv_deplibs_check_method=pass_all
6026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6027 case $host_vendor in
6029 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]'
6030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6033 lt_cv_deplibs_check_method=pass_all
6036 lt_cv_file_magic_cmd='/bin/file'
6037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6040 lt_cv_file_magic_cmd='/bin/file'
6041 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6042 lt_cv_file_magic_test_file=/lib/libc.so
6045 lt_cv_deplibs_check_method=pass_all
6050 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6051 lt_cv_deplibs_check_method=pass_all
6056 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6057 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6058 file_magic_cmd=$lt_cv_file_magic_cmd
6059 deplibs_check_method=$lt_cv_deplibs_check_method
6060 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6065 # If no C compiler was specified, use CC.
6068 # Allow CC to be a program name with arguments.
6072 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6073 if test "${enable_libtool_lock+set}" = set; then
6074 enableval="$enable_libtool_lock"
6077 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6079 # Some flags need to be propagated to the compiler or linker for good
6083 # Find out which ABI we are using.
6084 echo 'int i;' > conftest.$ac_ext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; then
6090 case `/usr/bin/file conftest.$ac_objext` in
6102 # Find out which ABI we are using.
6103 echo '#line 6103 "configure"' > conftest.$ac_ext
6104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6105 (eval $ac_compile) 2>&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; then
6109 if test "$lt_cv_prog_gnu_ld" = yes; then
6110 case `/usr/bin/file conftest.$ac_objext` in
6112 LD="${LD-ld} -melf32bsmip"
6115 LD="${LD-ld} -melf32bmipn32"
6118 LD="${LD-ld} -melf64bmip"
6122 case `/usr/bin/file conftest.$ac_objext` in
6138 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6139 # Find out which ABI we are using.
6140 echo 'int i;' > conftest.$ac_ext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142 (eval $ac_compile) 2>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; then
6146 case "`/usr/bin/file conftest.o`" in
6150 LD="${LD-ld} -m elf_i386"
6152 ppc64-*linux*|powerpc64-*linux*)
6153 LD="${LD-ld} -m elf32ppclinux"
6156 LD="${LD-ld} -m elf_s390"
6159 LD="${LD-ld} -m elf32_sparc"
6166 LD="${LD-ld} -m elf_x86_64"
6168 ppc*-*linux*|powerpc*-*linux*)
6169 LD="${LD-ld} -m elf64ppc"
6172 LD="${LD-ld} -m elf64_s390"
6175 LD="${LD-ld} -m elf64_sparc"
6185 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6186 SAVE_CFLAGS="$CFLAGS"
6187 CFLAGS="$CFLAGS -belf"
6188 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6189 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6190 if test "${lt_cv_cc_needs_belf+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 ac_cpp='$CPP $CPPFLAGS'
6195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199 cat >conftest.$ac_ext <<_ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216 (eval $ac_link) 2>conftest.er1
6218 grep -v '^ *+' conftest.er1 >conftest.err
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } &&
6223 { ac_try='test -z "$ac_c_werror_flag"
6224 || test ! -s conftest.err'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; } &&
6230 { ac_try='test -s conftest$ac_exeext'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 lt_cv_cc_needs_belf=yes
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6241 lt_cv_cc_needs_belf=no
6243 rm -f conftest.err conftest.$ac_objext \
6244 conftest$ac_exeext conftest.$ac_ext
6246 ac_cpp='$CPP $CPPFLAGS'
6247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6252 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6253 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6254 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6255 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6256 CFLAGS="$SAVE_CFLAGS"
6262 need_locks="$enable_libtool_lock"
6266 ac_cpp='$CPP $CPPFLAGS'
6267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6270 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6272 # On Suns, sometimes $CPP names a directory.
6273 if test -n "$CPP" && test -d "$CPP"; then
6276 if test -z "$CPP"; then
6277 if test "${ac_cv_prog_CPP+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 # Double quotes because CPP needs to be expanded
6281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6284 for ac_c_preproc_warn_flag in '' yes
6286 # Use a header file that comes with gcc, so configuring glibc
6287 # with a fresh cross-compiler works.
6288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6289 # <limits.h> exists even on freestanding compilers.
6290 # On the NeXT, cc -E runs the code through the compiler's parser,
6291 # not just through cpp. "Syntax error" is here to catch this case.
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6299 # include <limits.h>
6301 # include <assert.h>
6305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6308 grep -v '^ *+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } >/dev/null; then
6313 if test -s conftest.err; then
6314 ac_cpp_err=$ac_c_preproc_warn_flag
6315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6322 if test -z "$ac_cpp_err"; then
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 # Broken: fails on valid input.
6331 rm -f conftest.err conftest.$ac_ext
6333 # OK, works on sane cases. Now check whether non-existent headers
6334 # can be detected and how.
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <ac_nonexistent.h>
6343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1 >conftest.err
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } >/dev/null; then
6351 if test -s conftest.err; then
6352 ac_cpp_err=$ac_c_preproc_warn_flag
6353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6360 if test -z "$ac_cpp_err"; then
6361 # Broken: success on invalid input.
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 # Passes both tests.
6371 rm -f conftest.err conftest.$ac_ext
6374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6375 rm -f conftest.err conftest.$ac_ext
6376 if $ac_preproc_ok; then
6388 echo "$as_me:$LINENO: result: $CPP" >&5
6389 echo "${ECHO_T}$CPP" >&6
6391 for ac_c_preproc_warn_flag in '' yes
6393 # Use a header file that comes with gcc, so configuring glibc
6394 # with a fresh cross-compiler works.
6395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6396 # <limits.h> exists even on freestanding compilers.
6397 # On the NeXT, cc -E runs the code through the compiler's parser,
6398 # not just through cpp. "Syntax error" is here to catch this case.
6399 cat >conftest.$ac_ext <<_ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6406 # include <limits.h>
6408 # include <assert.h>
6412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } >/dev/null; then
6420 if test -s conftest.err; then
6421 ac_cpp_err=$ac_c_preproc_warn_flag
6422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6429 if test -z "$ac_cpp_err"; then
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 # Broken: fails on valid input.
6438 rm -f conftest.err conftest.$ac_ext
6440 # OK, works on sane cases. Now check whether non-existent headers
6441 # can be detected and how.
6442 cat >conftest.$ac_ext <<_ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6448 #include <ac_nonexistent.h>
6450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } >/dev/null; then
6458 if test -s conftest.err; then
6459 ac_cpp_err=$ac_c_preproc_warn_flag
6460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6467 if test -z "$ac_cpp_err"; then
6468 # Broken: success on invalid input.
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6474 # Passes both tests.
6478 rm -f conftest.err conftest.$ac_ext
6481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6482 rm -f conftest.err conftest.$ac_ext
6483 if $ac_preproc_ok; then
6486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6487 See \`config.log' for more details." >&5
6488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6489 See \`config.log' for more details." >&2;}
6490 { (exit 1); exit 1; }; }
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6500 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6501 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6502 if test "${ac_cv_header_stdc+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 cat >conftest.$ac_ext <<_ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>conftest.er1
6528 grep -v '^ *+' conftest.er1 >conftest.err
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try='test -z "$ac_c_werror_flag"
6534 || test ! -s conftest.err'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 ac_cv_header_stdc=yes
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 ac_cv_header_stdc=no
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6555 if test $ac_cv_header_stdc = yes; then
6556 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6557 cat >conftest.$ac_ext <<_ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6567 $EGREP "memchr" >/dev/null 2>&1; then
6570 ac_cv_header_stdc=no
6576 if test $ac_cv_header_stdc = yes; then
6577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6578 cat >conftest.$ac_ext <<_ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6588 $EGREP "free" >/dev/null 2>&1; then
6591 ac_cv_header_stdc=no
6597 if test $ac_cv_header_stdc = yes; then
6598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6599 if test "$cross_compiling" = yes; then
6602 cat >conftest.$ac_ext <<_ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6609 #if ((' ' & 0x0FF) == 0x020)
6610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6613 # define ISLOWER(c) \
6614 (('a' <= (c) && (c) <= 'i') \
6615 || ('j' <= (c) && (c) <= 'r') \
6616 || ('s' <= (c) && (c) <= 'z'))
6617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6625 for (i = 0; i < 256; i++)
6626 if (XOR (islower (i), ISLOWER (i))
6627 || toupper (i) != TOUPPER (i))
6632 rm -f conftest$ac_exeext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634 (eval $ac_link) 2>&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6645 echo "$as_me: program exited with status $ac_status" >&5
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6650 ac_cv_header_stdc=no
6652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6656 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6657 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6658 if test $ac_cv_header_stdc = yes; then
6660 cat >>confdefs.h <<\_ACEOF
6661 #define STDC_HEADERS 1
6666 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6676 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6677 inttypes.h stdint.h unistd.h
6679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6680 echo "$as_me:$LINENO: checking for $ac_header" >&5
6681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 $ac_includes_default
6693 #include <$ac_header>
6695 rm -f conftest.$ac_objext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697 (eval $ac_compile) 2>conftest.er1
6699 grep -v '^ *+' conftest.er1 >conftest.err
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -z "$ac_c_werror_flag"
6705 || test ! -s conftest.err'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; } &&
6711 { ac_try='test -s conftest.$ac_objext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 eval "$as_ac_Header=yes"
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6722 eval "$as_ac_Header=no"
6724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6729 cat >>confdefs.h <<_ACEOF
6730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6739 for ac_header in dlfcn.h
6741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6743 echo "$as_me:$LINENO: checking for $ac_header" >&5
6744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6751 # Is the header compilable?
6752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 $ac_includes_default
6761 #include <$ac_header>
6763 rm -f conftest.$ac_objext
6764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765 (eval $ac_compile) 2>conftest.er1
6767 grep -v '^ *+' conftest.er1 >conftest.err
6769 cat conftest.err >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try='test -z "$ac_c_werror_flag"
6773 || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_header_compiler=yes
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 ac_header_compiler=no
6792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6794 echo "${ECHO_T}$ac_header_compiler" >&6
6796 # Is the header present?
6797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 #include <$ac_header>
6807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6810 grep -v '^ *+' conftest.er1 >conftest.err
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } >/dev/null; then
6815 if test -s conftest.err; then
6816 ac_cpp_err=$ac_c_preproc_warn_flag
6817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6824 if test -z "$ac_cpp_err"; then
6825 ac_header_preproc=yes
6827 echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 ac_header_preproc=no
6832 rm -f conftest.err conftest.$ac_ext
6833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6834 echo "${ECHO_T}$ac_header_preproc" >&6
6836 # So? What about this header?
6837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6843 ac_header_preproc=yes
6846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6860 ## --------------------------------------------- ##
6861 ## Report this to shibboleth-users@internet2.edu ##
6862 ## --------------------------------------------- ##
6865 sed "s/^/$as_me: WARNING: /" >&2
6868 echo "$as_me:$LINENO: checking for $ac_header" >&5
6869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 eval "$as_ac_Header=\$ac_header_preproc"
6875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6880 cat >>confdefs.h <<_ACEOF
6881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6889 ac_cpp='$CXXCPP $CPPFLAGS'
6890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6893 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6894 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6895 if test -z "$CXXCPP"; then
6896 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 # Double quotes because CXXCPP needs to be expanded
6900 for CXXCPP in "$CXX -E" "/lib/cpp"
6903 for ac_cxx_preproc_warn_flag in '' yes
6905 # Use a header file that comes with gcc, so configuring glibc
6906 # with a fresh cross-compiler works.
6907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908 # <limits.h> exists even on freestanding compilers.
6909 # On the NeXT, cc -E runs the code through the compiler's parser,
6910 # not just through cpp. "Syntax error" is here to catch this case.
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6918 # include <limits.h>
6920 # include <assert.h>
6924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6927 grep -v '^ *+' conftest.er1 >conftest.err
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } >/dev/null; then
6932 if test -s conftest.err; then
6933 ac_cpp_err=$ac_cxx_preproc_warn_flag
6934 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6941 if test -z "$ac_cpp_err"; then
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6947 # Broken: fails on valid input.
6950 rm -f conftest.err conftest.$ac_ext
6952 # OK, works on sane cases. Now check whether non-existent headers
6953 # can be detected and how.
6954 cat >conftest.$ac_ext <<_ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <ac_nonexistent.h>
6962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6965 grep -v '^ *+' conftest.er1 >conftest.err
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } >/dev/null; then
6970 if test -s conftest.err; then
6971 ac_cpp_err=$ac_cxx_preproc_warn_flag
6972 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6979 if test -z "$ac_cpp_err"; then
6980 # Broken: success on invalid input.
6983 echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6986 # Passes both tests.
6990 rm -f conftest.err conftest.$ac_ext
6993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6994 rm -f conftest.err conftest.$ac_ext
6995 if $ac_preproc_ok; then
7000 ac_cv_prog_CXXCPP=$CXXCPP
7003 CXXCPP=$ac_cv_prog_CXXCPP
7005 ac_cv_prog_CXXCPP=$CXXCPP
7007 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7008 echo "${ECHO_T}$CXXCPP" >&6
7010 for ac_cxx_preproc_warn_flag in '' yes
7012 # Use a header file that comes with gcc, so configuring glibc
7013 # with a fresh cross-compiler works.
7014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7015 # <limits.h> exists even on freestanding compilers.
7016 # On the NeXT, cc -E runs the code through the compiler's parser,
7017 # not just through cpp. "Syntax error" is here to catch this case.
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7025 # include <limits.h>
7027 # include <assert.h>
7031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7034 grep -v '^ *+' conftest.er1 >conftest.err
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } >/dev/null; then
7039 if test -s conftest.err; then
7040 ac_cpp_err=$ac_cxx_preproc_warn_flag
7041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7048 if test -z "$ac_cpp_err"; then
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 # Broken: fails on valid input.
7057 rm -f conftest.err conftest.$ac_ext
7059 # OK, works on sane cases. Now check whether non-existent headers
7060 # can be detected and how.
7061 cat >conftest.$ac_ext <<_ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7067 #include <ac_nonexistent.h>
7069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7072 grep -v '^ *+' conftest.er1 >conftest.err
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } >/dev/null; then
7077 if test -s conftest.err; then
7078 ac_cpp_err=$ac_cxx_preproc_warn_flag
7079 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7086 if test -z "$ac_cpp_err"; then
7087 # Broken: success on invalid input.
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 # Passes both tests.
7097 rm -f conftest.err conftest.$ac_ext
7100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7101 rm -f conftest.err conftest.$ac_ext
7102 if $ac_preproc_ok; then
7105 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7106 See \`config.log' for more details." >&5
7107 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7108 See \`config.log' for more details." >&2;}
7109 { (exit 1); exit 1; }; }
7113 ac_cpp='$CXXCPP $CPPFLAGS'
7114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7120 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7121 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7123 if test -n "$ac_tool_prefix"; then
7124 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7128 echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7130 if test "${ac_cv_prog_F77+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 if test -n "$F77"; then
7134 ac_cv_prog_F77="$F77" # Let the user override the test.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 if test -n "$F77"; then
7154 echo "$as_me:$LINENO: result: $F77" >&5
7155 echo "${ECHO_T}$F77" >&6
7157 echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6
7161 test -n "$F77" && break
7164 if test -z "$F77"; then
7166 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7168 # Extract the first word of "$ac_prog", so it can be a program name with args.
7169 set dummy $ac_prog; ac_word=$2
7170 echo "$as_me:$LINENO: checking for $ac_word" >&5
7171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7172 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 if test -n "$ac_ct_F77"; then
7176 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_ac_ct_F77="$ac_prog"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7195 if test -n "$ac_ct_F77"; then
7196 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7197 echo "${ECHO_T}$ac_ct_F77" >&6
7199 echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6
7203 test -n "$ac_ct_F77" && break
7210 # Provide some information about the compiler.
7211 echo "$as_me:7211:" \
7212 "checking for Fortran 77 compiler version" >&5
7213 ac_compiler=`set X $ac_compile; echo $2`
7214 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7215 (eval $ac_compiler --version </dev/null >&5) 2>&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }
7219 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7220 (eval $ac_compiler -v </dev/null >&5) 2>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }
7224 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7225 (eval $ac_compiler -V </dev/null >&5) 2>&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }
7231 # If we don't use `.F' as extension, the preprocessor is not run on the
7232 # input file. (Note that this only needs to work for GNU compilers.)
7235 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7236 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7237 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 cat >conftest.$ac_ext <<_ACEOF
7248 rm -f conftest.$ac_objext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250 (eval $ac_compile) 2>conftest.er1
7252 grep -v '^ *+' conftest.er1 >conftest.err
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
7257 { ac_try='test -z "$ac_f77_werror_flag"
7258 || test ! -s conftest.err'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; } &&
7264 { ac_try='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7281 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7282 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7284 ac_test_FFLAGS=${FFLAGS+set}
7285 ac_save_FFLAGS=$FFLAGS
7287 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7288 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7289 if test "${ac_cv_prog_f77_g+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7300 (eval $ac_compile) 2>conftest.er1
7302 grep -v '^ *+' conftest.er1 >conftest.err
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -z "$ac_f77_werror_flag"
7308 || test ! -s conftest.err'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; } &&
7314 { ac_try='test -s conftest.$ac_objext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 ac_cv_prog_f77_g=yes
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7330 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7331 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7332 if test "$ac_test_FFLAGS" = set; then
7333 FFLAGS=$ac_save_FFLAGS
7334 elif test $ac_cv_prog_f77_g = yes; then
7335 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7341 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7348 G77=`test $ac_compiler_gnu = yes && echo yes`
7350 ac_cpp='$CPP $CPPFLAGS'
7351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7359 # find the maximum length of command line arguments
7360 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7361 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7362 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 # On DJGPP, this test can blow up pretty badly due to problems in libc
7371 # (any single argument exceeding 2000 bytes causes a buffer overrun
7372 # during glob expansion). Even if it were fixed, the result of this
7373 # check would be larger than it should be.
7374 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7378 # Under GNU Hurd, this test is not required because there is
7379 # no limit to the length of command line arguments.
7380 # Libtool will interpret -1 as no limit whatsoever
7381 lt_cv_sys_max_cmd_len=-1;
7385 # On Win9x/ME, this test blows up -- it succeeds, but takes
7386 # about 5 minutes as the teststring grows exponentially.
7387 # Worse, since 9x/ME are not pre-emptively multitasking,
7388 # you end up with a "frozen" computer, even though with patience
7389 # the test eventually succeeds (with a max line length of 256k).
7390 # Instead, let's just punt: use the minimum linelength reported by
7391 # all of the supported platforms: 8192 (on NT/2K/XP).
7392 lt_cv_sys_max_cmd_len=8192;
7396 # On AmigaOS with pdksh, this test takes hours, literally.
7397 # So we just punt and use a minimum line length of 8192.
7398 lt_cv_sys_max_cmd_len=8192;
7402 # If test is not a shell built-in, we'll probably end up computing a
7403 # maximum length that is only half of the actual maximum length, but
7405 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7406 = "XX$teststring") >/dev/null 2>&1 &&
7407 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7408 lt_cv_sys_max_cmd_len=$new_result &&
7409 test $i != 17 # 1/2 MB should be enough
7412 teststring=$teststring$teststring
7415 # Add a significant safety factor because C++ compilers can tack on massive
7416 # amounts of additional arguments before passing them to the linker.
7417 # It appears as though 1/2 is a usable value.
7418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7424 if test -n $lt_cv_sys_max_cmd_len ; then
7425 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7426 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7428 echo "$as_me:$LINENO: result: none" >&5
7429 echo "${ECHO_T}none" >&6
7435 # Check for command to grab the raw symbol name followed by C symbol from nm.
7436 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7437 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 # These are sane defaults that work on at least a few old systems.
7443 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7445 # Character class describing NM global symbol codes.
7446 symcode='[BCDEGRST]'
7448 # Regexp to match symbols that can be accessed directly from C.
7449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7451 # Transform the above into a raw symbol and a C symbol.
7452 symxfrm='\1 \2\3 \3'
7454 # Transform an extracted symbol line into a proper C declaration
7455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7457 # Transform an extracted symbol line into symbol name and symbol address
7458 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'"
7460 # Define system-specific variables.
7465 cygwin* | mingw* | pw32*)
7466 symcode='[ABCDGISTW]'
7468 hpux*) # Its linker distinguishes data from code symbols
7469 if test "$host_cpu" = ia64; then
7470 symcode='[ABCDEGRST]'
7472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7473 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'"
7476 symcode='[BCDEGRST]'
7479 symcode='[BCDEGQRST]'
7489 # Handle CRLF in mingw tool chain
7493 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7497 # If we're using GNU nm, then use its standard symbol codes.
7498 case `$NM -V 2>&1` in
7499 *GNU* | *'with BFD'*)
7500 symcode='[ABCDGIRSTW]' ;;
7503 # Try without a prefix undercore, then with it.
7504 for ac_symprfx in "" "_"; do
7506 # Write the raw and C identifiers.
7507 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7509 # Check to see that the pipe works correctly.
7513 cat > conftest.$ac_ext <<EOF
7518 void nm_test_func(){}
7522 int main(){nm_test_var='a';nm_test_func();return(0);}
7525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7526 (eval $ac_compile) 2>&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; then
7530 # Now try to grab the symbols.
7532 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7533 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } && test -s "$nlist"; then
7537 # Try sorting and uniquifying the output.
7538 if sort "$nlist" | uniq > "$nlist"T; then
7539 mv -f "$nlist"T "$nlist"
7544 # Make sure that we snagged all the symbols we need.
7545 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7546 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7547 cat <<EOF > conftest.$ac_ext
7553 # Now generate the symbol file.
7554 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7556 cat <<EOF >> conftest.$ac_ext
7557 #if defined (__STDC__) && __STDC__
7558 # define lt_ptr_t void *
7560 # define lt_ptr_t char *
7564 /* The mapping between symbol names and symbols. */
7569 lt_preloaded_symbols[] =
7572 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7573 cat <<\EOF >> conftest.$ac_ext
7581 # Now try linking the two files.
7582 mv conftest.$ac_objext conftstm.$ac_objext
7583 lt_save_LIBS="$LIBS"
7584 lt_save_CFLAGS="$CFLAGS"
7585 LIBS="conftstm.$ac_objext"
7586 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7588 (eval $ac_link) 2>&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7594 LIBS="$lt_save_LIBS"
7595 CFLAGS="$lt_save_CFLAGS"
7597 echo "cannot find nm_test_func in $nlist" >&5
7600 echo "cannot find nm_test_var in $nlist" >&5
7603 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7606 echo "$progname: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7609 rm -f conftest* conftst*
7611 # Do not use the global_symbol_pipe unless it works.
7612 if test "$pipe_works" = yes; then
7615 lt_cv_sys_global_symbol_pipe=
7621 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7622 lt_cv_sys_global_symbol_to_cdecl=
7624 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7625 echo "$as_me:$LINENO: result: failed" >&5
7626 echo "${ECHO_T}failed" >&6
7628 echo "$as_me:$LINENO: result: ok" >&5
7629 echo "${ECHO_T}ok" >&6
7632 echo "$as_me:$LINENO: checking for objdir" >&5
7633 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7634 if test "${lt_cv_objdir+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 rm -f .libs 2>/dev/null
7638 mkdir .libs 2>/dev/null
7639 if test -d .libs; then
7642 # MS-DOS does not allow filenames that begin with a dot.
7645 rmdir .libs 2>/dev/null
7647 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7648 echo "${ECHO_T}$lt_cv_objdir" >&6
7649 objdir=$lt_cv_objdir
7657 # AIX sometimes has problems with the GCC collect2 program. For some
7658 # reason, if we set the COLLECT_NAMES environment variable, the problems
7659 # vanish in a puff of smoke.
7660 if test "X${COLLECT_NAMES+set}" != Xset; then
7662 export COLLECT_NAMES
7667 # Sed substitution that helps us do robust quoting. It backslashifies
7668 # metacharacters that are still active within double-quoted strings.
7669 Xsed='sed -e s/^X//'
7670 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7672 # Same as above, but do not quote variable references.
7673 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7675 # Sed substitution to delay expansion of an escaped shell variable in a
7676 # double_quote_subst'ed string.
7677 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7679 # Sed substitution to avoid accidental globbing in evaled expressions
7680 no_glob_subst='s/\*/\\\*/g'
7686 default_ofile=libtool
7687 can_build_shared=yes
7689 # All known linkers require a `.a' archive for static linking (except M$VC,
7690 # which needs '.lib').
7692 ltmain="$ac_aux_dir/ltmain.sh"
7693 ofile="$default_ofile"
7694 with_gnu_ld="$lt_cv_prog_gnu_ld"
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}ar; ac_word=$2
7699 echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7701 if test "${ac_cv_prog_AR+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 if test -n "$AR"; then
7705 ac_cv_prog_AR="$AR" # Let the user override the test.
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_AR="${ac_tool_prefix}ar"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 if test -n "$AR"; then
7725 echo "$as_me:$LINENO: result: $AR" >&5
7726 echo "${ECHO_T}$AR" >&6
7728 echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6
7733 if test -z "$ac_cv_prog_AR"; then
7735 # Extract the first word of "ar", so it can be a program name with args.
7736 set dummy ar; ac_word=$2
7737 echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7739 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 if test -n "$ac_ct_AR"; then
7743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_ac_ct_AR="ar"
7753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7762 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7763 if test -n "$ac_ct_AR"; then
7764 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7765 echo "${ECHO_T}$ac_ct_AR" >&6
7767 echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6
7776 if test -n "$ac_tool_prefix"; then
7777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7779 echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781 if test "${ac_cv_prog_RANLIB+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 if test -n "$RANLIB"; then
7785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 RANLIB=$ac_cv_prog_RANLIB
7804 if test -n "$RANLIB"; then
7805 echo "$as_me:$LINENO: result: $RANLIB" >&5
7806 echo "${ECHO_T}$RANLIB" >&6
7808 echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6
7813 if test -z "$ac_cv_prog_RANLIB"; then
7814 ac_ct_RANLIB=$RANLIB
7815 # Extract the first word of "ranlib", so it can be a program name with args.
7816 set dummy ranlib; ac_word=$2
7817 echo "$as_me:$LINENO: checking for $ac_word" >&5
7818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7819 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 if test -n "$ac_ct_RANLIB"; then
7823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832 ac_cv_prog_ac_ct_RANLIB="ranlib"
7833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7842 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7843 if test -n "$ac_ct_RANLIB"; then
7844 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7845 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7847 echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6
7851 RANLIB=$ac_ct_RANLIB
7853 RANLIB="$ac_cv_prog_RANLIB"
7856 if test -n "$ac_tool_prefix"; then
7857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7858 set dummy ${ac_tool_prefix}strip; ac_word=$2
7859 echo "$as_me:$LINENO: checking for $ac_word" >&5
7860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7861 if test "${ac_cv_prog_STRIP+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 if test -n "$STRIP"; then
7865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 STRIP=$ac_cv_prog_STRIP
7884 if test -n "$STRIP"; then
7885 echo "$as_me:$LINENO: result: $STRIP" >&5
7886 echo "${ECHO_T}$STRIP" >&6
7888 echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6
7893 if test -z "$ac_cv_prog_STRIP"; then
7895 # Extract the first word of "strip", so it can be a program name with args.
7896 set dummy strip; ac_word=$2
7897 echo "$as_me:$LINENO: checking for $ac_word" >&5
7898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7899 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 if test -n "$ac_ct_STRIP"; then
7903 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_ac_ct_STRIP="strip"
7913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7922 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7923 if test -n "$ac_ct_STRIP"; then
7924 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7925 echo "${ECHO_T}$ac_ct_STRIP" >&6
7927 echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6
7933 STRIP="$ac_cv_prog_STRIP"
7938 old_CFLAGS="$CFLAGS"
7940 # Set sane defaults for various variables
7941 test -z "$AR" && AR=ar
7942 test -z "$AR_FLAGS" && AR_FLAGS=cru
7943 test -z "$AS" && AS=as
7944 test -z "$CC" && CC=cc
7945 test -z "$LTCC" && LTCC=$CC
7946 test -z "$DLLTOOL" && DLLTOOL=dlltool
7947 test -z "$LD" && LD=ld
7948 test -z "$LN_S" && LN_S="ln -s"
7949 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7950 test -z "$NM" && NM=nm
7951 test -z "$SED" && SED=sed
7952 test -z "$OBJDUMP" && OBJDUMP=objdump
7953 test -z "$RANLIB" && RANLIB=:
7954 test -z "$STRIP" && STRIP=:
7955 test -z "$ac_objext" && ac_objext=o
7957 # Determine commands to create old-style static archives.
7958 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7959 old_postinstall_cmds='chmod 644 $oldlib'
7960 old_postuninstall_cmds=
7962 if test -n "$RANLIB"; then
7965 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7968 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7971 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7974 # Only perform the check for file, if the check method requires it
7975 case $deplibs_check_method in
7977 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7978 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7979 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7980 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7988 lt_save_MAGIC_CMD="$MAGIC_CMD"
7989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7990 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7991 for ac_dir in $ac_dummy; do
7993 test -z "$ac_dir" && ac_dir=.
7994 if test -f $ac_dir/${ac_tool_prefix}file; then
7995 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7996 if test -n "$file_magic_test_file"; then
7997 case $deplibs_check_method in
7999 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8001 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8002 $EGREP "$file_magic_regex" > /dev/null; then
8007 *** Warning: the command libtool uses to detect shared libraries,
8008 *** $file_magic_cmd, produces output that libtool cannot recognize.
8009 *** The result is that libtool may fail to recognize shared libraries
8010 *** as such. This will affect the creation of libtool libraries that
8011 *** depend on shared libraries, but programs linked with such libtool
8012 *** libraries will work regardless of this problem. Nevertheless, you
8013 *** may want to report the problem to your system manager and/or to
8014 *** bug-libtool@gnu.org
8024 MAGIC_CMD="$lt_save_MAGIC_CMD"
8029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8030 if test -n "$MAGIC_CMD"; then
8031 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8032 echo "${ECHO_T}$MAGIC_CMD" >&6
8034 echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6
8038 if test -z "$lt_cv_path_MAGIC_CMD"; then
8039 if test -n "$ac_tool_prefix"; then
8040 echo "$as_me:$LINENO: checking for file" >&5
8041 echo $ECHO_N "checking for file... $ECHO_C" >&6
8042 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8050 lt_save_MAGIC_CMD="$MAGIC_CMD"
8051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8053 for ac_dir in $ac_dummy; do
8055 test -z "$ac_dir" && ac_dir=.
8056 if test -f $ac_dir/file; then
8057 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8058 if test -n "$file_magic_test_file"; then
8059 case $deplibs_check_method in
8061 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8063 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8064 $EGREP "$file_magic_regex" > /dev/null; then
8069 *** Warning: the command libtool uses to detect shared libraries,
8070 *** $file_magic_cmd, produces output that libtool cannot recognize.
8071 *** The result is that libtool may fail to recognize shared libraries
8072 *** as such. This will affect the creation of libtool libraries that
8073 *** depend on shared libraries, but programs linked with such libtool
8074 *** libraries will work regardless of this problem. Nevertheless, you
8075 *** may want to report the problem to your system manager and/or to
8076 *** bug-libtool@gnu.org
8086 MAGIC_CMD="$lt_save_MAGIC_CMD"
8091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8092 if test -n "$MAGIC_CMD"; then
8093 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8094 echo "${ECHO_T}$MAGIC_CMD" >&6
8096 echo "$as_me:$LINENO: result: no" >&5
8097 echo "${ECHO_T}no" >&6
8112 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8113 if test "${enable_libtool_lock+set}" = set; then
8114 enableval="$enable_libtool_lock"
8117 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8120 # Check whether --with-pic or --without-pic was given.
8121 if test "${with_pic+set}" = set; then
8127 test -z "$pic_mode" && pic_mode=default
8129 # Use C for the default configuration in the libtool script
8133 ac_cpp='$CPP $CPPFLAGS'
8134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139 # Source file extension for C test sources.
8142 # Object file extension for compiled C test sources.
8146 # Code to be used in simple compile tests
8147 lt_simple_compile_test_code="int some_variable = 0;\n"
8149 # Code to be used in simple link tests
8150 lt_simple_link_test_code='int main(){return(0);}\n'
8153 # If no C compiler was specified, use CC.
8156 # Allow CC to be a program name with arguments.
8161 # Check for any special shared library compilation flags.
8164 if test "$GCC" = no; then
8167 lt_prog_cc_shlib='-belf'
8171 if test -n "$lt_prog_cc_shlib"; then
8172 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8173 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8174 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8176 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8177 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8178 lt_cv_prog_cc_can_build_shared=no
8184 # Check to make sure the static flag actually works.
8186 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8187 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8188 if test "${lt_prog_compiler_static_works+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 lt_prog_compiler_static_works=no
8192 save_LDFLAGS="$LDFLAGS"
8193 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8194 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8195 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8196 # The compiler can only warn and ignore the option if not recognized
8197 # So say no if there are warnings
8198 if test -s conftest.err; then
8199 # Append any errors to the config.log.
8200 cat conftest.err 1>&5
8202 lt_prog_compiler_static_works=yes
8206 LDFLAGS="$save_LDFLAGS"
8209 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8210 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8212 if test x"$lt_prog_compiler_static_works" = xyes; then
8215 lt_prog_compiler_static=
8221 ## There is no encapsulation within the following macros, do not change
8222 ## the running order or otherwise move them around unless you know exactly
8223 ## what you are doing...
8225 lt_prog_compiler_no_builtin_flag=
8227 if test "$GCC" = yes; then
8228 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8231 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8232 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8233 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 lt_cv_prog_compiler_rtti_exceptions=no
8237 ac_outfile=conftest.$ac_objext
8238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8239 lt_compiler_flag="-fno-rtti -fno-exceptions"
8240 # Insert the option either (1) after the last *FLAGS variable, or
8241 # (2) before a word containing "conftest.", or (3) at the end.
8242 # Note that $ac_compile itself does not contain backslashes and begins
8243 # with a dollar sign (not a hyphen), so the echo should work correctly.
8244 # The option is referenced via a variable to avoid confusing sed.
8245 lt_compile=`echo "$ac_compile" | $SED \
8246 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8248 -e 's:$: $lt_compiler_flag:'`
8249 (eval echo "\"\$as_me:8249: $lt_compile\"" >&5)
8250 (eval "$lt_compile" 2>conftest.err)
8252 cat conftest.err >&5
8253 echo "$as_me:8253: \$? = $ac_status" >&5
8254 if (exit $ac_status) && test -s "$ac_outfile"; then
8255 # The compiler can only warn and ignore the option if not recognized
8256 # So say no if there are warnings
8257 if test ! -s conftest.err; then
8258 lt_cv_prog_compiler_rtti_exceptions=yes
8264 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8265 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8267 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8268 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8275 lt_prog_compiler_wl=
8276 lt_prog_compiler_pic=
8277 lt_prog_compiler_static=
8279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8282 if test "$GCC" = yes; then
8283 lt_prog_compiler_wl='-Wl,'
8284 lt_prog_compiler_static='-static'
8288 # All AIX code is PIC.
8289 if test "$host_cpu" = ia64; then
8290 # AIX 5 now supports IA64 processor
8291 lt_prog_compiler_static='-Bstatic'
8296 # FIXME: we need at least 68020 code to build shared libraries, but
8297 # adding the `-m68020' flag to GCC prevents building anything better,
8299 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8302 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8303 # PIC is the default for these OSes.
8306 mingw* | pw32* | os2*)
8307 # This hack is so that the source file can tell whether it is being
8308 # built for inclusion in a dll (and should export symbols for example).
8309 lt_prog_compiler_pic='-DDLL_EXPORT'
8312 darwin* | rhapsody*)
8313 # PIC is the default on this platform
8314 # Common symbols not allowed in MH_DYLIB files
8315 lt_prog_compiler_pic='-fno-common'
8319 # Just because we use GCC doesn't mean we suddenly get shared libraries
8320 # on systems that don't support them.
8321 lt_prog_compiler_can_build_shared=no
8326 if test -d /usr/nec; then
8327 lt_prog_compiler_pic=-Kconform_pic
8332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8339 lt_prog_compiler_pic='-fPIC'
8345 lt_prog_compiler_pic='-fPIC'
8349 # PORTME Check for flag to pass linker flags through the system compiler.
8352 lt_prog_compiler_wl='-Wl,'
8353 if test "$host_cpu" = ia64; then
8354 # AIX 5 now supports IA64 processor
8355 lt_prog_compiler_static='-Bstatic'
8357 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8361 mingw* | pw32* | os2*)
8362 # This hack is so that the source file can tell whether it is being
8363 # built for inclusion in a dll (and should export symbols for example).
8364 lt_prog_compiler_pic='-DDLL_EXPORT'
8367 hpux9* | hpux10* | hpux11*)
8368 lt_prog_compiler_wl='-Wl,'
8369 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8376 lt_prog_compiler_pic='+Z'
8379 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8380 lt_prog_compiler_static='${wl}-a ${wl}archive'
8383 irix5* | irix6* | nonstopux*)
8384 lt_prog_compiler_wl='-Wl,'
8385 # PIC (with -KPIC) is the default.
8386 lt_prog_compiler_static='-non_shared'
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8397 lt_prog_compiler_wl='-Wl,'
8398 lt_prog_compiler_pic='-KPIC'
8399 lt_prog_compiler_static='-static'
8402 lt_prog_compiler_wl='-Wl,'
8403 # All Alpha code is PIC.
8404 lt_prog_compiler_static='-non_shared'
8409 osf3* | osf4* | osf5*)
8410 lt_prog_compiler_wl='-Wl,'
8411 # All OSF/1 code is PIC.
8412 lt_prog_compiler_static='-non_shared'
8416 lt_prog_compiler_pic='-Kpic'
8417 lt_prog_compiler_static='-dn'
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='-KPIC'
8423 lt_prog_compiler_static='-Bstatic'
8427 lt_prog_compiler_wl='-Qoption ld '
8428 lt_prog_compiler_pic='-PIC'
8429 lt_prog_compiler_static='-Bstatic'
8432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_pic='-KPIC'
8435 lt_prog_compiler_static='-Bstatic'
8439 if test -d /usr/nec ;then
8440 lt_prog_compiler_pic='-Kconform_pic'
8441 lt_prog_compiler_static='-Bstatic'
8446 lt_prog_compiler_pic='-pic'
8447 lt_prog_compiler_static='-Bstatic'
8451 lt_prog_compiler_can_build_shared=no
8456 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8457 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8460 # Check to make sure the PIC flag actually works.
8462 if test -n "$lt_prog_compiler_pic"; then
8464 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8465 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8466 if test "${lt_prog_compiler_pic_works+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 lt_prog_compiler_pic_works=no
8470 ac_outfile=conftest.$ac_objext
8471 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8472 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8473 # Insert the option either (1) after the last *FLAGS variable, or
8474 # (2) before a word containing "conftest.", or (3) at the end.
8475 # Note that $ac_compile itself does not contain backslashes and begins
8476 # with a dollar sign (not a hyphen), so the echo should work correctly.
8477 # The option is referenced via a variable to avoid confusing sed.
8478 lt_compile=`echo "$ac_compile" | $SED \
8479 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8481 -e 's:$: $lt_compiler_flag:'`
8482 (eval echo "\"\$as_me:8482: $lt_compile\"" >&5)
8483 (eval "$lt_compile" 2>conftest.err)
8485 cat conftest.err >&5
8486 echo "$as_me:8486: \$? = $ac_status" >&5
8487 if (exit $ac_status) && test -s "$ac_outfile"; then
8488 # The compiler can only warn and ignore the option if not recognized
8489 # So say no if there are warnings
8490 if test ! -s conftest.err; then
8491 lt_prog_compiler_pic_works=yes
8497 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8498 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8500 if test x"$lt_prog_compiler_pic_works" = xyes; then
8501 case $lt_prog_compiler_pic in
8503 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8506 lt_prog_compiler_pic=
8507 lt_prog_compiler_can_build_shared=no
8512 # For platforms which do not support PIC, -DPIC is meaningless:
8514 lt_prog_compiler_pic=
8517 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8521 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8523 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 lt_cv_prog_compiler_c_o=no
8527 $rm -r conftest 2>/dev/null
8531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8533 lt_compiler_flag="-o out/conftest2.$ac_objext"
8534 # Insert the option either (1) after the last *FLAGS variable, or
8535 # (2) before a word containing "conftest.", or (3) at the end.
8536 # Note that $ac_compile itself does not contain backslashes and begins
8537 # with a dollar sign (not a hyphen), so the echo should work correctly.
8538 lt_compile=`echo "$ac_compile" | $SED \
8539 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541 -e 's:$: $lt_compiler_flag:'`
8542 (eval echo "\"\$as_me:8542: $lt_compile\"" >&5)
8543 (eval "$lt_compile" 2>out/conftest.err)
8545 cat out/conftest.err >&5
8546 echo "$as_me:8546: \$? = $ac_status" >&5
8547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8549 # The compiler can only warn and ignore the option if not recognized
8550 # So say no if there are warnings
8551 if test ! -s out/conftest.err; then
8552 lt_cv_prog_compiler_c_o=yes
8557 # SGI C++ compiler will create directory out/ii_files/ for
8558 # template instantiation
8559 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8560 $rm out/* && rmdir out
8566 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8570 hard_links="nottested"
8571 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8572 # do not overwrite the value of need_locks provided by the user
8573 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8579 ln conftest.a conftest.b 2>&5 || hard_links=no
8580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8581 echo "$as_me:$LINENO: result: $hard_links" >&5
8582 echo "${ECHO_T}$hard_links" >&6
8583 if test "$hard_links" = no; then
8584 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8592 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8596 allow_undefined_flag=
8597 enable_shared_with_static_runtimes=no
8599 archive_expsym_cmds=
8600 old_archive_From_new_cmds=
8601 old_archive_from_expsyms_cmds=
8602 export_dynamic_flag_spec=
8603 whole_archive_flag_spec=
8604 thread_safe_flag_spec=
8605 hardcode_libdir_flag_spec=
8606 hardcode_libdir_flag_spec_ld=
8607 hardcode_libdir_separator=
8610 hardcode_shlibpath_var=unsupported
8611 link_all_deplibs=unknown
8612 hardcode_automatic=no
8615 always_export_symbols=no
8616 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8617 # include_expsyms should be a list of space-separated symbols to be *always*
8618 # included in the symbol list
8620 # exclude_expsyms can be an extended regexp of symbols to exclude
8621 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8622 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8623 # as well as any symbol that contains `d'.
8624 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8626 # platforms (ab)use it in PIC code, but their linkers get confused if
8627 # the symbol is explicitly referenced. Since portable code cannot
8628 # rely on this symbol name, it's probably fine to never include it in
8629 # preloaded symbol tables.
8630 extract_expsyms_cmds=
8633 cygwin* | mingw* | pw32*)
8634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8635 # When not using gcc, we currently assume that we are using
8636 # Microsoft Visual C++.
8637 if test "$GCC" != yes; then
8647 if test "$with_gnu_ld" = yes; then
8648 # If archive_cmds runs LD, not CC, wlarc should be empty
8651 # See if GNU ld supports shared libraries.
8653 aix3* | aix4* | aix5*)
8654 # On AIX/PPC, the GNU linker is very broken
8655 if test "$host_cpu" != ia64; then
8659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8660 *** to be unable to reliably create shared libraries on AIX.
8661 *** Therefore, libtool is disabling shared libraries support. If you
8662 *** really care for shared libraries, you may want to modify your PATH
8663 *** so that a non-GNU linker is found, and then restart.
8670 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)'
8671 hardcode_libdir_flag_spec='-L$libdir'
8672 hardcode_minus_L=yes
8674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8675 # that the semantics of dynamic libraries on AmigaOS, at least up
8676 # to version 4, is to share data among multiple programs linked
8677 # with the same dynamic library. Since this doesn't match the
8678 # behavior of shared libraries on other platforms, we can't use
8684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8685 allow_undefined_flag=unsupported
8686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8687 # support --undefined. This deserves some investigation. FIXME
8688 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 cygwin* | mingw* | pw32*)
8695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8696 # as there is no search path for DLLs.
8697 hardcode_libdir_flag_spec='-L$libdir'
8698 allow_undefined_flag=unsupported
8699 always_export_symbols=no
8700 enable_shared_with_static_runtimes=yes
8701 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8705 # If the export-symbols file already is a .def file (1st line
8706 # is EXPORTS), use it as is; otherwise, prepend...
8707 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8708 cp $export_symbols $output_objdir/$soname.def;
8710 echo EXPORTS > $output_objdir/$soname.def;
8711 cat $export_symbols >> $output_objdir/$soname.def;
8713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8721 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8730 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8735 *** create shared libraries on Solaris systems. Therefore, libtool
8736 *** is disabling shared libraries support. We urge you to upgrade GNU
8737 *** binutils to release 2.9.1 or newer. Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8742 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8751 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8754 hardcode_shlibpath_var=no
8758 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8759 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760 archive_cmds="$tmp_archive_cmds"
8761 supports_anon_versioning=no
8762 case `$LD -v 2>/dev/null` in
8763 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8766 *\ 2.11.*) ;; # other 2.11 versions
8767 *) supports_anon_versioning=yes ;;
8769 if test $supports_anon_versioning = yes; then
8770 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8772 $echo "local: *; };" >> $output_objdir/$libname.ver~
8773 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8775 archive_expsym_cmds="$tmp_archive_cmds"
8783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8792 if test "$ld_shlibs" = yes; then
8793 runpath_var=LD_RUN_PATH
8794 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8795 export_dynamic_flag_spec='${wl}--export-dynamic'
8796 # ancient GNU ld didn't support --whole-archive et. al.
8797 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8798 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8800 whole_archive_flag_spec=
8804 # PORTME fill in a description of your system's linker (not GNU ld)
8807 allow_undefined_flag=unsupported
8808 always_export_symbols=yes
8809 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'
8810 # Note: this linker hardcodes the directories in LIBPATH if there
8811 # are no directories specified by -L.
8812 hardcode_minus_L=yes
8813 if test "$GCC" = yes && test -z "$link_static_flag"; then
8814 # Neither direct hardcoding nor static linking is supported with a
8816 hardcode_direct=unsupported
8821 if test "$host_cpu" = ia64; then
8822 # On IA64, the linker does run time linking by default, so we don't
8823 # have to do anything special.
8824 aix_use_runtimelinking=no
8825 exp_sym_flag='-Bexport'
8828 # If we're using GNU nm, then we don't want the "-C" option.
8829 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8830 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8831 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'
8833 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'
8835 aix_use_runtimelinking=no
8837 # Test if we are trying to use run time linking or normal
8838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8839 # need to do runtime linking.
8840 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8841 for ld_flag in $LDFLAGS; do
8842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8843 aix_use_runtimelinking=yes
8849 exp_sym_flag='-bexport'
8850 no_entry_flag='-bnoentry'
8853 # When large executables or shared objects are built, AIX ld can
8854 # have problems creating the table of contents. If linking a library
8855 # or program results in "error TOC overflow" add -mminimal-toc to
8856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8861 hardcode_libdir_separator=':'
8862 link_all_deplibs=yes
8864 if test "$GCC" = yes; then
8865 case $host_os in aix4.012|aix4.012.*)
8866 # We only want to do this on AIX 4.2 and lower, the check
8867 # below for broken collect2 doesn't work under 4.3+
8868 collect2name=`${CC} -print-prog-name=collect2`
8869 if test -f "$collect2name" && \
8870 strings "$collect2name" | grep resolve_lib_name >/dev/null
8872 # We have reworked collect2
8875 # We have old collect2
8876 hardcode_direct=unsupported
8877 # It fails to find uninstalled libraries when the uninstalled
8878 # path is not listed in the libpath. Setting hardcode_minus_L
8879 # to unsupported forces relinking
8880 hardcode_minus_L=yes
8881 hardcode_libdir_flag_spec='-L$libdir'
8882 hardcode_libdir_separator=
8885 shared_flag='-shared'
8888 if test "$host_cpu" = ia64; then
8889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8890 # chokes on -Wl,-G. The following line is correct:
8893 if test "$aix_use_runtimelinking" = yes; then
8894 shared_flag='${wl}-G'
8896 shared_flag='${wl}-bM:SRE'
8901 # It seems that -bexpall does not export symbols beginning with
8902 # underscore (_), so it is better to generate a list of symbols to export.
8903 always_export_symbols=yes
8904 if test "$aix_use_runtimelinking" = yes; then
8905 # Warning - without using the other runtime loading flags (-brtl),
8906 # -berok will link without error, but may produce a broken library.
8907 allow_undefined_flag='-berok'
8908 # Determine the default libpath from the value encoded in an empty executable.
8909 cat >conftest.$ac_ext <<_ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926 (eval $ac_link) 2>conftest.er1
8928 grep -v '^ *+' conftest.er1 >conftest.err
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try='test -z "$ac_c_werror_flag"
8934 || test ! -s conftest.err'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest$ac_exeext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8949 # Check for a 64-bit object if we didn't find anything.
8950 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; }
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8957 rm -f conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8962 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"
8964 if test "$host_cpu" = ia64; then
8965 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8966 allow_undefined_flag="-z nodefs"
8967 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"
8969 # Determine the default libpath from the value encoded in an empty executable.
8970 cat >conftest.$ac_ext <<_ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>conftest.er1
8989 grep -v '^ *+' conftest.er1 >conftest.err
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag"
8995 || test ! -s conftest.err'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9010 # Check for a 64-bit object if we didn't find anything.
9011 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; }
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9018 rm -f conftest.err conftest.$ac_objext \
9019 conftest$ac_exeext conftest.$ac_ext
9020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9022 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9023 # Warning - without using the other run time loading flags,
9024 # -berok will link without error, but may produce a broken library.
9025 no_undefined_flag=' ${wl}-bernotok'
9026 allow_undefined_flag=' ${wl}-berok'
9027 # -bexpall does not export symbols beginning with underscore (_)
9028 always_export_symbols=yes
9029 # Exported symbols can be pulled into shared objects from archives
9030 whole_archive_flag_spec=' '
9031 archive_cmds_need_lc=yes
9032 # This is similar to how AIX traditionally builds it's shared libraries.
9033 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'
9039 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)'
9040 hardcode_libdir_flag_spec='-L$libdir'
9041 hardcode_minus_L=yes
9042 # see comment about different semantics on the GNU ld section
9047 export_dynamic_flag_spec=-rdynamic
9050 cygwin* | mingw* | pw32*)
9051 # When not using gcc, we currently assume that we are using
9052 # Microsoft Visual C++.
9053 # hardcode_libdir_flag_spec is actually meaningless, as there is
9054 # no search path for DLLs.
9055 hardcode_libdir_flag_spec=' '
9056 allow_undefined_flag=unsupported
9057 # Tell ltmain to make .lib files, not .a files.
9059 # Tell ltmain to make .dll files, not .so files.
9061 # FIXME: Setting linknames here is a bad hack.
9062 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9063 # The linker will automatically build a .lib file if we build a DLL.
9064 old_archive_From_new_cmds='true'
9065 # FIXME: Should let the user specify the lib program.
9066 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9067 fix_srcfile_path='`cygpath -w "$srcfile"`'
9068 enable_shared_with_static_runtimes=yes
9071 darwin* | rhapsody*)
9072 if test "$GXX" = yes ; then
9073 archive_cmds_need_lc=no
9075 rhapsody* | darwin1.[012])
9076 allow_undefined_flag='-undefined suppress'
9079 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9080 allow_undefined_flag='-flat_namespace -undefined suppress'
9082 case ${MACOSX_DEPLOYMENT_TARGET} in
9084 allow_undefined_flag='-flat_namespace -undefined suppress'
9087 allow_undefined_flag='-undefined dynamic_lookup'
9093 lt_int_apple_cc_single_mod=no
9094 output_verbose_link_cmd='echo'
9095 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9096 lt_int_apple_cc_single_mod=yes
9098 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9099 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9101 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'
9103 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9105 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9106 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}'
9108 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}'
9110 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}'
9112 hardcode_automatic=yes
9113 hardcode_shlibpath_var=unsupported
9114 whole_archive_flag_spec='-all_load $convenience'
9115 link_all_deplibs=yes
9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 hardcode_shlibpath_var=no
9131 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9132 # support. Future versions do this automatically, but an explicit c++rt0.o
9133 # does not break anything, and helps significantly (at the cost of a little
9136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9137 hardcode_libdir_flag_spec='-R$libdir'
9139 hardcode_shlibpath_var=no
9142 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9146 hardcode_minus_L=yes
9147 hardcode_shlibpath_var=no
9150 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9151 freebsd* | kfreebsd*-gnu)
9152 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9153 hardcode_libdir_flag_spec='-R$libdir'
9155 hardcode_shlibpath_var=no
9159 if test "$GCC" = yes; then
9160 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'
9162 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'
9164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9165 hardcode_libdir_separator=:
9168 # hardcode_minus_L: Not really in the search PATH,
9169 # but as the default location of the library.
9170 hardcode_minus_L=yes
9171 export_dynamic_flag_spec='${wl}-E'
9175 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9178 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9181 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9187 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9194 if test "$with_gnu_ld" = no; then
9197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198 hardcode_libdir_flag_spec_ld='+b $libdir'
9199 hardcode_libdir_separator=:
9201 hardcode_shlibpath_var=no
9204 hardcode_libdir_flag_spec='-L$libdir'
9206 hardcode_shlibpath_var=no
9208 # hardcode_minus_L: Not really in the search PATH,
9209 # but as the default location of the library.
9210 hardcode_minus_L=yes
9213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9214 hardcode_libdir_separator=:
9216 export_dynamic_flag_spec='${wl}-E'
9218 # hardcode_minus_L: Not really in the search PATH,
9219 # but as the default location of the library.
9220 hardcode_minus_L=yes
9226 irix5* | irix6* | nonstopux*)
9227 if test "$GCC" = yes; then
9228 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'
9230 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'
9231 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234 hardcode_libdir_separator=:
9235 link_all_deplibs=yes
9239 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9242 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9244 hardcode_libdir_flag_spec='-R$libdir'
9246 hardcode_shlibpath_var=no
9250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9253 hardcode_libdir_separator=:
9254 hardcode_shlibpath_var=no
9259 hardcode_shlibpath_var=no
9260 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9263 export_dynamic_flag_spec='${wl}-E'
9266 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9268 hardcode_libdir_flag_spec='-R$libdir'
9271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9279 hardcode_libdir_flag_spec='-L$libdir'
9280 hardcode_minus_L=yes
9281 allow_undefined_flag=unsupported
9282 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'
9283 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9287 if test "$GCC" = yes; then
9288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289 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'
9291 allow_undefined_flag=' -expect_unresolved \*'
9292 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'
9294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295 hardcode_libdir_separator=:
9298 osf4* | osf5*) # as osf3* with the addition of -msym flag
9299 if test "$GCC" = yes; then
9300 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9301 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'
9302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304 allow_undefined_flag=' -expect_unresolved \*'
9305 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'
9306 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9307 $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'
9309 # Both c and cxx compiler support -rpath directly
9310 hardcode_libdir_flag_spec='-rpath $libdir'
9312 hardcode_libdir_separator=:
9316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317 hardcode_shlibpath_var=no
9318 export_dynamic_flag_spec='${wl}-Bexport'
9319 runpath_var=LD_RUN_PATH
9320 hardcode_runpath_var=yes
9324 no_undefined_flag=' -z text'
9325 if test "$GCC" = yes; then
9326 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9328 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9330 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9332 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9334 hardcode_libdir_flag_spec='-R$libdir'
9335 hardcode_shlibpath_var=no
9337 solaris2.[0-5] | solaris2.[0-5].*) ;;
9338 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9339 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9341 link_all_deplibs=yes
9345 if test "x$host_vendor" = xsequent; then
9346 # Use $CC to link under sequent, because it throws in some extra .o
9347 # files that make .init and .fini sections work.
9348 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9350 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_libdir_flag_spec='-L$libdir'
9354 hardcode_minus_L=yes
9355 hardcode_shlibpath_var=no
9359 case $host_vendor in
9361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_direct=yes # is this really true???
9365 ## LD is ld it makes a PLAMLIB
9366 ## CC just makes a GrossModule.
9367 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9368 reload_cmds='$CC -r -o $output$reload_objs'
9372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9376 runpath_var='LD_RUN_PATH'
9377 hardcode_shlibpath_var=no
9381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_shlibpath_var=no
9383 export_dynamic_flag_spec='-Bexport'
9387 if test -d /usr/nec; then
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_shlibpath_var=no
9390 runpath_var=LD_RUN_PATH
9391 hardcode_runpath_var=yes
9397 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9400 hardcode_shlibpath_var=no
9401 hardcode_runpath_var=yes
9402 runpath_var=LD_RUN_PATH
9405 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9406 no_undefined_flag='${wl}-z ${wl}text'
9407 if test "$GCC" = yes; then
9408 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 runpath_var='LD_RUN_PATH'
9413 hardcode_shlibpath_var=no
9417 no_undefined_flag=' -z text'
9418 # $CC -shared without GNU ld will not create a library from C++
9419 # object files and a static libstdc++, better avoid it by now
9420 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9422 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9423 hardcode_libdir_flag_spec=
9424 hardcode_shlibpath_var=no
9425 runpath_var='LD_RUN_PATH'
9429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430 hardcode_libdir_flag_spec='-L$libdir'
9431 hardcode_shlibpath_var=no
9440 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9441 echo "${ECHO_T}$ld_shlibs" >&6
9442 test "$ld_shlibs" = no && can_build_shared=no
9444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9445 if test "$GCC" = yes; then
9446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9450 # Do we need to explicitly link libc?
9452 case "x$archive_cmds_need_lc" in
9454 # Assume -lc should be added
9455 archive_cmds_need_lc=yes
9457 if test "$enable_shared" = yes && test "$GCC" = yes; then
9458 case $archive_cmds in
9460 # FIXME: we may have to deal with multi-command sequences.
9463 # Test whether the compiler implicitly links with -lc since on some
9464 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9465 # to ld, don't add -lc before -lgcc.
9466 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9467 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9472 (eval $ac_compile) 2>&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } 2>conftest.err; then
9478 libobjs=conftest.$ac_objext
9480 wl=$lt_prog_compiler_wl
9486 lt_save_allow_undefined_flag=$allow_undefined_flag
9487 allow_undefined_flag=
9488 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9489 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }
9494 archive_cmds_need_lc=no
9496 archive_cmds_need_lc=yes
9498 allow_undefined_flag=$lt_save_allow_undefined_flag
9500 cat conftest.err 1>&5
9503 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9504 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9514 libname_spec='lib$name'
9522 shlibpath_overrides_runpath=unknown
9524 dynamic_linker="$host_os ld.so"
9525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9526 if test "$GCC" = yes; then
9527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9528 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9529 # if the path contains ";" then we assume it to be the separator
9530 # otherwise default to the standard path separator (i.e. ":") - it is
9531 # assumed that no part of a normal pathname contains ";" but that should
9532 # okay in the real world where ";" in dirpaths is itself problematic.
9533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9540 need_lib_prefix=unknown
9541 hardcode_into_libs=no
9543 # when you set need_version to no, make sure it does not cause -set_version
9544 # flags to be left without arguments
9545 need_version=unknown
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9551 shlibpath_var=LIBPATH
9553 # AIX 3 has no versioning support, so we append a major version to the name.
9554 soname_spec='${libname}${release}${shared_ext}$major'
9561 hardcode_into_libs=yes
9562 if test "$host_cpu" = ia64; then
9563 # AIX 5 supports IA64
9564 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9565 shlibpath_var=LD_LIBRARY_PATH
9567 # With GCC up to 2.95.x, collect2 would create an import file
9568 # for dependence libraries. The import file would start with
9569 # the line `#! .'. This would cause the generated library to
9570 # depend on `.', always an invalid library. This was fixed in
9571 # development snapshots of GCC prior to 3.0.
9573 aix4 | aix4.[01] | aix4.[01].*)
9574 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9576 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9583 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9584 # soname into executable. Probably we can add versioning support to
9585 # collect2, so additional links can be useful in future.
9586 if test "$aix_use_runtimelinking" = yes; then
9587 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9588 # instead of lib<name>.a to let people know that these are not
9589 # typical AIX shared libraries.
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 # We preserve .a as extension for shared libraries through AIX4.2
9593 # and later when we are not doing run time linking.
9594 library_names_spec='${libname}${release}.a $libname.a'
9595 soname_spec='${libname}${release}${shared_ext}$major'
9597 shlibpath_var=LIBPATH
9602 library_names_spec='$libname.ixlibrary $libname.a'
9603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9604 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'
9608 library_names_spec='${libname}${shared_ext}'
9609 dynamic_linker="$host_os ld.so"
9610 shlibpath_var=LIBRARY_PATH
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617 soname_spec='${libname}${release}${shared_ext}$major'
9618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9622 # the default ld.so.conf also contains /usr/contrib/lib and
9623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9624 # libtool to hard-code these into programs
9627 cygwin* | mingw* | pw32*)
9628 version_type=windows
9633 case $GCC,$host_os in
9634 yes,cygwin* | yes,mingw* | yes,pw32*)
9635 library_names_spec='$libname.dll.a'
9636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9637 postinstall_cmds='base_file=`basename \${file}`~
9638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9639 dldir=$destdir/`dirname \$dlpath`~
9640 test -d \$dldir || mkdir -p \$dldir~
9641 $install_prog $dir/$dlname \$dldir/$dlname'
9642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9643 dlpath=$dir/\$dldll~
9645 shlibpath_overrides_runpath=yes
9649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9651 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9654 # MinGW DLLs use traditional 'lib' prefix
9655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9658 # It is most probably a Windows format PATH printed by
9659 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9660 # path with ; separators, and with drive letters. We can handle the
9661 # drive letters (cygwin fileutils understands them), so leave them,
9662 # especially as we might pass files found there to a mingw objdump,
9663 # which wouldn't understand a cygwinified path. Ahh.
9664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9670 # pw32 DLLs use 'pw' prefix rather than 'lib'
9671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9680 dynamic_linker='Win32 ld.exe'
9681 # FIXME: first we should search . and the directory the executable is in
9685 darwin* | rhapsody*)
9686 dynamic_linker="$host_os dyld"
9690 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9691 soname_spec='${libname}${release}${major}$shared_ext'
9692 shlibpath_overrides_runpath=yes
9693 shlibpath_var=DYLD_LIBRARY_PATH
9694 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9695 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9696 if test "$GCC" = yes; then
9697 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"`
9699 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9709 soname_spec='${libname}${release}${shared_ext}$major'
9710 shlibpath_var=LD_LIBRARY_PATH
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 shlibpath_overrides_runpath=no
9725 hardcode_into_libs=yes
9726 dynamic_linker='GNU ld.so'
9730 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9731 version_type=freebsd-$objformat
9732 case $version_type in
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9743 shlibpath_var=LD_LIBRARY_PATH
9746 shlibpath_overrides_runpath=yes
9748 freebsd3.01* | freebsdelf3.01*)
9749 shlibpath_overrides_runpath=yes
9750 hardcode_into_libs=yes
9753 shlibpath_overrides_runpath=no
9754 hardcode_into_libs=yes
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 shlibpath_var=LD_LIBRARY_PATH
9766 hardcode_into_libs=yes
9769 hpux9* | hpux10* | hpux11*)
9770 # Give a soname corresponding to the major version so that dld.sl refuses to
9771 # link against other versions.
9778 hardcode_into_libs=yes
9779 dynamic_linker="$host_os dld.so"
9780 shlibpath_var=LD_LIBRARY_PATH
9781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 if test "X$HPUX_IA64_MODE" = X32; then
9785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9787 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9793 hardcode_into_libs=yes
9794 dynamic_linker="$host_os dld.sl"
9795 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9804 dynamic_linker="$host_os dld.sl"
9805 shlibpath_var=SHLIB_PATH
9806 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9811 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9812 postinstall_cmds='chmod 555 $lib'
9815 irix5* | irix6* | nonstopux*)
9817 nonstopux*) version_type=nonstopux ;;
9819 if test "$lt_cv_prog_gnu_ld" = yes; then
9827 soname_spec='${libname}${release}${shared_ext}$major'
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9830 irix5* | nonstopux*)
9834 case $LD in # libtool.m4 will add one of these switches to LD
9835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9836 libsuff= shlibsuff= libmagic=32-bit;;
9837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9838 libsuff=32 shlibsuff=N32 libmagic=N32;;
9839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9841 *) libsuff= shlibsuff= libmagic=never-match;;
9845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9846 shlibpath_overrides_runpath=no
9847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9849 hardcode_into_libs=yes
9852 # No shared lib support for Linux oldld, aout, or coff.
9853 linux*oldld* | linux*aout* | linux*coff*)
9857 # This must be Linux ELF.
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9865 shlibpath_var=LD_LIBRARY_PATH
9866 shlibpath_overrides_runpath=no
9867 # This implies no fast_install, which is unacceptable.
9868 # Some rework will be needed to allow for fast_install
9869 # before this can be enabled.
9870 hardcode_into_libs=yes
9872 # find out which ABI we are using
9875 x86_64*|s390x*|powerpc64*)
9876 echo '#line 9876 "configure"' > conftest.$ac_ext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878 (eval $ac_compile) 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; then
9882 case `/usr/bin/file conftest.$ac_objext` in
9885 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9893 # Append ld.so.conf contents to the search path
9894 if test -f /etc/ld.so.conf; then
9895 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9896 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9899 # We used to test for /lib/ld.so.1 and disable shared libraries on
9900 # powerpc, because MkLinux only supported shared libraries with the
9901 # GNU dynamic linker. Since this was broken with cross compilers,
9902 # most powerpc-linux boxes support dynamic linking these days and
9903 # people can always --disable-shared, the test was removed, and we
9904 # assume the GNU/Linux dynamic linker is in use.
9905 dynamic_linker='GNU/Linux ld.so'
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=no
9916 hardcode_into_libs=yes
9917 dynamic_linker='GNU ld.so'
9924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9927 dynamic_linker='NetBSD (a.out) ld.so'
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 dynamic_linker='NetBSD ld.elf_so'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 shlibpath_overrides_runpath=yes
9935 hardcode_into_libs=yes
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 shlibpath_overrides_runpath=yes
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 shlibpath_overrides_runpath=yes
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9964 openbsd2.[89] | openbsd2.[89].*)
9965 shlibpath_overrides_runpath=no
9968 shlibpath_overrides_runpath=yes
9972 shlibpath_overrides_runpath=yes
9977 libname_spec='$name'
9980 library_names_spec='$libname${shared_ext} $libname.a'
9981 dynamic_linker='OS/2 ld.exe'
9982 shlibpath_var=LIBPATH
9985 osf3* | osf4* | osf5*)
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991 shlibpath_var=LD_LIBRARY_PATH
9992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000 shlibpath_var=LD_LIBRARY_PATH
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008 soname_spec='${libname}${release}${shared_ext}$major'
10009 shlibpath_var=LD_LIBRARY_PATH
10010 shlibpath_overrides_runpath=yes
10011 hardcode_into_libs=yes
10012 # ldd complains unless libraries are executable
10013 postinstall_cmds='chmod +x $lib'
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10019 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 shlibpath_overrides_runpath=yes
10022 if test "$with_gnu_ld" = yes; then
10028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 case $host_vendor in
10035 shlibpath_overrides_runpath=no
10037 export_dynamic_flag_spec='${wl}-Blargedynsym'
10038 runpath_var=LD_RUN_PATH
10046 shlibpath_overrides_runpath=no
10047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10053 if test -d /usr/nec ;then
10055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10056 soname_spec='$libname${shared_ext}.$major'
10057 shlibpath_var=LD_LIBRARY_PATH
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 shlibpath_var=LD_LIBRARY_PATH
10072 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10073 echo "${ECHO_T}$dynamic_linker" >&6
10074 test "$dynamic_linker" = no && can_build_shared=no
10076 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10079 if test -n "$hardcode_libdir_flag_spec" || \
10080 test -n "$runpath_var " || \
10081 test "X$hardcode_automatic"="Xyes" ; then
10083 # We can hardcode non-existant directories.
10084 if test "$hardcode_direct" != no &&
10085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10086 # have to relink, otherwise we might link with an installed library
10087 # when we should be linking with a yet-to-be-installed one
10088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10089 test "$hardcode_minus_L" != no; then
10090 # Linking always hardcodes the temporary library directory.
10091 hardcode_action=relink
10093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10094 hardcode_action=immediate
10097 # We cannot hardcode anything, or else we can only hardcode existing
10099 hardcode_action=unsupported
10101 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10102 echo "${ECHO_T}$hardcode_action" >&6
10104 if test "$hardcode_action" = relink; then
10105 # Fast installation is not supported
10106 enable_fast_install=no
10107 elif test "$shlibpath_overrides_runpath" = yes ||
10108 test "$enable_shared" = no; then
10109 # Fast installation is not necessary
10110 enable_fast_install=needless
10115 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10116 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10117 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10118 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10119 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10120 echo "$as_me:$LINENO: result: yes" >&5
10121 echo "${ECHO_T}yes" >&6
10123 # FIXME - insert some real tests, host_os isn't really good enough
10126 if test -n "$STRIP" ; then
10127 striplib="$STRIP -x"
10128 echo "$as_me:$LINENO: result: yes" >&5
10129 echo "${ECHO_T}yes" >&6
10131 echo "$as_me:$LINENO: result: no" >&5
10132 echo "${ECHO_T}no" >&6
10136 echo "$as_me:$LINENO: result: no" >&5
10137 echo "${ECHO_T}no" >&6
10142 if test "x$enable_dlopen" != xyes; then
10143 enable_dlopen=unknown
10144 enable_dlopen_self=unknown
10145 enable_dlopen_self_static=unknown
10152 lt_cv_dlopen="load_add_on"
10154 lt_cv_dlopen_self=yes
10158 lt_cv_dlopen="LoadLibrary"
10163 lt_cv_dlopen="dlopen"
10168 # if libdl is installed we need to link against it
10169 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10170 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10171 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 ac_check_lib_save_LIBS=$LIBS
10176 cat >conftest.$ac_ext <<_ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10183 /* Override any gcc2 internal prototype to avoid an error. */
10187 /* We use char because int might match the return type of a gcc2
10188 builtin and then its argument prototype would still apply. */
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200 (eval $ac_link) 2>conftest.er1
10202 grep -v '^ *+' conftest.er1 >conftest.err
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -z "$ac_c_werror_flag"
10208 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_lib_dl_dlopen=yes
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10225 ac_cv_lib_dl_dlopen=no
10227 rm -f conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10231 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10232 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10233 if test $ac_cv_lib_dl_dlopen = yes; then
10234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10237 lt_cv_dlopen="dyld"
10239 lt_cv_dlopen_self=yes
10246 echo "$as_me:$LINENO: checking for shl_load" >&5
10247 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10248 if test "${ac_cv_func_shl_load+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10259 #define shl_load innocuous_shl_load
10261 /* System header to define __stub macros and hopefully few prototypes,
10262 which can conflict with char shl_load (); below.
10263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10264 <limits.h> exists even on freestanding compilers. */
10267 # include <limits.h>
10269 # include <assert.h>
10274 /* Override any gcc2 internal prototype to avoid an error. */
10279 /* We use char because int might match the return type of a gcc2
10280 builtin and then its argument prototype would still apply. */
10282 /* The GNU C library defines this for functions which it implements
10283 to always fail with ENOSYS. Some functions are actually named
10284 something starting with __ and the normal name is an alias. */
10285 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10288 char (*f) () = shl_load;
10297 return f != shl_load;
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>conftest.er1
10306 grep -v '^ *+' conftest.er1 >conftest.err
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_c_werror_flag"
10312 || test ! -s conftest.err'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 ac_cv_func_shl_load=yes
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_cv_func_shl_load=no
10331 rm -f conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10334 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10335 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10336 if test $ac_cv_func_shl_load = yes; then
10337 lt_cv_dlopen="shl_load"
10339 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10340 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10341 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 ac_check_lib_save_LIBS=$LIBS
10346 cat >conftest.$ac_ext <<_ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10353 /* Override any gcc2 internal prototype to avoid an error. */
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10370 (eval $ac_link) 2>conftest.er1
10372 grep -v '^ *+' conftest.er1 >conftest.err
10374 cat conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } &&
10377 { ac_try='test -z "$ac_c_werror_flag"
10378 || test ! -s conftest.err'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; } &&
10384 { ac_try='test -s conftest$ac_exeext'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10390 ac_cv_lib_dld_shl_load=yes
10392 echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10395 ac_cv_lib_dld_shl_load=no
10397 rm -f conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399 LIBS=$ac_check_lib_save_LIBS
10401 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10402 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10403 if test $ac_cv_lib_dld_shl_load = yes; then
10404 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10406 echo "$as_me:$LINENO: checking for dlopen" >&5
10407 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10408 if test "${ac_cv_func_dlopen+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 cat >conftest.$ac_ext <<_ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10419 #define dlopen innocuous_dlopen
10421 /* System header to define __stub macros and hopefully few prototypes,
10422 which can conflict with char dlopen (); below.
10423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10424 <limits.h> exists even on freestanding compilers. */
10427 # include <limits.h>
10429 # include <assert.h>
10434 /* Override any gcc2 internal prototype to avoid an error. */
10439 /* We use char because int might match the return type of a gcc2
10440 builtin and then its argument prototype would still apply. */
10442 /* The GNU C library defines this for functions which it implements
10443 to always fail with ENOSYS. Some functions are actually named
10444 something starting with __ and the normal name is an alias. */
10445 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10448 char (*f) () = dlopen;
10457 return f != dlopen;
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464 (eval $ac_link) 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag"
10472 || test ! -s conftest.err'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest$ac_exeext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_func_dlopen=yes
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_cv_func_dlopen=no
10491 rm -f conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10494 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10495 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10496 if test $ac_cv_func_dlopen = yes; then
10497 lt_cv_dlopen="dlopen"
10499 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10500 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 ac_check_lib_save_LIBS=$LIBS
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10513 /* Override any gcc2 internal prototype to avoid an error. */
10517 /* We use char because int might match the return type of a gcc2
10518 builtin and then its argument prototype would still apply. */
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530 (eval $ac_link) 2>conftest.er1
10532 grep -v '^ *+' conftest.er1 >conftest.err
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -z "$ac_c_werror_flag"
10538 || test ! -s conftest.err'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; } &&
10544 { ac_try='test -s conftest$ac_exeext'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 ac_cv_lib_dl_dlopen=yes
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10555 ac_cv_lib_dl_dlopen=no
10557 rm -f conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10561 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10562 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10563 if test $ac_cv_lib_dl_dlopen = yes; then
10564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10566 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10567 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10568 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 ac_check_lib_save_LIBS=$LIBS
10572 LIBS="-lsvld $LIBS"
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10580 /* Override any gcc2 internal prototype to avoid an error. */
10584 /* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597 (eval $ac_link) 2>conftest.er1
10599 grep -v '^ *+' conftest.er1 >conftest.err
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } &&
10604 { ac_try='test -z "$ac_c_werror_flag"
10605 || test ! -s conftest.err'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_lib_svld_dlopen=yes
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_cv_lib_svld_dlopen=no
10624 rm -f conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10628 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10630 if test $ac_cv_lib_svld_dlopen = yes; then
10631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10633 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 ac_check_lib_save_LIBS=$LIBS
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10647 /* Override any gcc2 internal prototype to avoid an error. */
10651 /* We use char because int might match the return type of a gcc2
10652 builtin and then its argument prototype would still apply. */
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>conftest.er1
10666 grep -v '^ *+' conftest.er1 >conftest.err
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -z "$ac_c_werror_flag"
10672 || test ! -s conftest.err'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_lib_dld_dld_link=yes
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 ac_cv_lib_dld_dld_link=no
10691 rm -f conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10696 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10697 if test $ac_cv_lib_dld_dld_link = yes; then
10698 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10719 if test "x$lt_cv_dlopen" != xno; then
10725 case $lt_cv_dlopen in
10727 save_CPPFLAGS="$CPPFLAGS"
10728 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10730 save_LDFLAGS="$LDFLAGS"
10731 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10734 LIBS="$lt_cv_dlopen_libs $LIBS"
10736 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10737 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10738 if test "${lt_cv_dlopen_self+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 if test "$cross_compiling" = yes; then :
10742 lt_cv_dlopen_self=cross
10744 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10745 lt_status=$lt_dlunknown
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10747 "configure"
10748 #include "confdefs.h"
10757 # define LT_DLGLOBAL RTLD_GLOBAL
10760 # define LT_DLGLOBAL DL_GLOBAL
10762 # define LT_DLGLOBAL 0
10766 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10767 find out it does not work in some platform. */
10768 #ifndef LT_DLLAZY_OR_NOW
10770 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10773 # define LT_DLLAZY_OR_NOW DL_LAZY
10776 # define LT_DLLAZY_OR_NOW RTLD_NOW
10779 # define LT_DLLAZY_OR_NOW DL_NOW
10781 # define LT_DLLAZY_OR_NOW 0
10789 extern "C" void exit (int);
10792 void fnord() { int i=42;}
10795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10796 int status = $lt_dlunknown;
10800 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10801 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10802 /* dlclose (self); */
10808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10809 (eval $ac_link) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10813 (./conftest; exit; ) 2>/dev/null
10815 case x$lt_status in
10816 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10817 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10818 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10821 # compilation failed
10822 lt_cv_dlopen_self=no
10829 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10830 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10832 if test "x$lt_cv_dlopen_self" = xyes; then
10833 LDFLAGS="$LDFLAGS $link_static_flag"
10834 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10835 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10836 if test "${lt_cv_dlopen_self_static+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 if test "$cross_compiling" = yes; then :
10840 lt_cv_dlopen_self_static=cross
10842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10843 lt_status=$lt_dlunknown
10844 cat > conftest.$ac_ext <<EOF
10845 #line 10845 "configure"
10846 #include "confdefs.h"
10855 # define LT_DLGLOBAL RTLD_GLOBAL
10858 # define LT_DLGLOBAL DL_GLOBAL
10860 # define LT_DLGLOBAL 0
10864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10865 find out it does not work in some platform. */
10866 #ifndef LT_DLLAZY_OR_NOW
10868 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10871 # define LT_DLLAZY_OR_NOW DL_LAZY
10874 # define LT_DLLAZY_OR_NOW RTLD_NOW
10877 # define LT_DLLAZY_OR_NOW DL_NOW
10879 # define LT_DLLAZY_OR_NOW 0
10887 extern "C" void exit (int);
10890 void fnord() { int i=42;}
10893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10894 int status = $lt_dlunknown;
10898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10899 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10900 /* dlclose (self); */
10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907 (eval $ac_link) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10911 (./conftest; exit; ) 2>/dev/null
10913 case x$lt_status in
10914 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10915 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10916 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10919 # compilation failed
10920 lt_cv_dlopen_self_static=no
10927 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10928 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10931 CPPFLAGS="$save_CPPFLAGS"
10932 LDFLAGS="$save_LDFLAGS"
10937 case $lt_cv_dlopen_self in
10938 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10939 *) enable_dlopen_self=unknown ;;
10942 case $lt_cv_dlopen_self_static in
10943 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10944 *) enable_dlopen_self_static=unknown ;;
10949 # Report which librarie types wil actually be built
10950 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10951 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10952 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10953 echo "${ECHO_T}$can_build_shared" >&6
10955 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10956 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10957 test "$can_build_shared" = "no" && enable_shared=no
10959 # On AIX, shared libraries and static libraries use the same namespace, and
10960 # are all built from PIC.
10963 test "$enable_shared" = yes && enable_static=no
10964 if test -n "$RANLIB"; then
10965 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10966 postinstall_cmds='$RANLIB $lib'
10971 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10972 test "$enable_shared" = yes && enable_static=no
10975 darwin* | rhapsody*)
10976 if test "$GCC" = yes; then
10977 archive_cmds_need_lc=no
10979 rhapsody* | darwin1.[012])
10980 allow_undefined_flag='-undefined suppress'
10983 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10984 allow_undefined_flag='-flat_namespace -undefined suppress'
10986 case ${MACOSX_DEPLOYMENT_TARGET} in
10988 allow_undefined_flag='-flat_namespace -undefined suppress'
10991 allow_undefined_flag='-undefined dynamic_lookup'
10997 output_verbose_link_cmd='echo'
10998 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10999 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11000 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11001 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}'
11002 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}'
11004 hardcode_automatic=yes
11005 hardcode_shlibpath_var=unsupported
11006 whole_archive_flag_spec='-all_load $convenience'
11007 link_all_deplibs=yes
11013 echo "$as_me:$LINENO: result: $enable_shared" >&5
11014 echo "${ECHO_T}$enable_shared" >&6
11016 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11017 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11018 # Make sure either enable_shared or enable_static is yes.
11019 test "$enable_shared" = yes || enable_static=yes
11020 echo "$as_me:$LINENO: result: $enable_static" >&5
11021 echo "${ECHO_T}$enable_static" >&6
11023 # The else clause should only fire when bootstrapping the
11024 # libtool distribution, otherwise you forgot to ship ltmain.sh
11025 # with your package, and you will get complaints that there are
11026 # no rules to generate ltmain.sh.
11027 if test -f "$ltmain"; then
11028 # See if we are running on zsh, and set the options which allow our commands through
11029 # without removal of \ escapes.
11030 if test -n "${ZSH_VERSION+set}" ; then
11031 setopt NO_GLOB_SUBST
11033 # Now quote all the things that may contain metacharacters while being
11034 # careful not to overquote the AC_SUBSTed values. We take copies of the
11035 # variables and quote the copies for generation of the libtool script.
11036 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11038 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11039 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11040 deplibs_check_method reload_flag reload_cmds need_locks \
11041 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11042 lt_cv_sys_global_symbol_to_c_name_address \
11043 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11044 old_postinstall_cmds old_postuninstall_cmds \
11048 lt_prog_compiler_wl \
11049 lt_prog_compiler_pic \
11050 lt_prog_compiler_static \
11051 lt_prog_compiler_no_builtin_flag \
11052 export_dynamic_flag_spec \
11053 thread_safe_flag_spec \
11054 whole_archive_flag_spec \
11055 enable_shared_with_static_runtimes \
11057 old_archive_from_new_cmds \
11062 compiler_lib_search_path \
11064 archive_expsym_cmds \
11066 postuninstall_cmds \
11067 old_archive_from_expsyms_cmds \
11068 allow_undefined_flag \
11069 no_undefined_flag \
11070 export_symbols_cmds \
11071 hardcode_libdir_flag_spec \
11072 hardcode_libdir_flag_spec_ld \
11073 hardcode_libdir_separator \
11074 hardcode_automatic \
11076 module_expsym_cmds \
11077 lt_cv_prog_compiler_c_o \
11079 include_expsyms; do
11082 old_archive_cmds | \
11083 old_archive_from_new_cmds | \
11085 archive_expsym_cmds | \
11087 module_expsym_cmds | \
11088 old_archive_from_expsyms_cmds | \
11089 export_symbols_cmds | \
11090 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11091 postinstall_cmds | postuninstall_cmds | \
11092 old_postinstall_cmds | old_postuninstall_cmds | \
11093 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11094 # Double-quote double-evaled strings.
11095 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11098 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11104 *'\$0 --fallback-echo"')
11105 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11109 cfgfile="${ofile}T"
11110 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11112 { echo "$as_me:$LINENO: creating $ofile" >&5
11113 echo "$as_me: creating $ofile" >&6;}
11115 cat <<__EOF__ >> "$cfgfile"
11118 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11119 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11120 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11122 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11123 # Free Software Foundation, Inc.
11125 # This file is part of GNU Libtool:
11126 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11128 # This program is free software; you can redistribute it and/or modify
11129 # it under the terms of the GNU General Public License as published by
11130 # the Free Software Foundation; either version 2 of the License, or
11131 # (at your option) any later version.
11133 # This program is distributed in the hope that it will be useful, but
11134 # WITHOUT ANY WARRANTY; without even the implied warranty of
11135 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11136 # General Public License for more details.
11138 # You should have received a copy of the GNU General Public License
11139 # along with this program; if not, write to the Free Software
11140 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11142 # As a special exception to the GNU General Public License, if you
11143 # distribute this file as part of a program that contains a
11144 # configuration script generated by Autoconf, you may include it under
11145 # the same distribution terms that you use for the rest of that program.
11147 # A sed program that does not truncate output.
11150 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11151 Xsed="$SED -e s/^X//"
11153 # The HP-UX ksh and POSIX shell print the target directory to stdout
11154 # if CDPATH is set.
11155 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11157 # The names of the tagged configurations supported by this script.
11160 # ### BEGIN LIBTOOL CONFIG
11162 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11164 # Shell to use when invoking shell scripts.
11167 # Whether or not to build shared libraries.
11168 build_libtool_libs=$enable_shared
11170 # Whether or not to build static libraries.
11171 build_old_libs=$enable_static
11173 # Whether or not to add -lc for building shared libraries.
11174 build_libtool_need_lc=$archive_cmds_need_lc
11176 # Whether or not to disallow shared libs when runtime libs are static
11177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11179 # Whether or not to optimize for fast installation.
11180 fast_install=$enable_fast_install
11183 host_alias=$host_alias
11186 # An echo program that does not interpret backslashes.
11191 AR_FLAGS=$lt_AR_FLAGS
11196 # A language-specific compiler.
11199 # Is the compiler the GNU C compiler?
11205 # The linker used to build libraries.
11208 # Whether we need hard or soft links.
11211 # A BSD-compatible nm program.
11214 # A symbol stripping program
11217 # Used to examine libraries when file_magic_cmd begins "file"
11218 MAGIC_CMD=$MAGIC_CMD
11220 # Used on cygwin: DLL creation program.
11223 # Used on cygwin: object dumper.
11226 # Used on cygwin: assembler.
11229 # The name of the directory that contains temporary libtool files.
11232 # How to create reloadable object files.
11233 reload_flag=$lt_reload_flag
11234 reload_cmds=$lt_reload_cmds
11236 # How to pass a linker flag through the compiler.
11237 wl=$lt_lt_prog_compiler_wl
11239 # Object file suffix (normally "o").
11240 objext="$ac_objext"
11242 # Old archive suffix (normally "a").
11245 # Shared library suffix (normally ".so").
11246 shrext_cmds='$shrext_cmds'
11248 # Executable file suffix (normally "").
11251 # Additional compiler flags for building library objects.
11252 pic_flag=$lt_lt_prog_compiler_pic
11255 # What is the maximum length of a command?
11256 max_cmd_len=$lt_cv_sys_max_cmd_len
11258 # Does compiler simultaneously support -c and -o options?
11259 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11261 # Must we lock files when doing compilation ?
11262 need_locks=$lt_need_locks
11264 # Do we need the lib prefix for modules?
11265 need_lib_prefix=$need_lib_prefix
11267 # Do we need a version for libraries?
11268 need_version=$need_version
11270 # Whether dlopen is supported.
11271 dlopen_support=$enable_dlopen
11273 # Whether dlopen of programs is supported.
11274 dlopen_self=$enable_dlopen_self
11276 # Whether dlopen of statically linked programs is supported.
11277 dlopen_self_static=$enable_dlopen_self_static
11279 # Compiler flag to prevent dynamic linking.
11280 link_static_flag=$lt_lt_prog_compiler_static
11282 # Compiler flag to turn off builtin functions.
11283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11285 # Compiler flag to allow reflexive dlopens.
11286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11288 # Compiler flag to generate shared objects directly from archives.
11289 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11291 # Compiler flag to generate thread-safe objects.
11292 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11294 # Library versioning type.
11295 version_type=$version_type
11297 # Format of library name prefix.
11298 libname_spec=$lt_libname_spec
11300 # List of archive names. First name is the real one, the rest are links.
11301 # The last name is the one that the linker finds with -lNAME.
11302 library_names_spec=$lt_library_names_spec
11304 # The coded name of the library, if different from the real name.
11305 soname_spec=$lt_soname_spec
11307 # Commands used to build and install an old-style archive.
11309 old_archive_cmds=$lt_old_archive_cmds
11310 old_postinstall_cmds=$lt_old_postinstall_cmds
11311 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11313 # Create an old-style archive from a shared archive.
11314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11316 # Create a temporary old-style archive to link instead of a shared archive.
11317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11319 # Commands used to build and install a shared archive.
11320 archive_cmds=$lt_archive_cmds
11321 archive_expsym_cmds=$lt_archive_expsym_cmds
11322 postinstall_cmds=$lt_postinstall_cmds
11323 postuninstall_cmds=$lt_postuninstall_cmds
11325 # Commands used to build a loadable module (assumed same as above if empty)
11326 module_cmds=$lt_module_cmds
11327 module_expsym_cmds=$lt_module_expsym_cmds
11329 # Commands to strip libraries.
11330 old_striplib=$lt_old_striplib
11331 striplib=$lt_striplib
11333 # Dependencies to place before the objects being linked to create a
11335 predep_objects=$lt_predep_objects
11337 # Dependencies to place after the objects being linked to create a
11339 postdep_objects=$lt_postdep_objects
11341 # Dependencies to place before the objects being linked to create a
11343 predeps=$lt_predeps
11345 # Dependencies to place after the objects being linked to create a
11347 postdeps=$lt_postdeps
11349 # The library search path used internally by the compiler when linking
11350 # a shared library.
11351 compiler_lib_search_path=$lt_compiler_lib_search_path
11353 # Method to check whether dependent libraries are shared objects.
11354 deplibs_check_method=$lt_deplibs_check_method
11356 # Command to use when deplibs_check_method == file_magic.
11357 file_magic_cmd=$lt_file_magic_cmd
11359 # Flag that allows shared libraries with undefined symbols to be built.
11360 allow_undefined_flag=$lt_allow_undefined_flag
11362 # Flag that forces no undefined symbols.
11363 no_undefined_flag=$lt_no_undefined_flag
11365 # Commands used to finish a libtool library installation in a directory.
11366 finish_cmds=$lt_finish_cmds
11368 # Same as above, but a single script fragment to be evaled but not shown.
11369 finish_eval=$lt_finish_eval
11371 # Take the output of nm and produce a listing of raw symbols and C names.
11372 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11374 # Transform the output of nm in a proper C declaration
11375 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11377 # Transform the output of nm in a C name address pair
11378 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11380 # This is the shared library runtime path variable.
11381 runpath_var=$runpath_var
11383 # This is the shared library path variable.
11384 shlibpath_var=$shlibpath_var
11386 # Is shlibpath searched before the hard-coded library search path?
11387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11389 # How to hardcode a shared library path into an executable.
11390 hardcode_action=$hardcode_action
11392 # Whether we should hardcode library paths into libraries.
11393 hardcode_into_libs=$hardcode_into_libs
11395 # Flag to hardcode \$libdir into a binary during linking.
11396 # This must work even if \$libdir does not exist.
11397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11399 # If ld is used when linking, flag to hardcode \$libdir into
11400 # a binary during linking. This must work even if \$libdir does
11402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11404 # Whether we need a single -rpath flag with a separated argument.
11405 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11407 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11408 # resulting binary.
11409 hardcode_direct=$hardcode_direct
11411 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11412 # resulting binary.
11413 hardcode_minus_L=$hardcode_minus_L
11415 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11416 # the resulting binary.
11417 hardcode_shlibpath_var=$hardcode_shlibpath_var
11419 # Set to yes if building a shared library automatically hardcodes DIR into the library
11420 # and all subsequent libraries and executables linked against it.
11421 hardcode_automatic=$hardcode_automatic
11423 # Variables whose values should be saved in libtool wrapper scripts and
11424 # restored at relink time.
11425 variables_saved_for_relink="$variables_saved_for_relink"
11427 # Whether libtool must link a program against all its dependency libraries.
11428 link_all_deplibs=$link_all_deplibs
11430 # Compile-time system search path for libraries
11431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11433 # Run-time system search path for libraries
11434 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11436 # Fix the shell variable \$srcfile for the compiler.
11437 fix_srcfile_path="$fix_srcfile_path"
11439 # Set to yes if exported symbols are required.
11440 always_export_symbols=$always_export_symbols
11442 # The commands to list exported symbols.
11443 export_symbols_cmds=$lt_export_symbols_cmds
11445 # The commands to extract the exported symbol list from a shared archive.
11446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11448 # Symbols that should not be listed in the preloaded symbols.
11449 exclude_expsyms=$lt_exclude_expsyms
11451 # Symbols that must always be exported.
11452 include_expsyms=$lt_include_expsyms
11454 # ### END LIBTOOL CONFIG
11461 cat <<\EOF >> "$cfgfile"
11463 # AIX sometimes has problems with the GCC collect2 program. For some
11464 # reason, if we set the COLLECT_NAMES environment variable, the problems
11465 # vanish in a puff of smoke.
11466 if test "X${COLLECT_NAMES+set}" != Xset; then
11468 export COLLECT_NAMES
11474 # We use sed instead of cat because bash on DJGPP gets confused if
11475 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11476 # text mode, it properly converts lines to CR/LF. This bash problem
11477 # is reportedly fixed, but why not run on old versions too?
11478 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11480 mv -f "$cfgfile" "$ofile" || \
11481 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11485 # If there is no Makefile yet, we rely on a make rule to execute
11486 # `config.status --recheck' to rerun these tests and create the
11487 # libtool script then.
11488 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11489 if test -f "$ltmain_in"; then
11490 test -f Makefile && make "$ltmain"
11496 ac_cpp='$CPP $CPPFLAGS'
11497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11504 # Check whether --with-tags or --without-tags was given.
11505 if test "${with_tags+set}" = set; then
11506 withval="$with_tags"
11507 tagnames="$withval"
11510 if test -f "$ltmain" && test -n "$tagnames"; then
11511 if test ! -f "${ofile}"; then
11512 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11513 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11516 if test -z "$LTCC"; then
11517 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11518 if test -z "$LTCC"; then
11519 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11520 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11523 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11527 # Extract list of available tagged configurations in $ofile.
11528 # Note that this assumes the entire list is on one line.
11529 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11532 for tagname in $tagnames; do
11534 # Check whether tagname contains only valid characters
11535 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11537 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11538 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11539 { (exit 1); exit 1; }; }
11543 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11545 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11546 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11547 { (exit 1); exit 1; }; }
11550 # Update the list of available tags.
11551 if test -n "$tagname"; then
11552 echo appending configuration tag \"$tagname\" to $ofile
11556 if test -n "$CXX" && test "X$CXX" != "Xno"; then
11558 ac_cpp='$CXXCPP $CPPFLAGS'
11559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11566 archive_cmds_need_lc_CXX=no
11567 allow_undefined_flag_CXX=
11568 always_export_symbols_CXX=no
11569 archive_expsym_cmds_CXX=
11570 export_dynamic_flag_spec_CXX=
11571 hardcode_direct_CXX=no
11572 hardcode_libdir_flag_spec_CXX=
11573 hardcode_libdir_flag_spec_ld_CXX=
11574 hardcode_libdir_separator_CXX=
11575 hardcode_minus_L_CXX=no
11576 hardcode_automatic_CXX=no
11578 module_expsym_cmds_CXX=
11579 link_all_deplibs_CXX=unknown
11580 old_archive_cmds_CXX=$old_archive_cmds
11581 no_undefined_flag_CXX=
11582 whole_archive_flag_spec_CXX=
11583 enable_shared_with_static_runtimes_CXX=no
11585 # Dependencies to place before and after the object being linked:
11586 predep_objects_CXX=
11587 postdep_objects_CXX=
11590 compiler_lib_search_path_CXX=
11592 # Source file extension for C++ test sources.
11595 # Object file extension for compiled C++ test sources.
11599 # Code to be used in simple compile tests
11600 lt_simple_compile_test_code="int some_variable = 0;\n"
11602 # Code to be used in simple link tests
11603 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11607 # If no C compiler was specified, use CC.
11610 # Allow CC to be a program name with arguments.
11614 # Allow CC to be a program name with arguments.
11619 lt_save_with_gnu_ld=$with_gnu_ld
11620 lt_save_path_LD=$lt_cv_path_LD
11621 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11622 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11624 unset lt_cv_prog_gnu_ld
11626 if test -n "${lt_cv_path_LDCXX+set}"; then
11627 lt_cv_path_LD=$lt_cv_path_LDCXX
11629 unset lt_cv_path_LD
11631 test -z "${LDCXX+set}" || LD=$LDCXX
11635 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11637 # We don't want -fno-exception wen compiling C++ code, so set the
11638 # no_builtin_flag separately
11639 if test "$GXX" = yes; then
11640 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11642 lt_prog_compiler_no_builtin_flag_CXX=
11645 if test "$GXX" = yes; then
11646 # Set up default GNU C++ configuration
11649 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11650 if test "${with_gnu_ld+set}" = set; then
11651 withval="$with_gnu_ld"
11652 test "$withval" = no || with_gnu_ld=yes
11657 if test "$GCC" = yes; then
11658 # Check if gcc -print-prog-name=ld gives a path.
11659 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11660 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11663 # gcc leaves a trailing carriage return which upsets mingw
11664 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11666 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11669 # Accept absolute paths.
11671 re_direlt='/[^/][^/]*/\.\./'
11672 # Canonicalize the pathname of ld
11673 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11674 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11675 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11677 test -z "$LD" && LD="$ac_prog"
11680 # If it fails, then pretend we aren't using GCC.
11684 # If it is relative, then search for the first ld in PATH.
11685 with_gnu_ld=unknown
11688 elif test "$with_gnu_ld" = yes; then
11689 echo "$as_me:$LINENO: checking for GNU ld" >&5
11690 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11692 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11693 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11695 if test "${lt_cv_path_LD+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 if test -z "$LD"; then
11699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11700 for ac_dir in $PATH; do
11702 test -z "$ac_dir" && ac_dir=.
11703 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11704 lt_cv_path_LD="$ac_dir/$ac_prog"
11705 # Check to see if the program is GNU ld. I'd rather use --version,
11706 # but apparently some GNU ld's only accept -v.
11707 # Break only if it was the GNU/non-GNU ld that we prefer.
11708 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11709 *GNU* | *'with BFD'*)
11710 test "$with_gnu_ld" != no && break
11713 test "$with_gnu_ld" != yes && break
11720 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11724 LD="$lt_cv_path_LD"
11725 if test -n "$LD"; then
11726 echo "$as_me:$LINENO: result: $LD" >&5
11727 echo "${ECHO_T}$LD" >&6
11729 echo "$as_me:$LINENO: result: no" >&5
11730 echo "${ECHO_T}no" >&6
11732 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11733 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11734 { (exit 1); exit 1; }; }
11735 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11736 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11737 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11741 case `$LD -v 2>&1 </dev/null` in
11742 *GNU* | *'with BFD'*)
11743 lt_cv_prog_gnu_ld=yes
11746 lt_cv_prog_gnu_ld=no
11750 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11751 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11752 with_gnu_ld=$lt_cv_prog_gnu_ld
11756 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11757 # archiving commands below assume that GNU ld is being used.
11758 if test "$with_gnu_ld" = yes; then
11759 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11760 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'
11762 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11763 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11765 # If archive_cmds runs LD, not CC, wlarc should be empty
11766 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11767 # investigate it a little bit more. (MM)
11770 # ancient GNU ld didn't support --whole-archive et. al.
11771 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11772 grep 'no-whole-archive' > /dev/null; then
11773 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11775 whole_archive_flag_spec_CXX=
11781 # A generic and very simple default shared library creation
11782 # command for GNU C++ for the case where it uses the native
11783 # linker, instead of GNU ld. If possible, this setting should
11784 # overridden to take advantage of the native linker features on
11785 # the platform it is being used on.
11786 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11789 # Commands to make compiler produce verbose output that lists
11790 # what "hidden" libraries, object files and flags are used when
11791 # linking a shared library.
11792 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11800 # PORTME: fill in a description of your system's C++ link characteristics
11801 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11802 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11806 # FIXME: insert proper C++ library support
11810 if test "$host_cpu" = ia64; then
11811 # On IA64, the linker does run time linking by default, so we don't
11812 # have to do anything special.
11813 aix_use_runtimelinking=no
11814 exp_sym_flag='-Bexport'
11817 aix_use_runtimelinking=no
11819 # Test if we are trying to use run time linking or normal
11820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11821 # need to do runtime linking.
11822 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11823 for ld_flag in $LDFLAGS; do
11826 aix_use_runtimelinking=yes
11833 exp_sym_flag='-bexport'
11834 no_entry_flag='-bnoentry'
11837 # When large executables or shared objects are built, AIX ld can
11838 # have problems creating the table of contents. If linking a library
11839 # or program results in "error TOC overflow" add -mminimal-toc to
11840 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11841 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11843 archive_cmds_CXX=''
11844 hardcode_direct_CXX=yes
11845 hardcode_libdir_separator_CXX=':'
11846 link_all_deplibs_CXX=yes
11848 if test "$GXX" = yes; then
11849 case $host_os in aix4.012|aix4.012.*)
11850 # We only want to do this on AIX 4.2 and lower, the check
11851 # below for broken collect2 doesn't work under 4.3+
11852 collect2name=`${CC} -print-prog-name=collect2`
11853 if test -f "$collect2name" && \
11854 strings "$collect2name" | grep resolve_lib_name >/dev/null
11856 # We have reworked collect2
11857 hardcode_direct_CXX=yes
11859 # We have old collect2
11860 hardcode_direct_CXX=unsupported
11861 # It fails to find uninstalled libraries when the uninstalled
11862 # path is not listed in the libpath. Setting hardcode_minus_L
11863 # to unsupported forces relinking
11864 hardcode_minus_L_CXX=yes
11865 hardcode_libdir_flag_spec_CXX='-L$libdir'
11866 hardcode_libdir_separator_CXX=
11869 shared_flag='-shared'
11872 if test "$host_cpu" = ia64; then
11873 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11874 # chokes on -Wl,-G. The following line is correct:
11877 if test "$aix_use_runtimelinking" = yes; then
11878 shared_flag='${wl}-G'
11880 shared_flag='${wl}-bM:SRE'
11885 # It seems that -bexpall does not export symbols beginning with
11886 # underscore (_), so it is better to generate a list of symbols to export.
11887 always_export_symbols_CXX=yes
11888 if test "$aix_use_runtimelinking" = yes; then
11889 # Warning - without using the other runtime loading flags (-brtl),
11890 # -berok will link without error, but may produce a broken library.
11891 allow_undefined_flag_CXX='-berok'
11892 # Determine the default libpath from the value encoded in an empty executable.
11893 cat >conftest.$ac_ext <<_ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910 (eval $ac_link) 2>conftest.er1
11912 grep -v '^ *+' conftest.er1 >conftest.err
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_cxx_werror_flag"
11918 || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11933 # Check for a 64-bit object if we didn't find anything.
11934 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; }
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11941 rm -f conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11945 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11947 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"
11949 if test "$host_cpu" = ia64; then
11950 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11951 allow_undefined_flag_CXX="-z nodefs"
11952 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"
11954 # Determine the default libpath from the value encoded in an empty executable.
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11972 (eval $ac_link) 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } &&
11979 { ac_try='test -z "$ac_cxx_werror_flag"
11980 || test ! -s conftest.err'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest$ac_exeext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11995 # Check for a 64-bit object if we didn't find anything.
11996 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; }
11999 echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12003 rm -f conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12007 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12008 # Warning - without using the other run time loading flags,
12009 # -berok will link without error, but may produce a broken library.
12010 no_undefined_flag_CXX=' ${wl}-bernotok'
12011 allow_undefined_flag_CXX=' ${wl}-berok'
12012 # -bexpall does not export symbols beginning with underscore (_)
12013 always_export_symbols_CXX=yes
12014 # Exported symbols can be pulled into shared objects from archives
12015 whole_archive_flag_spec_CXX=' '
12016 archive_cmds_need_lc_CXX=yes
12017 # This is similar to how AIX traditionally builds it's shared libraries.
12018 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'
12023 case $cc_basename in
12025 # FIXME: insert proper C++ library support
12031 cygwin* | mingw* | pw32*)
12032 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12033 # as there is no search path for DLLs.
12034 hardcode_libdir_flag_spec_CXX='-L$libdir'
12035 allow_undefined_flag_CXX=unsupported
12036 always_export_symbols_CXX=no
12037 enable_shared_with_static_runtimes_CXX=yes
12039 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12040 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'
12041 # If the export-symbols file already is a .def file (1st line
12042 # is EXPORTS), use it as is; otherwise, prepend...
12043 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12044 cp $export_symbols $output_objdir/$soname.def;
12046 echo EXPORTS > $output_objdir/$soname.def;
12047 cat $export_symbols >> $output_objdir/$soname.def;
12049 $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'
12055 darwin* | rhapsody*)
12056 if test "$GXX" = yes; then
12057 archive_cmds_need_lc_CXX=no
12059 rhapsody* | darwin1.[012])
12060 allow_undefined_flag_CXX='-undefined suppress'
12063 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12064 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12066 case ${MACOSX_DEPLOYMENT_TARGET} in
12068 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12071 allow_undefined_flag_CXX='-undefined dynamic_lookup'
12077 lt_int_apple_cc_single_mod=no
12078 output_verbose_link_cmd='echo'
12079 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12080 lt_int_apple_cc_single_mod=yes
12082 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12083 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12085 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'
12087 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12089 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12090 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12091 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}'
12093 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}'
12095 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}'
12096 hardcode_direct_CXX=no
12097 hardcode_automatic_CXX=yes
12098 hardcode_shlibpath_var_CXX=unsupported
12099 whole_archive_flag_spec_CXX='-all_load $convenience'
12100 link_all_deplibs_CXX=yes
12107 case $cc_basename in
12109 # FIXME: insert proper C++ library support
12113 # Green Hills C++ Compiler
12114 # FIXME: insert proper C++ library support
12118 # FIXME: insert proper C++ library support
12124 # C++ shared libraries reported to be fairly broken before switch to ELF
12128 archive_cmds_need_lc_CXX=no
12130 freebsd* | kfreebsd*-gnu)
12131 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12138 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12139 hardcode_libdir_separator_CXX=:
12140 export_dynamic_flag_spec_CXX='${wl}-E'
12141 hardcode_direct_CXX=yes
12142 hardcode_minus_L_CXX=yes # Not in the search PATH,
12143 # but as the default
12144 # location of the library.
12146 case $cc_basename in
12148 # FIXME: insert proper C++ library support
12152 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'
12153 # Commands to make compiler produce verbose output that lists
12154 # what "hidden" libraries, object files and flags are used when
12155 # linking a shared library.
12157 # There doesn't appear to be a way to prevent this compiler from
12158 # explicitly linking system object files so we need to strip them
12159 # from the output so that they don't get included in the library
12161 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'
12164 if test "$GXX" = yes; then
12165 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'
12167 # FIXME: insert proper C++ library support
12174 if test $with_gnu_ld = no; then
12175 case "$host_cpu" in
12177 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12178 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12179 hardcode_libdir_separator_CXX=:
12182 hardcode_libdir_flag_spec_CXX='-L$libdir'
12185 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12186 hardcode_libdir_separator_CXX=:
12187 export_dynamic_flag_spec_CXX='${wl}-E'
12191 case "$host_cpu" in
12193 hardcode_direct_CXX=no
12194 hardcode_shlibpath_var_CXX=no
12197 hardcode_direct_CXX=no
12198 hardcode_shlibpath_var_CXX=no
12199 hardcode_minus_L_CXX=yes # Not in the search PATH,
12200 # but as the default
12201 # location of the library.
12204 hardcode_direct_CXX=yes
12205 hardcode_minus_L_CXX=yes # Not in the search PATH,
12206 # but as the default
12207 # location of the library.
12211 case $cc_basename in
12213 # FIXME: insert proper C++ library support
12217 case "$host_cpu" in
12219 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12222 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12225 # Commands to make compiler produce verbose output that lists
12226 # what "hidden" libraries, object files and flags are used when
12227 # linking a shared library.
12229 # There doesn't appear to be a way to prevent this compiler from
12230 # explicitly linking system object files so we need to strip them
12231 # from the output so that they don't get included in the library
12233 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'
12236 if test "$GXX" = yes; then
12237 if test $with_gnu_ld = no; then
12238 case "$host_cpu" in
12240 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12243 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'
12248 # FIXME: insert proper C++ library support
12255 case $cc_basename in
12258 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'
12260 # Archives containing C++ object files must be created using
12261 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12262 # necessary to make sure instantiated templates are included
12264 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12267 if test "$GXX" = yes; then
12268 if test "$with_gnu_ld" = no; then
12269 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'
12271 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'
12274 link_all_deplibs_CXX=yes
12277 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12278 hardcode_libdir_separator_CXX=:
12281 case $cc_basename in
12283 # Kuck and Associates, Inc. (KAI) C++ Compiler
12285 # KCC will only create a shared library if the output file
12286 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12287 # to its proper name (with version) after linking.
12288 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'
12289 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'
12290 # Commands to make compiler produce verbose output that lists
12291 # what "hidden" libraries, object files and flags are used when
12292 # linking a shared library.
12294 # There doesn't appear to be a way to prevent this compiler from
12295 # explicitly linking system object files so we need to strip them
12296 # from the output so that they don't get included in the library
12298 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'
12300 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12301 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12303 # Archives containing C++ object files must be created using
12304 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12305 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12310 archive_cmds_need_lc_CXX=no
12311 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12312 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'
12313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12319 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12320 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'
12322 runpath_var=LD_RUN_PATH
12323 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12324 hardcode_libdir_separator_CXX=:
12326 # Commands to make compiler produce verbose output that lists
12327 # what "hidden" libraries, object files and flags are used when
12328 # linking a shared library.
12330 # There doesn't appear to be a way to prevent this compiler from
12331 # explicitly linking system object files so we need to strip them
12332 # from the output so that they don't get included in the library
12334 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'
12339 # FIXME: insert proper C++ library support
12343 # FIXME: insert proper C++ library support
12347 case $cc_basename in
12349 # FIXME: insert proper C++ library support
12353 # FIXME: insert proper C++ library support
12359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12360 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12362 hardcode_libdir_flag_spec_CXX='-R$libdir'
12363 hardcode_direct_CXX=yes
12364 hardcode_shlibpath_var_CXX=no
12366 # Workaround some broken pre-1.5 toolchains
12367 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12370 case $cc_basename in
12372 # Kuck and Associates, Inc. (KAI) C++ Compiler
12374 # KCC will only create a shared library if the output file
12375 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12376 # to its proper name (with version) after linking.
12377 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'
12379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12380 hardcode_libdir_separator_CXX=:
12382 # Archives containing C++ object files must be created using
12383 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12384 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12388 # Rational C++ 2.4.1
12389 # FIXME: insert proper C++ library support
12393 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12394 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'
12396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12397 hardcode_libdir_separator_CXX=:
12399 # Commands to make compiler produce verbose output that lists
12400 # what "hidden" libraries, object files and flags are used when
12401 # linking a shared library.
12403 # There doesn't appear to be a way to prevent this compiler from
12404 # explicitly linking system object files so we need to strip them
12405 # from the output so that they don't get included in the library
12407 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'
12410 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12411 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12412 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'
12414 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12415 hardcode_libdir_separator_CXX=:
12417 # Commands to make compiler produce verbose output that lists
12418 # what "hidden" libraries, object files and flags are used when
12419 # linking a shared library.
12420 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12423 # FIXME: insert proper C++ library support
12430 case $cc_basename in
12432 # Kuck and Associates, Inc. (KAI) C++ Compiler
12434 # KCC will only create a shared library if the output file
12435 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12436 # to its proper name (with version) after linking.
12437 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'
12439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12440 hardcode_libdir_separator_CXX=:
12442 # Archives containing C++ object files must be created using
12443 # the KAI C++ compiler.
12444 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12447 # Rational C++ 2.4.1
12448 # FIXME: insert proper C++ library support
12452 allow_undefined_flag_CXX=' -expect_unresolved \*'
12453 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'
12454 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12455 echo "-hidden">> $lib.exp~
12456 $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~
12459 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12460 hardcode_libdir_separator_CXX=:
12462 # Commands to make compiler produce verbose output that lists
12463 # what "hidden" libraries, object files and flags are used when
12464 # linking a shared library.
12466 # There doesn't appear to be a way to prevent this compiler from
12467 # explicitly linking system object files so we need to strip them
12468 # from the output so that they don't get included in the library
12470 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'
12473 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12474 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12475 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'
12477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12478 hardcode_libdir_separator_CXX=:
12480 # Commands to make compiler produce verbose output that lists
12481 # what "hidden" libraries, object files and flags are used when
12482 # linking a shared library.
12483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12486 # FIXME: insert proper C++ library support
12493 # FIXME: insert proper C++ library support
12497 archive_cmds_need_lc_CXX=no
12498 case $cc_basename in
12500 # FIXME: insert proper C++ library support
12504 # FIXME: insert proper C++ library support
12510 case $cc_basename in
12513 # FIXME: insert proper C++ library support
12518 # FIXME: insert proper C++ library support
12522 # FIXME: insert proper C++ library support
12528 case $cc_basename in
12530 # Sun C++ 4.2, 5.x and Centerline C++
12531 no_undefined_flag_CXX=' -zdefs'
12532 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12533 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12534 $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'
12536 hardcode_libdir_flag_spec_CXX='-R$libdir'
12537 hardcode_shlibpath_var_CXX=no
12539 solaris2.0-5 | solaris2.0-5.*) ;;
12541 # The C++ compiler is used as linker so we must use $wl
12542 # flag to pass the commands to the underlying system
12544 # Supported since Solaris 2.6 (maybe 2.5.1?)
12545 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12548 link_all_deplibs_CXX=yes
12550 # Commands to make compiler produce verbose output that lists
12551 # what "hidden" libraries, object files and flags are used when
12552 # linking a shared library.
12554 # There doesn't appear to be a way to prevent this compiler from
12555 # explicitly linking system object files so we need to strip them
12556 # from the output so that they don't get included in the library
12558 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'
12560 # Archives containing C++ object files must be created using
12561 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12562 # necessary to make sure instantiated templates are included
12564 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12567 # Green Hills C++ Compiler
12568 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12570 # The C++ compiler must be used to create the archive.
12571 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12574 # GNU C++ compiler with Solaris linker
12575 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12576 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12577 if $CC --version | grep -v '^2\.7' > /dev/null; then
12578 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12579 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12580 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12582 # Commands to make compiler produce verbose output that lists
12583 # what "hidden" libraries, object files and flags are used when
12584 # linking a shared library.
12585 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12587 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12589 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12590 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12591 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12593 # Commands to make compiler produce verbose output that lists
12594 # what "hidden" libraries, object files and flags are used when
12595 # linking a shared library.
12596 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12599 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12604 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12605 archive_cmds_need_lc_CXX=no
12608 case $cc_basename in
12610 # NonStop-UX NCC 3.20
12611 # FIXME: insert proper C++ library support
12615 # FIXME: insert proper C++ library support
12621 # FIXME: insert proper C++ library support
12625 # FIXME: insert proper C++ library support
12629 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12630 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12631 test "$ld_shlibs_CXX" = no && can_build_shared=no
12637 ## There is no encapsulation within the following macros, do not change
12638 ## the running order or otherwise move them around unless you know exactly
12639 ## what you are doing...
12641 cat > conftest.$ac_ext <<EOF
12645 Foo (void) { a = 0; }
12651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652 (eval $ac_compile) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; then
12656 # Parse the compiler output and extract the necessary
12657 # objects, libraries and library flags.
12659 # Sentinel used to keep track of whether or not we are before
12660 # the conftest object file.
12661 pre_test_object_deps_done=no
12663 # The `*' in the case matches for architectures that use `case' in
12664 # $output_verbose_cmd can trigger glob expansion during the loop
12665 # eval without this substitution.
12666 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12668 for p in `eval $output_verbose_link_cmd`; do
12672 # Some compilers place space between "-{L,R}" and the path.
12673 # Remove the space.
12674 if test $p = "-L" \
12675 || test $p = "-R"; then
12682 if test "$pre_test_object_deps_done" = no; then
12685 # Internal compiler library paths should come after those
12686 # provided the user. The postdeps already come after the
12687 # user supplied libs so there is no need to process them.
12688 if test -z "$compiler_lib_search_path_CXX"; then
12689 compiler_lib_search_path_CXX="${prev}${p}"
12691 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12694 # The "-l" case would never come before the object being
12695 # linked, so don't bother handling this case.
12698 if test -z "$postdeps_CXX"; then
12699 postdeps_CXX="${prev}${p}"
12701 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12707 # This assumes that the test object file only shows up
12708 # once in the compiler output.
12709 if test "$p" = "conftest.$objext"; then
12710 pre_test_object_deps_done=yes
12714 if test "$pre_test_object_deps_done" = no; then
12715 if test -z "$predep_objects_CXX"; then
12716 predep_objects_CXX="$p"
12718 predep_objects_CXX="$predep_objects_CXX $p"
12721 if test -z "$postdep_objects_CXX"; then
12722 postdep_objects_CXX="$p"
12724 postdep_objects_CXX="$postdep_objects_CXX $p"
12729 *) ;; # Ignore the rest.
12737 echo "libtool.m4: error: problem compiling CXX test program"
12740 $rm -f confest.$objext
12742 case " $postdeps_CXX " in
12743 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12746 lt_prog_compiler_wl_CXX=
12747 lt_prog_compiler_pic_CXX=
12748 lt_prog_compiler_static_CXX=
12750 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12751 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12753 # C++ specific cases for pic, static, wl, etc.
12754 if test "$GXX" = yes; then
12755 lt_prog_compiler_wl_CXX='-Wl,'
12756 lt_prog_compiler_static_CXX='-static'
12760 # All AIX code is PIC.
12761 if test "$host_cpu" = ia64; then
12762 # AIX 5 now supports IA64 processor
12763 lt_prog_compiler_static_CXX='-Bstatic'
12767 # FIXME: we need at least 68020 code to build shared libraries, but
12768 # adding the `-m68020' flag to GCC prevents building anything better,
12770 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12772 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12773 # PIC is the default for these OSes.
12775 mingw* | os2* | pw32*)
12776 # This hack is so that the source file can tell whether it is being
12777 # built for inclusion in a dll (and should export symbols for example).
12778 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12780 darwin* | rhapsody*)
12781 # PIC is the default on this platform
12782 # Common symbols not allowed in MH_DYLIB files
12783 lt_prog_compiler_pic_CXX='-fno-common'
12786 # DJGPP does not support shared libraries at all
12787 lt_prog_compiler_pic_CXX=
12790 if test -d /usr/nec; then
12791 lt_prog_compiler_pic_CXX=-Kconform_pic
12795 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12796 # not for PA HP-UX.
12797 case "$host_cpu" in
12801 lt_prog_compiler_pic_CXX='-fPIC'
12806 lt_prog_compiler_pic_CXX='-fPIC'
12812 # All AIX code is PIC.
12813 if test "$host_cpu" = ia64; then
12814 # AIX 5 now supports IA64 processor
12815 lt_prog_compiler_static_CXX='-Bstatic'
12817 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12821 case $cc_basename in
12823 # Green Hills C++ Compiler
12824 # _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"
12829 case $cc_basename in
12831 lt_prog_compiler_pic_CXX='-KPIC'
12834 # Green Hills C++ Compiler
12835 lt_prog_compiler_pic_CXX='-pic'
12841 freebsd* | kfreebsd*-gnu)
12842 # FreeBSD uses GNU C++
12844 hpux9* | hpux10* | hpux11*)
12845 case $cc_basename in
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 if test "$host_cpu" != ia64; then
12850 lt_prog_compiler_pic_CXX='+Z'
12854 lt_prog_compiler_wl_CXX='-Wl,'
12855 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12856 case "$host_cpu" in
12861 lt_prog_compiler_pic_CXX='+Z'
12869 irix5* | irix6* | nonstopux*)
12870 case $cc_basename in
12872 lt_prog_compiler_wl_CXX='-Wl,'
12873 lt_prog_compiler_static_CXX='-non_shared'
12874 # CC pic flag -KPIC is the default.
12881 case $cc_basename in
12884 lt_prog_compiler_wl_CXX='--backend -Wl,'
12885 lt_prog_compiler_pic_CXX='-fPIC'
12889 lt_prog_compiler_wl_CXX='-Wl,'
12890 lt_prog_compiler_pic_CXX='-KPIC'
12891 lt_prog_compiler_static_CXX='-static'
12895 # Make sure the PIC flag is empty. It appears that all Alpha
12896 # Linux and Compaq Tru64 Unix objects are PIC.
12897 lt_prog_compiler_pic_CXX=
12898 lt_prog_compiler_static_CXX='-non_shared'
12909 case $cc_basename in
12911 lt_prog_compiler_pic_CXX='-W c,exportall'
12919 osf3* | osf4* | osf5*)
12920 case $cc_basename in
12922 lt_prog_compiler_wl_CXX='--backend -Wl,'
12925 # Rational C++ 2.4.1
12926 lt_prog_compiler_pic_CXX='-pic'
12929 # Digital/Compaq C++
12930 lt_prog_compiler_wl_CXX='-Wl,'
12931 # Make sure the PIC flag is empty. It appears that all Alpha
12932 # Linux and Compaq Tru64 Unix objects are PIC.
12933 lt_prog_compiler_pic_CXX=
12934 lt_prog_compiler_static_CXX='-non_shared'
12943 case $cc_basename in
12945 lt_prog_compiler_pic_CXX='-fPIC'
12952 case $cc_basename in
12954 # Sun C++ 4.2, 5.x and Centerline C++
12955 lt_prog_compiler_pic_CXX='-KPIC'
12956 lt_prog_compiler_static_CXX='-Bstatic'
12957 lt_prog_compiler_wl_CXX='-Qoption ld '
12960 # Green Hills C++ Compiler
12961 lt_prog_compiler_pic_CXX='-PIC'
12968 case $cc_basename in
12971 lt_prog_compiler_pic_CXX='-pic'
12972 lt_prog_compiler_static_CXX='-Bstatic'
12976 lt_prog_compiler_pic_CXX='-pic'
12983 case $cc_basename in
12985 # NonStop-UX NCC 3.20
12986 lt_prog_compiler_pic_CXX='-KPIC'
12997 lt_prog_compiler_can_build_shared_CXX=no
13002 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13003 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13006 # Check to make sure the PIC flag actually works.
13008 if test -n "$lt_prog_compiler_pic_CXX"; then
13010 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13011 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13012 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 lt_prog_compiler_pic_works_CXX=no
13016 ac_outfile=conftest.$ac_objext
13017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13018 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13019 # Insert the option either (1) after the last *FLAGS variable, or
13020 # (2) before a word containing "conftest.", or (3) at the end.
13021 # Note that $ac_compile itself does not contain backslashes and begins
13022 # with a dollar sign (not a hyphen), so the echo should work correctly.
13023 # The option is referenced via a variable to avoid confusing sed.
13024 lt_compile=`echo "$ac_compile" | $SED \
13025 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13027 -e 's:$: $lt_compiler_flag:'`
13028 (eval echo "\"\$as_me:13028: $lt_compile\"" >&5)
13029 (eval "$lt_compile" 2>conftest.err)
13031 cat conftest.err >&5
13032 echo "$as_me:13032: \$? = $ac_status" >&5
13033 if (exit $ac_status) && test -s "$ac_outfile"; then
13034 # The compiler can only warn and ignore the option if not recognized
13035 # So say no if there are warnings
13036 if test ! -s conftest.err; then
13037 lt_prog_compiler_pic_works_CXX=yes
13043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13044 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13046 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13047 case $lt_prog_compiler_pic_CXX in
13049 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13052 lt_prog_compiler_pic_CXX=
13053 lt_prog_compiler_can_build_shared_CXX=no
13058 # For platforms which do not support PIC, -DPIC is meaningless:
13060 lt_prog_compiler_pic_CXX=
13063 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13067 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13068 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13069 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 lt_cv_prog_compiler_c_o_CXX=no
13073 $rm -r conftest 2>/dev/null
13077 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13079 lt_compiler_flag="-o out/conftest2.$ac_objext"
13080 # Insert the option either (1) after the last *FLAGS variable, or
13081 # (2) before a word containing "conftest.", or (3) at the end.
13082 # Note that $ac_compile itself does not contain backslashes and begins
13083 # with a dollar sign (not a hyphen), so the echo should work correctly.
13084 lt_compile=`echo "$ac_compile" | $SED \
13085 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13087 -e 's:$: $lt_compiler_flag:'`
13088 (eval echo "\"\$as_me:13088: $lt_compile\"" >&5)
13089 (eval "$lt_compile" 2>out/conftest.err)
13091 cat out/conftest.err >&5
13092 echo "$as_me:13092: \$? = $ac_status" >&5
13093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13095 # The compiler can only warn and ignore the option if not recognized
13096 # So say no if there are warnings
13097 if test ! -s out/conftest.err; then
13098 lt_cv_prog_compiler_c_o_CXX=yes
13103 # SGI C++ compiler will create directory out/ii_files/ for
13104 # template instantiation
13105 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13106 $rm out/* && rmdir out
13112 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13113 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13116 hard_links="nottested"
13117 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13118 # do not overwrite the value of need_locks provided by the user
13119 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13120 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13125 ln conftest.a conftest.b 2>&5 || hard_links=no
13126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13127 echo "$as_me:$LINENO: result: $hard_links" >&5
13128 echo "${ECHO_T}$hard_links" >&6
13129 if test "$hard_links" = no; then
13130 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13131 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13138 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13139 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13141 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13144 # If we're using GNU nm, then we don't want the "-C" option.
13145 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13146 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13147 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'
13149 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'
13153 export_symbols_cmds_CXX="$ltdll_cmds"
13156 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13159 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13163 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13164 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13165 test "$ld_shlibs_CXX" = no && can_build_shared=no
13167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13168 if test "$GCC" = yes; then
13169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13173 # Do we need to explicitly link libc?
13175 case "x$archive_cmds_need_lc_CXX" in
13177 # Assume -lc should be added
13178 archive_cmds_need_lc_CXX=yes
13180 if test "$enable_shared" = yes && test "$GCC" = yes; then
13181 case $archive_cmds_CXX in
13183 # FIXME: we may have to deal with multi-command sequences.
13186 # Test whether the compiler implicitly links with -lc since on some
13187 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13188 # to ld, don't add -lc before -lgcc.
13189 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13190 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13195 (eval $ac_compile) 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } 2>conftest.err; then
13201 libobjs=conftest.$ac_objext
13203 wl=$lt_prog_compiler_wl_CXX
13209 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13210 allow_undefined_flag_CXX=
13211 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13212 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }
13217 archive_cmds_need_lc_CXX=no
13219 archive_cmds_need_lc_CXX=yes
13221 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13223 cat conftest.err 1>&5
13226 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13227 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13234 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13235 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13236 library_names_spec=
13237 libname_spec='lib$name'
13241 postuninstall_cmds=
13245 shlibpath_overrides_runpath=unknown
13247 dynamic_linker="$host_os ld.so"
13248 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13249 if test "$GCC" = yes; then
13250 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13251 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13252 # if the path contains ";" then we assume it to be the separator
13253 # otherwise default to the standard path separator (i.e. ":") - it is
13254 # assumed that no part of a normal pathname contains ";" but that should
13255 # okay in the real world where ";" in dirpaths is itself problematic.
13256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13263 need_lib_prefix=unknown
13264 hardcode_into_libs=no
13266 # when you set need_version to no, make sure it does not cause -set_version
13267 # flags to be left without arguments
13268 need_version=unknown
13273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13274 shlibpath_var=LIBPATH
13276 # AIX 3 has no versioning support, so we append a major version to the name.
13277 soname_spec='${libname}${release}${shared_ext}$major'
13284 hardcode_into_libs=yes
13285 if test "$host_cpu" = ia64; then
13286 # AIX 5 supports IA64
13287 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13288 shlibpath_var=LD_LIBRARY_PATH
13290 # With GCC up to 2.95.x, collect2 would create an import file
13291 # for dependence libraries. The import file would start with
13292 # the line `#! .'. This would cause the generated library to
13293 # depend on `.', always an invalid library. This was fixed in
13294 # development snapshots of GCC prior to 3.0.
13296 aix4 | aix4.[01] | aix4.[01].*)
13297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13299 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13302 can_build_shared=no
13306 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13307 # soname into executable. Probably we can add versioning support to
13308 # collect2, so additional links can be useful in future.
13309 if test "$aix_use_runtimelinking" = yes; then
13310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13311 # instead of lib<name>.a to let people know that these are not
13312 # typical AIX shared libraries.
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13315 # We preserve .a as extension for shared libraries through AIX4.2
13316 # and later when we are not doing run time linking.
13317 library_names_spec='${libname}${release}.a $libname.a'
13318 soname_spec='${libname}${release}${shared_ext}$major'
13320 shlibpath_var=LIBPATH
13325 library_names_spec='$libname.ixlibrary $libname.a'
13326 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13327 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'
13331 library_names_spec='${libname}${shared_ext}'
13332 dynamic_linker="$host_os ld.so"
13333 shlibpath_var=LIBRARY_PATH
13339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13340 soname_spec='${libname}${release}${shared_ext}$major'
13341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13342 shlibpath_var=LD_LIBRARY_PATH
13343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13345 # the default ld.so.conf also contains /usr/contrib/lib and
13346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13347 # libtool to hard-code these into programs
13350 cygwin* | mingw* | pw32*)
13351 version_type=windows
13356 case $GCC,$host_os in
13357 yes,cygwin* | yes,mingw* | yes,pw32*)
13358 library_names_spec='$libname.dll.a'
13359 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13360 postinstall_cmds='base_file=`basename \${file}`~
13361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13362 dldir=$destdir/`dirname \$dlpath`~
13363 test -d \$dldir || mkdir -p \$dldir~
13364 $install_prog $dir/$dlname \$dldir/$dlname'
13365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13366 dlpath=$dir/\$dldll~
13368 shlibpath_overrides_runpath=yes
13372 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13377 # MinGW DLLs use traditional 'lib' prefix
13378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13381 # It is most probably a Windows format PATH printed by
13382 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13383 # path with ; separators, and with drive letters. We can handle the
13384 # drive letters (cygwin fileutils understands them), so leave them,
13385 # especially as we might pass files found there to a mingw objdump,
13386 # which wouldn't understand a cygwinified path. Ahh.
13387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13393 # pw32 DLLs use 'pw' prefix rather than 'lib'
13394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13403 dynamic_linker='Win32 ld.exe'
13404 # FIXME: first we should search . and the directory the executable is in
13408 darwin* | rhapsody*)
13409 dynamic_linker="$host_os dyld"
13410 version_type=darwin
13413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13414 soname_spec='${libname}${release}${major}$shared_ext'
13415 shlibpath_overrides_runpath=yes
13416 shlibpath_var=DYLD_LIBRARY_PATH
13417 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13418 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13419 if test "$GCC" = yes; then
13420 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"`
13422 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13432 soname_spec='${libname}${release}${shared_ext}$major'
13433 shlibpath_var=LD_LIBRARY_PATH
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13445 soname_spec='${libname}${release}${shared_ext}$major'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 shlibpath_overrides_runpath=no
13448 hardcode_into_libs=yes
13449 dynamic_linker='GNU ld.so'
13453 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13454 version_type=freebsd-$objformat
13455 case $version_type in
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13466 shlibpath_var=LD_LIBRARY_PATH
13469 shlibpath_overrides_runpath=yes
13471 freebsd3.01* | freebsdelf3.01*)
13472 shlibpath_overrides_runpath=yes
13473 hardcode_into_libs=yes
13476 shlibpath_overrides_runpath=no
13477 hardcode_into_libs=yes
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13487 soname_spec='${libname}${release}${shared_ext}$major'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 hardcode_into_libs=yes
13492 hpux9* | hpux10* | hpux11*)
13493 # Give a soname corresponding to the major version so that dld.sl refuses to
13494 # link against other versions.
13498 case "$host_cpu" in
13501 hardcode_into_libs=yes
13502 dynamic_linker="$host_os dld.so"
13503 shlibpath_var=LD_LIBRARY_PATH
13504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13506 soname_spec='${libname}${release}${shared_ext}$major'
13507 if test "X$HPUX_IA64_MODE" = X32; then
13508 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13510 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13516 hardcode_into_libs=yes
13517 dynamic_linker="$host_os dld.sl"
13518 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521 soname_spec='${libname}${release}${shared_ext}$major'
13522 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13527 dynamic_linker="$host_os dld.sl"
13528 shlibpath_var=SHLIB_PATH
13529 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531 soname_spec='${libname}${release}${shared_ext}$major'
13534 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13535 postinstall_cmds='chmod 555 $lib'
13538 irix5* | irix6* | nonstopux*)
13540 nonstopux*) version_type=nonstopux ;;
13542 if test "$lt_cv_prog_gnu_ld" = yes; then
13550 soname_spec='${libname}${release}${shared_ext}$major'
13551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13553 irix5* | nonstopux*)
13554 libsuff= shlibsuff=
13557 case $LD in # libtool.m4 will add one of these switches to LD
13558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13559 libsuff= shlibsuff= libmagic=32-bit;;
13560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13561 libsuff=32 shlibsuff=N32 libmagic=N32;;
13562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13563 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13564 *) libsuff= shlibsuff= libmagic=never-match;;
13568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13569 shlibpath_overrides_runpath=no
13570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13572 hardcode_into_libs=yes
13575 # No shared lib support for Linux oldld, aout, or coff.
13576 linux*oldld* | linux*aout* | linux*coff*)
13580 # This must be Linux ELF.
13585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13586 soname_spec='${libname}${release}${shared_ext}$major'
13587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13588 shlibpath_var=LD_LIBRARY_PATH
13589 shlibpath_overrides_runpath=no
13590 # This implies no fast_install, which is unacceptable.
13591 # Some rework will be needed to allow for fast_install
13592 # before this can be enabled.
13593 hardcode_into_libs=yes
13595 # find out which ABI we are using
13597 case "$host_cpu" in
13598 x86_64*|s390x*|powerpc64*)
13599 echo '#line 13599 "configure"' > conftest.$ac_ext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601 (eval $ac_compile) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; then
13605 case `/usr/bin/file conftest.$ac_objext` in
13608 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13616 # Append ld.so.conf contents to the search path
13617 if test -f /etc/ld.so.conf; then
13618 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13619 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13622 # We used to test for /lib/ld.so.1 and disable shared libraries on
13623 # powerpc, because MkLinux only supported shared libraries with the
13624 # GNU dynamic linker. Since this was broken with cross compilers,
13625 # most powerpc-linux boxes support dynamic linking these days and
13626 # people can always --disable-shared, the test was removed, and we
13627 # assume the GNU/Linux dynamic linker is in use.
13628 dynamic_linker='GNU/Linux ld.so'
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13636 soname_spec='${libname}${release}${shared_ext}$major'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=no
13639 hardcode_into_libs=yes
13640 dynamic_linker='GNU ld.so'
13647 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13650 dynamic_linker='NetBSD (a.out) ld.so'
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13653 soname_spec='${libname}${release}${shared_ext}$major'
13654 dynamic_linker='NetBSD ld.elf_so'
13656 shlibpath_var=LD_LIBRARY_PATH
13657 shlibpath_overrides_runpath=yes
13658 hardcode_into_libs=yes
13663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664 shlibpath_var=LD_LIBRARY_PATH
13665 shlibpath_overrides_runpath=yes
13672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13673 soname_spec='${libname}${release}${shared_ext}$major'
13674 shlibpath_var=LD_LIBRARY_PATH
13675 shlibpath_overrides_runpath=yes
13682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13684 shlibpath_var=LD_LIBRARY_PATH
13685 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13687 openbsd2.[89] | openbsd2.[89].*)
13688 shlibpath_overrides_runpath=no
13691 shlibpath_overrides_runpath=yes
13695 shlibpath_overrides_runpath=yes
13700 libname_spec='$name'
13703 library_names_spec='$libname${shared_ext} $libname.a'
13704 dynamic_linker='OS/2 ld.exe'
13705 shlibpath_var=LIBPATH
13708 osf3* | osf4* | osf5*)
13712 soname_spec='${libname}${release}${shared_ext}$major'
13713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13714 shlibpath_var=LD_LIBRARY_PATH
13715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13716 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13721 soname_spec='${libname}${release}${shared_ext}$major'
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723 shlibpath_var=LD_LIBRARY_PATH
13730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13731 soname_spec='${libname}${release}${shared_ext}$major'
13732 shlibpath_var=LD_LIBRARY_PATH
13733 shlibpath_overrides_runpath=yes
13734 hardcode_into_libs=yes
13735 # ldd complains unless libraries are executable
13736 postinstall_cmds='chmod +x $lib'
13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13742 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13743 shlibpath_var=LD_LIBRARY_PATH
13744 shlibpath_overrides_runpath=yes
13745 if test "$with_gnu_ld" = yes; then
13751 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 shlibpath_var=LD_LIBRARY_PATH
13756 case $host_vendor in
13758 shlibpath_overrides_runpath=no
13760 export_dynamic_flag_spec='${wl}-Blargedynsym'
13761 runpath_var=LD_RUN_PATH
13769 shlibpath_overrides_runpath=no
13770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13776 if test -d /usr/nec ;then
13778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13779 soname_spec='$libname${shared_ext}.$major'
13780 shlibpath_var=LD_LIBRARY_PATH
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13787 soname_spec='${libname}${release}${shared_ext}$major'
13788 shlibpath_var=LD_LIBRARY_PATH
13795 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13796 echo "${ECHO_T}$dynamic_linker" >&6
13797 test "$dynamic_linker" = no && can_build_shared=no
13799 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13800 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13801 hardcode_action_CXX=
13802 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13803 test -n "$runpath_var CXX" || \
13804 test "X$hardcode_automatic_CXX"="Xyes" ; then
13806 # We can hardcode non-existant directories.
13807 if test "$hardcode_direct_CXX" != no &&
13808 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13809 # have to relink, otherwise we might link with an installed library
13810 # when we should be linking with a yet-to-be-installed one
13811 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13812 test "$hardcode_minus_L_CXX" != no; then
13813 # Linking always hardcodes the temporary library directory.
13814 hardcode_action_CXX=relink
13816 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13817 hardcode_action_CXX=immediate
13820 # We cannot hardcode anything, or else we can only hardcode existing
13822 hardcode_action_CXX=unsupported
13824 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13825 echo "${ECHO_T}$hardcode_action_CXX" >&6
13827 if test "$hardcode_action_CXX" = relink; then
13828 # Fast installation is not supported
13829 enable_fast_install=no
13830 elif test "$shlibpath_overrides_runpath" = yes ||
13831 test "$enable_shared" = no; then
13832 # Fast installation is not necessary
13833 enable_fast_install=needless
13838 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13839 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13840 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13841 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13842 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13843 echo "$as_me:$LINENO: result: yes" >&5
13844 echo "${ECHO_T}yes" >&6
13846 # FIXME - insert some real tests, host_os isn't really good enough
13849 if test -n "$STRIP" ; then
13850 striplib="$STRIP -x"
13851 echo "$as_me:$LINENO: result: yes" >&5
13852 echo "${ECHO_T}yes" >&6
13854 echo "$as_me:$LINENO: result: no" >&5
13855 echo "${ECHO_T}no" >&6
13859 echo "$as_me:$LINENO: result: no" >&5
13860 echo "${ECHO_T}no" >&6
13865 if test "x$enable_dlopen" != xyes; then
13866 enable_dlopen=unknown
13867 enable_dlopen_self=unknown
13868 enable_dlopen_self_static=unknown
13875 lt_cv_dlopen="load_add_on"
13877 lt_cv_dlopen_self=yes
13881 lt_cv_dlopen="LoadLibrary"
13886 lt_cv_dlopen="dlopen"
13891 # if libdl is installed we need to link against it
13892 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13893 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13894 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 ac_check_lib_save_LIBS=$LIBS
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13906 /* Override any gcc2 internal prototype to avoid an error. */
13910 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13923 (eval $ac_link) 2>conftest.er1
13925 grep -v '^ *+' conftest.er1 >conftest.err
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } &&
13930 { ac_try='test -z "$ac_cxx_werror_flag"
13931 || test ! -s conftest.err'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_lib_dl_dlopen=yes
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 ac_cv_lib_dl_dlopen=no
13950 rm -f conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13954 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13955 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13956 if test $ac_cv_lib_dl_dlopen = yes; then
13957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13960 lt_cv_dlopen="dyld"
13962 lt_cv_dlopen_self=yes
13969 echo "$as_me:$LINENO: checking for shl_load" >&5
13970 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13971 if test "${ac_cv_func_shl_load+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13982 #define shl_load innocuous_shl_load
13984 /* System header to define __stub macros and hopefully few prototypes,
13985 which can conflict with char shl_load (); below.
13986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13987 <limits.h> exists even on freestanding compilers. */
13990 # include <limits.h>
13992 # include <assert.h>
13997 /* Override any gcc2 internal prototype to avoid an error. */
14002 /* We use char because int might match the return type of a gcc2
14003 builtin and then its argument prototype would still apply. */
14005 /* The GNU C library defines this for functions which it implements
14006 to always fail with ENOSYS. Some functions are actually named
14007 something starting with __ and the normal name is an alias. */
14008 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14011 char (*f) () = shl_load;
14020 return f != shl_load;
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14027 (eval $ac_link) 2>conftest.er1
14029 grep -v '^ *+' conftest.er1 >conftest.err
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
14034 { ac_try='test -z "$ac_cxx_werror_flag"
14035 || test ! -s conftest.err'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } &&
14041 { ac_try='test -s conftest$ac_exeext'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 ac_cv_func_shl_load=yes
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_cv_func_shl_load=no
14054 rm -f conftest.err conftest.$ac_objext \
14055 conftest$ac_exeext conftest.$ac_ext
14057 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14058 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14059 if test $ac_cv_func_shl_load = yes; then
14060 lt_cv_dlopen="shl_load"
14062 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14063 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14064 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 ac_check_lib_save_LIBS=$LIBS
14069 cat >conftest.$ac_ext <<_ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14076 /* Override any gcc2 internal prototype to avoid an error. */
14080 /* We use char because int might match the return type of a gcc2
14081 builtin and then its argument prototype would still apply. */
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>conftest.er1
14095 grep -v '^ *+' conftest.er1 >conftest.err
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_cxx_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 ac_cv_lib_dld_shl_load=yes
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14118 ac_cv_lib_dld_shl_load=no
14120 rm -f conftest.err conftest.$ac_objext \
14121 conftest$ac_exeext conftest.$ac_ext
14122 LIBS=$ac_check_lib_save_LIBS
14124 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14125 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14126 if test $ac_cv_lib_dld_shl_load = yes; then
14127 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14129 echo "$as_me:$LINENO: checking for dlopen" >&5
14130 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14131 if test "${ac_cv_func_dlopen+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14142 #define dlopen innocuous_dlopen
14144 /* System header to define __stub macros and hopefully few prototypes,
14145 which can conflict with char dlopen (); below.
14146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14147 <limits.h> exists even on freestanding compilers. */
14150 # include <limits.h>
14152 # include <assert.h>
14157 /* Override any gcc2 internal prototype to avoid an error. */
14162 /* We use char because int might match the return type of a gcc2
14163 builtin and then its argument prototype would still apply. */
14165 /* The GNU C library defines this for functions which it implements
14166 to always fail with ENOSYS. Some functions are actually named
14167 something starting with __ and the normal name is an alias. */
14168 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14171 char (*f) () = dlopen;
14180 return f != dlopen;
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14187 (eval $ac_link) 2>conftest.er1
14189 grep -v '^ *+' conftest.er1 >conftest.err
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } &&
14194 { ac_try='test -z "$ac_cxx_werror_flag"
14195 || test ! -s conftest.err'
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try='test -s conftest$ac_exeext'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 ac_cv_func_dlopen=yes
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14212 ac_cv_func_dlopen=no
14214 rm -f conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14217 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14218 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14219 if test $ac_cv_func_dlopen = yes; then
14220 lt_cv_dlopen="dlopen"
14222 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14223 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14224 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 ac_check_lib_save_LIBS=$LIBS
14229 cat >conftest.$ac_ext <<_ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14236 /* Override any gcc2 internal prototype to avoid an error. */
14240 /* We use char because int might match the return type of a gcc2
14241 builtin and then its argument prototype would still apply. */
14251 rm -f conftest.$ac_objext conftest$ac_exeext
14252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14253 (eval $ac_link) 2>conftest.er1
14255 grep -v '^ *+' conftest.er1 >conftest.err
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try='test -z "$ac_cxx_werror_flag"
14261 || test ! -s conftest.err'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; } &&
14267 { ac_try='test -s conftest$ac_exeext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 ac_cv_lib_dl_dlopen=yes
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 ac_cv_lib_dl_dlopen=no
14280 rm -f conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LIBS=$ac_check_lib_save_LIBS
14284 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14285 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14286 if test $ac_cv_lib_dl_dlopen = yes; then
14287 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14289 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14290 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14291 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 ac_check_lib_save_LIBS=$LIBS
14295 LIBS="-lsvld $LIBS"
14296 cat >conftest.$ac_ext <<_ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14303 /* Override any gcc2 internal prototype to avoid an error. */
14307 /* We use char because int might match the return type of a gcc2
14308 builtin and then its argument prototype would still apply. */
14318 rm -f conftest.$ac_objext conftest$ac_exeext
14319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14320 (eval $ac_link) 2>conftest.er1
14322 grep -v '^ *+' conftest.er1 >conftest.err
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
14327 { ac_try='test -z "$ac_cxx_werror_flag"
14328 || test ! -s conftest.err'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; } &&
14334 { ac_try='test -s conftest$ac_exeext'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_lib_svld_dlopen=yes
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14345 ac_cv_lib_svld_dlopen=no
14347 rm -f conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14349 LIBS=$ac_check_lib_save_LIBS
14351 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14352 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14353 if test $ac_cv_lib_svld_dlopen = yes; then
14354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14356 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14357 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14358 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 ac_check_lib_save_LIBS=$LIBS
14363 cat >conftest.$ac_ext <<_ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14370 /* Override any gcc2 internal prototype to avoid an error. */
14374 /* We use char because int might match the return type of a gcc2
14375 builtin and then its argument prototype would still apply. */
14385 rm -f conftest.$ac_objext conftest$ac_exeext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14387 (eval $ac_link) 2>conftest.er1
14389 grep -v '^ *+' conftest.er1 >conftest.err
14391 cat conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -z "$ac_cxx_werror_flag"
14395 || test ! -s conftest.err'
14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; } &&
14401 { ac_try='test -s conftest$ac_exeext'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }; then
14407 ac_cv_lib_dld_dld_link=yes
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ac_cv_lib_dld_dld_link=no
14414 rm -f conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext conftest.$ac_ext
14416 LIBS=$ac_check_lib_save_LIBS
14418 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14419 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14420 if test $ac_cv_lib_dld_dld_link = yes; then
14421 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14442 if test "x$lt_cv_dlopen" != xno; then
14448 case $lt_cv_dlopen in
14450 save_CPPFLAGS="$CPPFLAGS"
14451 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14453 save_LDFLAGS="$LDFLAGS"
14454 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14457 LIBS="$lt_cv_dlopen_libs $LIBS"
14459 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14460 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14461 if test "${lt_cv_dlopen_self+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 if test "$cross_compiling" = yes; then :
14465 lt_cv_dlopen_self=cross
14467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14468 lt_status=$lt_dlunknown
14469 cat > conftest.$ac_ext <<EOF
14470 #line 14470 "configure"
14471 #include "confdefs.h"
14480 # define LT_DLGLOBAL RTLD_GLOBAL
14483 # define LT_DLGLOBAL DL_GLOBAL
14485 # define LT_DLGLOBAL 0
14489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14490 find out it does not work in some platform. */
14491 #ifndef LT_DLLAZY_OR_NOW
14493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14496 # define LT_DLLAZY_OR_NOW DL_LAZY
14499 # define LT_DLLAZY_OR_NOW RTLD_NOW
14502 # define LT_DLLAZY_OR_NOW DL_NOW
14504 # define LT_DLLAZY_OR_NOW 0
14512 extern "C" void exit (int);
14515 void fnord() { int i=42;}
14518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14519 int status = $lt_dlunknown;
14523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14525 /* dlclose (self); */
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532 (eval $ac_link) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14536 (./conftest; exit; ) 2>/dev/null
14538 case x$lt_status in
14539 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14540 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14541 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14544 # compilation failed
14545 lt_cv_dlopen_self=no
14552 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14553 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14555 if test "x$lt_cv_dlopen_self" = xyes; then
14556 LDFLAGS="$LDFLAGS $link_static_flag"
14557 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14558 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14559 if test "${lt_cv_dlopen_self_static+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 if test "$cross_compiling" = yes; then :
14563 lt_cv_dlopen_self_static=cross
14565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14566 lt_status=$lt_dlunknown
14567 cat > conftest.$ac_ext <<EOF
14568 #line 14568 "configure"
14569 #include "confdefs.h"
14578 # define LT_DLGLOBAL RTLD_GLOBAL
14581 # define LT_DLGLOBAL DL_GLOBAL
14583 # define LT_DLGLOBAL 0
14587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14588 find out it does not work in some platform. */
14589 #ifndef LT_DLLAZY_OR_NOW
14591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14594 # define LT_DLLAZY_OR_NOW DL_LAZY
14597 # define LT_DLLAZY_OR_NOW RTLD_NOW
14600 # define LT_DLLAZY_OR_NOW DL_NOW
14602 # define LT_DLLAZY_OR_NOW 0
14610 extern "C" void exit (int);
14613 void fnord() { int i=42;}
14616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14617 int status = $lt_dlunknown;
14621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14623 /* dlclose (self); */
14629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14630 (eval $ac_link) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14634 (./conftest; exit; ) 2>/dev/null
14636 case x$lt_status in
14637 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14638 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14639 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14642 # compilation failed
14643 lt_cv_dlopen_self_static=no
14650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14651 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14654 CPPFLAGS="$save_CPPFLAGS"
14655 LDFLAGS="$save_LDFLAGS"
14660 case $lt_cv_dlopen_self in
14661 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14662 *) enable_dlopen_self=unknown ;;
14665 case $lt_cv_dlopen_self_static in
14666 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14667 *) enable_dlopen_self_static=unknown ;;
14672 # The else clause should only fire when bootstrapping the
14673 # libtool distribution, otherwise you forgot to ship ltmain.sh
14674 # with your package, and you will get complaints that there are
14675 # no rules to generate ltmain.sh.
14676 if test -f "$ltmain"; then
14677 # See if we are running on zsh, and set the options which allow our commands through
14678 # without removal of \ escapes.
14679 if test -n "${ZSH_VERSION+set}" ; then
14680 setopt NO_GLOB_SUBST
14682 # Now quote all the things that may contain metacharacters while being
14683 # careful not to overquote the AC_SUBSTed values. We take copies of the
14684 # variables and quote the copies for generation of the libtool script.
14685 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14687 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14688 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14689 deplibs_check_method reload_flag reload_cmds need_locks \
14690 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14691 lt_cv_sys_global_symbol_to_c_name_address \
14692 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14693 old_postinstall_cmds old_postuninstall_cmds \
14697 lt_prog_compiler_wl_CXX \
14698 lt_prog_compiler_pic_CXX \
14699 lt_prog_compiler_static_CXX \
14700 lt_prog_compiler_no_builtin_flag_CXX \
14701 export_dynamic_flag_spec_CXX \
14702 thread_safe_flag_spec_CXX \
14703 whole_archive_flag_spec_CXX \
14704 enable_shared_with_static_runtimes_CXX \
14705 old_archive_cmds_CXX \
14706 old_archive_from_new_cmds_CXX \
14707 predep_objects_CXX \
14708 postdep_objects_CXX \
14711 compiler_lib_search_path_CXX \
14713 archive_expsym_cmds_CXX \
14714 postinstall_cmds_CXX \
14715 postuninstall_cmds_CXX \
14716 old_archive_from_expsyms_cmds_CXX \
14717 allow_undefined_flag_CXX \
14718 no_undefined_flag_CXX \
14719 export_symbols_cmds_CXX \
14720 hardcode_libdir_flag_spec_CXX \
14721 hardcode_libdir_flag_spec_ld_CXX \
14722 hardcode_libdir_separator_CXX \
14723 hardcode_automatic_CXX \
14725 module_expsym_cmds_CXX \
14726 lt_cv_prog_compiler_c_o_CXX \
14727 exclude_expsyms_CXX \
14728 include_expsyms_CXX; do
14731 old_archive_cmds_CXX | \
14732 old_archive_from_new_cmds_CXX | \
14733 archive_cmds_CXX | \
14734 archive_expsym_cmds_CXX | \
14735 module_cmds_CXX | \
14736 module_expsym_cmds_CXX | \
14737 old_archive_from_expsyms_cmds_CXX | \
14738 export_symbols_cmds_CXX | \
14739 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14740 postinstall_cmds | postuninstall_cmds | \
14741 old_postinstall_cmds | old_postuninstall_cmds | \
14742 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14743 # Double-quote double-evaled strings.
14744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14747 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14753 *'\$0 --fallback-echo"')
14754 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14760 cat <<__EOF__ >> "$cfgfile"
14761 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14765 # Shell to use when invoking shell scripts.
14768 # Whether or not to build shared libraries.
14769 build_libtool_libs=$enable_shared
14771 # Whether or not to build static libraries.
14772 build_old_libs=$enable_static
14774 # Whether or not to add -lc for building shared libraries.
14775 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14777 # Whether or not to disallow shared libs when runtime libs are static
14778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14780 # Whether or not to optimize for fast installation.
14781 fast_install=$enable_fast_install
14784 host_alias=$host_alias
14787 # An echo program that does not interpret backslashes.
14792 AR_FLAGS=$lt_AR_FLAGS
14797 # A language-specific compiler.
14798 CC=$lt_compiler_CXX
14800 # Is the compiler the GNU C compiler?
14806 # The linker used to build libraries.
14809 # Whether we need hard or soft links.
14812 # A BSD-compatible nm program.
14815 # A symbol stripping program
14818 # Used to examine libraries when file_magic_cmd begins "file"
14819 MAGIC_CMD=$MAGIC_CMD
14821 # Used on cygwin: DLL creation program.
14824 # Used on cygwin: object dumper.
14827 # Used on cygwin: assembler.
14830 # The name of the directory that contains temporary libtool files.
14833 # How to create reloadable object files.
14834 reload_flag=$lt_reload_flag
14835 reload_cmds=$lt_reload_cmds
14837 # How to pass a linker flag through the compiler.
14838 wl=$lt_lt_prog_compiler_wl_CXX
14840 # Object file suffix (normally "o").
14841 objext="$ac_objext"
14843 # Old archive suffix (normally "a").
14846 # Shared library suffix (normally ".so").
14847 shrext_cmds='$shrext_cmds'
14849 # Executable file suffix (normally "").
14852 # Additional compiler flags for building library objects.
14853 pic_flag=$lt_lt_prog_compiler_pic_CXX
14856 # What is the maximum length of a command?
14857 max_cmd_len=$lt_cv_sys_max_cmd_len
14859 # Does compiler simultaneously support -c and -o options?
14860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14862 # Must we lock files when doing compilation ?
14863 need_locks=$lt_need_locks
14865 # Do we need the lib prefix for modules?
14866 need_lib_prefix=$need_lib_prefix
14868 # Do we need a version for libraries?
14869 need_version=$need_version
14871 # Whether dlopen is supported.
14872 dlopen_support=$enable_dlopen
14874 # Whether dlopen of programs is supported.
14875 dlopen_self=$enable_dlopen_self
14877 # Whether dlopen of statically linked programs is supported.
14878 dlopen_self_static=$enable_dlopen_self_static
14880 # Compiler flag to prevent dynamic linking.
14881 link_static_flag=$lt_lt_prog_compiler_static_CXX
14883 # Compiler flag to turn off builtin functions.
14884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14886 # Compiler flag to allow reflexive dlopens.
14887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14889 # Compiler flag to generate shared objects directly from archives.
14890 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14892 # Compiler flag to generate thread-safe objects.
14893 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14895 # Library versioning type.
14896 version_type=$version_type
14898 # Format of library name prefix.
14899 libname_spec=$lt_libname_spec
14901 # List of archive names. First name is the real one, the rest are links.
14902 # The last name is the one that the linker finds with -lNAME.
14903 library_names_spec=$lt_library_names_spec
14905 # The coded name of the library, if different from the real name.
14906 soname_spec=$lt_soname_spec
14908 # Commands used to build and install an old-style archive.
14910 old_archive_cmds=$lt_old_archive_cmds_CXX
14911 old_postinstall_cmds=$lt_old_postinstall_cmds
14912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14914 # Create an old-style archive from a shared archive.
14915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14917 # Create a temporary old-style archive to link instead of a shared archive.
14918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14920 # Commands used to build and install a shared archive.
14921 archive_cmds=$lt_archive_cmds_CXX
14922 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14923 postinstall_cmds=$lt_postinstall_cmds
14924 postuninstall_cmds=$lt_postuninstall_cmds
14926 # Commands used to build a loadable module (assumed same as above if empty)
14927 module_cmds=$lt_module_cmds_CXX
14928 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14930 # Commands to strip libraries.
14931 old_striplib=$lt_old_striplib
14932 striplib=$lt_striplib
14934 # Dependencies to place before the objects being linked to create a
14936 predep_objects=$lt_predep_objects_CXX
14938 # Dependencies to place after the objects being linked to create a
14940 postdep_objects=$lt_postdep_objects_CXX
14942 # Dependencies to place before the objects being linked to create a
14944 predeps=$lt_predeps_CXX
14946 # Dependencies to place after the objects being linked to create a
14948 postdeps=$lt_postdeps_CXX
14950 # The library search path used internally by the compiler when linking
14951 # a shared library.
14952 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14954 # Method to check whether dependent libraries are shared objects.
14955 deplibs_check_method=$lt_deplibs_check_method
14957 # Command to use when deplibs_check_method == file_magic.
14958 file_magic_cmd=$lt_file_magic_cmd
14960 # Flag that allows shared libraries with undefined symbols to be built.
14961 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14963 # Flag that forces no undefined symbols.
14964 no_undefined_flag=$lt_no_undefined_flag_CXX
14966 # Commands used to finish a libtool library installation in a directory.
14967 finish_cmds=$lt_finish_cmds
14969 # Same as above, but a single script fragment to be evaled but not shown.
14970 finish_eval=$lt_finish_eval
14972 # Take the output of nm and produce a listing of raw symbols and C names.
14973 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14975 # Transform the output of nm in a proper C declaration
14976 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14978 # Transform the output of nm in a C name address pair
14979 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14981 # This is the shared library runtime path variable.
14982 runpath_var=$runpath_var
14984 # This is the shared library path variable.
14985 shlibpath_var=$shlibpath_var
14987 # Is shlibpath searched before the hard-coded library search path?
14988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14990 # How to hardcode a shared library path into an executable.
14991 hardcode_action=$hardcode_action_CXX
14993 # Whether we should hardcode library paths into libraries.
14994 hardcode_into_libs=$hardcode_into_libs
14996 # Flag to hardcode \$libdir into a binary during linking.
14997 # This must work even if \$libdir does not exist.
14998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15000 # If ld is used when linking, flag to hardcode \$libdir into
15001 # a binary during linking. This must work even if \$libdir does
15003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15005 # Whether we need a single -rpath flag with a separated argument.
15006 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15008 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15009 # resulting binary.
15010 hardcode_direct=$hardcode_direct_CXX
15012 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15013 # resulting binary.
15014 hardcode_minus_L=$hardcode_minus_L_CXX
15016 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15017 # the resulting binary.
15018 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15020 # Set to yes if building a shared library automatically hardcodes DIR into the library
15021 # and all subsequent libraries and executables linked against it.
15022 hardcode_automatic=$hardcode_automatic_CXX
15024 # Variables whose values should be saved in libtool wrapper scripts and
15025 # restored at relink time.
15026 variables_saved_for_relink="$variables_saved_for_relink"
15028 # Whether libtool must link a program against all its dependency libraries.
15029 link_all_deplibs=$link_all_deplibs_CXX
15031 # Compile-time system search path for libraries
15032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15034 # Run-time system search path for libraries
15035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15037 # Fix the shell variable \$srcfile for the compiler.
15038 fix_srcfile_path="$fix_srcfile_path_CXX"
15040 # Set to yes if exported symbols are required.
15041 always_export_symbols=$always_export_symbols_CXX
15043 # The commands to list exported symbols.
15044 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15046 # The commands to extract the exported symbol list from a shared archive.
15047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15049 # Symbols that should not be listed in the preloaded symbols.
15050 exclude_expsyms=$lt_exclude_expsyms_CXX
15052 # Symbols that must always be exported.
15053 include_expsyms=$lt_include_expsyms_CXX
15055 # ### END LIBTOOL TAG CONFIG: $tagname
15061 # If there is no Makefile yet, we rely on a make rule to execute
15062 # `config.status --recheck' to rerun these tests and create the
15063 # libtool script then.
15064 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15065 if test -f "$ltmain_in"; then
15066 test -f Makefile && make "$ltmain"
15072 ac_cpp='$CPP $CPPFLAGS'
15073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15081 with_gnu_ldcxx=$with_gnu_ld
15082 with_gnu_ld=$lt_save_with_gnu_ld
15083 lt_cv_path_LDCXX=$lt_cv_path_LD
15084 lt_cv_path_LD=$lt_save_path_LD
15085 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15086 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15094 if test -n "$F77" && test "X$F77" != "Xno"; then
15097 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15098 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15099 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15102 archive_cmds_need_lc_F77=no
15103 allow_undefined_flag_F77=
15104 always_export_symbols_F77=no
15105 archive_expsym_cmds_F77=
15106 export_dynamic_flag_spec_F77=
15107 hardcode_direct_F77=no
15108 hardcode_libdir_flag_spec_F77=
15109 hardcode_libdir_flag_spec_ld_F77=
15110 hardcode_libdir_separator_F77=
15111 hardcode_minus_L_F77=no
15112 hardcode_automatic_F77=no
15114 module_expsym_cmds_F77=
15115 link_all_deplibs_F77=unknown
15116 old_archive_cmds_F77=$old_archive_cmds
15117 no_undefined_flag_F77=
15118 whole_archive_flag_spec_F77=
15119 enable_shared_with_static_runtimes_F77=no
15121 # Source file extension for f77 test sources.
15124 # Object file extension for compiled f77 test sources.
15128 # Code to be used in simple compile tests
15129 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15131 # Code to be used in simple link tests
15132 lt_simple_link_test_code=" program t\n end\n"
15134 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15136 # If no C compiler was specified, use CC.
15139 # Allow CC to be a program name with arguments.
15143 # Allow CC to be a program name with arguments.
15148 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15150 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15151 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15152 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15153 echo "${ECHO_T}$can_build_shared" >&6
15155 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15156 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15157 test "$can_build_shared" = "no" && enable_shared=no
15159 # On AIX, shared libraries and static libraries use the same namespace, and
15160 # are all built from PIC.
15163 test "$enable_shared" = yes && enable_static=no
15164 if test -n "$RANLIB"; then
15165 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15166 postinstall_cmds='$RANLIB $lib'
15170 test "$enable_shared" = yes && enable_static=no
15173 echo "$as_me:$LINENO: result: $enable_shared" >&5
15174 echo "${ECHO_T}$enable_shared" >&6
15176 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15177 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15178 # Make sure either enable_shared or enable_static is yes.
15179 test "$enable_shared" = yes || enable_static=yes
15180 echo "$as_me:$LINENO: result: $enable_static" >&5
15181 echo "${ECHO_T}$enable_static" >&6
15183 test "$ld_shlibs_F77" = no && can_build_shared=no
15188 lt_prog_compiler_wl_F77=
15189 lt_prog_compiler_pic_F77=
15190 lt_prog_compiler_static_F77=
15192 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15193 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15195 if test "$GCC" = yes; then
15196 lt_prog_compiler_wl_F77='-Wl,'
15197 lt_prog_compiler_static_F77='-static'
15201 # All AIX code is PIC.
15202 if test "$host_cpu" = ia64; then
15203 # AIX 5 now supports IA64 processor
15204 lt_prog_compiler_static_F77='-Bstatic'
15209 # FIXME: we need at least 68020 code to build shared libraries, but
15210 # adding the `-m68020' flag to GCC prevents building anything better,
15212 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15215 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15216 # PIC is the default for these OSes.
15219 mingw* | pw32* | os2*)
15220 # This hack is so that the source file can tell whether it is being
15221 # built for inclusion in a dll (and should export symbols for example).
15222 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15225 darwin* | rhapsody*)
15226 # PIC is the default on this platform
15227 # Common symbols not allowed in MH_DYLIB files
15228 lt_prog_compiler_pic_F77='-fno-common'
15232 # Just because we use GCC doesn't mean we suddenly get shared libraries
15233 # on systems that don't support them.
15234 lt_prog_compiler_can_build_shared_F77=no
15239 if test -d /usr/nec; then
15240 lt_prog_compiler_pic_F77=-Kconform_pic
15245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15246 # not for PA HP-UX.
15247 case "$host_cpu" in
15252 lt_prog_compiler_pic_F77='-fPIC'
15258 lt_prog_compiler_pic_F77='-fPIC'
15262 # PORTME Check for flag to pass linker flags through the system compiler.
15265 lt_prog_compiler_wl_F77='-Wl,'
15266 if test "$host_cpu" = ia64; then
15267 # AIX 5 now supports IA64 processor
15268 lt_prog_compiler_static_F77='-Bstatic'
15270 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15274 mingw* | pw32* | os2*)
15275 # This hack is so that the source file can tell whether it is being
15276 # built for inclusion in a dll (and should export symbols for example).
15277 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15280 hpux9* | hpux10* | hpux11*)
15281 lt_prog_compiler_wl_F77='-Wl,'
15282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15283 # not for PA HP-UX.
15284 case "$host_cpu" in
15289 lt_prog_compiler_pic_F77='+Z'
15292 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15293 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15296 irix5* | irix6* | nonstopux*)
15297 lt_prog_compiler_wl_F77='-Wl,'
15298 # PIC (with -KPIC) is the default.
15299 lt_prog_compiler_static_F77='-non_shared'
15303 lt_prog_compiler_pic_F77='-KPIC'
15304 lt_prog_compiler_static_F77='-Bstatic'
15310 lt_prog_compiler_wl_F77='-Wl,'
15311 lt_prog_compiler_pic_F77='-KPIC'
15312 lt_prog_compiler_static_F77='-static'
15315 lt_prog_compiler_wl_F77='-Wl,'
15316 # All Alpha code is PIC.
15317 lt_prog_compiler_static_F77='-non_shared'
15322 osf3* | osf4* | osf5*)
15323 lt_prog_compiler_wl_F77='-Wl,'
15324 # All OSF/1 code is PIC.
15325 lt_prog_compiler_static_F77='-non_shared'
15329 lt_prog_compiler_pic_F77='-Kpic'
15330 lt_prog_compiler_static_F77='-dn'
15334 lt_prog_compiler_wl_F77='-Wl,'
15335 lt_prog_compiler_pic_F77='-KPIC'
15336 lt_prog_compiler_static_F77='-Bstatic'
15340 lt_prog_compiler_wl_F77='-Qoption ld '
15341 lt_prog_compiler_pic_F77='-PIC'
15342 lt_prog_compiler_static_F77='-Bstatic'
15345 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15346 lt_prog_compiler_wl_F77='-Wl,'
15347 lt_prog_compiler_pic_F77='-KPIC'
15348 lt_prog_compiler_static_F77='-Bstatic'
15352 if test -d /usr/nec ;then
15353 lt_prog_compiler_pic_F77='-Kconform_pic'
15354 lt_prog_compiler_static_F77='-Bstatic'
15359 lt_prog_compiler_pic_F77='-pic'
15360 lt_prog_compiler_static_F77='-Bstatic'
15364 lt_prog_compiler_can_build_shared_F77=no
15369 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15370 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15373 # Check to make sure the PIC flag actually works.
15375 if test -n "$lt_prog_compiler_pic_F77"; then
15377 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15378 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15379 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 lt_prog_compiler_pic_works_F77=no
15383 ac_outfile=conftest.$ac_objext
15384 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15385 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15386 # Insert the option either (1) after the last *FLAGS variable, or
15387 # (2) before a word containing "conftest.", or (3) at the end.
15388 # Note that $ac_compile itself does not contain backslashes and begins
15389 # with a dollar sign (not a hyphen), so the echo should work correctly.
15390 # The option is referenced via a variable to avoid confusing sed.
15391 lt_compile=`echo "$ac_compile" | $SED \
15392 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15394 -e 's:$: $lt_compiler_flag:'`
15395 (eval echo "\"\$as_me:15395: $lt_compile\"" >&5)
15396 (eval "$lt_compile" 2>conftest.err)
15398 cat conftest.err >&5
15399 echo "$as_me:15399: \$? = $ac_status" >&5
15400 if (exit $ac_status) && test -s "$ac_outfile"; then
15401 # The compiler can only warn and ignore the option if not recognized
15402 # So say no if there are warnings
15403 if test ! -s conftest.err; then
15404 lt_prog_compiler_pic_works_F77=yes
15410 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15411 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15413 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15414 case $lt_prog_compiler_pic_F77 in
15416 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15419 lt_prog_compiler_pic_F77=
15420 lt_prog_compiler_can_build_shared_F77=no
15425 # For platforms which do not support PIC, -DPIC is meaningless:
15427 lt_prog_compiler_pic_F77=
15430 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15434 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15435 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15436 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 lt_cv_prog_compiler_c_o_F77=no
15440 $rm -r conftest 2>/dev/null
15444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15446 lt_compiler_flag="-o out/conftest2.$ac_objext"
15447 # Insert the option either (1) after the last *FLAGS variable, or
15448 # (2) before a word containing "conftest.", or (3) at the end.
15449 # Note that $ac_compile itself does not contain backslashes and begins
15450 # with a dollar sign (not a hyphen), so the echo should work correctly.
15451 lt_compile=`echo "$ac_compile" | $SED \
15452 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15454 -e 's:$: $lt_compiler_flag:'`
15455 (eval echo "\"\$as_me:15455: $lt_compile\"" >&5)
15456 (eval "$lt_compile" 2>out/conftest.err)
15458 cat out/conftest.err >&5
15459 echo "$as_me:15459: \$? = $ac_status" >&5
15460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15462 # The compiler can only warn and ignore the option if not recognized
15463 # So say no if there are warnings
15464 if test ! -s out/conftest.err; then
15465 lt_cv_prog_compiler_c_o_F77=yes
15470 # SGI C++ compiler will create directory out/ii_files/ for
15471 # template instantiation
15472 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15473 $rm out/* && rmdir out
15479 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15480 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15483 hard_links="nottested"
15484 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15485 # do not overwrite the value of need_locks provided by the user
15486 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15487 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15492 ln conftest.a conftest.b 2>&5 || hard_links=no
15493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15494 echo "$as_me:$LINENO: result: $hard_links" >&5
15495 echo "${ECHO_T}$hard_links" >&6
15496 if test "$hard_links" = no; then
15497 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15498 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15505 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15506 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15509 allow_undefined_flag_F77=
15510 enable_shared_with_static_runtimes_F77=no
15512 archive_expsym_cmds_F77=
15513 old_archive_From_new_cmds_F77=
15514 old_archive_from_expsyms_cmds_F77=
15515 export_dynamic_flag_spec_F77=
15516 whole_archive_flag_spec_F77=
15517 thread_safe_flag_spec_F77=
15518 hardcode_libdir_flag_spec_F77=
15519 hardcode_libdir_flag_spec_ld_F77=
15520 hardcode_libdir_separator_F77=
15521 hardcode_direct_F77=no
15522 hardcode_minus_L_F77=no
15523 hardcode_shlibpath_var_F77=unsupported
15524 link_all_deplibs_F77=unknown
15525 hardcode_automatic_F77=no
15527 module_expsym_cmds_F77=
15528 always_export_symbols_F77=no
15529 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15530 # include_expsyms should be a list of space-separated symbols to be *always*
15531 # included in the symbol list
15532 include_expsyms_F77=
15533 # exclude_expsyms can be an extended regexp of symbols to exclude
15534 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15535 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15536 # as well as any symbol that contains `d'.
15537 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15538 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15539 # platforms (ab)use it in PIC code, but their linkers get confused if
15540 # the symbol is explicitly referenced. Since portable code cannot
15541 # rely on this symbol name, it's probably fine to never include it in
15542 # preloaded symbol tables.
15543 extract_expsyms_cmds=
15546 cygwin* | mingw* | pw32*)
15547 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15548 # When not using gcc, we currently assume that we are using
15549 # Microsoft Visual C++.
15550 if test "$GCC" != yes; then
15560 if test "$with_gnu_ld" = yes; then
15561 # If archive_cmds runs LD, not CC, wlarc should be empty
15564 # See if GNU ld supports shared libraries.
15566 aix3* | aix4* | aix5*)
15567 # On AIX/PPC, the GNU linker is very broken
15568 if test "$host_cpu" != ia64; then
15572 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15573 *** to be unable to reliably create shared libraries on AIX.
15574 *** Therefore, libtool is disabling shared libraries support. If you
15575 *** really care for shared libraries, you may want to modify your PATH
15576 *** so that a non-GNU linker is found, and then restart.
15583 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)'
15584 hardcode_libdir_flag_spec_F77='-L$libdir'
15585 hardcode_minus_L_F77=yes
15587 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15588 # that the semantics of dynamic libraries on AmigaOS, at least up
15589 # to version 4, is to share data among multiple programs linked
15590 # with the same dynamic library. Since this doesn't match the
15591 # behavior of shared libraries on other platforms, we can't use
15597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15598 allow_undefined_flag_F77=unsupported
15599 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15600 # support --undefined. This deserves some investigation. FIXME
15601 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15607 cygwin* | mingw* | pw32*)
15608 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15609 # as there is no search path for DLLs.
15610 hardcode_libdir_flag_spec_F77='-L$libdir'
15611 allow_undefined_flag_F77=unsupported
15612 always_export_symbols_F77=no
15613 enable_shared_with_static_runtimes_F77=yes
15614 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15616 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15617 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15618 # If the export-symbols file already is a .def file (1st line
15619 # is EXPORTS), use it as is; otherwise, prepend...
15620 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15621 cp $export_symbols $output_objdir/$soname.def;
15623 echo EXPORTS > $output_objdir/$soname.def;
15624 cat $export_symbols >> $output_objdir/$soname.def;
15626 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15634 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15637 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15638 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15643 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15647 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15648 *** create shared libraries on Solaris systems. Therefore, libtool
15649 *** is disabling shared libraries support. We urge you to upgrade GNU
15650 *** binutils to release 2.9.1 or newer. Another option is to modify
15651 *** your PATH or compiler configuration so that the native linker is
15652 *** used, and then restart.
15655 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15656 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15657 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15664 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15666 hardcode_direct_F77=yes
15667 hardcode_shlibpath_var_F77=no
15671 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15672 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15673 archive_cmds_F77="$tmp_archive_cmds"
15674 supports_anon_versioning=no
15675 case `$LD -v 2>/dev/null` in
15676 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15677 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15678 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15679 *\ 2.11.*) ;; # other 2.11 versions
15680 *) supports_anon_versioning=yes ;;
15682 if test $supports_anon_versioning = yes; then
15683 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15685 $echo "local: *; };" >> $output_objdir/$libname.ver~
15686 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15688 archive_expsym_cmds_F77="$tmp_archive_cmds"
15696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15697 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15698 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15705 if test "$ld_shlibs_F77" = yes; then
15706 runpath_var=LD_RUN_PATH
15707 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15708 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15709 # ancient GNU ld didn't support --whole-archive et. al.
15710 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15711 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15713 whole_archive_flag_spec_F77=
15717 # PORTME fill in a description of your system's linker (not GNU ld)
15720 allow_undefined_flag_F77=unsupported
15721 always_export_symbols_F77=yes
15722 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'
15723 # Note: this linker hardcodes the directories in LIBPATH if there
15724 # are no directories specified by -L.
15725 hardcode_minus_L_F77=yes
15726 if test "$GCC" = yes && test -z "$link_static_flag"; then
15727 # Neither direct hardcoding nor static linking is supported with a
15729 hardcode_direct_F77=unsupported
15734 if test "$host_cpu" = ia64; then
15735 # On IA64, the linker does run time linking by default, so we don't
15736 # have to do anything special.
15737 aix_use_runtimelinking=no
15738 exp_sym_flag='-Bexport'
15741 # If we're using GNU nm, then we don't want the "-C" option.
15742 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15743 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15744 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'
15746 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'
15748 aix_use_runtimelinking=no
15750 # Test if we are trying to use run time linking or normal
15751 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15752 # need to do runtime linking.
15753 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15754 for ld_flag in $LDFLAGS; do
15755 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15756 aix_use_runtimelinking=yes
15762 exp_sym_flag='-bexport'
15763 no_entry_flag='-bnoentry'
15766 # When large executables or shared objects are built, AIX ld can
15767 # have problems creating the table of contents. If linking a library
15768 # or program results in "error TOC overflow" add -mminimal-toc to
15769 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15770 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15772 archive_cmds_F77=''
15773 hardcode_direct_F77=yes
15774 hardcode_libdir_separator_F77=':'
15775 link_all_deplibs_F77=yes
15777 if test "$GCC" = yes; then
15778 case $host_os in aix4.012|aix4.012.*)
15779 # We only want to do this on AIX 4.2 and lower, the check
15780 # below for broken collect2 doesn't work under 4.3+
15781 collect2name=`${CC} -print-prog-name=collect2`
15782 if test -f "$collect2name" && \
15783 strings "$collect2name" | grep resolve_lib_name >/dev/null
15785 # We have reworked collect2
15786 hardcode_direct_F77=yes
15788 # We have old collect2
15789 hardcode_direct_F77=unsupported
15790 # It fails to find uninstalled libraries when the uninstalled
15791 # path is not listed in the libpath. Setting hardcode_minus_L
15792 # to unsupported forces relinking
15793 hardcode_minus_L_F77=yes
15794 hardcode_libdir_flag_spec_F77='-L$libdir'
15795 hardcode_libdir_separator_F77=
15798 shared_flag='-shared'
15801 if test "$host_cpu" = ia64; then
15802 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15803 # chokes on -Wl,-G. The following line is correct:
15806 if test "$aix_use_runtimelinking" = yes; then
15807 shared_flag='${wl}-G'
15809 shared_flag='${wl}-bM:SRE'
15814 # It seems that -bexpall does not export symbols beginning with
15815 # underscore (_), so it is better to generate a list of symbols to export.
15816 always_export_symbols_F77=yes
15817 if test "$aix_use_runtimelinking" = yes; then
15818 # Warning - without using the other runtime loading flags (-brtl),
15819 # -berok will link without error, but may produce a broken library.
15820 allow_undefined_flag_F77='-berok'
15821 # Determine the default libpath from the value encoded in an empty executable.
15822 cat >conftest.$ac_ext <<_ACEOF
15827 rm -f conftest.$ac_objext conftest$ac_exeext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15829 (eval $ac_link) 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_f77_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest$ac_exeext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15850 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15852 # Check for a 64-bit object if we didn't find anything.
15853 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; }
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15860 rm -f conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15862 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15864 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15865 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"
15867 if test "$host_cpu" = ia64; then
15868 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15869 allow_undefined_flag_F77="-z nodefs"
15870 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"
15872 # Determine the default libpath from the value encoded in an empty executable.
15873 cat >conftest.$ac_ext <<_ACEOF
15878 rm -f conftest.$ac_objext conftest$ac_exeext
15879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15880 (eval $ac_link) 2>conftest.er1
15882 grep -v '^ *+' conftest.er1 >conftest.err
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -z "$ac_f77_werror_flag"
15888 || test ! -s conftest.err'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; } &&
15894 { ac_try='test -s conftest$ac_exeext'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15901 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15903 # Check for a 64-bit object if we didn't find anything.
15904 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; }
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15911 rm -f conftest.err conftest.$ac_objext \
15912 conftest$ac_exeext conftest.$ac_ext
15913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15915 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15916 # Warning - without using the other run time loading flags,
15917 # -berok will link without error, but may produce a broken library.
15918 no_undefined_flag_F77=' ${wl}-bernotok'
15919 allow_undefined_flag_F77=' ${wl}-berok'
15920 # -bexpall does not export symbols beginning with underscore (_)
15921 always_export_symbols_F77=yes
15922 # Exported symbols can be pulled into shared objects from archives
15923 whole_archive_flag_spec_F77=' '
15924 archive_cmds_need_lc_F77=yes
15925 # This is similar to how AIX traditionally builds it's shared libraries.
15926 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'
15932 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)'
15933 hardcode_libdir_flag_spec_F77='-L$libdir'
15934 hardcode_minus_L_F77=yes
15935 # see comment about different semantics on the GNU ld section
15940 export_dynamic_flag_spec_F77=-rdynamic
15943 cygwin* | mingw* | pw32*)
15944 # When not using gcc, we currently assume that we are using
15945 # Microsoft Visual C++.
15946 # hardcode_libdir_flag_spec is actually meaningless, as there is
15947 # no search path for DLLs.
15948 hardcode_libdir_flag_spec_F77=' '
15949 allow_undefined_flag_F77=unsupported
15950 # Tell ltmain to make .lib files, not .a files.
15952 # Tell ltmain to make .dll files, not .so files.
15954 # FIXME: Setting linknames here is a bad hack.
15955 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15956 # The linker will automatically build a .lib file if we build a DLL.
15957 old_archive_From_new_cmds_F77='true'
15958 # FIXME: Should let the user specify the lib program.
15959 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15960 fix_srcfile_path='`cygpath -w "$srcfile"`'
15961 enable_shared_with_static_runtimes_F77=yes
15964 darwin* | rhapsody*)
15965 if test "$GXX" = yes ; then
15966 archive_cmds_need_lc_F77=no
15968 rhapsody* | darwin1.[012])
15969 allow_undefined_flag_F77='-undefined suppress'
15972 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15973 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15975 case ${MACOSX_DEPLOYMENT_TARGET} in
15977 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15980 allow_undefined_flag_F77='-undefined dynamic_lookup'
15986 lt_int_apple_cc_single_mod=no
15987 output_verbose_link_cmd='echo'
15988 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15989 lt_int_apple_cc_single_mod=yes
15991 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15992 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15994 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'
15996 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15997 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15998 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15999 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}'
16001 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}'
16003 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}'
16004 hardcode_direct_F77=no
16005 hardcode_automatic_F77=yes
16006 hardcode_shlibpath_var_F77=unsupported
16007 whole_archive_flag_spec_F77='-all_load $convenience'
16008 link_all_deplibs_F77=yes
16015 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16016 hardcode_libdir_flag_spec_F77='-L$libdir'
16017 hardcode_shlibpath_var_F77=no
16024 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16025 # support. Future versions do this automatically, but an explicit c++rt0.o
16026 # does not break anything, and helps significantly (at the cost of a little
16029 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16030 hardcode_libdir_flag_spec_F77='-R$libdir'
16031 hardcode_direct_F77=yes
16032 hardcode_shlibpath_var_F77=no
16035 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16037 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16038 hardcode_direct_F77=yes
16039 hardcode_minus_L_F77=yes
16040 hardcode_shlibpath_var_F77=no
16043 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16044 freebsd* | kfreebsd*-gnu)
16045 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16046 hardcode_libdir_flag_spec_F77='-R$libdir'
16047 hardcode_direct_F77=yes
16048 hardcode_shlibpath_var_F77=no
16052 if test "$GCC" = yes; then
16053 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'
16055 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'
16057 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16058 hardcode_libdir_separator_F77=:
16059 hardcode_direct_F77=yes
16061 # hardcode_minus_L: Not really in the search PATH,
16062 # but as the default location of the library.
16063 hardcode_minus_L_F77=yes
16064 export_dynamic_flag_spec_F77='${wl}-E'
16068 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16069 case "$host_cpu" in
16071 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16074 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16078 case "$host_cpu" in
16080 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16083 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16087 if test "$with_gnu_ld" = no; then
16088 case "$host_cpu" in
16090 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16091 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16092 hardcode_libdir_separator_F77=:
16093 hardcode_direct_F77=no
16094 hardcode_shlibpath_var_F77=no
16097 hardcode_libdir_flag_spec_F77='-L$libdir'
16098 hardcode_direct_F77=no
16099 hardcode_shlibpath_var_F77=no
16101 # hardcode_minus_L: Not really in the search PATH,
16102 # but as the default location of the library.
16103 hardcode_minus_L_F77=yes
16106 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16107 hardcode_libdir_separator_F77=:
16108 hardcode_direct_F77=yes
16109 export_dynamic_flag_spec_F77='${wl}-E'
16111 # hardcode_minus_L: Not really in the search PATH,
16112 # but as the default location of the library.
16113 hardcode_minus_L_F77=yes
16119 irix5* | irix6* | nonstopux*)
16120 if test "$GCC" = yes; then
16121 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'
16123 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'
16124 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16126 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16127 hardcode_libdir_separator_F77=:
16128 link_all_deplibs_F77=yes
16132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16133 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16135 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16137 hardcode_libdir_flag_spec_F77='-R$libdir'
16138 hardcode_direct_F77=yes
16139 hardcode_shlibpath_var_F77=no
16143 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16144 hardcode_direct_F77=yes
16145 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16146 hardcode_libdir_separator_F77=:
16147 hardcode_shlibpath_var_F77=no
16151 hardcode_direct_F77=yes
16152 hardcode_shlibpath_var_F77=no
16153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16154 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16155 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16156 export_dynamic_flag_spec_F77='${wl}-E'
16159 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16160 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16161 hardcode_libdir_flag_spec_F77='-R$libdir'
16164 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16165 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16172 hardcode_libdir_flag_spec_F77='-L$libdir'
16173 hardcode_minus_L_F77=yes
16174 allow_undefined_flag_F77=unsupported
16175 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'
16176 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16180 if test "$GCC" = yes; then
16181 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16182 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'
16184 allow_undefined_flag_F77=' -expect_unresolved \*'
16185 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'
16187 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16188 hardcode_libdir_separator_F77=:
16191 osf4* | osf5*) # as osf3* with the addition of -msym flag
16192 if test "$GCC" = yes; then
16193 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16194 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'
16195 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16197 allow_undefined_flag_F77=' -expect_unresolved \*'
16198 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'
16199 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~
16200 $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'
16202 # Both c and cxx compiler support -rpath directly
16203 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16205 hardcode_libdir_separator_F77=:
16209 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16210 hardcode_shlibpath_var_F77=no
16211 export_dynamic_flag_spec_F77='${wl}-Bexport'
16212 runpath_var=LD_RUN_PATH
16213 hardcode_runpath_var=yes
16217 no_undefined_flag_F77=' -z text'
16218 if test "$GCC" = yes; then
16219 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16221 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16223 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16224 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16225 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16227 hardcode_libdir_flag_spec_F77='-R$libdir'
16228 hardcode_shlibpath_var_F77=no
16230 solaris2.[0-5] | solaris2.[0-5].*) ;;
16231 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16232 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16234 link_all_deplibs_F77=yes
16238 if test "x$host_vendor" = xsequent; then
16239 # Use $CC to link under sequent, because it throws in some extra .o
16240 # files that make .init and .fini sections work.
16241 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16243 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16245 hardcode_libdir_flag_spec_F77='-L$libdir'
16246 hardcode_direct_F77=yes
16247 hardcode_minus_L_F77=yes
16248 hardcode_shlibpath_var_F77=no
16252 case $host_vendor in
16254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16255 hardcode_direct_F77=yes # is this really true???
16258 ## LD is ld it makes a PLAMLIB
16259 ## CC just makes a GrossModule.
16260 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16261 reload_cmds_F77='$CC -r -o $output$reload_objs'
16262 hardcode_direct_F77=no
16265 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16269 runpath_var='LD_RUN_PATH'
16270 hardcode_shlibpath_var_F77=no
16274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16275 hardcode_shlibpath_var_F77=no
16276 export_dynamic_flag_spec_F77='-Bexport'
16280 if test -d /usr/nec; then
16281 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16282 hardcode_shlibpath_var_F77=no
16283 runpath_var=LD_RUN_PATH
16284 hardcode_runpath_var=yes
16290 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16291 hardcode_direct_F77=yes
16292 hardcode_minus_L_F77=no
16293 hardcode_shlibpath_var_F77=no
16294 hardcode_runpath_var=yes
16295 runpath_var=LD_RUN_PATH
16298 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16299 no_undefined_flag_F77='${wl}-z ${wl}text'
16300 if test "$GCC" = yes; then
16301 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16303 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16305 runpath_var='LD_RUN_PATH'
16306 hardcode_shlibpath_var_F77=no
16310 no_undefined_flag_F77=' -z text'
16311 # $CC -shared without GNU ld will not create a library from C++
16312 # object files and a static libstdc++, better avoid it by now
16313 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16314 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16315 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16316 hardcode_libdir_flag_spec_F77=
16317 hardcode_shlibpath_var_F77=no
16318 runpath_var='LD_RUN_PATH'
16322 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16323 hardcode_libdir_flag_spec_F77='-L$libdir'
16324 hardcode_shlibpath_var_F77=no
16333 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16334 echo "${ECHO_T}$ld_shlibs_F77" >&6
16335 test "$ld_shlibs_F77" = no && can_build_shared=no
16337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16338 if test "$GCC" = yes; then
16339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16343 # Do we need to explicitly link libc?
16345 case "x$archive_cmds_need_lc_F77" in
16347 # Assume -lc should be added
16348 archive_cmds_need_lc_F77=yes
16350 if test "$enable_shared" = yes && test "$GCC" = yes; then
16351 case $archive_cmds_F77 in
16353 # FIXME: we may have to deal with multi-command sequences.
16356 # Test whether the compiler implicitly links with -lc since on some
16357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16358 # to ld, don't add -lc before -lgcc.
16359 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16360 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16365 (eval $ac_compile) 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } 2>conftest.err; then
16371 libobjs=conftest.$ac_objext
16373 wl=$lt_prog_compiler_wl_F77
16379 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16380 allow_undefined_flag_F77=
16381 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16382 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }
16387 archive_cmds_need_lc_F77=no
16389 archive_cmds_need_lc_F77=yes
16391 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16393 cat conftest.err 1>&5
16396 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16397 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16404 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16405 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16406 library_names_spec=
16407 libname_spec='lib$name'
16411 postuninstall_cmds=
16415 shlibpath_overrides_runpath=unknown
16417 dynamic_linker="$host_os ld.so"
16418 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16419 if test "$GCC" = yes; then
16420 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16421 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16422 # if the path contains ";" then we assume it to be the separator
16423 # otherwise default to the standard path separator (i.e. ":") - it is
16424 # assumed that no part of a normal pathname contains ";" but that should
16425 # okay in the real world where ";" in dirpaths is itself problematic.
16426 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16431 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16433 need_lib_prefix=unknown
16434 hardcode_into_libs=no
16436 # when you set need_version to no, make sure it does not cause -set_version
16437 # flags to be left without arguments
16438 need_version=unknown
16443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16444 shlibpath_var=LIBPATH
16446 # AIX 3 has no versioning support, so we append a major version to the name.
16447 soname_spec='${libname}${release}${shared_ext}$major'
16454 hardcode_into_libs=yes
16455 if test "$host_cpu" = ia64; then
16456 # AIX 5 supports IA64
16457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16458 shlibpath_var=LD_LIBRARY_PATH
16460 # With GCC up to 2.95.x, collect2 would create an import file
16461 # for dependence libraries. The import file would start with
16462 # the line `#! .'. This would cause the generated library to
16463 # depend on `.', always an invalid library. This was fixed in
16464 # development snapshots of GCC prior to 3.0.
16466 aix4 | aix4.[01] | aix4.[01].*)
16467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16469 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16472 can_build_shared=no
16476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16477 # soname into executable. Probably we can add versioning support to
16478 # collect2, so additional links can be useful in future.
16479 if test "$aix_use_runtimelinking" = yes; then
16480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16481 # instead of lib<name>.a to let people know that these are not
16482 # typical AIX shared libraries.
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16485 # We preserve .a as extension for shared libraries through AIX4.2
16486 # and later when we are not doing run time linking.
16487 library_names_spec='${libname}${release}.a $libname.a'
16488 soname_spec='${libname}${release}${shared_ext}$major'
16490 shlibpath_var=LIBPATH
16495 library_names_spec='$libname.ixlibrary $libname.a'
16496 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16497 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'
16501 library_names_spec='${libname}${shared_ext}'
16502 dynamic_linker="$host_os ld.so"
16503 shlibpath_var=LIBRARY_PATH
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510 soname_spec='${libname}${release}${shared_ext}$major'
16511 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16512 shlibpath_var=LD_LIBRARY_PATH
16513 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16514 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16515 # the default ld.so.conf also contains /usr/contrib/lib and
16516 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16517 # libtool to hard-code these into programs
16520 cygwin* | mingw* | pw32*)
16521 version_type=windows
16526 case $GCC,$host_os in
16527 yes,cygwin* | yes,mingw* | yes,pw32*)
16528 library_names_spec='$libname.dll.a'
16529 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16530 postinstall_cmds='base_file=`basename \${file}`~
16531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16532 dldir=$destdir/`dirname \$dlpath`~
16533 test -d \$dldir || mkdir -p \$dldir~
16534 $install_prog $dir/$dlname \$dldir/$dlname'
16535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16536 dlpath=$dir/\$dldll~
16538 shlibpath_overrides_runpath=yes
16542 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16543 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16544 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16547 # MinGW DLLs use traditional 'lib' prefix
16548 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16549 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16550 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16551 # It is most probably a Windows format PATH printed by
16552 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16553 # path with ; separators, and with drive letters. We can handle the
16554 # drive letters (cygwin fileutils understands them), so leave them,
16555 # especially as we might pass files found there to a mingw objdump,
16556 # which wouldn't understand a cygwinified path. Ahh.
16557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16563 # pw32 DLLs use 'pw' prefix rather than 'lib'
16564 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16570 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16573 dynamic_linker='Win32 ld.exe'
16574 # FIXME: first we should search . and the directory the executable is in
16578 darwin* | rhapsody*)
16579 dynamic_linker="$host_os dyld"
16580 version_type=darwin
16583 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16584 soname_spec='${libname}${release}${major}$shared_ext'
16585 shlibpath_overrides_runpath=yes
16586 shlibpath_var=DYLD_LIBRARY_PATH
16587 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16588 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16589 if test "$GCC" = yes; then
16590 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"`
16592 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16594 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16602 soname_spec='${libname}${release}${shared_ext}$major'
16603 shlibpath_var=LD_LIBRARY_PATH
16614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16615 soname_spec='${libname}${release}${shared_ext}$major'
16616 shlibpath_var=LD_LIBRARY_PATH
16617 shlibpath_overrides_runpath=no
16618 hardcode_into_libs=yes
16619 dynamic_linker='GNU ld.so'
16623 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16624 version_type=freebsd-$objformat
16625 case $version_type in
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16636 shlibpath_var=LD_LIBRARY_PATH
16639 shlibpath_overrides_runpath=yes
16641 freebsd3.01* | freebsdelf3.01*)
16642 shlibpath_overrides_runpath=yes
16643 hardcode_into_libs=yes
16646 shlibpath_overrides_runpath=no
16647 hardcode_into_libs=yes
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 shlibpath_var=LD_LIBRARY_PATH
16659 hardcode_into_libs=yes
16662 hpux9* | hpux10* | hpux11*)
16663 # Give a soname corresponding to the major version so that dld.sl refuses to
16664 # link against other versions.
16668 case "$host_cpu" in
16671 hardcode_into_libs=yes
16672 dynamic_linker="$host_os dld.so"
16673 shlibpath_var=LD_LIBRARY_PATH
16674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16676 soname_spec='${libname}${release}${shared_ext}$major'
16677 if test "X$HPUX_IA64_MODE" = X32; then
16678 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16680 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16686 hardcode_into_libs=yes
16687 dynamic_linker="$host_os dld.sl"
16688 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691 soname_spec='${libname}${release}${shared_ext}$major'
16692 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16697 dynamic_linker="$host_os dld.sl"
16698 shlibpath_var=SHLIB_PATH
16699 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701 soname_spec='${libname}${release}${shared_ext}$major'
16704 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16705 postinstall_cmds='chmod 555 $lib'
16708 irix5* | irix6* | nonstopux*)
16710 nonstopux*) version_type=nonstopux ;;
16712 if test "$lt_cv_prog_gnu_ld" = yes; then
16720 soname_spec='${libname}${release}${shared_ext}$major'
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16723 irix5* | nonstopux*)
16724 libsuff= shlibsuff=
16727 case $LD in # libtool.m4 will add one of these switches to LD
16728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16729 libsuff= shlibsuff= libmagic=32-bit;;
16730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16731 libsuff=32 shlibsuff=N32 libmagic=N32;;
16732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16734 *) libsuff= shlibsuff= libmagic=never-match;;
16738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16739 shlibpath_overrides_runpath=no
16740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16742 hardcode_into_libs=yes
16745 # No shared lib support for Linux oldld, aout, or coff.
16746 linux*oldld* | linux*aout* | linux*coff*)
16750 # This must be Linux ELF.
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 soname_spec='${libname}${release}${shared_ext}$major'
16757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16758 shlibpath_var=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath=no
16760 # This implies no fast_install, which is unacceptable.
16761 # Some rework will be needed to allow for fast_install
16762 # before this can be enabled.
16763 hardcode_into_libs=yes
16765 # find out which ABI we are using
16767 case "$host_cpu" in
16768 x86_64*|s390x*|powerpc64*)
16769 echo '#line 16769 "configure"' > conftest.$ac_ext
16770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16771 (eval $ac_compile) 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; then
16775 case `/usr/bin/file conftest.$ac_objext` in
16778 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16786 # Append ld.so.conf contents to the search path
16787 if test -f /etc/ld.so.conf; then
16788 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16789 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16792 # We used to test for /lib/ld.so.1 and disable shared libraries on
16793 # powerpc, because MkLinux only supported shared libraries with the
16794 # GNU dynamic linker. Since this was broken with cross compilers,
16795 # most powerpc-linux boxes support dynamic linking these days and
16796 # people can always --disable-shared, the test was removed, and we
16797 # assume the GNU/Linux dynamic linker is in use.
16798 dynamic_linker='GNU/Linux ld.so'
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 shlibpath_overrides_runpath=no
16809 hardcode_into_libs=yes
16810 dynamic_linker='GNU ld.so'
16817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16820 dynamic_linker='NetBSD (a.out) ld.so'
16822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16823 soname_spec='${libname}${release}${shared_ext}$major'
16824 dynamic_linker='NetBSD ld.elf_so'
16826 shlibpath_var=LD_LIBRARY_PATH
16827 shlibpath_overrides_runpath=yes
16828 hardcode_into_libs=yes
16833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 shlibpath_overrides_runpath=yes
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 soname_spec='${libname}${release}${shared_ext}$major'
16844 shlibpath_var=LD_LIBRARY_PATH
16845 shlibpath_overrides_runpath=yes
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16857 openbsd2.[89] | openbsd2.[89].*)
16858 shlibpath_overrides_runpath=no
16861 shlibpath_overrides_runpath=yes
16865 shlibpath_overrides_runpath=yes
16870 libname_spec='$name'
16873 library_names_spec='$libname${shared_ext} $libname.a'
16874 dynamic_linker='OS/2 ld.exe'
16875 shlibpath_var=LIBPATH
16878 osf3* | osf4* | osf5*)
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16886 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16891 soname_spec='${libname}${release}${shared_ext}$major'
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893 shlibpath_var=LD_LIBRARY_PATH
16900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901 soname_spec='${libname}${release}${shared_ext}$major'
16902 shlibpath_var=LD_LIBRARY_PATH
16903 shlibpath_overrides_runpath=yes
16904 hardcode_into_libs=yes
16905 # ldd complains unless libraries are executable
16906 postinstall_cmds='chmod +x $lib'
16911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16912 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 shlibpath_overrides_runpath=yes
16915 if test "$with_gnu_ld" = yes; then
16921 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16924 soname_spec='${libname}${release}${shared_ext}$major'
16925 shlibpath_var=LD_LIBRARY_PATH
16926 case $host_vendor in
16928 shlibpath_overrides_runpath=no
16930 export_dynamic_flag_spec='${wl}-Blargedynsym'
16931 runpath_var=LD_RUN_PATH
16939 shlibpath_overrides_runpath=no
16940 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16946 if test -d /usr/nec ;then
16948 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16949 soname_spec='$libname${shared_ext}.$major'
16950 shlibpath_var=LD_LIBRARY_PATH
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957 soname_spec='${libname}${release}${shared_ext}$major'
16958 shlibpath_var=LD_LIBRARY_PATH
16965 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16966 echo "${ECHO_T}$dynamic_linker" >&6
16967 test "$dynamic_linker" = no && can_build_shared=no
16969 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16970 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16971 hardcode_action_F77=
16972 if test -n "$hardcode_libdir_flag_spec_F77" || \
16973 test -n "$runpath_var F77" || \
16974 test "X$hardcode_automatic_F77"="Xyes" ; then
16976 # We can hardcode non-existant directories.
16977 if test "$hardcode_direct_F77" != no &&
16978 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16979 # have to relink, otherwise we might link with an installed library
16980 # when we should be linking with a yet-to-be-installed one
16981 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16982 test "$hardcode_minus_L_F77" != no; then
16983 # Linking always hardcodes the temporary library directory.
16984 hardcode_action_F77=relink
16986 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16987 hardcode_action_F77=immediate
16990 # We cannot hardcode anything, or else we can only hardcode existing
16992 hardcode_action_F77=unsupported
16994 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16995 echo "${ECHO_T}$hardcode_action_F77" >&6
16997 if test "$hardcode_action_F77" = relink; then
16998 # Fast installation is not supported
16999 enable_fast_install=no
17000 elif test "$shlibpath_overrides_runpath" = yes ||
17001 test "$enable_shared" = no; then
17002 # Fast installation is not necessary
17003 enable_fast_install=needless
17008 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17009 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17010 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17011 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17012 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17013 echo "$as_me:$LINENO: result: yes" >&5
17014 echo "${ECHO_T}yes" >&6
17016 # FIXME - insert some real tests, host_os isn't really good enough
17019 if test -n "$STRIP" ; then
17020 striplib="$STRIP -x"
17021 echo "$as_me:$LINENO: result: yes" >&5
17022 echo "${ECHO_T}yes" >&6
17024 echo "$as_me:$LINENO: result: no" >&5
17025 echo "${ECHO_T}no" >&6
17029 echo "$as_me:$LINENO: result: no" >&5
17030 echo "${ECHO_T}no" >&6
17037 # The else clause should only fire when bootstrapping the
17038 # libtool distribution, otherwise you forgot to ship ltmain.sh
17039 # with your package, and you will get complaints that there are
17040 # no rules to generate ltmain.sh.
17041 if test -f "$ltmain"; then
17042 # See if we are running on zsh, and set the options which allow our commands through
17043 # without removal of \ escapes.
17044 if test -n "${ZSH_VERSION+set}" ; then
17045 setopt NO_GLOB_SUBST
17047 # Now quote all the things that may contain metacharacters while being
17048 # careful not to overquote the AC_SUBSTed values. We take copies of the
17049 # variables and quote the copies for generation of the libtool script.
17050 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17052 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17053 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17054 deplibs_check_method reload_flag reload_cmds need_locks \
17055 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17056 lt_cv_sys_global_symbol_to_c_name_address \
17057 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17058 old_postinstall_cmds old_postuninstall_cmds \
17062 lt_prog_compiler_wl_F77 \
17063 lt_prog_compiler_pic_F77 \
17064 lt_prog_compiler_static_F77 \
17065 lt_prog_compiler_no_builtin_flag_F77 \
17066 export_dynamic_flag_spec_F77 \
17067 thread_safe_flag_spec_F77 \
17068 whole_archive_flag_spec_F77 \
17069 enable_shared_with_static_runtimes_F77 \
17070 old_archive_cmds_F77 \
17071 old_archive_from_new_cmds_F77 \
17072 predep_objects_F77 \
17073 postdep_objects_F77 \
17076 compiler_lib_search_path_F77 \
17078 archive_expsym_cmds_F77 \
17079 postinstall_cmds_F77 \
17080 postuninstall_cmds_F77 \
17081 old_archive_from_expsyms_cmds_F77 \
17082 allow_undefined_flag_F77 \
17083 no_undefined_flag_F77 \
17084 export_symbols_cmds_F77 \
17085 hardcode_libdir_flag_spec_F77 \
17086 hardcode_libdir_flag_spec_ld_F77 \
17087 hardcode_libdir_separator_F77 \
17088 hardcode_automatic_F77 \
17090 module_expsym_cmds_F77 \
17091 lt_cv_prog_compiler_c_o_F77 \
17092 exclude_expsyms_F77 \
17093 include_expsyms_F77; do
17096 old_archive_cmds_F77 | \
17097 old_archive_from_new_cmds_F77 | \
17098 archive_cmds_F77 | \
17099 archive_expsym_cmds_F77 | \
17100 module_cmds_F77 | \
17101 module_expsym_cmds_F77 | \
17102 old_archive_from_expsyms_cmds_F77 | \
17103 export_symbols_cmds_F77 | \
17104 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17105 postinstall_cmds | postuninstall_cmds | \
17106 old_postinstall_cmds | old_postuninstall_cmds | \
17107 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17108 # Double-quote double-evaled strings.
17109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17118 *'\$0 --fallback-echo"')
17119 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17125 cat <<__EOF__ >> "$cfgfile"
17126 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17128 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17130 # Shell to use when invoking shell scripts.
17133 # Whether or not to build shared libraries.
17134 build_libtool_libs=$enable_shared
17136 # Whether or not to build static libraries.
17137 build_old_libs=$enable_static
17139 # Whether or not to add -lc for building shared libraries.
17140 build_libtool_need_lc=$archive_cmds_need_lc_F77
17142 # Whether or not to disallow shared libs when runtime libs are static
17143 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17145 # Whether or not to optimize for fast installation.
17146 fast_install=$enable_fast_install
17149 host_alias=$host_alias
17152 # An echo program that does not interpret backslashes.
17157 AR_FLAGS=$lt_AR_FLAGS
17162 # A language-specific compiler.
17163 CC=$lt_compiler_F77
17165 # Is the compiler the GNU C compiler?
17171 # The linker used to build libraries.
17174 # Whether we need hard or soft links.
17177 # A BSD-compatible nm program.
17180 # A symbol stripping program
17183 # Used to examine libraries when file_magic_cmd begins "file"
17184 MAGIC_CMD=$MAGIC_CMD
17186 # Used on cygwin: DLL creation program.
17189 # Used on cygwin: object dumper.
17192 # Used on cygwin: assembler.
17195 # The name of the directory that contains temporary libtool files.
17198 # How to create reloadable object files.
17199 reload_flag=$lt_reload_flag
17200 reload_cmds=$lt_reload_cmds
17202 # How to pass a linker flag through the compiler.
17203 wl=$lt_lt_prog_compiler_wl_F77
17205 # Object file suffix (normally "o").
17206 objext="$ac_objext"
17208 # Old archive suffix (normally "a").
17211 # Shared library suffix (normally ".so").
17212 shrext_cmds='$shrext_cmds'
17214 # Executable file suffix (normally "").
17217 # Additional compiler flags for building library objects.
17218 pic_flag=$lt_lt_prog_compiler_pic_F77
17221 # What is the maximum length of a command?
17222 max_cmd_len=$lt_cv_sys_max_cmd_len
17224 # Does compiler simultaneously support -c and -o options?
17225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17227 # Must we lock files when doing compilation ?
17228 need_locks=$lt_need_locks
17230 # Do we need the lib prefix for modules?
17231 need_lib_prefix=$need_lib_prefix
17233 # Do we need a version for libraries?
17234 need_version=$need_version
17236 # Whether dlopen is supported.
17237 dlopen_support=$enable_dlopen
17239 # Whether dlopen of programs is supported.
17240 dlopen_self=$enable_dlopen_self
17242 # Whether dlopen of statically linked programs is supported.
17243 dlopen_self_static=$enable_dlopen_self_static
17245 # Compiler flag to prevent dynamic linking.
17246 link_static_flag=$lt_lt_prog_compiler_static_F77
17248 # Compiler flag to turn off builtin functions.
17249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17251 # Compiler flag to allow reflexive dlopens.
17252 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17254 # Compiler flag to generate shared objects directly from archives.
17255 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17257 # Compiler flag to generate thread-safe objects.
17258 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17260 # Library versioning type.
17261 version_type=$version_type
17263 # Format of library name prefix.
17264 libname_spec=$lt_libname_spec
17266 # List of archive names. First name is the real one, the rest are links.
17267 # The last name is the one that the linker finds with -lNAME.
17268 library_names_spec=$lt_library_names_spec
17270 # The coded name of the library, if different from the real name.
17271 soname_spec=$lt_soname_spec
17273 # Commands used to build and install an old-style archive.
17275 old_archive_cmds=$lt_old_archive_cmds_F77
17276 old_postinstall_cmds=$lt_old_postinstall_cmds
17277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17279 # Create an old-style archive from a shared archive.
17280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17282 # Create a temporary old-style archive to link instead of a shared archive.
17283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17285 # Commands used to build and install a shared archive.
17286 archive_cmds=$lt_archive_cmds_F77
17287 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17288 postinstall_cmds=$lt_postinstall_cmds
17289 postuninstall_cmds=$lt_postuninstall_cmds
17291 # Commands used to build a loadable module (assumed same as above if empty)
17292 module_cmds=$lt_module_cmds_F77
17293 module_expsym_cmds=$lt_module_expsym_cmds_F77
17295 # Commands to strip libraries.
17296 old_striplib=$lt_old_striplib
17297 striplib=$lt_striplib
17299 # Dependencies to place before the objects being linked to create a
17301 predep_objects=$lt_predep_objects_F77
17303 # Dependencies to place after the objects being linked to create a
17305 postdep_objects=$lt_postdep_objects_F77
17307 # Dependencies to place before the objects being linked to create a
17309 predeps=$lt_predeps_F77
17311 # Dependencies to place after the objects being linked to create a
17313 postdeps=$lt_postdeps_F77
17315 # The library search path used internally by the compiler when linking
17316 # a shared library.
17317 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17319 # Method to check whether dependent libraries are shared objects.
17320 deplibs_check_method=$lt_deplibs_check_method
17322 # Command to use when deplibs_check_method == file_magic.
17323 file_magic_cmd=$lt_file_magic_cmd
17325 # Flag that allows shared libraries with undefined symbols to be built.
17326 allow_undefined_flag=$lt_allow_undefined_flag_F77
17328 # Flag that forces no undefined symbols.
17329 no_undefined_flag=$lt_no_undefined_flag_F77
17331 # Commands used to finish a libtool library installation in a directory.
17332 finish_cmds=$lt_finish_cmds
17334 # Same as above, but a single script fragment to be evaled but not shown.
17335 finish_eval=$lt_finish_eval
17337 # Take the output of nm and produce a listing of raw symbols and C names.
17338 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17340 # Transform the output of nm in a proper C declaration
17341 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17343 # Transform the output of nm in a C name address pair
17344 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17346 # This is the shared library runtime path variable.
17347 runpath_var=$runpath_var
17349 # This is the shared library path variable.
17350 shlibpath_var=$shlibpath_var
17352 # Is shlibpath searched before the hard-coded library search path?
17353 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17355 # How to hardcode a shared library path into an executable.
17356 hardcode_action=$hardcode_action_F77
17358 # Whether we should hardcode library paths into libraries.
17359 hardcode_into_libs=$hardcode_into_libs
17361 # Flag to hardcode \$libdir into a binary during linking.
17362 # This must work even if \$libdir does not exist.
17363 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17365 # If ld is used when linking, flag to hardcode \$libdir into
17366 # a binary during linking. This must work even if \$libdir does
17368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17370 # Whether we need a single -rpath flag with a separated argument.
17371 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17373 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17374 # resulting binary.
17375 hardcode_direct=$hardcode_direct_F77
17377 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17378 # resulting binary.
17379 hardcode_minus_L=$hardcode_minus_L_F77
17381 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17382 # the resulting binary.
17383 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17385 # Set to yes if building a shared library automatically hardcodes DIR into the library
17386 # and all subsequent libraries and executables linked against it.
17387 hardcode_automatic=$hardcode_automatic_F77
17389 # Variables whose values should be saved in libtool wrapper scripts and
17390 # restored at relink time.
17391 variables_saved_for_relink="$variables_saved_for_relink"
17393 # Whether libtool must link a program against all its dependency libraries.
17394 link_all_deplibs=$link_all_deplibs_F77
17396 # Compile-time system search path for libraries
17397 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17399 # Run-time system search path for libraries
17400 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17402 # Fix the shell variable \$srcfile for the compiler.
17403 fix_srcfile_path="$fix_srcfile_path_F77"
17405 # Set to yes if exported symbols are required.
17406 always_export_symbols=$always_export_symbols_F77
17408 # The commands to list exported symbols.
17409 export_symbols_cmds=$lt_export_symbols_cmds_F77
17411 # The commands to extract the exported symbol list from a shared archive.
17412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17414 # Symbols that should not be listed in the preloaded symbols.
17415 exclude_expsyms=$lt_exclude_expsyms_F77
17417 # Symbols that must always be exported.
17418 include_expsyms=$lt_include_expsyms_F77
17420 # ### END LIBTOOL TAG CONFIG: $tagname
17426 # If there is no Makefile yet, we rely on a make rule to execute
17427 # `config.status --recheck' to rerun these tests and create the
17428 # libtool script then.
17429 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17430 if test -f "$ltmain_in"; then
17431 test -f Makefile && make "$ltmain"
17437 ac_cpp='$CPP $CPPFLAGS'
17438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17450 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17454 # Source file extension for Java test sources.
17457 # Object file extension for compiled Java test sources.
17461 # Code to be used in simple compile tests
17462 lt_simple_compile_test_code="class foo {}\n"
17464 # Code to be used in simple link tests
17465 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17467 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17469 # If no C compiler was specified, use CC.
17472 # Allow CC to be a program name with arguments.
17476 # Allow CC to be a program name with arguments.
17482 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17483 archive_cmds_need_lc_GCJ=no
17486 ## There is no encapsulation within the following macros, do not change
17487 ## the running order or otherwise move them around unless you know exactly
17488 ## what you are doing...
17490 lt_prog_compiler_no_builtin_flag_GCJ=
17492 if test "$GCC" = yes; then
17493 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17496 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17497 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17498 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 lt_cv_prog_compiler_rtti_exceptions=no
17502 ac_outfile=conftest.$ac_objext
17503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17504 lt_compiler_flag="-fno-rtti -fno-exceptions"
17505 # Insert the option either (1) after the last *FLAGS variable, or
17506 # (2) before a word containing "conftest.", or (3) at the end.
17507 # Note that $ac_compile itself does not contain backslashes and begins
17508 # with a dollar sign (not a hyphen), so the echo should work correctly.
17509 # The option is referenced via a variable to avoid confusing sed.
17510 lt_compile=`echo "$ac_compile" | $SED \
17511 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17513 -e 's:$: $lt_compiler_flag:'`
17514 (eval echo "\"\$as_me:17514: $lt_compile\"" >&5)
17515 (eval "$lt_compile" 2>conftest.err)
17517 cat conftest.err >&5
17518 echo "$as_me:17518: \$? = $ac_status" >&5
17519 if (exit $ac_status) && test -s "$ac_outfile"; then
17520 # The compiler can only warn and ignore the option if not recognized
17521 # So say no if there are warnings
17522 if test ! -s conftest.err; then
17523 lt_cv_prog_compiler_rtti_exceptions=yes
17529 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17530 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17532 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17533 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17540 lt_prog_compiler_wl_GCJ=
17541 lt_prog_compiler_pic_GCJ=
17542 lt_prog_compiler_static_GCJ=
17544 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17545 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17547 if test "$GCC" = yes; then
17548 lt_prog_compiler_wl_GCJ='-Wl,'
17549 lt_prog_compiler_static_GCJ='-static'
17553 # All AIX code is PIC.
17554 if test "$host_cpu" = ia64; then
17555 # AIX 5 now supports IA64 processor
17556 lt_prog_compiler_static_GCJ='-Bstatic'
17561 # FIXME: we need at least 68020 code to build shared libraries, but
17562 # adding the `-m68020' flag to GCC prevents building anything better,
17564 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17567 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17568 # PIC is the default for these OSes.
17571 mingw* | pw32* | os2*)
17572 # This hack is so that the source file can tell whether it is being
17573 # built for inclusion in a dll (and should export symbols for example).
17574 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17577 darwin* | rhapsody*)
17578 # PIC is the default on this platform
17579 # Common symbols not allowed in MH_DYLIB files
17580 lt_prog_compiler_pic_GCJ='-fno-common'
17584 # Just because we use GCC doesn't mean we suddenly get shared libraries
17585 # on systems that don't support them.
17586 lt_prog_compiler_can_build_shared_GCJ=no
17591 if test -d /usr/nec; then
17592 lt_prog_compiler_pic_GCJ=-Kconform_pic
17597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17598 # not for PA HP-UX.
17599 case "$host_cpu" in
17604 lt_prog_compiler_pic_GCJ='-fPIC'
17610 lt_prog_compiler_pic_GCJ='-fPIC'
17614 # PORTME Check for flag to pass linker flags through the system compiler.
17617 lt_prog_compiler_wl_GCJ='-Wl,'
17618 if test "$host_cpu" = ia64; then
17619 # AIX 5 now supports IA64 processor
17620 lt_prog_compiler_static_GCJ='-Bstatic'
17622 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17626 mingw* | pw32* | os2*)
17627 # This hack is so that the source file can tell whether it is being
17628 # built for inclusion in a dll (and should export symbols for example).
17629 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17632 hpux9* | hpux10* | hpux11*)
17633 lt_prog_compiler_wl_GCJ='-Wl,'
17634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17635 # not for PA HP-UX.
17636 case "$host_cpu" in
17641 lt_prog_compiler_pic_GCJ='+Z'
17644 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17645 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17648 irix5* | irix6* | nonstopux*)
17649 lt_prog_compiler_wl_GCJ='-Wl,'
17650 # PIC (with -KPIC) is the default.
17651 lt_prog_compiler_static_GCJ='-non_shared'
17655 lt_prog_compiler_pic_GCJ='-KPIC'
17656 lt_prog_compiler_static_GCJ='-Bstatic'
17662 lt_prog_compiler_wl_GCJ='-Wl,'
17663 lt_prog_compiler_pic_GCJ='-KPIC'
17664 lt_prog_compiler_static_GCJ='-static'
17667 lt_prog_compiler_wl_GCJ='-Wl,'
17668 # All Alpha code is PIC.
17669 lt_prog_compiler_static_GCJ='-non_shared'
17674 osf3* | osf4* | osf5*)
17675 lt_prog_compiler_wl_GCJ='-Wl,'
17676 # All OSF/1 code is PIC.
17677 lt_prog_compiler_static_GCJ='-non_shared'
17681 lt_prog_compiler_pic_GCJ='-Kpic'
17682 lt_prog_compiler_static_GCJ='-dn'
17686 lt_prog_compiler_wl_GCJ='-Wl,'
17687 lt_prog_compiler_pic_GCJ='-KPIC'
17688 lt_prog_compiler_static_GCJ='-Bstatic'
17692 lt_prog_compiler_wl_GCJ='-Qoption ld '
17693 lt_prog_compiler_pic_GCJ='-PIC'
17694 lt_prog_compiler_static_GCJ='-Bstatic'
17697 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17698 lt_prog_compiler_wl_GCJ='-Wl,'
17699 lt_prog_compiler_pic_GCJ='-KPIC'
17700 lt_prog_compiler_static_GCJ='-Bstatic'
17704 if test -d /usr/nec ;then
17705 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17706 lt_prog_compiler_static_GCJ='-Bstatic'
17711 lt_prog_compiler_pic_GCJ='-pic'
17712 lt_prog_compiler_static_GCJ='-Bstatic'
17716 lt_prog_compiler_can_build_shared_GCJ=no
17721 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17722 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17725 # Check to make sure the PIC flag actually works.
17727 if test -n "$lt_prog_compiler_pic_GCJ"; then
17729 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17730 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17731 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 lt_prog_compiler_pic_works_GCJ=no
17735 ac_outfile=conftest.$ac_objext
17736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17737 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17738 # Insert the option either (1) after the last *FLAGS variable, or
17739 # (2) before a word containing "conftest.", or (3) at the end.
17740 # Note that $ac_compile itself does not contain backslashes and begins
17741 # with a dollar sign (not a hyphen), so the echo should work correctly.
17742 # The option is referenced via a variable to avoid confusing sed.
17743 lt_compile=`echo "$ac_compile" | $SED \
17744 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17746 -e 's:$: $lt_compiler_flag:'`
17747 (eval echo "\"\$as_me:17747: $lt_compile\"" >&5)
17748 (eval "$lt_compile" 2>conftest.err)
17750 cat conftest.err >&5
17751 echo "$as_me:17751: \$? = $ac_status" >&5
17752 if (exit $ac_status) && test -s "$ac_outfile"; then
17753 # The compiler can only warn and ignore the option if not recognized
17754 # So say no if there are warnings
17755 if test ! -s conftest.err; then
17756 lt_prog_compiler_pic_works_GCJ=yes
17762 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17763 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17765 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17766 case $lt_prog_compiler_pic_GCJ in
17768 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17771 lt_prog_compiler_pic_GCJ=
17772 lt_prog_compiler_can_build_shared_GCJ=no
17777 # For platforms which do not support PIC, -DPIC is meaningless:
17779 lt_prog_compiler_pic_GCJ=
17782 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17786 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17787 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17788 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 lt_cv_prog_compiler_c_o_GCJ=no
17792 $rm -r conftest 2>/dev/null
17796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17798 lt_compiler_flag="-o out/conftest2.$ac_objext"
17799 # Insert the option either (1) after the last *FLAGS variable, or
17800 # (2) before a word containing "conftest.", or (3) at the end.
17801 # Note that $ac_compile itself does not contain backslashes and begins
17802 # with a dollar sign (not a hyphen), so the echo should work correctly.
17803 lt_compile=`echo "$ac_compile" | $SED \
17804 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17806 -e 's:$: $lt_compiler_flag:'`
17807 (eval echo "\"\$as_me:17807: $lt_compile\"" >&5)
17808 (eval "$lt_compile" 2>out/conftest.err)
17810 cat out/conftest.err >&5
17811 echo "$as_me:17811: \$? = $ac_status" >&5
17812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17814 # The compiler can only warn and ignore the option if not recognized
17815 # So say no if there are warnings
17816 if test ! -s out/conftest.err; then
17817 lt_cv_prog_compiler_c_o_GCJ=yes
17822 # SGI C++ compiler will create directory out/ii_files/ for
17823 # template instantiation
17824 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17825 $rm out/* && rmdir out
17831 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17832 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17835 hard_links="nottested"
17836 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17837 # do not overwrite the value of need_locks provided by the user
17838 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17839 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17844 ln conftest.a conftest.b 2>&5 || hard_links=no
17845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17846 echo "$as_me:$LINENO: result: $hard_links" >&5
17847 echo "${ECHO_T}$hard_links" >&6
17848 if test "$hard_links" = no; then
17849 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17850 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17857 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17861 allow_undefined_flag_GCJ=
17862 enable_shared_with_static_runtimes_GCJ=no
17864 archive_expsym_cmds_GCJ=
17865 old_archive_From_new_cmds_GCJ=
17866 old_archive_from_expsyms_cmds_GCJ=
17867 export_dynamic_flag_spec_GCJ=
17868 whole_archive_flag_spec_GCJ=
17869 thread_safe_flag_spec_GCJ=
17870 hardcode_libdir_flag_spec_GCJ=
17871 hardcode_libdir_flag_spec_ld_GCJ=
17872 hardcode_libdir_separator_GCJ=
17873 hardcode_direct_GCJ=no
17874 hardcode_minus_L_GCJ=no
17875 hardcode_shlibpath_var_GCJ=unsupported
17876 link_all_deplibs_GCJ=unknown
17877 hardcode_automatic_GCJ=no
17879 module_expsym_cmds_GCJ=
17880 always_export_symbols_GCJ=no
17881 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17882 # include_expsyms should be a list of space-separated symbols to be *always*
17883 # included in the symbol list
17884 include_expsyms_GCJ=
17885 # exclude_expsyms can be an extended regexp of symbols to exclude
17886 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17887 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17888 # as well as any symbol that contains `d'.
17889 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17890 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17891 # platforms (ab)use it in PIC code, but their linkers get confused if
17892 # the symbol is explicitly referenced. Since portable code cannot
17893 # rely on this symbol name, it's probably fine to never include it in
17894 # preloaded symbol tables.
17895 extract_expsyms_cmds=
17898 cygwin* | mingw* | pw32*)
17899 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17900 # When not using gcc, we currently assume that we are using
17901 # Microsoft Visual C++.
17902 if test "$GCC" != yes; then
17912 if test "$with_gnu_ld" = yes; then
17913 # If archive_cmds runs LD, not CC, wlarc should be empty
17916 # See if GNU ld supports shared libraries.
17918 aix3* | aix4* | aix5*)
17919 # On AIX/PPC, the GNU linker is very broken
17920 if test "$host_cpu" != ia64; then
17924 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17925 *** to be unable to reliably create shared libraries on AIX.
17926 *** Therefore, libtool is disabling shared libraries support. If you
17927 *** really care for shared libraries, you may want to modify your PATH
17928 *** so that a non-GNU linker is found, and then restart.
17935 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)'
17936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17937 hardcode_minus_L_GCJ=yes
17939 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17940 # that the semantics of dynamic libraries on AmigaOS, at least up
17941 # to version 4, is to share data among multiple programs linked
17942 # with the same dynamic library. Since this doesn't match the
17943 # behavior of shared libraries on other platforms, we can't use
17949 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17950 allow_undefined_flag_GCJ=unsupported
17951 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17952 # support --undefined. This deserves some investigation. FIXME
17953 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17959 cygwin* | mingw* | pw32*)
17960 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17961 # as there is no search path for DLLs.
17962 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17963 allow_undefined_flag_GCJ=unsupported
17964 always_export_symbols_GCJ=no
17965 enable_shared_with_static_runtimes_GCJ=yes
17966 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17968 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17970 # If the export-symbols file already is a .def file (1st line
17971 # is EXPORTS), use it as is; otherwise, prepend...
17972 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17973 cp $export_symbols $output_objdir/$soname.def;
17975 echo EXPORTS > $output_objdir/$soname.def;
17976 cat $export_symbols >> $output_objdir/$soname.def;
17978 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17986 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17989 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17995 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17999 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18000 *** create shared libraries on Solaris systems. Therefore, libtool
18001 *** is disabling shared libraries support. We urge you to upgrade GNU
18002 *** binutils to release 2.9.1 or newer. Another option is to modify
18003 *** your PATH or compiler configuration so that the native linker is
18004 *** used, and then restart.
18007 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18008 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18016 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18018 hardcode_direct_GCJ=yes
18019 hardcode_shlibpath_var_GCJ=no
18023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18024 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18025 archive_cmds_GCJ="$tmp_archive_cmds"
18026 supports_anon_versioning=no
18027 case `$LD -v 2>/dev/null` in
18028 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18029 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18030 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18031 *\ 2.11.*) ;; # other 2.11 versions
18032 *) supports_anon_versioning=yes ;;
18034 if test $supports_anon_versioning = yes; then
18035 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18037 $echo "local: *; };" >> $output_objdir/$libname.ver~
18038 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18040 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18048 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18049 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18050 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18057 if test "$ld_shlibs_GCJ" = yes; then
18058 runpath_var=LD_RUN_PATH
18059 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18060 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18061 # ancient GNU ld didn't support --whole-archive et. al.
18062 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18063 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18065 whole_archive_flag_spec_GCJ=
18069 # PORTME fill in a description of your system's linker (not GNU ld)
18072 allow_undefined_flag_GCJ=unsupported
18073 always_export_symbols_GCJ=yes
18074 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'
18075 # Note: this linker hardcodes the directories in LIBPATH if there
18076 # are no directories specified by -L.
18077 hardcode_minus_L_GCJ=yes
18078 if test "$GCC" = yes && test -z "$link_static_flag"; then
18079 # Neither direct hardcoding nor static linking is supported with a
18081 hardcode_direct_GCJ=unsupported
18086 if test "$host_cpu" = ia64; then
18087 # On IA64, the linker does run time linking by default, so we don't
18088 # have to do anything special.
18089 aix_use_runtimelinking=no
18090 exp_sym_flag='-Bexport'
18093 # If we're using GNU nm, then we don't want the "-C" option.
18094 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18095 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18096 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'
18098 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'
18100 aix_use_runtimelinking=no
18102 # Test if we are trying to use run time linking or normal
18103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18104 # need to do runtime linking.
18105 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18106 for ld_flag in $LDFLAGS; do
18107 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18108 aix_use_runtimelinking=yes
18114 exp_sym_flag='-bexport'
18115 no_entry_flag='-bnoentry'
18118 # When large executables or shared objects are built, AIX ld can
18119 # have problems creating the table of contents. If linking a library
18120 # or program results in "error TOC overflow" add -mminimal-toc to
18121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18124 archive_cmds_GCJ=''
18125 hardcode_direct_GCJ=yes
18126 hardcode_libdir_separator_GCJ=':'
18127 link_all_deplibs_GCJ=yes
18129 if test "$GCC" = yes; then
18130 case $host_os in aix4.012|aix4.012.*)
18131 # We only want to do this on AIX 4.2 and lower, the check
18132 # below for broken collect2 doesn't work under 4.3+
18133 collect2name=`${CC} -print-prog-name=collect2`
18134 if test -f "$collect2name" && \
18135 strings "$collect2name" | grep resolve_lib_name >/dev/null
18137 # We have reworked collect2
18138 hardcode_direct_GCJ=yes
18140 # We have old collect2
18141 hardcode_direct_GCJ=unsupported
18142 # It fails to find uninstalled libraries when the uninstalled
18143 # path is not listed in the libpath. Setting hardcode_minus_L
18144 # to unsupported forces relinking
18145 hardcode_minus_L_GCJ=yes
18146 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18147 hardcode_libdir_separator_GCJ=
18150 shared_flag='-shared'
18153 if test "$host_cpu" = ia64; then
18154 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18155 # chokes on -Wl,-G. The following line is correct:
18158 if test "$aix_use_runtimelinking" = yes; then
18159 shared_flag='${wl}-G'
18161 shared_flag='${wl}-bM:SRE'
18166 # It seems that -bexpall does not export symbols beginning with
18167 # underscore (_), so it is better to generate a list of symbols to export.
18168 always_export_symbols_GCJ=yes
18169 if test "$aix_use_runtimelinking" = yes; then
18170 # Warning - without using the other runtime loading flags (-brtl),
18171 # -berok will link without error, but may produce a broken library.
18172 allow_undefined_flag_GCJ='-berok'
18173 # Determine the default libpath from the value encoded in an empty executable.
18174 cat >conftest.$ac_ext <<_ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18191 (eval $ac_link) 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag"
18199 || test ! -s conftest.err'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest$ac_exeext'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18214 # Check for a 64-bit object if we didn't find anything.
18215 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; }
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18222 rm -f conftest.err conftest.$ac_objext \
18223 conftest$ac_exeext conftest.$ac_ext
18224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18226 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18227 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"
18229 if test "$host_cpu" = ia64; then
18230 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18231 allow_undefined_flag_GCJ="-z nodefs"
18232 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"
18234 # Determine the default libpath from the value encoded in an empty executable.
18235 cat >conftest.$ac_ext <<_ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252 (eval $ac_link) 2>conftest.er1
18254 grep -v '^ *+' conftest.er1 >conftest.err
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } &&
18259 { ac_try='test -z "$ac_c_werror_flag"
18260 || test ! -s conftest.err'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; } &&
18266 { ac_try='test -s conftest$ac_exeext'
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18275 # Check for a 64-bit object if we didn't find anything.
18276 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; }
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18283 rm -f conftest.err conftest.$ac_objext \
18284 conftest$ac_exeext conftest.$ac_ext
18285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18287 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18288 # Warning - without using the other run time loading flags,
18289 # -berok will link without error, but may produce a broken library.
18290 no_undefined_flag_GCJ=' ${wl}-bernotok'
18291 allow_undefined_flag_GCJ=' ${wl}-berok'
18292 # -bexpall does not export symbols beginning with underscore (_)
18293 always_export_symbols_GCJ=yes
18294 # Exported symbols can be pulled into shared objects from archives
18295 whole_archive_flag_spec_GCJ=' '
18296 archive_cmds_need_lc_GCJ=yes
18297 # This is similar to how AIX traditionally builds it's shared libraries.
18298 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'
18304 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)'
18305 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18306 hardcode_minus_L_GCJ=yes
18307 # see comment about different semantics on the GNU ld section
18312 export_dynamic_flag_spec_GCJ=-rdynamic
18315 cygwin* | mingw* | pw32*)
18316 # When not using gcc, we currently assume that we are using
18317 # Microsoft Visual C++.
18318 # hardcode_libdir_flag_spec is actually meaningless, as there is
18319 # no search path for DLLs.
18320 hardcode_libdir_flag_spec_GCJ=' '
18321 allow_undefined_flag_GCJ=unsupported
18322 # Tell ltmain to make .lib files, not .a files.
18324 # Tell ltmain to make .dll files, not .so files.
18326 # FIXME: Setting linknames here is a bad hack.
18327 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18328 # The linker will automatically build a .lib file if we build a DLL.
18329 old_archive_From_new_cmds_GCJ='true'
18330 # FIXME: Should let the user specify the lib program.
18331 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18332 fix_srcfile_path='`cygpath -w "$srcfile"`'
18333 enable_shared_with_static_runtimes_GCJ=yes
18336 darwin* | rhapsody*)
18337 if test "$GXX" = yes ; then
18338 archive_cmds_need_lc_GCJ=no
18340 rhapsody* | darwin1.[012])
18341 allow_undefined_flag_GCJ='-undefined suppress'
18344 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18345 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18347 case ${MACOSX_DEPLOYMENT_TARGET} in
18349 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18352 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18358 lt_int_apple_cc_single_mod=no
18359 output_verbose_link_cmd='echo'
18360 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18361 lt_int_apple_cc_single_mod=yes
18363 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18364 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18366 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'
18368 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18369 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18370 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18371 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}'
18373 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}'
18375 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}'
18376 hardcode_direct_GCJ=no
18377 hardcode_automatic_GCJ=yes
18378 hardcode_shlibpath_var_GCJ=unsupported
18379 whole_archive_flag_spec_GCJ='-all_load $convenience'
18380 link_all_deplibs_GCJ=yes
18387 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18388 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18389 hardcode_shlibpath_var_GCJ=no
18396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18397 # support. Future versions do this automatically, but an explicit c++rt0.o
18398 # does not break anything, and helps significantly (at the cost of a little
18401 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18402 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18403 hardcode_direct_GCJ=yes
18404 hardcode_shlibpath_var_GCJ=no
18407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18409 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18410 hardcode_direct_GCJ=yes
18411 hardcode_minus_L_GCJ=yes
18412 hardcode_shlibpath_var_GCJ=no
18415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18416 freebsd* | kfreebsd*-gnu)
18417 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18418 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18419 hardcode_direct_GCJ=yes
18420 hardcode_shlibpath_var_GCJ=no
18424 if test "$GCC" = yes; then
18425 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'
18427 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'
18429 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18430 hardcode_libdir_separator_GCJ=:
18431 hardcode_direct_GCJ=yes
18433 # hardcode_minus_L: Not really in the search PATH,
18434 # but as the default location of the library.
18435 hardcode_minus_L_GCJ=yes
18436 export_dynamic_flag_spec_GCJ='${wl}-E'
18440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18441 case "$host_cpu" in
18443 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18446 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18450 case "$host_cpu" in
18452 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18455 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18459 if test "$with_gnu_ld" = no; then
18460 case "$host_cpu" in
18462 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18463 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18464 hardcode_libdir_separator_GCJ=:
18465 hardcode_direct_GCJ=no
18466 hardcode_shlibpath_var_GCJ=no
18469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18470 hardcode_direct_GCJ=no
18471 hardcode_shlibpath_var_GCJ=no
18473 # hardcode_minus_L: Not really in the search PATH,
18474 # but as the default location of the library.
18475 hardcode_minus_L_GCJ=yes
18478 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18479 hardcode_libdir_separator_GCJ=:
18480 hardcode_direct_GCJ=yes
18481 export_dynamic_flag_spec_GCJ='${wl}-E'
18483 # hardcode_minus_L: Not really in the search PATH,
18484 # but as the default location of the library.
18485 hardcode_minus_L_GCJ=yes
18491 irix5* | irix6* | nonstopux*)
18492 if test "$GCC" = yes; then
18493 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'
18495 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'
18496 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18498 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18499 hardcode_libdir_separator_GCJ=:
18500 link_all_deplibs_GCJ=yes
18504 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18507 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18509 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18510 hardcode_direct_GCJ=yes
18511 hardcode_shlibpath_var_GCJ=no
18515 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18516 hardcode_direct_GCJ=yes
18517 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18518 hardcode_libdir_separator_GCJ=:
18519 hardcode_shlibpath_var_GCJ=no
18523 hardcode_direct_GCJ=yes
18524 hardcode_shlibpath_var_GCJ=no
18525 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18526 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18527 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18528 export_dynamic_flag_spec_GCJ='${wl}-E'
18531 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18532 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18533 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18536 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18537 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18544 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18545 hardcode_minus_L_GCJ=yes
18546 allow_undefined_flag_GCJ=unsupported
18547 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'
18548 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18552 if test "$GCC" = yes; then
18553 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18554 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'
18556 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18557 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'
18559 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18560 hardcode_libdir_separator_GCJ=:
18563 osf4* | osf5*) # as osf3* with the addition of -msym flag
18564 if test "$GCC" = yes; then
18565 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18566 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'
18567 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18569 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18570 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'
18571 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~
18572 $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'
18574 # Both c and cxx compiler support -rpath directly
18575 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18577 hardcode_libdir_separator_GCJ=:
18581 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18582 hardcode_shlibpath_var_GCJ=no
18583 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18584 runpath_var=LD_RUN_PATH
18585 hardcode_runpath_var=yes
18589 no_undefined_flag_GCJ=' -z text'
18590 if test "$GCC" = yes; then
18591 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18592 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18593 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18595 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18596 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18597 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18599 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18600 hardcode_shlibpath_var_GCJ=no
18602 solaris2.[0-5] | solaris2.[0-5].*) ;;
18603 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18604 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18606 link_all_deplibs_GCJ=yes
18610 if test "x$host_vendor" = xsequent; then
18611 # Use $CC to link under sequent, because it throws in some extra .o
18612 # files that make .init and .fini sections work.
18613 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18615 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18617 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18618 hardcode_direct_GCJ=yes
18619 hardcode_minus_L_GCJ=yes
18620 hardcode_shlibpath_var_GCJ=no
18624 case $host_vendor in
18626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18627 hardcode_direct_GCJ=yes # is this really true???
18630 ## LD is ld it makes a PLAMLIB
18631 ## CC just makes a GrossModule.
18632 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18633 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18634 hardcode_direct_GCJ=no
18637 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18638 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18641 runpath_var='LD_RUN_PATH'
18642 hardcode_shlibpath_var_GCJ=no
18646 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18647 hardcode_shlibpath_var_GCJ=no
18648 export_dynamic_flag_spec_GCJ='-Bexport'
18652 if test -d /usr/nec; then
18653 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18654 hardcode_shlibpath_var_GCJ=no
18655 runpath_var=LD_RUN_PATH
18656 hardcode_runpath_var=yes
18662 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18663 hardcode_direct_GCJ=yes
18664 hardcode_minus_L_GCJ=no
18665 hardcode_shlibpath_var_GCJ=no
18666 hardcode_runpath_var=yes
18667 runpath_var=LD_RUN_PATH
18670 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18671 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18672 if test "$GCC" = yes; then
18673 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18675 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18677 runpath_var='LD_RUN_PATH'
18678 hardcode_shlibpath_var_GCJ=no
18682 no_undefined_flag_GCJ=' -z text'
18683 # $CC -shared without GNU ld will not create a library from C++
18684 # object files and a static libstdc++, better avoid it by now
18685 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18686 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18687 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18688 hardcode_libdir_flag_spec_GCJ=
18689 hardcode_shlibpath_var_GCJ=no
18690 runpath_var='LD_RUN_PATH'
18694 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18695 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18696 hardcode_shlibpath_var_GCJ=no
18705 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18706 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18707 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18710 if test "$GCC" = yes; then
18711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18715 # Do we need to explicitly link libc?
18717 case "x$archive_cmds_need_lc_GCJ" in
18719 # Assume -lc should be added
18720 archive_cmds_need_lc_GCJ=yes
18722 if test "$enable_shared" = yes && test "$GCC" = yes; then
18723 case $archive_cmds_GCJ in
18725 # FIXME: we may have to deal with multi-command sequences.
18728 # Test whether the compiler implicitly links with -lc since on some
18729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18730 # to ld, don't add -lc before -lgcc.
18731 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18732 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18734 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18737 (eval $ac_compile) 2>&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } 2>conftest.err; then
18743 libobjs=conftest.$ac_objext
18745 wl=$lt_prog_compiler_wl_GCJ
18751 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18752 allow_undefined_flag_GCJ=
18753 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18754 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }
18759 archive_cmds_need_lc_GCJ=no
18761 archive_cmds_need_lc_GCJ=yes
18763 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18765 cat conftest.err 1>&5
18768 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18769 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18776 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18777 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18778 library_names_spec=
18779 libname_spec='lib$name'
18783 postuninstall_cmds=
18787 shlibpath_overrides_runpath=unknown
18789 dynamic_linker="$host_os ld.so"
18790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18791 if test "$GCC" = yes; then
18792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18793 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18794 # if the path contains ";" then we assume it to be the separator
18795 # otherwise default to the standard path separator (i.e. ":") - it is
18796 # assumed that no part of a normal pathname contains ";" but that should
18797 # okay in the real world where ";" in dirpaths is itself problematic.
18798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18803 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18805 need_lib_prefix=unknown
18806 hardcode_into_libs=no
18808 # when you set need_version to no, make sure it does not cause -set_version
18809 # flags to be left without arguments
18810 need_version=unknown
18815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18816 shlibpath_var=LIBPATH
18818 # AIX 3 has no versioning support, so we append a major version to the name.
18819 soname_spec='${libname}${release}${shared_ext}$major'
18826 hardcode_into_libs=yes
18827 if test "$host_cpu" = ia64; then
18828 # AIX 5 supports IA64
18829 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18830 shlibpath_var=LD_LIBRARY_PATH
18832 # With GCC up to 2.95.x, collect2 would create an import file
18833 # for dependence libraries. The import file would start with
18834 # the line `#! .'. This would cause the generated library to
18835 # depend on `.', always an invalid library. This was fixed in
18836 # development snapshots of GCC prior to 3.0.
18838 aix4 | aix4.[01] | aix4.[01].*)
18839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18841 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18844 can_build_shared=no
18848 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18849 # soname into executable. Probably we can add versioning support to
18850 # collect2, so additional links can be useful in future.
18851 if test "$aix_use_runtimelinking" = yes; then
18852 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18853 # instead of lib<name>.a to let people know that these are not
18854 # typical AIX shared libraries.
18855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18857 # We preserve .a as extension for shared libraries through AIX4.2
18858 # and later when we are not doing run time linking.
18859 library_names_spec='${libname}${release}.a $libname.a'
18860 soname_spec='${libname}${release}${shared_ext}$major'
18862 shlibpath_var=LIBPATH
18867 library_names_spec='$libname.ixlibrary $libname.a'
18868 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18869 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'
18873 library_names_spec='${libname}${shared_ext}'
18874 dynamic_linker="$host_os ld.so"
18875 shlibpath_var=LIBRARY_PATH
18881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882 soname_spec='${libname}${release}${shared_ext}$major'
18883 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18884 shlibpath_var=LD_LIBRARY_PATH
18885 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18886 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18887 # the default ld.so.conf also contains /usr/contrib/lib and
18888 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18889 # libtool to hard-code these into programs
18892 cygwin* | mingw* | pw32*)
18893 version_type=windows
18898 case $GCC,$host_os in
18899 yes,cygwin* | yes,mingw* | yes,pw32*)
18900 library_names_spec='$libname.dll.a'
18901 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18902 postinstall_cmds='base_file=`basename \${file}`~
18903 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18904 dldir=$destdir/`dirname \$dlpath`~
18905 test -d \$dldir || mkdir -p \$dldir~
18906 $install_prog $dir/$dlname \$dldir/$dlname'
18907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18908 dlpath=$dir/\$dldll~
18910 shlibpath_overrides_runpath=yes
18914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18916 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18919 # MinGW DLLs use traditional 'lib' prefix
18920 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18921 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18922 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18923 # It is most probably a Windows format PATH printed by
18924 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18925 # path with ; separators, and with drive letters. We can handle the
18926 # drive letters (cygwin fileutils understands them), so leave them,
18927 # especially as we might pass files found there to a mingw objdump,
18928 # which wouldn't understand a cygwinified path. Ahh.
18929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18935 # pw32 DLLs use 'pw' prefix rather than 'lib'
18936 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18942 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18945 dynamic_linker='Win32 ld.exe'
18946 # FIXME: first we should search . and the directory the executable is in
18950 darwin* | rhapsody*)
18951 dynamic_linker="$host_os dyld"
18952 version_type=darwin
18955 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18956 soname_spec='${libname}${release}${major}$shared_ext'
18957 shlibpath_overrides_runpath=yes
18958 shlibpath_var=DYLD_LIBRARY_PATH
18959 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18960 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18961 if test "$GCC" = yes; then
18962 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"`
18964 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18966 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18974 soname_spec='${libname}${release}${shared_ext}$major'
18975 shlibpath_var=LD_LIBRARY_PATH
18986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18987 soname_spec='${libname}${release}${shared_ext}$major'
18988 shlibpath_var=LD_LIBRARY_PATH
18989 shlibpath_overrides_runpath=no
18990 hardcode_into_libs=yes
18991 dynamic_linker='GNU ld.so'
18995 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18996 version_type=freebsd-$objformat
18997 case $version_type in
18999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19008 shlibpath_var=LD_LIBRARY_PATH
19011 shlibpath_overrides_runpath=yes
19013 freebsd3.01* | freebsdelf3.01*)
19014 shlibpath_overrides_runpath=yes
19015 hardcode_into_libs=yes
19018 shlibpath_overrides_runpath=no
19019 hardcode_into_libs=yes
19028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19029 soname_spec='${libname}${release}${shared_ext}$major'
19030 shlibpath_var=LD_LIBRARY_PATH
19031 hardcode_into_libs=yes
19034 hpux9* | hpux10* | hpux11*)
19035 # Give a soname corresponding to the major version so that dld.sl refuses to
19036 # link against other versions.
19040 case "$host_cpu" in
19043 hardcode_into_libs=yes
19044 dynamic_linker="$host_os dld.so"
19045 shlibpath_var=LD_LIBRARY_PATH
19046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19048 soname_spec='${libname}${release}${shared_ext}$major'
19049 if test "X$HPUX_IA64_MODE" = X32; then
19050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19058 hardcode_into_libs=yes
19059 dynamic_linker="$host_os dld.sl"
19060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19063 soname_spec='${libname}${release}${shared_ext}$major'
19064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19069 dynamic_linker="$host_os dld.sl"
19070 shlibpath_var=SHLIB_PATH
19071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19073 soname_spec='${libname}${release}${shared_ext}$major'
19076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19077 postinstall_cmds='chmod 555 $lib'
19080 irix5* | irix6* | nonstopux*)
19082 nonstopux*) version_type=nonstopux ;;
19084 if test "$lt_cv_prog_gnu_ld" = yes; then
19092 soname_spec='${libname}${release}${shared_ext}$major'
19093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19095 irix5* | nonstopux*)
19096 libsuff= shlibsuff=
19099 case $LD in # libtool.m4 will add one of these switches to LD
19100 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19101 libsuff= shlibsuff= libmagic=32-bit;;
19102 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19103 libsuff=32 shlibsuff=N32 libmagic=N32;;
19104 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19105 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19106 *) libsuff= shlibsuff= libmagic=never-match;;
19110 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19111 shlibpath_overrides_runpath=no
19112 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19113 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19114 hardcode_into_libs=yes
19117 # No shared lib support for Linux oldld, aout, or coff.
19118 linux*oldld* | linux*aout* | linux*coff*)
19122 # This must be Linux ELF.
19127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19128 soname_spec='${libname}${release}${shared_ext}$major'
19129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19130 shlibpath_var=LD_LIBRARY_PATH
19131 shlibpath_overrides_runpath=no
19132 # This implies no fast_install, which is unacceptable.
19133 # Some rework will be needed to allow for fast_install
19134 # before this can be enabled.
19135 hardcode_into_libs=yes
19137 # find out which ABI we are using
19139 case "$host_cpu" in
19140 x86_64*|s390x*|powerpc64*)
19141 echo '#line 19141 "configure"' > conftest.$ac_ext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19143 (eval $ac_compile) 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; then
19147 case `/usr/bin/file conftest.$ac_objext` in
19150 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19158 # Append ld.so.conf contents to the search path
19159 if test -f /etc/ld.so.conf; then
19160 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19161 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19164 # We used to test for /lib/ld.so.1 and disable shared libraries on
19165 # powerpc, because MkLinux only supported shared libraries with the
19166 # GNU dynamic linker. Since this was broken with cross compilers,
19167 # most powerpc-linux boxes support dynamic linking these days and
19168 # people can always --disable-shared, the test was removed, and we
19169 # assume the GNU/Linux dynamic linker is in use.
19170 dynamic_linker='GNU/Linux ld.so'
19177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19178 soname_spec='${libname}${release}${shared_ext}$major'
19179 shlibpath_var=LD_LIBRARY_PATH
19180 shlibpath_overrides_runpath=no
19181 hardcode_into_libs=yes
19182 dynamic_linker='GNU ld.so'
19189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19192 dynamic_linker='NetBSD (a.out) ld.so'
19194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19195 soname_spec='${libname}${release}${shared_ext}$major'
19196 dynamic_linker='NetBSD ld.elf_so'
19198 shlibpath_var=LD_LIBRARY_PATH
19199 shlibpath_overrides_runpath=yes
19200 hardcode_into_libs=yes
19205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19206 shlibpath_var=LD_LIBRARY_PATH
19207 shlibpath_overrides_runpath=yes
19214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19215 soname_spec='${libname}${release}${shared_ext}$major'
19216 shlibpath_var=LD_LIBRARY_PATH
19217 shlibpath_overrides_runpath=yes
19224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19226 shlibpath_var=LD_LIBRARY_PATH
19227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19229 openbsd2.[89] | openbsd2.[89].*)
19230 shlibpath_overrides_runpath=no
19233 shlibpath_overrides_runpath=yes
19237 shlibpath_overrides_runpath=yes
19242 libname_spec='$name'
19245 library_names_spec='$libname${shared_ext} $libname.a'
19246 dynamic_linker='OS/2 ld.exe'
19247 shlibpath_var=LIBPATH
19250 osf3* | osf4* | osf5*)
19254 soname_spec='${libname}${release}${shared_ext}$major'
19255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19256 shlibpath_var=LD_LIBRARY_PATH
19257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19263 soname_spec='${libname}${release}${shared_ext}$major'
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19265 shlibpath_var=LD_LIBRARY_PATH
19272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19273 soname_spec='${libname}${release}${shared_ext}$major'
19274 shlibpath_var=LD_LIBRARY_PATH
19275 shlibpath_overrides_runpath=yes
19276 hardcode_into_libs=yes
19277 # ldd complains unless libraries are executable
19278 postinstall_cmds='chmod +x $lib'
19283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19285 shlibpath_var=LD_LIBRARY_PATH
19286 shlibpath_overrides_runpath=yes
19287 if test "$with_gnu_ld" = yes; then
19293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19296 soname_spec='${libname}${release}${shared_ext}$major'
19297 shlibpath_var=LD_LIBRARY_PATH
19298 case $host_vendor in
19300 shlibpath_overrides_runpath=no
19302 export_dynamic_flag_spec='${wl}-Blargedynsym'
19303 runpath_var=LD_RUN_PATH
19311 shlibpath_overrides_runpath=no
19312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19318 if test -d /usr/nec ;then
19320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19321 soname_spec='$libname${shared_ext}.$major'
19322 shlibpath_var=LD_LIBRARY_PATH
19328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19329 soname_spec='${libname}${release}${shared_ext}$major'
19330 shlibpath_var=LD_LIBRARY_PATH
19337 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19338 echo "${ECHO_T}$dynamic_linker" >&6
19339 test "$dynamic_linker" = no && can_build_shared=no
19341 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19342 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19343 hardcode_action_GCJ=
19344 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19345 test -n "$runpath_var GCJ" || \
19346 test "X$hardcode_automatic_GCJ"="Xyes" ; then
19348 # We can hardcode non-existant directories.
19349 if test "$hardcode_direct_GCJ" != no &&
19350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19351 # have to relink, otherwise we might link with an installed library
19352 # when we should be linking with a yet-to-be-installed one
19353 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19354 test "$hardcode_minus_L_GCJ" != no; then
19355 # Linking always hardcodes the temporary library directory.
19356 hardcode_action_GCJ=relink
19358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19359 hardcode_action_GCJ=immediate
19362 # We cannot hardcode anything, or else we can only hardcode existing
19364 hardcode_action_GCJ=unsupported
19366 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19367 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19369 if test "$hardcode_action_GCJ" = relink; then
19370 # Fast installation is not supported
19371 enable_fast_install=no
19372 elif test "$shlibpath_overrides_runpath" = yes ||
19373 test "$enable_shared" = no; then
19374 # Fast installation is not necessary
19375 enable_fast_install=needless
19380 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19381 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19382 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19383 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19384 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19385 echo "$as_me:$LINENO: result: yes" >&5
19386 echo "${ECHO_T}yes" >&6
19388 # FIXME - insert some real tests, host_os isn't really good enough
19391 if test -n "$STRIP" ; then
19392 striplib="$STRIP -x"
19393 echo "$as_me:$LINENO: result: yes" >&5
19394 echo "${ECHO_T}yes" >&6
19396 echo "$as_me:$LINENO: result: no" >&5
19397 echo "${ECHO_T}no" >&6
19401 echo "$as_me:$LINENO: result: no" >&5
19402 echo "${ECHO_T}no" >&6
19407 if test "x$enable_dlopen" != xyes; then
19408 enable_dlopen=unknown
19409 enable_dlopen_self=unknown
19410 enable_dlopen_self_static=unknown
19417 lt_cv_dlopen="load_add_on"
19419 lt_cv_dlopen_self=yes
19423 lt_cv_dlopen="LoadLibrary"
19428 lt_cv_dlopen="dlopen"
19433 # if libdl is installed we need to link against it
19434 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19435 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19436 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 ac_check_lib_save_LIBS=$LIBS
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19448 /* Override any gcc2 internal prototype to avoid an error. */
19452 /* We use char because int might match the return type of a gcc2
19453 builtin and then its argument prototype would still apply. */
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19465 (eval $ac_link) 2>conftest.er1
19467 grep -v '^ *+' conftest.er1 >conftest.err
19469 cat conftest.err >&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } &&
19472 { ac_try='test -z "$ac_c_werror_flag"
19473 || test ! -s conftest.err'
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; } &&
19479 { ac_try='test -s conftest$ac_exeext'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 ac_cv_lib_dl_dlopen=yes
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 ac_cv_lib_dl_dlopen=no
19492 rm -f conftest.err conftest.$ac_objext \
19493 conftest$ac_exeext conftest.$ac_ext
19494 LIBS=$ac_check_lib_save_LIBS
19496 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19497 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19498 if test $ac_cv_lib_dl_dlopen = yes; then
19499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19502 lt_cv_dlopen="dyld"
19504 lt_cv_dlopen_self=yes
19511 echo "$as_me:$LINENO: checking for shl_load" >&5
19512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19513 if test "${ac_cv_func_shl_load+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 cat >conftest.$ac_ext <<_ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19524 #define shl_load innocuous_shl_load
19526 /* System header to define __stub macros and hopefully few prototypes,
19527 which can conflict with char shl_load (); below.
19528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19529 <limits.h> exists even on freestanding compilers. */
19532 # include <limits.h>
19534 # include <assert.h>
19539 /* Override any gcc2 internal prototype to avoid an error. */
19544 /* We use char because int might match the return type of a gcc2
19545 builtin and then its argument prototype would still apply. */
19547 /* The GNU C library defines this for functions which it implements
19548 to always fail with ENOSYS. Some functions are actually named
19549 something starting with __ and the normal name is an alias. */
19550 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19553 char (*f) () = shl_load;
19562 return f != shl_load;
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569 (eval $ac_link) 2>conftest.er1
19571 grep -v '^ *+' conftest.er1 >conftest.err
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
19576 { ac_try='test -z "$ac_c_werror_flag"
19577 || test ! -s conftest.err'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest$ac_exeext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_cv_func_shl_load=yes
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 ac_cv_func_shl_load=no
19596 rm -f conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19599 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19600 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19601 if test $ac_cv_func_shl_load = yes; then
19602 lt_cv_dlopen="shl_load"
19604 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19605 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 ac_check_lib_save_LIBS=$LIBS
19611 cat >conftest.$ac_ext <<_ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19618 /* Override any gcc2 internal prototype to avoid an error. */
19622 /* We use char because int might match the return type of a gcc2
19623 builtin and then its argument prototype would still apply. */
19633 rm -f conftest.$ac_objext conftest$ac_exeext
19634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635 (eval $ac_link) 2>conftest.er1
19637 grep -v '^ *+' conftest.er1 >conftest.err
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
19642 { ac_try='test -z "$ac_c_werror_flag"
19643 || test ! -s conftest.err'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; } &&
19649 { ac_try='test -s conftest$ac_exeext'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
19655 ac_cv_lib_dld_shl_load=yes
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_cv_lib_dld_shl_load=no
19662 rm -f conftest.err conftest.$ac_objext \
19663 conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19667 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19668 if test $ac_cv_lib_dld_shl_load = yes; then
19669 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19671 echo "$as_me:$LINENO: checking for dlopen" >&5
19672 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19673 if test "${ac_cv_func_dlopen+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 cat >conftest.$ac_ext <<_ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19684 #define dlopen innocuous_dlopen
19686 /* System header to define __stub macros and hopefully few prototypes,
19687 which can conflict with char dlopen (); below.
19688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19689 <limits.h> exists even on freestanding compilers. */
19692 # include <limits.h>
19694 # include <assert.h>
19699 /* Override any gcc2 internal prototype to avoid an error. */
19704 /* We use char because int might match the return type of a gcc2
19705 builtin and then its argument prototype would still apply. */
19707 /* The GNU C library defines this for functions which it implements
19708 to always fail with ENOSYS. Some functions are actually named
19709 something starting with __ and the normal name is an alias. */
19710 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19713 char (*f) () = dlopen;
19722 return f != dlopen;
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729 (eval $ac_link) 2>conftest.er1
19731 grep -v '^ *+' conftest.er1 >conftest.err
19733 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
19736 { ac_try='test -z "$ac_c_werror_flag"
19737 || test ! -s conftest.err'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } &&
19743 { ac_try='test -s conftest$ac_exeext'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
19749 ac_cv_func_dlopen=yes
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_func_dlopen=no
19756 rm -f conftest.err conftest.$ac_objext \
19757 conftest$ac_exeext conftest.$ac_ext
19759 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19760 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19761 if test $ac_cv_func_dlopen = yes; then
19762 lt_cv_dlopen="dlopen"
19764 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 ac_check_lib_save_LIBS=$LIBS
19771 cat >conftest.$ac_ext <<_ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19778 /* Override any gcc2 internal prototype to avoid an error. */
19782 /* We use char because int might match the return type of a gcc2
19783 builtin and then its argument prototype would still apply. */
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19795 (eval $ac_link) 2>conftest.er1
19797 grep -v '^ *+' conftest.er1 >conftest.err
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -z "$ac_c_werror_flag"
19803 || test ! -s conftest.err'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest$ac_exeext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 ac_cv_lib_dl_dlopen=yes
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_cv_lib_dl_dlopen=no
19822 rm -f conftest.err conftest.$ac_objext \
19823 conftest$ac_exeext conftest.$ac_ext
19824 LIBS=$ac_check_lib_save_LIBS
19826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19828 if test $ac_cv_lib_dl_dlopen = yes; then
19829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19831 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 ac_check_lib_save_LIBS=$LIBS
19837 LIBS="-lsvld $LIBS"
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19845 /* Override any gcc2 internal prototype to avoid an error. */
19849 /* We use char because int might match the return type of a gcc2
19850 builtin and then its argument prototype would still apply. */
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19862 (eval $ac_link) 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
19869 { ac_try='test -z "$ac_c_werror_flag"
19870 || test ! -s conftest.err'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest$ac_exeext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_cv_lib_svld_dlopen=yes
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_cv_lib_svld_dlopen=no
19889 rm -f conftest.err conftest.$ac_objext \
19890 conftest$ac_exeext conftest.$ac_ext
19891 LIBS=$ac_check_lib_save_LIBS
19893 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19895 if test $ac_cv_lib_svld_dlopen = yes; then
19896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19898 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19899 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19900 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 ac_check_lib_save_LIBS=$LIBS
19905 cat >conftest.$ac_ext <<_ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19912 /* Override any gcc2 internal prototype to avoid an error. */
19916 /* We use char because int might match the return type of a gcc2
19917 builtin and then its argument prototype would still apply. */
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>conftest.er1
19931 grep -v '^ *+' conftest.er1 >conftest.err
19933 cat conftest.err >&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); } &&
19936 { ac_try='test -z "$ac_c_werror_flag"
19937 || test ! -s conftest.err'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest$ac_exeext'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 ac_cv_lib_dld_dld_link=yes
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19954 ac_cv_lib_dld_dld_link=no
19956 rm -f conftest.err conftest.$ac_objext \
19957 conftest$ac_exeext conftest.$ac_ext
19958 LIBS=$ac_check_lib_save_LIBS
19960 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19961 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19962 if test $ac_cv_lib_dld_dld_link = yes; then
19963 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19984 if test "x$lt_cv_dlopen" != xno; then
19990 case $lt_cv_dlopen in
19992 save_CPPFLAGS="$CPPFLAGS"
19993 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19995 save_LDFLAGS="$LDFLAGS"
19996 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19999 LIBS="$lt_cv_dlopen_libs $LIBS"
20001 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20002 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20003 if test "${lt_cv_dlopen_self+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 if test "$cross_compiling" = yes; then :
20007 lt_cv_dlopen_self=cross
20009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20010 lt_status=$lt_dlunknown
20011 cat > conftest.$ac_ext <<EOF
20012 #line 20012 "configure"
20013 #include "confdefs.h"
20022 # define LT_DLGLOBAL RTLD_GLOBAL
20025 # define LT_DLGLOBAL DL_GLOBAL
20027 # define LT_DLGLOBAL 0
20031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20032 find out it does not work in some platform. */
20033 #ifndef LT_DLLAZY_OR_NOW
20035 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20038 # define LT_DLLAZY_OR_NOW DL_LAZY
20041 # define LT_DLLAZY_OR_NOW RTLD_NOW
20044 # define LT_DLLAZY_OR_NOW DL_NOW
20046 # define LT_DLLAZY_OR_NOW 0
20054 extern "C" void exit (int);
20057 void fnord() { int i=42;}
20060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20061 int status = $lt_dlunknown;
20065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20066 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20067 /* dlclose (self); */
20073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20074 (eval $ac_link) 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20078 (./conftest; exit; ) 2>/dev/null
20080 case x$lt_status in
20081 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20082 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20083 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20086 # compilation failed
20087 lt_cv_dlopen_self=no
20094 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20095 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20097 if test "x$lt_cv_dlopen_self" = xyes; then
20098 LDFLAGS="$LDFLAGS $link_static_flag"
20099 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20100 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20101 if test "${lt_cv_dlopen_self_static+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 if test "$cross_compiling" = yes; then :
20105 lt_cv_dlopen_self_static=cross
20107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20108 lt_status=$lt_dlunknown
20109 cat > conftest.$ac_ext <<EOF
20110 #line 20110 "configure"
20111 #include "confdefs.h"
20120 # define LT_DLGLOBAL RTLD_GLOBAL
20123 # define LT_DLGLOBAL DL_GLOBAL
20125 # define LT_DLGLOBAL 0
20129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20130 find out it does not work in some platform. */
20131 #ifndef LT_DLLAZY_OR_NOW
20133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20136 # define LT_DLLAZY_OR_NOW DL_LAZY
20139 # define LT_DLLAZY_OR_NOW RTLD_NOW
20142 # define LT_DLLAZY_OR_NOW DL_NOW
20144 # define LT_DLLAZY_OR_NOW 0
20152 extern "C" void exit (int);
20155 void fnord() { int i=42;}
20158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20159 int status = $lt_dlunknown;
20163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20164 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20165 /* dlclose (self); */
20171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20172 (eval $ac_link) 2>&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20176 (./conftest; exit; ) 2>/dev/null
20178 case x$lt_status in
20179 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20180 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20181 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20184 # compilation failed
20185 lt_cv_dlopen_self_static=no
20192 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20193 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20196 CPPFLAGS="$save_CPPFLAGS"
20197 LDFLAGS="$save_LDFLAGS"
20202 case $lt_cv_dlopen_self in
20203 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20204 *) enable_dlopen_self=unknown ;;
20207 case $lt_cv_dlopen_self_static in
20208 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20209 *) enable_dlopen_self_static=unknown ;;
20214 # The else clause should only fire when bootstrapping the
20215 # libtool distribution, otherwise you forgot to ship ltmain.sh
20216 # with your package, and you will get complaints that there are
20217 # no rules to generate ltmain.sh.
20218 if test -f "$ltmain"; then
20219 # See if we are running on zsh, and set the options which allow our commands through
20220 # without removal of \ escapes.
20221 if test -n "${ZSH_VERSION+set}" ; then
20222 setopt NO_GLOB_SUBST
20224 # Now quote all the things that may contain metacharacters while being
20225 # careful not to overquote the AC_SUBSTed values. We take copies of the
20226 # variables and quote the copies for generation of the libtool script.
20227 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20231 deplibs_check_method reload_flag reload_cmds need_locks \
20232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20233 lt_cv_sys_global_symbol_to_c_name_address \
20234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20235 old_postinstall_cmds old_postuninstall_cmds \
20239 lt_prog_compiler_wl_GCJ \
20240 lt_prog_compiler_pic_GCJ \
20241 lt_prog_compiler_static_GCJ \
20242 lt_prog_compiler_no_builtin_flag_GCJ \
20243 export_dynamic_flag_spec_GCJ \
20244 thread_safe_flag_spec_GCJ \
20245 whole_archive_flag_spec_GCJ \
20246 enable_shared_with_static_runtimes_GCJ \
20247 old_archive_cmds_GCJ \
20248 old_archive_from_new_cmds_GCJ \
20249 predep_objects_GCJ \
20250 postdep_objects_GCJ \
20253 compiler_lib_search_path_GCJ \
20255 archive_expsym_cmds_GCJ \
20256 postinstall_cmds_GCJ \
20257 postuninstall_cmds_GCJ \
20258 old_archive_from_expsyms_cmds_GCJ \
20259 allow_undefined_flag_GCJ \
20260 no_undefined_flag_GCJ \
20261 export_symbols_cmds_GCJ \
20262 hardcode_libdir_flag_spec_GCJ \
20263 hardcode_libdir_flag_spec_ld_GCJ \
20264 hardcode_libdir_separator_GCJ \
20265 hardcode_automatic_GCJ \
20267 module_expsym_cmds_GCJ \
20268 lt_cv_prog_compiler_c_o_GCJ \
20269 exclude_expsyms_GCJ \
20270 include_expsyms_GCJ; do
20273 old_archive_cmds_GCJ | \
20274 old_archive_from_new_cmds_GCJ | \
20275 archive_cmds_GCJ | \
20276 archive_expsym_cmds_GCJ | \
20277 module_cmds_GCJ | \
20278 module_expsym_cmds_GCJ | \
20279 old_archive_from_expsyms_cmds_GCJ | \
20280 export_symbols_cmds_GCJ | \
20281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20282 postinstall_cmds | postuninstall_cmds | \
20283 old_postinstall_cmds | old_postuninstall_cmds | \
20284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20285 # Double-quote double-evaled strings.
20286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20295 *'\$0 --fallback-echo"')
20296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20302 cat <<__EOF__ >> "$cfgfile"
20303 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20307 # Shell to use when invoking shell scripts.
20310 # Whether or not to build shared libraries.
20311 build_libtool_libs=$enable_shared
20313 # Whether or not to build static libraries.
20314 build_old_libs=$enable_static
20316 # Whether or not to add -lc for building shared libraries.
20317 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20319 # Whether or not to disallow shared libs when runtime libs are static
20320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20322 # Whether or not to optimize for fast installation.
20323 fast_install=$enable_fast_install
20326 host_alias=$host_alias
20329 # An echo program that does not interpret backslashes.
20334 AR_FLAGS=$lt_AR_FLAGS
20339 # A language-specific compiler.
20340 CC=$lt_compiler_GCJ
20342 # Is the compiler the GNU C compiler?
20348 # The linker used to build libraries.
20351 # Whether we need hard or soft links.
20354 # A BSD-compatible nm program.
20357 # A symbol stripping program
20360 # Used to examine libraries when file_magic_cmd begins "file"
20361 MAGIC_CMD=$MAGIC_CMD
20363 # Used on cygwin: DLL creation program.
20366 # Used on cygwin: object dumper.
20369 # Used on cygwin: assembler.
20372 # The name of the directory that contains temporary libtool files.
20375 # How to create reloadable object files.
20376 reload_flag=$lt_reload_flag
20377 reload_cmds=$lt_reload_cmds
20379 # How to pass a linker flag through the compiler.
20380 wl=$lt_lt_prog_compiler_wl_GCJ
20382 # Object file suffix (normally "o").
20383 objext="$ac_objext"
20385 # Old archive suffix (normally "a").
20388 # Shared library suffix (normally ".so").
20389 shrext_cmds='$shrext_cmds'
20391 # Executable file suffix (normally "").
20394 # Additional compiler flags for building library objects.
20395 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20398 # What is the maximum length of a command?
20399 max_cmd_len=$lt_cv_sys_max_cmd_len
20401 # Does compiler simultaneously support -c and -o options?
20402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20404 # Must we lock files when doing compilation ?
20405 need_locks=$lt_need_locks
20407 # Do we need the lib prefix for modules?
20408 need_lib_prefix=$need_lib_prefix
20410 # Do we need a version for libraries?
20411 need_version=$need_version
20413 # Whether dlopen is supported.
20414 dlopen_support=$enable_dlopen
20416 # Whether dlopen of programs is supported.
20417 dlopen_self=$enable_dlopen_self
20419 # Whether dlopen of statically linked programs is supported.
20420 dlopen_self_static=$enable_dlopen_self_static
20422 # Compiler flag to prevent dynamic linking.
20423 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20425 # Compiler flag to turn off builtin functions.
20426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20428 # Compiler flag to allow reflexive dlopens.
20429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20431 # Compiler flag to generate shared objects directly from archives.
20432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20434 # Compiler flag to generate thread-safe objects.
20435 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20437 # Library versioning type.
20438 version_type=$version_type
20440 # Format of library name prefix.
20441 libname_spec=$lt_libname_spec
20443 # List of archive names. First name is the real one, the rest are links.
20444 # The last name is the one that the linker finds with -lNAME.
20445 library_names_spec=$lt_library_names_spec
20447 # The coded name of the library, if different from the real name.
20448 soname_spec=$lt_soname_spec
20450 # Commands used to build and install an old-style archive.
20452 old_archive_cmds=$lt_old_archive_cmds_GCJ
20453 old_postinstall_cmds=$lt_old_postinstall_cmds
20454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20456 # Create an old-style archive from a shared archive.
20457 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20459 # Create a temporary old-style archive to link instead of a shared archive.
20460 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20462 # Commands used to build and install a shared archive.
20463 archive_cmds=$lt_archive_cmds_GCJ
20464 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20465 postinstall_cmds=$lt_postinstall_cmds
20466 postuninstall_cmds=$lt_postuninstall_cmds
20468 # Commands used to build a loadable module (assumed same as above if empty)
20469 module_cmds=$lt_module_cmds_GCJ
20470 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20472 # Commands to strip libraries.
20473 old_striplib=$lt_old_striplib
20474 striplib=$lt_striplib
20476 # Dependencies to place before the objects being linked to create a
20478 predep_objects=$lt_predep_objects_GCJ
20480 # Dependencies to place after the objects being linked to create a
20482 postdep_objects=$lt_postdep_objects_GCJ
20484 # Dependencies to place before the objects being linked to create a
20486 predeps=$lt_predeps_GCJ
20488 # Dependencies to place after the objects being linked to create a
20490 postdeps=$lt_postdeps_GCJ
20492 # The library search path used internally by the compiler when linking
20493 # a shared library.
20494 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20496 # Method to check whether dependent libraries are shared objects.
20497 deplibs_check_method=$lt_deplibs_check_method
20499 # Command to use when deplibs_check_method == file_magic.
20500 file_magic_cmd=$lt_file_magic_cmd
20502 # Flag that allows shared libraries with undefined symbols to be built.
20503 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20505 # Flag that forces no undefined symbols.
20506 no_undefined_flag=$lt_no_undefined_flag_GCJ
20508 # Commands used to finish a libtool library installation in a directory.
20509 finish_cmds=$lt_finish_cmds
20511 # Same as above, but a single script fragment to be evaled but not shown.
20512 finish_eval=$lt_finish_eval
20514 # Take the output of nm and produce a listing of raw symbols and C names.
20515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20517 # Transform the output of nm in a proper C declaration
20518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20520 # Transform the output of nm in a C name address pair
20521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20523 # This is the shared library runtime path variable.
20524 runpath_var=$runpath_var
20526 # This is the shared library path variable.
20527 shlibpath_var=$shlibpath_var
20529 # Is shlibpath searched before the hard-coded library search path?
20530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20532 # How to hardcode a shared library path into an executable.
20533 hardcode_action=$hardcode_action_GCJ
20535 # Whether we should hardcode library paths into libraries.
20536 hardcode_into_libs=$hardcode_into_libs
20538 # Flag to hardcode \$libdir into a binary during linking.
20539 # This must work even if \$libdir does not exist.
20540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20542 # If ld is used when linking, flag to hardcode \$libdir into
20543 # a binary during linking. This must work even if \$libdir does
20545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20547 # Whether we need a single -rpath flag with a separated argument.
20548 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20550 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20551 # resulting binary.
20552 hardcode_direct=$hardcode_direct_GCJ
20554 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20555 # resulting binary.
20556 hardcode_minus_L=$hardcode_minus_L_GCJ
20558 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20559 # the resulting binary.
20560 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20562 # Set to yes if building a shared library automatically hardcodes DIR into the library
20563 # and all subsequent libraries and executables linked against it.
20564 hardcode_automatic=$hardcode_automatic_GCJ
20566 # Variables whose values should be saved in libtool wrapper scripts and
20567 # restored at relink time.
20568 variables_saved_for_relink="$variables_saved_for_relink"
20570 # Whether libtool must link a program against all its dependency libraries.
20571 link_all_deplibs=$link_all_deplibs_GCJ
20573 # Compile-time system search path for libraries
20574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20576 # Run-time system search path for libraries
20577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20579 # Fix the shell variable \$srcfile for the compiler.
20580 fix_srcfile_path="$fix_srcfile_path_GCJ"
20582 # Set to yes if exported symbols are required.
20583 always_export_symbols=$always_export_symbols_GCJ
20585 # The commands to list exported symbols.
20586 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20588 # The commands to extract the exported symbol list from a shared archive.
20589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20591 # Symbols that should not be listed in the preloaded symbols.
20592 exclude_expsyms=$lt_exclude_expsyms_GCJ
20594 # Symbols that must always be exported.
20595 include_expsyms=$lt_include_expsyms_GCJ
20597 # ### END LIBTOOL TAG CONFIG: $tagname
20603 # If there is no Makefile yet, we rely on a make rule to execute
20604 # `config.status --recheck' to rerun these tests and create the
20605 # libtool script then.
20606 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20607 if test -f "$ltmain_in"; then
20608 test -f Makefile && make "$ltmain"
20614 ac_cpp='$CPP $CPPFLAGS'
20615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20630 # Source file extension for RC test sources.
20633 # Object file extension for compiled RC test sources.
20637 # Code to be used in simple compile tests
20638 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20640 # Code to be used in simple link tests
20641 lt_simple_link_test_code="$lt_simple_compile_test_code"
20643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20645 # If no C compiler was specified, use CC.
20648 # Allow CC to be a program name with arguments.
20652 # Allow CC to be a program name with arguments.
20657 lt_cv_prog_compiler_c_o_RC=yes
20659 # The else clause should only fire when bootstrapping the
20660 # libtool distribution, otherwise you forgot to ship ltmain.sh
20661 # with your package, and you will get complaints that there are
20662 # no rules to generate ltmain.sh.
20663 if test -f "$ltmain"; then
20664 # See if we are running on zsh, and set the options which allow our commands through
20665 # without removal of \ escapes.
20666 if test -n "${ZSH_VERSION+set}" ; then
20667 setopt NO_GLOB_SUBST
20669 # Now quote all the things that may contain metacharacters while being
20670 # careful not to overquote the AC_SUBSTed values. We take copies of the
20671 # variables and quote the copies for generation of the libtool script.
20672 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20674 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20675 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20676 deplibs_check_method reload_flag reload_cmds need_locks \
20677 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20678 lt_cv_sys_global_symbol_to_c_name_address \
20679 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20680 old_postinstall_cmds old_postuninstall_cmds \
20684 lt_prog_compiler_wl_RC \
20685 lt_prog_compiler_pic_RC \
20686 lt_prog_compiler_static_RC \
20687 lt_prog_compiler_no_builtin_flag_RC \
20688 export_dynamic_flag_spec_RC \
20689 thread_safe_flag_spec_RC \
20690 whole_archive_flag_spec_RC \
20691 enable_shared_with_static_runtimes_RC \
20692 old_archive_cmds_RC \
20693 old_archive_from_new_cmds_RC \
20694 predep_objects_RC \
20695 postdep_objects_RC \
20698 compiler_lib_search_path_RC \
20700 archive_expsym_cmds_RC \
20701 postinstall_cmds_RC \
20702 postuninstall_cmds_RC \
20703 old_archive_from_expsyms_cmds_RC \
20704 allow_undefined_flag_RC \
20705 no_undefined_flag_RC \
20706 export_symbols_cmds_RC \
20707 hardcode_libdir_flag_spec_RC \
20708 hardcode_libdir_flag_spec_ld_RC \
20709 hardcode_libdir_separator_RC \
20710 hardcode_automatic_RC \
20712 module_expsym_cmds_RC \
20713 lt_cv_prog_compiler_c_o_RC \
20714 exclude_expsyms_RC \
20715 include_expsyms_RC; do
20718 old_archive_cmds_RC | \
20719 old_archive_from_new_cmds_RC | \
20720 archive_cmds_RC | \
20721 archive_expsym_cmds_RC | \
20723 module_expsym_cmds_RC | \
20724 old_archive_from_expsyms_cmds_RC | \
20725 export_symbols_cmds_RC | \
20726 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20727 postinstall_cmds | postuninstall_cmds | \
20728 old_postinstall_cmds | old_postuninstall_cmds | \
20729 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20730 # Double-quote double-evaled strings.
20731 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20734 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20740 *'\$0 --fallback-echo"')
20741 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20747 cat <<__EOF__ >> "$cfgfile"
20748 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20750 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20752 # Shell to use when invoking shell scripts.
20755 # Whether or not to build shared libraries.
20756 build_libtool_libs=$enable_shared
20758 # Whether or not to build static libraries.
20759 build_old_libs=$enable_static
20761 # Whether or not to add -lc for building shared libraries.
20762 build_libtool_need_lc=$archive_cmds_need_lc_RC
20764 # Whether or not to disallow shared libs when runtime libs are static
20765 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20767 # Whether or not to optimize for fast installation.
20768 fast_install=$enable_fast_install
20771 host_alias=$host_alias
20774 # An echo program that does not interpret backslashes.
20779 AR_FLAGS=$lt_AR_FLAGS
20784 # A language-specific compiler.
20787 # Is the compiler the GNU C compiler?
20793 # The linker used to build libraries.
20796 # Whether we need hard or soft links.
20799 # A BSD-compatible nm program.
20802 # A symbol stripping program
20805 # Used to examine libraries when file_magic_cmd begins "file"
20806 MAGIC_CMD=$MAGIC_CMD
20808 # Used on cygwin: DLL creation program.
20811 # Used on cygwin: object dumper.
20814 # Used on cygwin: assembler.
20817 # The name of the directory that contains temporary libtool files.
20820 # How to create reloadable object files.
20821 reload_flag=$lt_reload_flag
20822 reload_cmds=$lt_reload_cmds
20824 # How to pass a linker flag through the compiler.
20825 wl=$lt_lt_prog_compiler_wl_RC
20827 # Object file suffix (normally "o").
20828 objext="$ac_objext"
20830 # Old archive suffix (normally "a").
20833 # Shared library suffix (normally ".so").
20834 shrext_cmds='$shrext_cmds'
20836 # Executable file suffix (normally "").
20839 # Additional compiler flags for building library objects.
20840 pic_flag=$lt_lt_prog_compiler_pic_RC
20843 # What is the maximum length of a command?
20844 max_cmd_len=$lt_cv_sys_max_cmd_len
20846 # Does compiler simultaneously support -c and -o options?
20847 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20849 # Must we lock files when doing compilation ?
20850 need_locks=$lt_need_locks
20852 # Do we need the lib prefix for modules?
20853 need_lib_prefix=$need_lib_prefix
20855 # Do we need a version for libraries?
20856 need_version=$need_version
20858 # Whether dlopen is supported.
20859 dlopen_support=$enable_dlopen
20861 # Whether dlopen of programs is supported.
20862 dlopen_self=$enable_dlopen_self
20864 # Whether dlopen of statically linked programs is supported.
20865 dlopen_self_static=$enable_dlopen_self_static
20867 # Compiler flag to prevent dynamic linking.
20868 link_static_flag=$lt_lt_prog_compiler_static_RC
20870 # Compiler flag to turn off builtin functions.
20871 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20873 # Compiler flag to allow reflexive dlopens.
20874 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20876 # Compiler flag to generate shared objects directly from archives.
20877 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20879 # Compiler flag to generate thread-safe objects.
20880 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20882 # Library versioning type.
20883 version_type=$version_type
20885 # Format of library name prefix.
20886 libname_spec=$lt_libname_spec
20888 # List of archive names. First name is the real one, the rest are links.
20889 # The last name is the one that the linker finds with -lNAME.
20890 library_names_spec=$lt_library_names_spec
20892 # The coded name of the library, if different from the real name.
20893 soname_spec=$lt_soname_spec
20895 # Commands used to build and install an old-style archive.
20897 old_archive_cmds=$lt_old_archive_cmds_RC
20898 old_postinstall_cmds=$lt_old_postinstall_cmds
20899 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20901 # Create an old-style archive from a shared archive.
20902 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20904 # Create a temporary old-style archive to link instead of a shared archive.
20905 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20907 # Commands used to build and install a shared archive.
20908 archive_cmds=$lt_archive_cmds_RC
20909 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20910 postinstall_cmds=$lt_postinstall_cmds
20911 postuninstall_cmds=$lt_postuninstall_cmds
20913 # Commands used to build a loadable module (assumed same as above if empty)
20914 module_cmds=$lt_module_cmds_RC
20915 module_expsym_cmds=$lt_module_expsym_cmds_RC
20917 # Commands to strip libraries.
20918 old_striplib=$lt_old_striplib
20919 striplib=$lt_striplib
20921 # Dependencies to place before the objects being linked to create a
20923 predep_objects=$lt_predep_objects_RC
20925 # Dependencies to place after the objects being linked to create a
20927 postdep_objects=$lt_postdep_objects_RC
20929 # Dependencies to place before the objects being linked to create a
20931 predeps=$lt_predeps_RC
20933 # Dependencies to place after the objects being linked to create a
20935 postdeps=$lt_postdeps_RC
20937 # The library search path used internally by the compiler when linking
20938 # a shared library.
20939 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20941 # Method to check whether dependent libraries are shared objects.
20942 deplibs_check_method=$lt_deplibs_check_method
20944 # Command to use when deplibs_check_method == file_magic.
20945 file_magic_cmd=$lt_file_magic_cmd
20947 # Flag that allows shared libraries with undefined symbols to be built.
20948 allow_undefined_flag=$lt_allow_undefined_flag_RC
20950 # Flag that forces no undefined symbols.
20951 no_undefined_flag=$lt_no_undefined_flag_RC
20953 # Commands used to finish a libtool library installation in a directory.
20954 finish_cmds=$lt_finish_cmds
20956 # Same as above, but a single script fragment to be evaled but not shown.
20957 finish_eval=$lt_finish_eval
20959 # Take the output of nm and produce a listing of raw symbols and C names.
20960 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20962 # Transform the output of nm in a proper C declaration
20963 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20965 # Transform the output of nm in a C name address pair
20966 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20968 # This is the shared library runtime path variable.
20969 runpath_var=$runpath_var
20971 # This is the shared library path variable.
20972 shlibpath_var=$shlibpath_var
20974 # Is shlibpath searched before the hard-coded library search path?
20975 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20977 # How to hardcode a shared library path into an executable.
20978 hardcode_action=$hardcode_action_RC
20980 # Whether we should hardcode library paths into libraries.
20981 hardcode_into_libs=$hardcode_into_libs
20983 # Flag to hardcode \$libdir into a binary during linking.
20984 # This must work even if \$libdir does not exist.
20985 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20987 # If ld is used when linking, flag to hardcode \$libdir into
20988 # a binary during linking. This must work even if \$libdir does
20990 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20992 # Whether we need a single -rpath flag with a separated argument.
20993 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20995 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20996 # resulting binary.
20997 hardcode_direct=$hardcode_direct_RC
20999 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21000 # resulting binary.
21001 hardcode_minus_L=$hardcode_minus_L_RC
21003 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21004 # the resulting binary.
21005 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21007 # Set to yes if building a shared library automatically hardcodes DIR into the library
21008 # and all subsequent libraries and executables linked against it.
21009 hardcode_automatic=$hardcode_automatic_RC
21011 # Variables whose values should be saved in libtool wrapper scripts and
21012 # restored at relink time.
21013 variables_saved_for_relink="$variables_saved_for_relink"
21015 # Whether libtool must link a program against all its dependency libraries.
21016 link_all_deplibs=$link_all_deplibs_RC
21018 # Compile-time system search path for libraries
21019 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21021 # Run-time system search path for libraries
21022 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21024 # Fix the shell variable \$srcfile for the compiler.
21025 fix_srcfile_path="$fix_srcfile_path_RC"
21027 # Set to yes if exported symbols are required.
21028 always_export_symbols=$always_export_symbols_RC
21030 # The commands to list exported symbols.
21031 export_symbols_cmds=$lt_export_symbols_cmds_RC
21033 # The commands to extract the exported symbol list from a shared archive.
21034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21036 # Symbols that should not be listed in the preloaded symbols.
21037 exclude_expsyms=$lt_exclude_expsyms_RC
21039 # Symbols that must always be exported.
21040 include_expsyms=$lt_include_expsyms_RC
21042 # ### END LIBTOOL TAG CONFIG: $tagname
21048 # If there is no Makefile yet, we rely on a make rule to execute
21049 # `config.status --recheck' to rerun these tests and create the
21050 # libtool script then.
21051 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21052 if test -f "$ltmain_in"; then
21053 test -f Makefile && make "$ltmain"
21059 ac_cpp='$CPP $CPPFLAGS'
21060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21069 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21070 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21071 { (exit 1); exit 1; }; }
21075 # Append the new tag name to the list of available tags.
21076 if test -n "$tagname" ; then
21077 available_tags="$available_tags $tagname"
21083 # Now substitute the updated list of available tags.
21084 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21085 mv "${ofile}T" "$ofile"
21089 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21090 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21091 { (exit 1); exit 1; }; }
21097 # This can be used to rebuild libtool when needed
21098 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21100 # Always use our own libtool.
21101 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21103 # Prevent multiple expansion
21126 ac_cpp='$CPP $CPPFLAGS'
21127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21132 # Checks for typedefs, structures, and compiler characteristics.
21133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21135 if test "${ac_cv_c_const+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 cat >conftest.$ac_ext <<_ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21148 /* FIXME: Include the comments suggested by Paul. */
21149 #ifndef __cplusplus
21150 /* Ultrix mips cc rejects this. */
21151 typedef int charset[2];
21153 /* SunOS 4.1.1 cc rejects this. */
21154 char const *const *ccp;
21156 /* NEC SVR4.0.2 mips cc rejects this. */
21157 struct point {int x, y;};
21158 static struct point const zero = {0,0};
21159 /* AIX XL C 1.02.0.0 rejects this.
21160 It does not let you subtract one const X* pointer from another in
21161 an arm of an if-expression whose if-part is not a constant
21163 const char *g = "string";
21164 ccp = &g + (g ? g-g : 0);
21165 /* HPUX 7.0 cc rejects these. */
21168 ccp = (char const *const *) p;
21169 { /* SCO 3.2v4 cc rejects this. */
21171 char const *s = 0 ? (char *) 0 : (char const *) 0;
21175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21176 int x[] = {25, 17};
21177 const int *foo = &x[0];
21180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21181 typedef const int *iptr;
21185 { /* AIX XL C 1.02.0.0 rejects this saying
21186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21187 struct s { int j; const int *ap[3]; };
21188 struct s *b; b->j = 5;
21190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21191 const int foo = 10;
21199 rm -f conftest.$ac_objext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21201 (eval $ac_compile) 2>conftest.er1
21203 grep -v '^ *+' conftest.er1 >conftest.err
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try='test -z "$ac_c_werror_flag"
21209 || test ! -s conftest.err'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } &&
21215 { ac_try='test -s conftest.$ac_objext'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; }; then
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21230 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21231 echo "${ECHO_T}$ac_cv_c_const" >&6
21232 if test $ac_cv_c_const = no; then
21234 cat >>confdefs.h <<\_ACEOF
21240 echo "$as_me:$LINENO: checking for size_t" >&5
21241 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21242 if test "${ac_cv_type_size_t+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 $ac_includes_default
21257 if (sizeof (size_t))
21263 rm -f conftest.$ac_objext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21265 (eval $ac_compile) 2>conftest.er1
21267 grep -v '^ *+' conftest.er1 >conftest.err
21269 cat conftest.err >&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } &&
21272 { ac_try='test -z "$ac_c_werror_flag"
21273 || test ! -s conftest.err'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest.$ac_objext'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_cv_type_size_t=yes
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21290 ac_cv_type_size_t=no
21292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21294 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21295 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21296 if test $ac_cv_type_size_t = yes; then
21300 cat >>confdefs.h <<_ACEOF
21301 #define size_t unsigned
21306 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21307 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21308 if test "${ac_cv_struct_tm+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21311 cat >conftest.$ac_ext <<_ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h. */
21317 #include <sys/types.h>
21323 struct tm *tp; tp->tm_sec;
21328 rm -f conftest.$ac_objext
21329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21330 (eval $ac_compile) 2>conftest.er1
21332 grep -v '^ *+' conftest.er1 >conftest.err
21334 cat conftest.err >&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); } &&
21337 { ac_try='test -z "$ac_c_werror_flag"
21338 || test ! -s conftest.err'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; } &&
21344 { ac_try='test -s conftest.$ac_objext'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; }; then
21350 ac_cv_struct_tm=time.h
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_cv_struct_tm=sys/time.h
21357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21359 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21360 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21361 if test $ac_cv_struct_tm = sys/time.h; then
21363 cat >>confdefs.h <<\_ACEOF
21364 #define TM_IN_SYS_TIME 1
21370 # Checks for library functions.
21372 for ac_func in strftime
21374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21375 echo "$as_me:$LINENO: checking for $ac_func" >&5
21376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21377 if eval "test \"\${$as_ac_var+set}\" = set"; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21388 #define $ac_func innocuous_$ac_func
21390 /* System header to define __stub macros and hopefully few prototypes,
21391 which can conflict with char $ac_func (); below.
21392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21393 <limits.h> exists even on freestanding compilers. */
21396 # include <limits.h>
21398 # include <assert.h>
21403 /* Override any gcc2 internal prototype to avoid an error. */
21408 /* We use char because int might match the return type of a gcc2
21409 builtin and then its argument prototype would still apply. */
21411 /* The GNU C library defines this for functions which it implements
21412 to always fail with ENOSYS. Some functions are actually named
21413 something starting with __ and the normal name is an alias. */
21414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21417 char (*f) () = $ac_func;
21426 return f != $ac_func;
21431 rm -f conftest.$ac_objext conftest$ac_exeext
21432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21433 (eval $ac_link) 2>conftest.er1
21435 grep -v '^ *+' conftest.er1 >conftest.err
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } &&
21440 { ac_try='test -z "$ac_c_werror_flag"
21441 || test ! -s conftest.err'
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; } &&
21447 { ac_try='test -s conftest$ac_exeext'
21448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21453 eval "$as_ac_var=yes"
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 eval "$as_ac_var=no"
21460 rm -f conftest.err conftest.$ac_objext \
21461 conftest$ac_exeext conftest.$ac_ext
21463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21465 if test `eval echo '${'$as_ac_var'}'` = yes; then
21466 cat >>confdefs.h <<_ACEOF
21467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21471 # strftime is in -lintl on SCO UNIX.
21472 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21473 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21474 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21477 ac_check_lib_save_LIBS=$LIBS
21478 LIBS="-lintl $LIBS"
21479 cat >conftest.$ac_ext <<_ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21486 /* Override any gcc2 internal prototype to avoid an error. */
21490 /* We use char because int might match the return type of a gcc2
21491 builtin and then its argument prototype would still apply. */
21501 rm -f conftest.$ac_objext conftest$ac_exeext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21503 (eval $ac_link) 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
21510 { ac_try='test -z "$ac_c_werror_flag"
21511 || test ! -s conftest.err'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try='test -s conftest$ac_exeext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 ac_cv_lib_intl_strftime=yes
21525 echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21528 ac_cv_lib_intl_strftime=no
21530 rm -f conftest.err conftest.$ac_objext \
21531 conftest$ac_exeext conftest.$ac_ext
21532 LIBS=$ac_check_lib_save_LIBS
21534 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21535 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21536 if test $ac_cv_lib_intl_strftime = yes; then
21537 cat >>confdefs.h <<\_ACEOF
21538 #define HAVE_STRFTIME 1
21541 LIBS="-lintl $LIBS"
21547 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
21548 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
21549 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 cat >conftest.$ac_ext <<_ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 $ac_includes_default
21563 char *p = (char *) strerror_r;
21570 rm -f conftest.$ac_objext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21572 (eval $ac_compile) 2>conftest.er1
21574 grep -v '^ *+' conftest.er1 >conftest.err
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } &&
21579 { ac_try='test -z "$ac_c_werror_flag"
21580 || test ! -s conftest.err'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; } &&
21586 { ac_try='test -s conftest.$ac_objext'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 ac_cv_have_decl_strerror_r=yes
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ac_cv_have_decl_strerror_r=no
21599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21601 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
21602 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
21603 if test $ac_cv_have_decl_strerror_r = yes; then
21605 cat >>confdefs.h <<_ACEOF
21606 #define HAVE_DECL_STRERROR_R 1
21611 cat >>confdefs.h <<_ACEOF
21612 #define HAVE_DECL_STRERROR_R 0
21620 for ac_func in strerror_r
21622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21623 echo "$as_me:$LINENO: checking for $ac_func" >&5
21624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21625 if eval "test \"\${$as_ac_var+set}\" = set"; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 cat >conftest.$ac_ext <<_ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21636 #define $ac_func innocuous_$ac_func
21638 /* System header to define __stub macros and hopefully few prototypes,
21639 which can conflict with char $ac_func (); below.
21640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21641 <limits.h> exists even on freestanding compilers. */
21644 # include <limits.h>
21646 # include <assert.h>
21651 /* Override any gcc2 internal prototype to avoid an error. */
21656 /* We use char because int might match the return type of a gcc2
21657 builtin and then its argument prototype would still apply. */
21659 /* The GNU C library defines this for functions which it implements
21660 to always fail with ENOSYS. Some functions are actually named
21661 something starting with __ and the normal name is an alias. */
21662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21665 char (*f) () = $ac_func;
21674 return f != $ac_func;
21679 rm -f conftest.$ac_objext conftest$ac_exeext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21681 (eval $ac_link) 2>conftest.er1
21683 grep -v '^ *+' conftest.er1 >conftest.err
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } &&
21688 { ac_try='test -z "$ac_c_werror_flag"
21689 || test ! -s conftest.err'
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; } &&
21695 { ac_try='test -s conftest$ac_exeext'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 eval "$as_ac_var=yes"
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 eval "$as_ac_var=no"
21708 rm -f conftest.err conftest.$ac_objext \
21709 conftest$ac_exeext conftest.$ac_ext
21711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21713 if test `eval echo '${'$as_ac_var'}'` = yes; then
21714 cat >>confdefs.h <<_ACEOF
21715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21721 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
21722 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
21723 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 ac_cv_func_strerror_r_char_p=no
21728 if test $ac_cv_have_decl_strerror_r = yes; then
21729 cat >conftest.$ac_ext <<_ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h. */
21735 $ac_includes_default
21741 char x = *strerror_r (0, buf, sizeof buf);
21742 char *p = strerror_r (0, buf, sizeof buf);
21748 rm -f conftest.$ac_objext
21749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21750 (eval $ac_compile) 2>conftest.er1
21752 grep -v '^ *+' conftest.er1 >conftest.err
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
21757 { ac_try='test -z "$ac_c_werror_flag"
21758 || test ! -s conftest.err'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; } &&
21764 { ac_try='test -s conftest.$ac_objext'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770 ac_cv_func_strerror_r_char_p=yes
21772 echo "$as_me: failed program was:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21778 # strerror_r is not declared. Choose between
21779 # systems that have relatively inaccessible declarations for the
21780 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21781 # former has a strerror_r that returns char*, while the latter
21782 # has a strerror_r that returns `int'.
21783 # This test should segfault on the DEC system.
21784 if test "$cross_compiling" = yes; then
21787 cat >conftest.$ac_ext <<_ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21793 $ac_includes_default
21794 extern char *strerror_r ();
21799 char x = *strerror_r (0, buf, sizeof buf);
21800 exit (!isalpha (x));
21805 rm -f conftest$ac_exeext
21806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21807 (eval $ac_link) 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; }; then
21816 ac_cv_func_strerror_r_char_p=yes
21818 echo "$as_me: program exited with status $ac_status" >&5
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21828 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
21829 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
21830 if test $ac_cv_func_strerror_r_char_p = yes; then
21832 cat >>confdefs.h <<\_ACEOF
21833 #define STRERROR_R_CHAR_P 1
21845 for ac_func in strchr strdup strstr timegm gmtime_r strtok_r strcasecmp
21847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21848 echo "$as_me:$LINENO: checking for $ac_func" >&5
21849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21850 if eval "test \"\${$as_ac_var+set}\" = set"; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 cat >conftest.$ac_ext <<_ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21861 #define $ac_func innocuous_$ac_func
21863 /* System header to define __stub macros and hopefully few prototypes,
21864 which can conflict with char $ac_func (); below.
21865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21866 <limits.h> exists even on freestanding compilers. */
21869 # include <limits.h>
21871 # include <assert.h>
21876 /* Override any gcc2 internal prototype to avoid an error. */
21881 /* We use char because int might match the return type of a gcc2
21882 builtin and then its argument prototype would still apply. */
21884 /* The GNU C library defines this for functions which it implements
21885 to always fail with ENOSYS. Some functions are actually named
21886 something starting with __ and the normal name is an alias. */
21887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21890 char (*f) () = $ac_func;
21899 return f != $ac_func;
21904 rm -f conftest.$ac_objext conftest$ac_exeext
21905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21906 (eval $ac_link) 2>conftest.er1
21908 grep -v '^ *+' conftest.er1 >conftest.err
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } &&
21913 { ac_try='test -z "$ac_c_werror_flag"
21914 || test ! -s conftest.err'
21915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916 (eval $ac_try) 2>&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; } &&
21920 { ac_try='test -s conftest$ac_exeext'
21921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; }; then
21926 eval "$as_ac_var=yes"
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 eval "$as_ac_var=no"
21933 rm -f conftest.err conftest.$ac_objext \
21934 conftest$ac_exeext conftest.$ac_ext
21936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21938 if test `eval echo '${'$as_ac_var'}'` = yes; then
21939 cat >>confdefs.h <<_ACEOF
21940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21947 # checks for pthreads
21953 ac_cpp='$CPP $CPPFLAGS'
21954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21960 # We used to check for pthread.h first, but this fails if pthread.h
21961 # requires special compiler flags (e.g. on True64 or Sequent).
21962 # It gets checked for in the link test anyway.
21964 # First of all, check if the user has set any of the PTHREAD_LIBS,
21965 # etcetera environment variables, and if threads linking works using
21967 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21968 save_CFLAGS="$CFLAGS"
21969 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21971 LIBS="$PTHREAD_LIBS $LIBS"
21972 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21973 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
21974 cat >conftest.$ac_ext <<_ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21981 /* Override any gcc2 internal prototype to avoid an error. */
21985 /* We use char because int might match the return type of a gcc2
21986 builtin and then its argument prototype would still apply. */
21987 char pthread_join ();
21996 rm -f conftest.$ac_objext conftest$ac_exeext
21997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21998 (eval $ac_link) 2>conftest.er1
22000 grep -v '^ *+' conftest.er1 >conftest.err
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } &&
22005 { ac_try='test -z "$ac_c_werror_flag"
22006 || test ! -s conftest.err'
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; } &&
22012 { ac_try='test -s conftest$ac_exeext'
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; }; then
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22024 rm -f conftest.err conftest.$ac_objext \
22025 conftest$ac_exeext conftest.$ac_ext
22026 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22027 echo "${ECHO_T}$acx_pthread_ok" >&6
22028 if test x"$acx_pthread_ok" = xno; then
22033 CFLAGS="$save_CFLAGS"
22036 # We must check for the threads library under a number of different
22037 # names; the ordering is very important because some systems
22038 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22039 # libraries is broken (non-POSIX).
22041 # Create a list of thread flags to try. Items starting with a "-" are
22042 # C compiler flags, and other items are library names, except for "none"
22043 # which indicates that we try without any flags at all, and "pthread-config"
22044 # which is a program returning the flags for the Pth emulation library.
22046 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22048 # The ordering *is* (sometimes) important. Some notes on the
22049 # individual items follow:
22051 # pthreads: AIX (must check this before -lpthread)
22052 # none: in case threads are in libc; should be tried before -Kthread and
22053 # other compiler flags to prevent continual compiler warnings
22054 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22055 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22056 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22057 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22058 # -pthreads: Solaris/gcc
22059 # -mthreads: Mingw32/gcc, Lynx/gcc
22060 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22061 # doesn't hurt to check since this sometimes defines pthreads too;
22062 # also defines -D_REENTRANT)
22063 # ... -mt is also the pthreads flag for HP/aCC
22064 # pthread: Linux, etcetera
22065 # --thread-safe: KAI C++
22066 # pthread-config: use pthread-config program (for GNU Pth library)
22068 case "${host_cpu}-${host_os}" in
22071 # On Solaris (at least, for some versions), libc contains stubbed
22072 # (non-functional) versions of the pthreads routines, so link-based
22073 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
22074 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22075 # a function called by this macro, so we could check for that, but
22076 # who knows whether they'll stub that too in a future libc.) So,
22077 # we'll just look for -pthreads and -lpthread first:
22079 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22083 if test x"$acx_pthread_ok" = xno; then
22084 for flag in $acx_pthread_flags; do
22088 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22089 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
22093 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22094 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
22095 PTHREAD_CFLAGS="$flag"
22099 # Extract the first word of "pthread-config", so it can be a program name with args.
22100 set dummy pthread-config; ac_word=$2
22101 echo "$as_me:$LINENO: checking for $ac_word" >&5
22102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22103 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
22106 if test -n "$acx_pthread_config"; then
22107 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22110 for as_dir in $PATH
22113 test -z "$as_dir" && as_dir=.
22114 for ac_exec_ext in '' $ac_executable_extensions; do
22115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22116 ac_cv_prog_acx_pthread_config="yes"
22117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22123 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22126 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22127 if test -n "$acx_pthread_config"; then
22128 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22129 echo "${ECHO_T}$acx_pthread_config" >&6
22131 echo "$as_me:$LINENO: result: no" >&5
22132 echo "${ECHO_T}no" >&6
22135 if test x"$acx_pthread_config" = xno; then continue; fi
22136 PTHREAD_CFLAGS="`pthread-config --cflags`"
22137 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22141 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22142 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
22143 PTHREAD_LIBS="-l$flag"
22148 save_CFLAGS="$CFLAGS"
22149 LIBS="$PTHREAD_LIBS $LIBS"
22150 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22152 # Check for various functions. We must include pthread.h,
22153 # since some functions may be macros. (On the Sequent, we
22154 # need a special flag -Kthread to make this header compile.)
22155 # We check for pthread_join because it is in -lpthread on IRIX
22156 # while pthread_create is in libc. We check for pthread_attr_init
22157 # due to DEC craziness with -lpthreads. We check for
22158 # pthread_cleanup_push because it is one of the few pthread
22159 # functions on Solaris that doesn't have a non-functional libc stub.
22160 # We try pthread_create on general principles.
22161 cat >conftest.$ac_ext <<_ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h. */
22167 #include <pthread.h>
22171 pthread_t th; pthread_join(th, 0);
22172 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22173 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22178 rm -f conftest.$ac_objext conftest$ac_exeext
22179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22180 (eval $ac_link) 2>conftest.er1
22182 grep -v '^ *+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } &&
22187 { ac_try='test -z "$ac_c_werror_flag"
22188 || test ! -s conftest.err'
22189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190 (eval $ac_try) 2>&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; } &&
22194 { ac_try='test -s conftest$ac_exeext'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22206 rm -f conftest.err conftest.$ac_objext \
22207 conftest$ac_exeext conftest.$ac_ext
22210 CFLAGS="$save_CFLAGS"
22212 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22213 echo "${ECHO_T}$acx_pthread_ok" >&6
22214 if test "x$acx_pthread_ok" = xyes; then
22223 # Various other checks:
22224 if test "x$acx_pthread_ok" = xyes; then
22226 LIBS="$PTHREAD_LIBS $LIBS"
22227 save_CFLAGS="$CFLAGS"
22228 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22230 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22231 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22232 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22234 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22235 cat >conftest.$ac_ext <<_ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22241 #include <pthread.h>
22245 int attr=$attr; return attr;
22250 rm -f conftest.$ac_objext conftest$ac_exeext
22251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22252 (eval $ac_link) 2>conftest.er1
22254 grep -v '^ *+' conftest.er1 >conftest.err
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } &&
22259 { ac_try='test -z "$ac_c_werror_flag"
22260 || test ! -s conftest.err'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try='test -s conftest$ac_exeext'
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 attr_name=$attr; break
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22278 rm -f conftest.err conftest.$ac_objext \
22279 conftest$ac_exeext conftest.$ac_ext
22281 echo "$as_me:$LINENO: result: $attr_name" >&5
22282 echo "${ECHO_T}$attr_name" >&6
22283 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22285 cat >>confdefs.h <<_ACEOF
22286 #define PTHREAD_CREATE_JOINABLE $attr_name
22291 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22292 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22294 case "${host_cpu}-${host_os}" in
22295 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
22296 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22298 if test "$GCC" = "yes"; then
22299 flag="-D_REENTRANT"
22301 flag="-mt -D_REENTRANT"
22305 echo "$as_me:$LINENO: result: ${flag}" >&5
22306 echo "${ECHO_T}${flag}" >&6
22307 if test "x$flag" != xno; then
22308 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22312 CFLAGS="$save_CFLAGS"
22314 # More AIX lossage: must compile with xlc_r or cc_r
22315 if test x"$GCC" != xyes; then
22316 for ac_prog in xlc_r cc_r
22318 # Extract the first word of "$ac_prog", so it can be a program name with args.
22319 set dummy $ac_prog; ac_word=$2
22320 echo "$as_me:$LINENO: checking for $ac_word" >&5
22321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22322 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 if test -n "$PTHREAD_CC"; then
22326 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22329 for as_dir in $PATH
22332 test -z "$as_dir" && as_dir=.
22333 for ac_exec_ext in '' $ac_executable_extensions; do
22334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22335 ac_cv_prog_PTHREAD_CC="$ac_prog"
22336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22344 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22345 if test -n "$PTHREAD_CC"; then
22346 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22347 echo "${ECHO_T}$PTHREAD_CC" >&6
22349 echo "$as_me:$LINENO: result: no" >&5
22350 echo "${ECHO_T}no" >&6
22353 test -n "$PTHREAD_CC" && break
22355 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22368 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22369 if test x"$acx_pthread_ok" = xyes; then
22370 enable_threads="pthread"
22374 enable_threads="no"
22377 ac_cpp='$CPP $CPPFLAGS'
22378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22383 if test $enable_threads != "pthread"; then
22384 { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22385 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22386 { (exit 1); exit 1; }; }
22389 cat >>confdefs.h <<\_ACEOF
22390 #define HAVE_PTHREAD 1
22393 LIBS="$PTHREAD_LIBS $LIBS"
22394 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22395 CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22400 # Check whether --with-openssl or --without-openssl was given.
22401 if test "${with_openssl+set}" = set; then
22402 withval="$with_openssl"
22403 if test x_$with_openssl != x_/usr; then
22404 SSLFLAGS="-I${with_openssl}/include"
22408 if test "x$SSLFLAGS" = "x" ; then
22409 # Extract the first word of "pkg-config", so it can be a program name with args.
22410 set dummy pkg-config; ac_word=$2
22411 echo "$as_me:$LINENO: checking for $ac_word" >&5
22412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22413 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22414 echo $ECHO_N "(cached) $ECHO_C" >&6
22416 case $PKG_CONFIG in
22418 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22422 for as_dir in $PATH
22425 test -z "$as_dir" && as_dir=.
22426 for ac_exec_ext in '' $ac_executable_extensions; do
22427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22428 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22438 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22440 if test -n "$PKG_CONFIG"; then
22441 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22442 echo "${ECHO_T}$PKG_CONFIG" >&6
22444 echo "$as_me:$LINENO: result: no" >&5
22445 echo "${ECHO_T}no" >&6
22448 if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
22449 if pkg-config openssl ; then
22450 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
22452 { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
22453 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
22454 { (exit 1); exit 1; }; }
22459 echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
22460 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
22461 echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
22462 echo "${ECHO_T}$SSLFLAGS" >&6
22463 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
22465 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22466 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22467 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22468 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22471 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22472 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22474 # Is the header compilable?
22475 echo "$as_me:$LINENO: checking openssl/x509.h usability" >&5
22476 echo $ECHO_N "checking openssl/x509.h usability... $ECHO_C" >&6
22477 cat >conftest.$ac_ext <<_ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22483 $ac_includes_default
22484 #include <openssl/x509.h>
22486 rm -f conftest.$ac_objext
22487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22488 (eval $ac_compile) 2>conftest.er1
22490 grep -v '^ *+' conftest.er1 >conftest.err
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } &&
22495 { ac_try='test -z "$ac_c_werror_flag"
22496 || test ! -s conftest.err'
22497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498 (eval $ac_try) 2>&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }; } &&
22502 { ac_try='test -s conftest.$ac_objext'
22503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; }; then
22508 ac_header_compiler=yes
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ac_header_compiler=no
22515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22517 echo "${ECHO_T}$ac_header_compiler" >&6
22519 # Is the header present?
22520 echo "$as_me:$LINENO: checking openssl/x509.h presence" >&5
22521 echo $ECHO_N "checking openssl/x509.h presence... $ECHO_C" >&6
22522 cat >conftest.$ac_ext <<_ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h. */
22528 #include <openssl/x509.h>
22530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22533 grep -v '^ *+' conftest.er1 >conftest.err
22535 cat conftest.err >&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } >/dev/null; then
22538 if test -s conftest.err; then
22539 ac_cpp_err=$ac_c_preproc_warn_flag
22540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22547 if test -z "$ac_cpp_err"; then
22548 ac_header_preproc=yes
22550 echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22553 ac_header_preproc=no
22555 rm -f conftest.err conftest.$ac_ext
22556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22557 echo "${ECHO_T}$ac_header_preproc" >&6
22559 # So? What about this header?
22560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22562 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&5
22563 echo "$as_me: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22564 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the compiler's result" >&5
22565 echo "$as_me: WARNING: openssl/x509.h: proceeding with the compiler's result" >&2;}
22566 ac_header_preproc=yes
22569 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: present but cannot be compiled" >&5
22570 echo "$as_me: WARNING: openssl/x509.h: present but cannot be compiled" >&2;}
22571 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: check for missing prerequisite headers?" >&5
22572 echo "$as_me: WARNING: openssl/x509.h: check for missing prerequisite headers?" >&2;}
22573 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: see the Autoconf documentation" >&5
22574 echo "$as_me: WARNING: openssl/x509.h: see the Autoconf documentation" >&2;}
22575 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: section \"Present But Cannot Be Compiled\"" >&5
22576 echo "$as_me: WARNING: openssl/x509.h: section \"Present But Cannot Be Compiled\"" >&2;}
22577 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&5
22578 echo "$as_me: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&2;}
22579 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&5
22580 echo "$as_me: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&2;}
22583 ## --------------------------------------------- ##
22584 ## Report this to shibboleth-users@internet2.edu ##
22585 ## --------------------------------------------- ##
22588 sed "s/^/$as_me: WARNING: /" >&2
22591 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22592 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22593 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22594 echo $ECHO_N "(cached) $ECHO_C" >&6
22596 ac_cv_header_openssl_x509_h=$ac_header_preproc
22598 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22599 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22602 if test $ac_cv_header_openssl_x509_h = yes; then
22605 { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
22606 echo "$as_me: error: unable to find openssl header files" >&2;}
22607 { (exit 1); exit 1; }; }
22613 ac_cpp='$CXXCPP $CPPFLAGS'
22614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22620 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22621 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22622 if test "${ac_cv_cxx_namespaces+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22628 ac_cpp='$CXXCPP $CPPFLAGS'
22629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22633 cat >conftest.$ac_ext <<_ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22639 namespace Outer { namespace Inner { int i = 0; }}
22643 using namespace Outer::Inner; return i;
22648 rm -f conftest.$ac_objext
22649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22650 (eval $ac_compile) 2>conftest.er1
22652 grep -v '^ *+' conftest.er1 >conftest.err
22654 cat conftest.err >&5
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } &&
22657 { ac_try='test -z "$ac_cxx_werror_flag"
22658 || test ! -s conftest.err'
22659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660 (eval $ac_try) 2>&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); }; } &&
22664 { ac_try='test -s conftest.$ac_objext'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; }; then
22670 ac_cv_cxx_namespaces=yes
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22675 ac_cv_cxx_namespaces=no
22677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22679 ac_cpp='$CXXCPP $CPPFLAGS'
22680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22686 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22687 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22688 if test "$ac_cv_cxx_namespaces" = yes; then
22690 cat >>confdefs.h <<\_ACEOF
22691 #define HAVE_NAMESPACES 1
22696 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22697 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22698 if test "${ac_cv_cxx_have_stl+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22705 ac_cpp='$CXXCPP $CPPFLAGS'
22706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22710 cat >conftest.$ac_ext <<_ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22718 #ifdef HAVE_NAMESPACES
22719 using namespace std;
22724 list<int> x; x.push_back(5);
22725 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22730 rm -f conftest.$ac_objext
22731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22732 (eval $ac_compile) 2>conftest.er1
22734 grep -v '^ *+' conftest.er1 >conftest.err
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } &&
22739 { ac_try='test -z "$ac_cxx_werror_flag"
22740 || test ! -s conftest.err'
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; } &&
22746 { ac_try='test -s conftest.$ac_objext'
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; }; then
22752 ac_cv_cxx_have_stl=yes
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22757 ac_cv_cxx_have_stl=no
22759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22761 ac_cpp='$CXXCPP $CPPFLAGS'
22762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22768 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22769 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22770 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22771 { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22772 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22773 { (exit 1); exit 1; }; }
22776 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22777 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22778 if test "${ac_cv_cxx_namespaces+set}" = set; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
22784 ac_cpp='$CXXCPP $CPPFLAGS'
22785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22789 cat >conftest.$ac_ext <<_ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h. */
22795 namespace Outer { namespace Inner { int i = 0; }}
22799 using namespace Outer::Inner; return i;
22804 rm -f conftest.$ac_objext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806 (eval $ac_compile) 2>conftest.er1
22808 grep -v '^ *+' conftest.er1 >conftest.err
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
22813 { ac_try='test -z "$ac_cxx_werror_flag"
22814 || test ! -s conftest.err'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest.$ac_objext'
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_cv_cxx_namespaces=yes
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ac_cv_cxx_namespaces=no
22833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22835 ac_cpp='$CXXCPP $CPPFLAGS'
22836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22842 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22843 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22844 if test "$ac_cv_cxx_namespaces" = yes; then
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_NAMESPACES 1
22853 # Thank you Solaris, really.
22854 echo "$as_me:$LINENO: checking for ctime_r" >&5
22855 echo $ECHO_N "checking for ctime_r... $ECHO_C" >&6
22856 if test -z "$ac_cv_ctime_args"; then
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22870 ctime_r(&clock, buf);
22876 rm -f conftest.$ac_objext
22877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22878 (eval $ac_compile) 2>conftest.er1
22880 grep -v '^ *+' conftest.er1 >conftest.err
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } &&
22885 { ac_try='test -z "$ac_cxx_werror_flag"
22886 || test ! -s conftest.err'
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; } &&
22892 { ac_try='test -s conftest.$ac_objext'
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; }; then
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22906 cat >conftest.$ac_ext <<_ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22919 ctime_r(&clock, buf, 26);
22925 rm -f conftest.$ac_objext
22926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22927 (eval $ac_compile) 2>conftest.er1
22929 grep -v '^ *+' conftest.er1 >conftest.err
22931 cat conftest.err >&5
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); } &&
22934 { ac_try='test -z "$ac_cxx_werror_flag"
22935 || test ! -s conftest.err'
22936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937 (eval $ac_try) 2>&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; } &&
22941 { ac_try='test -s conftest.$ac_objext'
22942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943 (eval $ac_try) 2>&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); }; }; then
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22955 if test -z "$ac_cv_ctime_args"; then
22956 echo "$as_me:$LINENO: result: no" >&5
22957 echo "${ECHO_T}no" >&6
22959 if test "$ac_cv_ctime_args" = 2; then
22961 cat >>confdefs.h <<\_ACEOF
22962 #define HAVE_CTIME_R_2 1
22965 elif test "$ac_cv_ctime_args" = 3; then
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_CTIME_R_3 1
22972 echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
22973 echo "${ECHO_T}yes, and it takes $ac_cv_ctime_args arguments" >&6
22976 # log4shib settings (favor this version over the log4cpp code)
22977 # Extract the first word of "log4shib-config", so it can be a program name with args.
22978 set dummy log4shib-config; ac_word=$2
22979 echo "$as_me:$LINENO: checking for $ac_word" >&5
22980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22981 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22982 echo $ECHO_N "(cached) $ECHO_C" >&6
22984 case $LOG4SHIB_CONFIG in
22986 ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22990 for as_dir in $PATH
22993 test -z "$as_dir" && as_dir=.
22994 for ac_exec_ext in '' $ac_executable_extensions; do
22995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22996 ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23006 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
23008 if test -n "$LOG4SHIB_CONFIG"; then
23009 echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
23010 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
23012 echo "$as_me:$LINENO: result: no" >&5
23013 echo "${ECHO_T}no" >&6
23017 # Check whether --with-log4shib or --without-log4shib was given.
23018 if test "${with_log4shib+set}" = set; then
23019 withval="$with_log4shib"
23021 LOG4SHIB_CONFIG="${with_log4shib}"
23022 if ! test -f "${LOG4SHIB_CONFIG}" ; then
23023 LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
23027 if test -f "${LOG4SHIB_CONFIG}"; then
23028 LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
23029 CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
23031 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23032 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23033 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23034 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23037 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23038 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23040 # Is the header compilable?
23041 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23042 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23043 cat >conftest.$ac_ext <<_ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23049 $ac_includes_default
23050 #include <log4shib/CategoryStream.hh>
23052 rm -f conftest.$ac_objext
23053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23054 (eval $ac_compile) 2>conftest.er1
23056 grep -v '^ *+' conftest.er1 >conftest.err
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } &&
23061 { ac_try='test -z "$ac_cxx_werror_flag"
23062 || test ! -s conftest.err'
23063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064 (eval $ac_try) 2>&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; } &&
23068 { ac_try='test -s conftest.$ac_objext'
23069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070 (eval $ac_try) 2>&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; }; then
23074 ac_header_compiler=yes
23076 echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23079 ac_header_compiler=no
23081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23083 echo "${ECHO_T}$ac_header_compiler" >&6
23085 # Is the header present?
23086 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23087 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23088 cat >conftest.$ac_ext <<_ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h. */
23094 #include <log4shib/CategoryStream.hh>
23096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23099 grep -v '^ *+' conftest.er1 >conftest.err
23101 cat conftest.err >&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } >/dev/null; then
23104 if test -s conftest.err; then
23105 ac_cpp_err=$ac_cxx_preproc_warn_flag
23106 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23113 if test -z "$ac_cpp_err"; then
23114 ac_header_preproc=yes
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23119 ac_header_preproc=no
23121 rm -f conftest.err conftest.$ac_ext
23122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23123 echo "${ECHO_T}$ac_header_preproc" >&6
23125 # So? What about this header?
23126 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23128 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23129 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23130 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23131 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23132 ac_header_preproc=yes
23135 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23136 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23137 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: check for missing prerequisite headers?" >&5
23138 echo "$as_me: WARNING: log4shib/CategoryStream.hh: check for missing prerequisite headers?" >&2;}
23139 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23140 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23141 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&5
23142 echo "$as_me: WARNING: log4shib/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&2;}
23143 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23144 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23145 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23146 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23149 ## --------------------------------------------- ##
23150 ## Report this to shibboleth-users@internet2.edu ##
23151 ## --------------------------------------------- ##
23154 sed "s/^/$as_me: WARNING: /" >&2
23157 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23158 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23159 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23160 echo $ECHO_N "(cached) $ECHO_C" >&6
23162 ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23164 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23165 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23168 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23171 { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23172 echo "$as_me: error: unable to find log4shib header files" >&2;}
23173 { (exit 1); exit 1; }; }
23177 cat >conftest.$ac_ext <<_ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h. */
23183 #include <log4shib/Category.hh>
23184 #include <log4shib/CategoryStream.hh>
23188 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23193 rm -f conftest.$ac_objext conftest$ac_exeext
23194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23195 (eval $ac_link) 2>conftest.er1
23197 grep -v '^ *+' conftest.er1 >conftest.err
23199 cat conftest.err >&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } &&
23202 { ac_try='test -z "$ac_cxx_werror_flag"
23203 || test ! -s conftest.err'
23204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205 (eval $ac_try) 2>&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; } &&
23209 { ac_try='test -s conftest$ac_exeext'
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; }; then
23216 cat >>confdefs.h <<\_ACEOF
23217 #define SHIBSP_LOG4SHIB 1
23221 echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23224 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23225 echo "$as_me: error: unable to link with log4shib" >&2;}
23226 { (exit 1); exit 1; }; }
23228 rm -f conftest.err conftest.$ac_objext \
23229 conftest$ac_exeext conftest.$ac_ext
23231 { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23232 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23233 { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23234 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23237 # Extract the first word of "log4cpp-config", so it can be a program name with args.
23238 set dummy log4cpp-config; ac_word=$2
23239 echo "$as_me:$LINENO: checking for $ac_word" >&5
23240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23241 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23244 case $LOG4CPP_CONFIG in
23246 ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23250 for as_dir in $PATH
23253 test -z "$as_dir" && as_dir=.
23254 for ac_exec_ext in '' $ac_executable_extensions; do
23255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23256 ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23266 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23268 if test -n "$LOG4CPP_CONFIG"; then
23269 echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23270 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23272 echo "$as_me:$LINENO: result: no" >&5
23273 echo "${ECHO_T}no" >&6
23277 # Check whether --with-log4cpp or --without-log4cpp was given.
23278 if test "${with_log4cpp+set}" = set; then
23279 withval="$with_log4cpp"
23281 LOG4CPP_CONFIG="${with_log4cpp}"
23282 if ! test -f "${LOG4CPP_CONFIG}" ; then
23283 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23287 if test -f "${LOG4CPP_CONFIG}"; then
23288 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23289 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23290 LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23291 CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23292 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23293 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23294 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23295 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23296 echo $ECHO_N "(cached) $ECHO_C" >&6
23298 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23299 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23301 # Is the header compilable?
23302 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23303 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23304 cat >conftest.$ac_ext <<_ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23310 $ac_includes_default
23311 #include <log4cpp/CategoryStream.hh>
23313 rm -f conftest.$ac_objext
23314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23315 (eval $ac_compile) 2>conftest.er1
23317 grep -v '^ *+' conftest.er1 >conftest.err
23319 cat conftest.err >&5
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } &&
23322 { ac_try='test -z "$ac_cxx_werror_flag"
23323 || test ! -s conftest.err'
23324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23325 (eval $ac_try) 2>&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); }; } &&
23329 { ac_try='test -s conftest.$ac_objext'
23330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331 (eval $ac_try) 2>&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); }; }; then
23335 ac_header_compiler=yes
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_header_compiler=no
23342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23344 echo "${ECHO_T}$ac_header_compiler" >&6
23346 # Is the header present?
23347 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23348 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23349 cat >conftest.$ac_ext <<_ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23355 #include <log4cpp/CategoryStream.hh>
23357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23360 grep -v '^ *+' conftest.er1 >conftest.err
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } >/dev/null; then
23365 if test -s conftest.err; then
23366 ac_cpp_err=$ac_cxx_preproc_warn_flag
23367 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23374 if test -z "$ac_cpp_err"; then
23375 ac_header_preproc=yes
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ac_header_preproc=no
23382 rm -f conftest.err conftest.$ac_ext
23383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23384 echo "${ECHO_T}$ac_header_preproc" >&6
23386 # So? What about this header?
23387 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23389 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23390 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23391 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23392 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23393 ac_header_preproc=yes
23396 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23397 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23398 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: check for missing prerequisite headers?" >&5
23399 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: check for missing prerequisite headers?" >&2;}
23400 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23401 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23402 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&5
23403 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&2;}
23404 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23405 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23406 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23407 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23410 ## --------------------------------------------- ##
23411 ## Report this to shibboleth-users@internet2.edu ##
23412 ## --------------------------------------------- ##
23415 sed "s/^/$as_me: WARNING: /" >&2
23418 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23419 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23420 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23425 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23426 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23429 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23432 { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23433 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23434 { (exit 1); exit 1; }; }
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 #include <log4cpp/Category.hh>
23445 #include <log4cpp/CategoryStream.hh>
23449 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23454 rm -f conftest.$ac_objext conftest$ac_exeext
23455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23456 (eval $ac_link) 2>conftest.er1
23458 grep -v '^ *+' conftest.er1 >conftest.err
23460 cat conftest.err >&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } &&
23463 { ac_try='test -z "$ac_cxx_werror_flag"
23464 || test ! -s conftest.err'
23465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466 (eval $ac_try) 2>&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); }; } &&
23470 { ac_try='test -s conftest$ac_exeext'
23471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; }; then
23477 cat >>confdefs.h <<\_ACEOF
23478 #define SHIBSP_LOG4CPP 1
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23485 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23486 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23487 { (exit 1); exit 1; }; }
23489 rm -f conftest.err conftest.$ac_objext \
23490 conftest$ac_exeext conftest.$ac_ext
23492 { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23493 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23494 { (exit 1); exit 1; }; }
23500 # Check whether --with-xerces or --without-xerces was given.
23501 if test "${with_xerces+set}" = set; then
23502 withval="$with_xerces"
23503 if test x_$with_xerces != x_/usr; then
23504 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23505 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23508 LIBS="-lxerces-c $LIBS"
23509 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23510 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23511 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23512 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23513 echo $ECHO_N "(cached) $ECHO_C" >&6
23515 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23516 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23518 # Is the header compilable?
23519 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23520 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23521 cat >conftest.$ac_ext <<_ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h. */
23527 $ac_includes_default
23528 #include <xercesc/dom/DOM.hpp>
23530 rm -f conftest.$ac_objext
23531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23532 (eval $ac_compile) 2>conftest.er1
23534 grep -v '^ *+' conftest.er1 >conftest.err
23536 cat conftest.err >&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); } &&
23539 { ac_try='test -z "$ac_cxx_werror_flag"
23540 || test ! -s conftest.err'
23541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23542 (eval $ac_try) 2>&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); }; } &&
23546 { ac_try='test -s conftest.$ac_objext'
23547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548 (eval $ac_try) 2>&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); }; }; then
23552 ac_header_compiler=yes
23554 echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23557 ac_header_compiler=no
23559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23561 echo "${ECHO_T}$ac_header_compiler" >&6
23563 # Is the header present?
23564 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23565 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23566 cat >conftest.$ac_ext <<_ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 #include <xercesc/dom/DOM.hpp>
23574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23577 grep -v '^ *+' conftest.er1 >conftest.err
23579 cat conftest.err >&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } >/dev/null; then
23582 if test -s conftest.err; then
23583 ac_cpp_err=$ac_cxx_preproc_warn_flag
23584 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23591 if test -z "$ac_cpp_err"; then
23592 ac_header_preproc=yes
23594 echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23597 ac_header_preproc=no
23599 rm -f conftest.err conftest.$ac_ext
23600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23601 echo "${ECHO_T}$ac_header_preproc" >&6
23603 # So? What about this header?
23604 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23606 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23607 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23608 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23609 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23610 ac_header_preproc=yes
23613 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23614 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23615 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: check for missing prerequisite headers?" >&5
23616 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: check for missing prerequisite headers?" >&2;}
23617 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23618 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23619 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: section \"Present But Cannot Be Compiled\"" >&5
23620 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
23621 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23622 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23623 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23624 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23627 ## --------------------------------------------- ##
23628 ## Report this to shibboleth-users@internet2.edu ##
23629 ## --------------------------------------------- ##
23632 sed "s/^/$as_me: WARNING: /" >&2
23635 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23636 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23637 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23638 echo $ECHO_N "(cached) $ECHO_C" >&6
23640 ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23642 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23643 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23646 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23649 { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23650 echo "$as_me: error: unable to find xerces header files" >&2;}
23651 { (exit 1); exit 1; }; }
23655 echo "$as_me:$LINENO: checking Xerces version" >&5
23656 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23657 cat >conftest.$ac_ext <<_ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23663 #include <xercesc/util/XercesVersion.hpp>
23667 #if _XERCES_VERSION != 20600
23670 #error cannot use version 2.6.0
23676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23679 grep -v '^ *+' conftest.er1 >conftest.err
23681 cat conftest.err >&5
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } >/dev/null; then
23684 if test -s conftest.err; then
23685 ac_cpp_err=$ac_cxx_preproc_warn_flag
23686 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23693 if test -z "$ac_cpp_err"; then
23694 echo "$as_me:$LINENO: result: OK" >&5
23695 echo "${ECHO_T}OK" >&6
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23700 { { echo "$as_me:$LINENO: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23701 See \`config.log' for more details." >&5
23702 echo "$as_me: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23703 See \`config.log' for more details." >&2;}
23704 { (exit 1); exit 1; }; }
23706 rm -f conftest.err conftest.$ac_ext
23707 cat >conftest.$ac_ext <<_ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h. */
23713 #include <xercesc/util/PlatformUtils.hpp>
23717 xercesc::XMLPlatformUtils::Initialize()
23722 rm -f conftest.$ac_objext conftest$ac_exeext
23723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724 (eval $ac_link) 2>conftest.er1
23726 grep -v '^ *+' conftest.er1 >conftest.err
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } &&
23731 { ac_try='test -z "$ac_cxx_werror_flag"
23732 || test ! -s conftest.err'
23733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734 (eval $ac_try) 2>&5
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; } &&
23738 { ac_try='test -s conftest$ac_exeext'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; }; then
23745 cat >>confdefs.h <<\_ACEOF
23746 #define HAVE_LIBXERCESC 1
23750 echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23754 echo "$as_me: error: unable to link with Xerces" >&2;}
23755 { (exit 1); exit 1; }; }
23757 rm -f conftest.err conftest.$ac_objext \
23758 conftest$ac_exeext conftest.$ac_ext
23760 echo "$as_me:$LINENO: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
23761 echo $ECHO_N "checking whether Xerces XMLString::release(XMLByte**) exists... $ECHO_C" >&6
23762 cat >conftest.$ac_ext <<_ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23768 #include <xercesc/util/XMLString.hpp>
23772 using namespace XERCES_CPP_NAMESPACE;
23774 XMLString::release(&buf);
23780 rm -f conftest.$ac_objext
23781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23782 (eval $ac_compile) 2>conftest.er1
23784 grep -v '^ *+' conftest.er1 >conftest.err
23786 cat conftest.err >&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } &&
23789 { ac_try='test -z "$ac_cxx_werror_flag"
23790 || test ! -s conftest.err'
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; } &&
23796 { ac_try='test -s conftest.$ac_objext'
23797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798 (eval $ac_try) 2>&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); }; }; then
23802 echo "$as_me:$LINENO: result: yes" >&5
23803 echo "${ECHO_T}yes" >&6
23805 cat >>confdefs.h <<\_ACEOF
23806 #define SHIBSP_XERCESC_HAS_XMLBYTE_RELEASE 1
23810 echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23813 echo "$as_me:$LINENO: result: no" >&5
23814 echo "${ECHO_T}no" >&6
23816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23818 echo "$as_me:$LINENO: checking whether Xerces DOMNodeFilter API returns a short" >&5
23819 echo $ECHO_N "checking whether Xerces DOMNodeFilter API returns a short... $ECHO_C" >&6
23820 cat >conftest.$ac_ext <<_ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h. */
23826 #include <xercesc/dom/DOM.hpp>
23830 using namespace XERCES_CPP_NAMESPACE;
23831 class Blocker : public DOMNodeFilter {
23833 short acceptNode(const DOMNode* node) const {
23834 return FILTER_REJECT;
23837 static Blocker g_Blocker;
23843 rm -f conftest.$ac_objext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23845 (eval $ac_compile) 2>conftest.er1
23847 grep -v '^ *+' conftest.er1 >conftest.err
23849 cat conftest.err >&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } &&
23852 { ac_try='test -z "$ac_cxx_werror_flag"
23853 || test ! -s conftest.err'
23854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855 (eval $ac_try) 2>&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); }; } &&
23859 { ac_try='test -s conftest.$ac_objext'
23860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861 (eval $ac_try) 2>&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; }; then
23865 echo "$as_me:$LINENO: result: yes" >&5
23866 echo "${ECHO_T}yes" >&6
23868 cat >>confdefs.h <<\_ACEOF
23869 #define SHIBSP_XERCESC_SHORT_ACCEPTNODE 1
23873 echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23876 echo "$as_me:$LINENO: result: no" >&5
23877 echo "${ECHO_T}no" >&6
23879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23881 #XML-Tooling settings
23883 # Check whether --with-xmltooling or --without-xmltooling was given.
23884 if test "${with_xmltooling+set}" = set; then
23885 withval="$with_xmltooling"
23886 if test x_$with_xmltooling != x_/usr; then
23887 LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
23888 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
23891 LITE_LIBS="-lxmltooling-lite"
23892 XMLSEC_LIBS="-lxmltooling"
23893 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23894 echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
23895 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
23896 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23897 echo $ECHO_N "(cached) $ECHO_C" >&6
23899 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
23900 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
23902 # Is the header compilable?
23903 echo "$as_me:$LINENO: checking xmltooling/base.h usability" >&5
23904 echo $ECHO_N "checking xmltooling/base.h usability... $ECHO_C" >&6
23905 cat >conftest.$ac_ext <<_ACEOF
23908 cat confdefs.h >>conftest.$ac_ext
23909 cat >>conftest.$ac_ext <<_ACEOF
23910 /* end confdefs.h. */
23911 $ac_includes_default
23912 #include <xmltooling/base.h>
23914 rm -f conftest.$ac_objext
23915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23916 (eval $ac_compile) 2>conftest.er1
23918 grep -v '^ *+' conftest.er1 >conftest.err
23920 cat conftest.err >&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); } &&
23923 { ac_try='test -z "$ac_cxx_werror_flag"
23924 || test ! -s conftest.err'
23925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23926 (eval $ac_try) 2>&5
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); }; } &&
23930 { ac_try='test -s conftest.$ac_objext'
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; }; then
23936 ac_header_compiler=yes
23938 echo "$as_me: failed program was:" >&5
23939 sed 's/^/| /' conftest.$ac_ext >&5
23941 ac_header_compiler=no
23943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23945 echo "${ECHO_T}$ac_header_compiler" >&6
23947 # Is the header present?
23948 echo "$as_me:$LINENO: checking xmltooling/base.h presence" >&5
23949 echo $ECHO_N "checking xmltooling/base.h presence... $ECHO_C" >&6
23950 cat >conftest.$ac_ext <<_ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23956 #include <xmltooling/base.h>
23958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23961 grep -v '^ *+' conftest.er1 >conftest.err
23963 cat conftest.err >&5
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); } >/dev/null; then
23966 if test -s conftest.err; then
23967 ac_cpp_err=$ac_cxx_preproc_warn_flag
23968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23975 if test -z "$ac_cpp_err"; then
23976 ac_header_preproc=yes
23978 echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23981 ac_header_preproc=no
23983 rm -f conftest.err conftest.$ac_ext
23984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23985 echo "${ECHO_T}$ac_header_preproc" >&6
23987 # So? What about this header?
23988 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23990 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&5
23991 echo "$as_me: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23992 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&5
23993 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&2;}
23994 ac_header_preproc=yes
23997 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: present but cannot be compiled" >&5
23998 echo "$as_me: WARNING: xmltooling/base.h: present but cannot be compiled" >&2;}
23999 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: check for missing prerequisite headers?" >&5
24000 echo "$as_me: WARNING: xmltooling/base.h: check for missing prerequisite headers?" >&2;}
24001 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: see the Autoconf documentation" >&5
24002 echo "$as_me: WARNING: xmltooling/base.h: see the Autoconf documentation" >&2;}
24003 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: section \"Present But Cannot Be Compiled\"" >&5
24004 echo "$as_me: WARNING: xmltooling/base.h: section \"Present But Cannot Be Compiled\"" >&2;}
24005 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&5
24006 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&2;}
24007 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&5
24008 echo "$as_me: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&2;}
24011 ## --------------------------------------------- ##
24012 ## Report this to shibboleth-users@internet2.edu ##
24013 ## --------------------------------------------- ##
24016 sed "s/^/$as_me: WARNING: /" >&2
24019 echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
24020 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
24021 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
24022 echo $ECHO_N "(cached) $ECHO_C" >&6
24024 ac_cv_header_xmltooling_base_h=$ac_header_preproc
24026 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
24027 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
24030 if test $ac_cv_header_xmltooling_base_h = yes; then
24033 { { echo "$as_me:$LINENO: error: unable to find xmltooling header files" >&5
24034 echo "$as_me: error: unable to find xmltooling header files" >&2;}
24035 { (exit 1); exit 1; }; }
24040 # Establish location of xmltooling catalog.
24041 XMLTOOLINGXMLDIR=""
24042 if test "x$with_xmltooling" = "x" ; then
24043 with_xmltooling="/usr"
24045 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
24046 XMLTOOLINGXMLDIR="$with_xmltooling"
24047 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
24048 XMLTOOLINGXMLDIR="$with_xerces"
24049 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
24050 XMLTOOLINGXMLDIR="$with_log4shib"
24052 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
24053 { { echo "$as_me:$LINENO: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&5
24054 echo "$as_me: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&2;}
24055 { (exit 1); exit 1; }; }
24057 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
24060 # XML-Security settings
24062 # Check whether --with-xmlsec or --without-xmlsec was given.
24063 if test "${with_xmlsec+set}" = set; then
24064 withval="$with_xmlsec"
24070 if test x_$with_xmlsec != x_/usr; then
24071 LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
24072 CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
24074 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
24076 # save and append master libs
24078 LIBS="$XMLSEC_LIBS $LIBS"
24080 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24081 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24082 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24083 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
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
24089 # Is the header compilable?
24090 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
24091 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
24092 cat >conftest.$ac_ext <<_ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h. */
24098 $ac_includes_default
24099 #include <xsec/utils/XSECPlatformUtils.hpp>
24101 rm -f conftest.$ac_objext
24102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24103 (eval $ac_compile) 2>conftest.er1
24105 grep -v '^ *+' conftest.er1 >conftest.err
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } &&
24110 { ac_try='test -z "$ac_cxx_werror_flag"
24111 || test ! -s conftest.err'
24112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113 (eval $ac_try) 2>&5
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); }; } &&
24117 { ac_try='test -s conftest.$ac_objext'
24118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119 (eval $ac_try) 2>&5
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); }; }; then
24123 ac_header_compiler=yes
24125 echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24128 ac_header_compiler=no
24130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24132 echo "${ECHO_T}$ac_header_compiler" >&6
24134 # Is the header present?
24135 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
24136 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
24137 cat >conftest.$ac_ext <<_ACEOF
24140 cat confdefs.h >>conftest.$ac_ext
24141 cat >>conftest.$ac_ext <<_ACEOF
24142 /* end confdefs.h. */
24143 #include <xsec/utils/XSECPlatformUtils.hpp>
24145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24148 grep -v '^ *+' conftest.er1 >conftest.err
24150 cat conftest.err >&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); } >/dev/null; then
24153 if test -s conftest.err; then
24154 ac_cpp_err=$ac_cxx_preproc_warn_flag
24155 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24162 if test -z "$ac_cpp_err"; then
24163 ac_header_preproc=yes
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24168 ac_header_preproc=no
24170 rm -f conftest.err conftest.$ac_ext
24171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24172 echo "${ECHO_T}$ac_header_preproc" >&6
24174 # So? What about this header?
24175 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24177 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
24178 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
24179 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
24180 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
24181 ac_header_preproc=yes
24184 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
24185 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
24186 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: check for missing prerequisite headers?" >&5
24187 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: check for missing prerequisite headers?" >&2;}
24188 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
24189 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
24190 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: section \"Present But Cannot Be Compiled\"" >&5
24191 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
24192 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
24193 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
24194 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
24195 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
24198 ## --------------------------------------------- ##
24199 ## Report this to shibboleth-users@internet2.edu ##
24200 ## --------------------------------------------- ##
24203 sed "s/^/$as_me: WARNING: /" >&2
24206 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24207 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24208 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
24211 ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
24213 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24214 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24217 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
24220 { { echo "$as_me:$LINENO: error: unable to find XML-Security header files" >&5
24221 echo "$as_me: error: unable to find XML-Security header files" >&2;}
24222 { (exit 1); exit 1; }; }
24226 echo "$as_me:$LINENO: checking XML-Security version" >&5
24227 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
24228 cat >conftest.$ac_ext <<_ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h. */
24234 #include <xsec/utils/XSECPlatformUtils.hpp>
24238 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
24241 #error need version 1.4.0 or later
24247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24250 grep -v '^ *+' conftest.er1 >conftest.err
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } >/dev/null; then
24255 if test -s conftest.err; then
24256 ac_cpp_err=$ac_cxx_preproc_warn_flag
24257 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24264 if test -z "$ac_cpp_err"; then
24265 echo "$as_me:$LINENO: result: OK" >&5
24266 echo "${ECHO_T}OK" >&6
24268 echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24271 { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
24272 See \`config.log' for more details." >&5
24273 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
24274 See \`config.log' for more details." >&2;}
24275 { (exit 1); exit 1; }; }
24277 rm -f conftest.err conftest.$ac_ext
24278 cat >conftest.$ac_ext <<_ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h. */
24284 #include <xsec/utils/XSECPlatformUtils.hpp>
24288 XSECPlatformUtils::Initialise()
24293 rm -f conftest.$ac_objext conftest$ac_exeext
24294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24295 (eval $ac_link) 2>conftest.er1
24297 grep -v '^ *+' conftest.er1 >conftest.err
24299 cat conftest.err >&5
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); } &&
24302 { ac_try='test -z "$ac_cxx_werror_flag"
24303 || test ! -s conftest.err'
24304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305 (eval $ac_try) 2>&5
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; } &&
24309 { ac_try='test -s conftest$ac_exeext'
24310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311 (eval $ac_try) 2>&5
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); }; }; then
24317 echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24320 { { echo "$as_me:$LINENO: error: unable to link with XML-Security" >&5
24321 echo "$as_me: error: unable to link with XML-Security" >&2;}
24322 { (exit 1); exit 1; }; }
24324 rm -f conftest.err conftest.$ac_objext \
24325 conftest$ac_exeext conftest.$ac_ext
24327 # restore master libs
24330 # OpenSAML settings
24332 # Check whether --with-saml or --without-saml was given.
24333 if test "${with_saml+set}" = set; then
24334 withval="$with_saml"
24335 if test x_$with_saml != x_/usr; then
24336 LDFLAGS="-L${with_saml}/lib $LDFLAGS"
24337 CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
24340 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
24342 # save and append master libs
24344 LIBS="$XMLSEC_LIBS $LIBS"
24346 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24347 echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24348 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24349 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24350 echo $ECHO_N "(cached) $ECHO_C" >&6
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
24355 # Is the header compilable?
24356 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h usability" >&5
24357 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h usability... $ECHO_C" >&6
24358 cat >conftest.$ac_ext <<_ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24364 $ac_includes_default
24365 #include <saml/saml2/metadata/Metadata.h>
24367 rm -f conftest.$ac_objext
24368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24369 (eval $ac_compile) 2>conftest.er1
24371 grep -v '^ *+' conftest.er1 >conftest.err
24373 cat conftest.err >&5
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); } &&
24376 { ac_try='test -z "$ac_cxx_werror_flag"
24377 || test ! -s conftest.err'
24378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379 (eval $ac_try) 2>&5
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; } &&
24383 { ac_try='test -s conftest.$ac_objext'
24384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385 (eval $ac_try) 2>&5
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; }; then
24389 ac_header_compiler=yes
24391 echo "$as_me: failed program was:" >&5
24392 sed 's/^/| /' conftest.$ac_ext >&5
24394 ac_header_compiler=no
24396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24398 echo "${ECHO_T}$ac_header_compiler" >&6
24400 # Is the header present?
24401 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h presence" >&5
24402 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h presence... $ECHO_C" >&6
24403 cat >conftest.$ac_ext <<_ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h. */
24409 #include <saml/saml2/metadata/Metadata.h>
24411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24414 grep -v '^ *+' conftest.er1 >conftest.err
24416 cat conftest.err >&5
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); } >/dev/null; then
24419 if test -s conftest.err; then
24420 ac_cpp_err=$ac_cxx_preproc_warn_flag
24421 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24428 if test -z "$ac_cpp_err"; then
24429 ac_header_preproc=yes
24431 echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24434 ac_header_preproc=no
24436 rm -f conftest.err conftest.$ac_ext
24437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24438 echo "${ECHO_T}$ac_header_preproc" >&6
24440 # So? What about this header?
24441 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24443 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&5
24444 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24445 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&5
24446 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&2;}
24447 ac_header_preproc=yes
24450 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&5
24451 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&2;}
24452 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: check for missing prerequisite headers?" >&5
24453 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: check for missing prerequisite headers?" >&2;}
24454 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&5
24455 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&2;}
24456 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: section \"Present But Cannot Be Compiled\"" >&5
24457 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: section \"Present But Cannot Be Compiled\"" >&2;}
24458 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&5
24459 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&2;}
24460 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&5
24461 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&2;}
24464 ## --------------------------------------------- ##
24465 ## Report this to shibboleth-users@internet2.edu ##
24466 ## --------------------------------------------- ##
24469 sed "s/^/$as_me: WARNING: /" >&2
24472 echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24473 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24474 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24477 ac_cv_header_saml_saml2_metadata_Metadata_h=$ac_header_preproc
24479 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24480 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24483 if test $ac_cv_header_saml_saml2_metadata_Metadata_h = yes; then
24486 { { echo "$as_me:$LINENO: error: unable to find OpenSAML header files" >&5
24487 echo "$as_me: error: unable to find OpenSAML header files" >&2;}
24488 { (exit 1); exit 1; }; }
24492 cat >conftest.$ac_ext <<_ACEOF
24495 cat confdefs.h >>conftest.$ac_ext
24496 cat >>conftest.$ac_ext <<_ACEOF
24497 /* end confdefs.h. */
24498 #include <saml/SAMLConfig.h>
24499 #include <saml/version.h>
24503 #if _OPENSAML_VERSION >= 20200
24504 opensaml::SAMLConfig::getConfig();
24506 #error Need OpenSAML version 2.2 or higher
24512 rm -f conftest.$ac_objext conftest$ac_exeext
24513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24514 (eval $ac_link) 2>conftest.er1
24516 grep -v '^ *+' conftest.er1 >conftest.err
24518 cat conftest.err >&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } &&
24521 { ac_try='test -z "$ac_cxx_werror_flag"
24522 || test ! -s conftest.err'
24523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24524 (eval $ac_try) 2>&5
24526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527 (exit $ac_status); }; } &&
24528 { ac_try='test -s conftest$ac_exeext'
24529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24530 (eval $ac_try) 2>&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); }; }; then
24535 cat >>confdefs.h <<\_ACEOF
24536 #define HAVE_SAML 1
24540 echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24543 { { echo "$as_me:$LINENO: error: unable to link with OpenSAML, or version was too old" >&5
24544 echo "$as_me: error: unable to link with OpenSAML, or version was too old" >&2;}
24545 { (exit 1); exit 1; }; }
24547 rm -f conftest.err conftest.$ac_objext \
24548 conftest$ac_exeext conftest.$ac_ext
24550 # restore master libs
24553 # Establish location of opensaml catalogs.
24555 if test "x$with_saml" = "x" ; then
24558 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
24559 OPENSAMLXMLDIR="$with_saml"
24560 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
24561 OPENSAMLXMLDIR="$with_xmltooling"
24562 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
24563 OPENSAMLXMLDIR="$with_xerces"
24564 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
24565 OPENSAMLXMLDIR="$with_log4shib"
24567 if test "x$OPENSAMLXMLDIR" = "x" ; then
24568 { { echo "$as_me:$LINENO: error: opensaml XML catalogs not found, may need to use --with-saml option" >&5
24569 echo "$as_me: error: opensaml XML catalogs not found, may need to use --with-saml option" >&2;}
24570 { (exit 1); exit 1; }; }
24572 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
24578 ac_config_files="$ac_config_files shibboleth.spec pkginfo Portfile"
24581 # output the underlying makefiles
24582 WANT_SUBDIRS="doc schemas configs shibsp shibd util"
24583 ac_config_files="$ac_config_files Makefile doc/Makefile schemas/Makefile configs/Makefile shibsp/Makefile shibd/Makefile util/Makefile selinux/Makefile"
24587 ac_config_files="$ac_config_files adfs/Makefile"
24589 # Check whether --enable-adfs or --disable-adfs was given.
24590 if test "${enable_adfs+set}" = set; then
24591 enableval="$enable_adfs"
24592 adfs_enabled=$enableval
24596 if test "x$adfs_enabled" = "x" ; then
24599 echo "$as_me:$LINENO: checking whether to build the ADFS module" >&5
24600 echo $ECHO_N "checking whether to build the ADFS module... $ECHO_C" >&6
24601 if test "$adfs_enabled" = "no" ; then
24602 echo "$as_me:$LINENO: result: no" >&5
24603 echo "${ECHO_T}no" >&6
24605 echo "$as_me:$LINENO: result: yes" >&5
24606 echo "${ECHO_T}yes" >&6
24607 WANT_SUBDIRS="$WANT_SUBDIRS adfs"
24612 # Build NSAPI module?
24614 echo "$as_me:$LINENO: checking for NSAPI module option" >&5
24615 echo $ECHO_N "checking for NSAPI module option... $ECHO_C" >&6
24617 # Check whether --with-nsapi or --without-nsapi was given.
24618 if test "${with_nsapi+set}" = set; then
24619 withval="$with_nsapi"
24620 WANT_NSAPI=$withval
24624 echo "$as_me:$LINENO: result: $WANT_NSAPI" >&5
24625 echo "${ECHO_T}$WANT_NSAPI" >&6
24627 if test "$WANT_NSAPI" != "no"; then
24628 if test ! -d $WANT_NSAPI/bin ; then
24629 { { echo "$as_me:$LINENO: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&5
24630 echo "$as_me: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&2;}
24631 { (exit 1); exit 1; }; }
24633 echo "$as_me:$LINENO: checking for NSAPI include files" >&5
24634 echo $ECHO_N "checking for NSAPI include files... $ECHO_C" >&6
24635 if test -d $WANT_NSAPI/include ; then
24636 NSAPI_INCLUDE=$WANT_NSAPI/include
24637 echo "$as_me:$LINENO: result: Netscape-Enterprise 3.x style" >&5
24638 echo "${ECHO_T}Netscape-Enterprise 3.x style" >&6
24640 for ac_header in $NSAPI_INCLUDE/nsapi.h
24642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24643 echo "$as_me:$LINENO: checking for $ac_header" >&5
24644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24646 echo $ECHO_N "(cached) $ECHO_C" >&6
24648 cat >conftest.$ac_ext <<_ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h. */
24656 #include <$ac_header>
24658 rm -f conftest.$ac_objext
24659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24660 (eval $ac_compile) 2>conftest.er1
24662 grep -v '^ *+' conftest.er1 >conftest.err
24664 cat conftest.err >&5
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } &&
24667 { ac_try='test -z "$ac_cxx_werror_flag"
24668 || test ! -s conftest.err'
24669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24670 (eval $ac_try) 2>&5
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); }; } &&
24674 { ac_try='test -s conftest.$ac_objext'
24675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24676 (eval $ac_try) 2>&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); }; }; then
24680 eval "$as_ac_Header=yes"
24682 echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24685 eval "$as_ac_Header=no"
24687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24692 cat >>confdefs.h <<_ACEOF
24693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24700 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24702 if test -d $WANT_NSAPI/plugins/include ; then
24703 test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
24704 NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
24705 echo "$as_me:$LINENO: result: iPlanet 4.x / SunONE 6.x style" >&5
24706 echo "${ECHO_T}iPlanet 4.x / SunONE 6.x style" >&6
24708 for ac_header in $NSAPI_INCLUDE/nsapi.h
24710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24711 echo "$as_me:$LINENO: checking for $ac_header" >&5
24712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24714 echo $ECHO_N "(cached) $ECHO_C" >&6
24716 cat >conftest.$ac_ext <<_ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24724 #include <$ac_header>
24726 rm -f conftest.$ac_objext
24727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24728 (eval $ac_compile) 2>conftest.er1
24730 grep -v '^ *+' conftest.er1 >conftest.err
24732 cat conftest.err >&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); } &&
24735 { ac_try='test -z "$ac_cxx_werror_flag"
24736 || test ! -s conftest.err'
24737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738 (eval $ac_try) 2>&5
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); }; } &&
24742 { ac_try='test -s conftest.$ac_objext'
24743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744 (eval $ac_try) 2>&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); }; }; then
24748 eval "$as_ac_Header=yes"
24750 echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24753 eval "$as_ac_Header=no"
24755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24760 cat >>confdefs.h <<_ACEOF
24761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24768 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24770 if test "$NSAPI_INCLUDE" = ""; then
24771 { { echo "$as_me:$LINENO: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&5
24772 echo "$as_me: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&2;}
24773 { (exit 1); exit 1; }; }
24779 # always output the Makefile, even if you don't use it
24780 ac_config_files="$ac_config_files nsapi_shib/Makefile"
24784 if test ! "$WANT_NSAPI" = "no"; then
24786 BUILD_NSAPI_FALSE='#'
24788 BUILD_NSAPI_TRUE='#'
24793 # add the NSAPI module to the list of wanted subdirs..
24794 if test ! "$WANT_NSAPI" = "no" ; then
24795 WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
24800 # Build FastCGI support?
24802 echo "$as_me:$LINENO: checking for FastCGI support" >&5
24803 echo $ECHO_N "checking for FastCGI support... $ECHO_C" >&6
24805 # Check whether --with-fastcgi or --without-fastcgi was given.
24806 if test "${with_fastcgi+set}" = set; then
24807 withval="$with_fastcgi"
24808 WANT_FASTCGI=$withval
24812 echo "$as_me:$LINENO: result: $WANT_FASTCGI" >&5
24813 echo "${ECHO_T}$WANT_FASTCGI" >&6
24815 if test "$WANT_FASTCGI" != "no"; then
24816 if test "$WANT_FASTCGI" != "yes"; then
24817 if test x_$WANT_FASTCGI != x_/usr; then
24818 FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
24819 FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
24822 if test "${ac_cv_header_fcgio_h+set}" = set; then
24823 echo "$as_me:$LINENO: checking for fcgio.h" >&5
24824 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24825 if test "${ac_cv_header_fcgio_h+set}" = set; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24828 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24829 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24831 # Is the header compilable?
24832 echo "$as_me:$LINENO: checking fcgio.h usability" >&5
24833 echo $ECHO_N "checking fcgio.h usability... $ECHO_C" >&6
24834 cat >conftest.$ac_ext <<_ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h. */
24840 $ac_includes_default
24843 rm -f conftest.$ac_objext
24844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24845 (eval $ac_compile) 2>conftest.er1
24847 grep -v '^ *+' conftest.er1 >conftest.err
24849 cat conftest.err >&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } &&
24852 { ac_try='test -z "$ac_cxx_werror_flag"
24853 || test ! -s conftest.err'
24854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855 (eval $ac_try) 2>&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); }; } &&
24859 { ac_try='test -s conftest.$ac_objext'
24860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861 (eval $ac_try) 2>&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; }; then
24865 ac_header_compiler=yes
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 ac_header_compiler=no
24872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24874 echo "${ECHO_T}$ac_header_compiler" >&6
24876 # Is the header present?
24877 echo "$as_me:$LINENO: checking fcgio.h presence" >&5
24878 echo $ECHO_N "checking fcgio.h presence... $ECHO_C" >&6
24879 cat >conftest.$ac_ext <<_ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h. */
24887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24890 grep -v '^ *+' conftest.er1 >conftest.err
24892 cat conftest.err >&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); } >/dev/null; then
24895 if test -s conftest.err; then
24896 ac_cpp_err=$ac_cxx_preproc_warn_flag
24897 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24904 if test -z "$ac_cpp_err"; then
24905 ac_header_preproc=yes
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24910 ac_header_preproc=no
24912 rm -f conftest.err conftest.$ac_ext
24913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24914 echo "${ECHO_T}$ac_header_preproc" >&6
24916 # So? What about this header?
24917 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24919 { echo "$as_me:$LINENO: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24920 echo "$as_me: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24921 { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the compiler's result" >&5
24922 echo "$as_me: WARNING: fcgio.h: proceeding with the compiler's result" >&2;}
24923 ac_header_preproc=yes
24926 { echo "$as_me:$LINENO: WARNING: fcgio.h: present but cannot be compiled" >&5
24927 echo "$as_me: WARNING: fcgio.h: present but cannot be compiled" >&2;}
24928 { echo "$as_me:$LINENO: WARNING: fcgio.h: check for missing prerequisite headers?" >&5
24929 echo "$as_me: WARNING: fcgio.h: check for missing prerequisite headers?" >&2;}
24930 { echo "$as_me:$LINENO: WARNING: fcgio.h: see the Autoconf documentation" >&5
24931 echo "$as_me: WARNING: fcgio.h: see the Autoconf documentation" >&2;}
24932 { echo "$as_me:$LINENO: WARNING: fcgio.h: section \"Present But Cannot Be Compiled\"" >&5
24933 echo "$as_me: WARNING: fcgio.h: section \"Present But Cannot Be Compiled\"" >&2;}
24934 { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the preprocessor's result" >&5
24935 echo "$as_me: WARNING: fcgio.h: proceeding with the preprocessor's result" >&2;}
24936 { echo "$as_me:$LINENO: WARNING: fcgio.h: in the future, the compiler will take precedence" >&5
24937 echo "$as_me: WARNING: fcgio.h: in the future, the compiler will take precedence" >&2;}
24940 ## --------------------------------------------- ##
24941 ## Report this to shibboleth-users@internet2.edu ##
24942 ## --------------------------------------------- ##
24945 sed "s/^/$as_me: WARNING: /" >&2
24948 echo "$as_me:$LINENO: checking for fcgio.h" >&5
24949 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24950 if test "${ac_cv_header_fcgio_h+set}" = set; then
24951 echo $ECHO_N "(cached) $ECHO_C" >&6
24953 ac_cv_header_fcgio_h=$ac_header_preproc
24955 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24956 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24959 if test $ac_cv_header_fcgio_h = yes; then
24962 { { echo "$as_me:$LINENO: error: unable to find FastCGI header files" >&5
24963 echo "$as_me: error: unable to find FastCGI header files" >&2;}
24964 { (exit 1); exit 1; }; }
24968 FASTCGI_LIBS="-lfcgi -lfcgi++"
24975 # always output the Makefile, even if you don't use it
24976 ac_config_files="$ac_config_files fastcgi/Makefile"
24980 if test ! "$WANT_FASTCGI" = "no"; then
24981 BUILD_FASTCGI_TRUE=
24982 BUILD_FASTCGI_FALSE='#'
24984 BUILD_FASTCGI_TRUE='#'
24985 BUILD_FASTCGI_FALSE=
24989 if test ! "$WANT_FASTCGI" = "no" ; then
24990 WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
24994 # Build Memcached support?
24996 echo "$as_me:$LINENO: checking for Memcached support" >&5
24997 echo $ECHO_N "checking for Memcached support... $ECHO_C" >&6
24999 # Check whether --with-memcached or --without-memcached was given.
25000 if test "${with_memcached+set}" = set; then
25001 withval="$with_memcached"
25002 WANT_MEMCACHED=$withval
25006 echo "$as_me:$LINENO: result: $WANT_MEMCACHED" >&5
25007 echo "${ECHO_T}$WANT_MEMCACHED" >&6
25009 if test "$WANT_MEMCACHED" != "no"; then
25010 if test "$WANT_MEMCACHED" != "yes"; then
25011 if test x_$WANT_MEMCACHED != x_/usr; then
25012 MEMCACHED_INCLUDE="-I$WANT_MEMCACHED/include"
25013 MEMCACHED_LDFLAGS="-L$WANT_MEMCACHED/lib"
25016 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25017 echo "$as_me:$LINENO: checking for libmemcached/memcached.h" >&5
25018 echo $ECHO_N "checking for libmemcached/memcached.h... $ECHO_C" >&6
25019 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25020 echo $ECHO_N "(cached) $ECHO_C" >&6
25022 echo "$as_me:$LINENO: result: $ac_cv_header_libmemcached_memcached_h" >&5
25023 echo "${ECHO_T}$ac_cv_header_libmemcached_memcached_h" >&6
25025 # Is the header compilable?
25026 echo "$as_me:$LINENO: checking libmemcached/memcached.h usability" >&5
25027 echo $ECHO_N "checking libmemcached/memcached.h usability... $ECHO_C" >&6
25028 cat >conftest.$ac_ext <<_ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h. */
25034 $ac_includes_default
25035 #include <libmemcached/memcached.h>
25037 rm -f conftest.$ac_objext
25038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25039 (eval $ac_compile) 2>conftest.er1
25041 grep -v '^ *+' conftest.er1 >conftest.err
25043 cat conftest.err >&5
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); } &&
25046 { ac_try='test -z "$ac_cxx_werror_flag"
25047 || test ! -s conftest.err'
25048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049 (eval $ac_try) 2>&5
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); }; } &&
25053 { ac_try='test -s conftest.$ac_objext'
25054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25055 (eval $ac_try) 2>&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); }; }; then
25059 ac_header_compiler=yes
25061 echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25064 ac_header_compiler=no
25066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25068 echo "${ECHO_T}$ac_header_compiler" >&6
25070 # Is the header present?
25071 echo "$as_me:$LINENO: checking libmemcached/memcached.h presence" >&5
25072 echo $ECHO_N "checking libmemcached/memcached.h presence... $ECHO_C" >&6
25073 cat >conftest.$ac_ext <<_ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h. */
25079 #include <libmemcached/memcached.h>
25081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25084 grep -v '^ *+' conftest.er1 >conftest.err
25086 cat conftest.err >&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } >/dev/null; then
25089 if test -s conftest.err; then
25090 ac_cpp_err=$ac_cxx_preproc_warn_flag
25091 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25098 if test -z "$ac_cpp_err"; then
25099 ac_header_preproc=yes
25101 echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25104 ac_header_preproc=no
25106 rm -f conftest.err conftest.$ac_ext
25107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25108 echo "${ECHO_T}$ac_header_preproc" >&6
25110 # So? What about this header?
25111 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25113 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: accepted by the compiler, rejected by the preprocessor!" >&5
25114 echo "$as_me: WARNING: libmemcached/memcached.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25115 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: proceeding with the compiler's result" >&5
25116 echo "$as_me: WARNING: libmemcached/memcached.h: proceeding with the compiler's result" >&2;}
25117 ac_header_preproc=yes
25120 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: present but cannot be compiled" >&5
25121 echo "$as_me: WARNING: libmemcached/memcached.h: present but cannot be compiled" >&2;}
25122 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: check for missing prerequisite headers?" >&5
25123 echo "$as_me: WARNING: libmemcached/memcached.h: check for missing prerequisite headers?" >&2;}
25124 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: see the Autoconf documentation" >&5
25125 echo "$as_me: WARNING: libmemcached/memcached.h: see the Autoconf documentation" >&2;}
25126 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: section \"Present But Cannot Be Compiled\"" >&5
25127 echo "$as_me: WARNING: libmemcached/memcached.h: section \"Present But Cannot Be Compiled\"" >&2;}
25128 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: proceeding with the preprocessor's result" >&5
25129 echo "$as_me: WARNING: libmemcached/memcached.h: proceeding with the preprocessor's result" >&2;}
25130 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: in the future, the compiler will take precedence" >&5
25131 echo "$as_me: WARNING: libmemcached/memcached.h: in the future, the compiler will take precedence" >&2;}
25134 ## --------------------------------------------- ##
25135 ## Report this to shibboleth-users@internet2.edu ##
25136 ## --------------------------------------------- ##
25139 sed "s/^/$as_me: WARNING: /" >&2
25142 echo "$as_me:$LINENO: checking for libmemcached/memcached.h" >&5
25143 echo $ECHO_N "checking for libmemcached/memcached.h... $ECHO_C" >&6
25144 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25145 echo $ECHO_N "(cached) $ECHO_C" >&6
25147 ac_cv_header_libmemcached_memcached_h=$ac_header_preproc
25149 echo "$as_me:$LINENO: result: $ac_cv_header_libmemcached_memcached_h" >&5
25150 echo "${ECHO_T}$ac_cv_header_libmemcached_memcached_h" >&6
25153 if test $ac_cv_header_libmemcached_memcached_h = yes; then
25156 { { echo "$as_me:$LINENO: error: unable to find Memcached header files" >&5
25157 echo "$as_me: error: unable to find Memcached header files" >&2;}
25158 { (exit 1); exit 1; }; }
25162 MEMCACHED_LIBS="-lmemcached"
25169 # always output the Makefile, even if you don't use it
25170 ac_config_files="$ac_config_files memcache-store/Makefile"
25174 if test ! "$WANT_MEMCACHED" = "no"; then
25175 BUILD_MEMCACHED_TRUE=
25176 BUILD_MEMCACHED_FALSE='#'
25178 BUILD_MEMCACHED_TRUE='#'
25179 BUILD_MEMCACHED_FALSE=
25183 if test ! "$WANT_MEMCACHED" = "no" ; then
25184 WANT_SUBDIRS="$WANT_SUBDIRS memcache-store"
25189 # If no --enable-apache-xx specified
25190 # find a default and fake the specific parameters
25193 # simple macro to peek at an enable or a with
25196 echo "$as_me:$LINENO: checking if default apache needed" >&5
25197 echo $ECHO_N "checking if default apache needed... $ECHO_C" >&6
25199 if test "${enable_apache_13+set}" = set; then
25200 peekval="${enable_apache_13}"
25203 if test "${enable_apache_20+set}" = set; then
25204 peekval="${enable_apache_20}"
25207 if test "${enable_apache_22+set}" = set; then
25208 peekval="${enable_apache_22}"
25211 echo "$as_me:$LINENO: result: $need_default" >&5
25212 echo "${ECHO_T}$need_default" >&6
25214 if test "$need_default" = "yes"; then
25215 # find an apxs, then the httpd
25217 if test "${with_apxs+set}" = set; then
25218 peekval="${with_apxs}"
25221 if test "${with_apxs2+set}" = set; then
25222 peekval="${with_apxs2}"
25225 if test "${with_apxs22+set}" = set; then
25226 peekval="${with_apxs22}"
25229 if test "x$xs" = "x"; then
25230 for ac_prog in apxs2 apxs
25232 # Extract the first word of "$ac_prog", so it can be a program name with args.
25233 set dummy $ac_prog; ac_word=$2
25234 echo "$as_me:$LINENO: checking for $ac_word" >&5
25235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25236 if test "${ac_cv_path_xs+set}" = set; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
25241 ac_cv_path_xs="$xs" # Let the user override the test with a path.
25244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25245 as_dummy="/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH"
25246 for as_dir in $as_dummy
25249 test -z "$as_dir" && as_dir=.
25250 for ac_exec_ext in '' $ac_executable_extensions; do
25251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25252 ac_cv_path_xs="$as_dir/$ac_word$ac_exec_ext"
25253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25264 if test -n "$xs"; then
25265 echo "$as_me:$LINENO: result: $xs" >&5
25266 echo "${ECHO_T}$xs" >&6
25268 echo "$as_me:$LINENO: result: no" >&5
25269 echo "${ECHO_T}no" >&6
25272 test -n "$xs" && break
25274 test -n "$xs" || xs="{ { echo "$as_me:$LINENO: error: No apxs" >&5
25275 echo "$as_me: error: No apxs" >&2;}
25276 { (exit no apache found. Try --with-apxs); exit no apache found. Try --with-apxs; }; }"
25279 # ask the daemon for the version and set parameters
25280 echo "$as_me:$LINENO: checking default apache version" >&5
25281 echo $ECHO_N "checking default apache version... $ECHO_C" >&6
25282 httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
25283 if test "x$httpd" != "x" && test -f $httpd ; then
25284 v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
25286 1.3*) enable_apache_13=yes
25288 echo "$as_me:$LINENO: result: 1.3" >&5
25289 echo "${ECHO_T}1.3" >&6
25291 2.0*) enable_apache_20=yes
25293 echo "$as_me:$LINENO: result: 2.0" >&5
25294 echo "${ECHO_T}2.0" >&6
25296 2.2*) enable_apache_22=yes
25298 echo "$as_me:$LINENO: result: 2.2" >&5
25299 echo "${ECHO_T}2.2" >&6
25301 *) { { echo "$as_me:$LINENO: error: unusable apache versions: $v. Try setting --with-apxs" >&5
25302 echo "$as_me: error: unusable apache versions: $v. Try setting --with-apxs" >&2;}
25303 { (exit 1); exit 1; }; }
25306 echo "$as_me:$LINENO: result: cannot determine version. Try setting --with-apxs" >&5
25307 echo "${ECHO_T}cannot determine version. Try setting --with-apxs" >&6
25311 # Apache 1.3 (mod_shib_13)
25312 # --enable-apache-13
25313 # --with-apxs (DSO build, the normal way, uses apxs to derive build flags)
25315 # Check whether --enable-apache-13 or --disable-apache-13 was given.
25316 if test "${enable_apache_13+set}" = set; then
25317 enableval="$enable_apache_13"
25318 if test "x$enableval" = "x" ; then
25321 WANT_APACHE_13="$enableval"
25327 echo "$as_me:$LINENO: checking whether to build Apache 1.3 module" >&5
25328 echo $ECHO_N "checking whether to build Apache 1.3 module... $ECHO_C" >&6
25329 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
25332 echo "$as_me:$LINENO: result: $WANT_APACHE_13" >&5
25333 echo "${ECHO_T}$WANT_APACHE_13" >&6
25335 if test "$WANT_APACHE_13" = "yes" ; then
25337 # Check whether --with-apxs or --without-apxs was given.
25338 if test "${with_apxs+set}" = set; then
25339 withval="$with_apxs"
25341 echo "$as_me:$LINENO: checking for user-specified apxs name/location" >&5
25342 echo $ECHO_N "checking for user-specified apxs name/location... $ECHO_C" >&6
25343 if test "$withval" != "no" ; then
25344 if test "$withval" != "yes"; then
25346 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25347 echo "${ECHO_T}\"$withval\"" >&6
25353 # Extract the first word of "apxs", so it can be a program name with args.
25354 set dummy apxs; ac_word=$2
25355 echo "$as_me:$LINENO: checking for $ac_word" >&5
25356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25357 if test "${ac_cv_path_APXS+set}" = set; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25362 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
25365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25366 for as_dir in $PATH
25369 test -z "$as_dir" && as_dir=.
25370 for ac_exec_ext in '' $ac_executable_extensions; do
25371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25372 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
25373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25379 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
25383 APXS=$ac_cv_path_APXS
25385 if test -n "$APXS"; then
25386 echo "$as_me:$LINENO: result: $APXS" >&5
25387 echo "${ECHO_T}$APXS" >&6
25389 echo "$as_me:$LINENO: result: no" >&5
25390 echo "${ECHO_T}no" >&6
25393 if test "$APXS" = "no" ; then
25394 for i in /usr/sbin /usr/local/apache/bin ; do
25395 if test "$APXS" = "no" && test -f "$i/apxs"; then
25403 echo "$as_me:$LINENO: checking to see if apxs was located" >&5
25404 echo $ECHO_N "checking to see if apxs was located... $ECHO_C" >&6
25405 if test ! -f "$APXS" ; then
25406 echo "$as_me:$LINENO: result: no" >&5
25407 echo "${ECHO_T}no" >&6
25408 { { 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
25409 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;}
25410 { (exit 1); exit 1; }; }
25412 echo "$as_me:$LINENO: result: $APXS" >&5
25413 echo "${ECHO_T}$APXS" >&6
25416 # extract settings we need from APXS -q
25417 APXS_CC="`$APXS -q CC`"
25418 APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
25419 APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
25426 # Apache 2.0 (mod_shib_20)
25427 # --enable-apache-20
25428 # --with-apxs2 (DSO build, the normal way, uses apxs to derive build flags)
25429 # --with-apr (DSO build, APR development package installed separately)
25431 # Check whether --enable-apache-20 or --disable-apache-20 was given.
25432 if test "${enable_apache_20+set}" = set; then
25433 enableval="$enable_apache_20"
25434 if test "x$enableval" = "x" ; then
25437 WANT_APACHE_20="$enableval"
25443 echo "$as_me:$LINENO: checking whether to build Apache 2.0 module" >&5
25444 echo $ECHO_N "checking whether to build Apache 2.0 module... $ECHO_C" >&6
25445 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
25448 echo "$as_me:$LINENO: result: $WANT_APACHE_20" >&5
25449 echo "${ECHO_T}$WANT_APACHE_20" >&6
25451 if test "$WANT_APACHE_20" = "yes" ; then
25453 # Check whether --with-apxs2 or --without-apxs2 was given.
25454 if test "${with_apxs2+set}" = set; then
25455 withval="$with_apxs2"
25457 echo "$as_me:$LINENO: checking for user-specified Apache2 apxs name/location" >&5
25458 echo $ECHO_N "checking for user-specified Apache2 apxs name/location... $ECHO_C" >&6
25459 if test "$withval" != "no" ; then
25460 if test "$withval" != "yes"; then
25462 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25463 echo "${ECHO_T}\"$withval\"" >&6
25469 # Extract the first word of "apxs2", so it can be a program name with args.
25470 set dummy apxs2; ac_word=$2
25471 echo "$as_me:$LINENO: checking for $ac_word" >&5
25472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25473 if test "${ac_cv_path_APXS2+set}" = set; then
25474 echo $ECHO_N "(cached) $ECHO_C" >&6
25478 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25482 for as_dir in $PATH
25485 test -z "$as_dir" && as_dir=.
25486 for ac_exec_ext in '' $ac_executable_extensions; do
25487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25488 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25495 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25499 APXS2=$ac_cv_path_APXS2
25501 if test -n "$APXS2"; then
25502 echo "$as_me:$LINENO: result: $APXS2" >&5
25503 echo "${ECHO_T}$APXS2" >&6
25505 echo "$as_me:$LINENO: result: no" >&5
25506 echo "${ECHO_T}no" >&6
25509 if test "$APXS2" = "no" ; then
25510 # Extract the first word of "apxs", so it can be a program name with args.
25511 set dummy apxs; ac_word=$2
25512 echo "$as_me:$LINENO: checking for $ac_word" >&5
25513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25514 if test "${ac_cv_path_APXS2+set}" = set; then
25515 echo $ECHO_N "(cached) $ECHO_C" >&6
25519 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25523 for as_dir in $PATH
25526 test -z "$as_dir" && as_dir=.
25527 for ac_exec_ext in '' $ac_executable_extensions; do
25528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25529 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25536 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25540 APXS2=$ac_cv_path_APXS2
25542 if test -n "$APXS2"; then
25543 echo "$as_me:$LINENO: result: $APXS2" >&5
25544 echo "${ECHO_T}$APXS2" >&6
25546 echo "$as_me:$LINENO: result: no" >&5
25547 echo "${ECHO_T}no" >&6
25551 if test "$APXS2" = "no" ; then
25552 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25553 if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
25557 if test "$APXS2" = "no" ; then
25558 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25559 if test "$APXS2" = "no" && test -f "$i/apxs" ; then
25568 echo "$as_me:$LINENO: checking to see if Apache2 apxs was located" >&5
25569 echo $ECHO_N "checking to see if Apache2 apxs was located... $ECHO_C" >&6
25570 if test ! -f "$APXS2" ; then
25571 echo "$as_me:$LINENO: result: no" >&5
25572 echo "${ECHO_T}no" >&6
25573 { { 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
25574 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;}
25575 { (exit 1); exit 1; }; }
25577 echo "$as_me:$LINENO: result: $APXS2" >&5
25578 echo "${ECHO_T}$APXS2" >&6
25583 # Check whether --with-apr or --without-apr was given.
25584 if test "${with_apr+set}" = set; then
25585 withval="$with_apr"
25587 echo "$as_me:$LINENO: checking for user-specified apr-config name/location" >&5
25588 echo $ECHO_N "checking for user-specified apr-config name/location... $ECHO_C" >&6
25589 if test "$withval" != "no" ; then
25590 if test "$withval" != "yes"; then
25591 APR_CONFIG=$withval
25592 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25593 echo "${ECHO_T}\"$withval\"" >&6
25599 # Extract the first word of "apr-config", so it can be a program name with args.
25600 set dummy apr-config; ac_word=$2
25601 echo "$as_me:$LINENO: checking for $ac_word" >&5
25602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25603 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
25606 case $APR_CONFIG in
25608 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
25611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25612 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
25613 for as_dir in $as_dummy
25616 test -z "$as_dir" && as_dir=.
25617 for ac_exec_ext in '' $ac_executable_extensions; do
25618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25619 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25629 APR_CONFIG=$ac_cv_path_APR_CONFIG
25631 if test -n "$APR_CONFIG"; then
25632 echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
25633 echo "${ECHO_T}$APR_CONFIG" >&6
25635 echo "$as_me:$LINENO: result: no" >&5
25636 echo "${ECHO_T}no" >&6
25641 if test -f "${APR_CONFIG}"; then
25642 APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
25644 { { echo "$as_me:$LINENO: error: Unable to locate apr-config, may need --with-apr option." >&5
25645 echo "$as_me: error: Unable to locate apr-config, may need --with-apr option." >&2;}
25646 { (exit 1); exit 1; }; }
25649 # extract settings we need from APXS2 -q
25650 APXS2_CC="`$APXS2 -q CC`"
25651 APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APR_CFLAGS"
25652 APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
25659 # Apache 2.2 (mod_shib_22)
25660 # --enable-apache-22
25661 # --with-apxs22 (DSO build, the normal way, uses apxs to derive build flags)
25662 # --with-apr1 (DSO build, APR development package installed separately)
25664 # Check whether --enable-apache-22 or --disable-apache-22 was given.
25665 if test "${enable_apache_22+set}" = set; then
25666 enableval="$enable_apache_22"
25667 if test "x$enableval" = "x" ; then
25670 WANT_APACHE_22="$enableval"
25676 echo "$as_me:$LINENO: checking whether to build Apache 2.2 module" >&5
25677 echo $ECHO_N "checking whether to build Apache 2.2 module... $ECHO_C" >&6
25678 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
25681 echo "$as_me:$LINENO: result: $WANT_APACHE_22" >&5
25682 echo "${ECHO_T}$WANT_APACHE_22" >&6
25684 if test "$WANT_APACHE_22" = "yes" ; then
25686 # Check whether --with-apxs22 or --without-apxs22 was given.
25687 if test "${with_apxs22+set}" = set; then
25688 withval="$with_apxs22"
25690 echo "$as_me:$LINENO: checking for user-specified Apache2.2 apxs name/location" >&5
25691 echo $ECHO_N "checking for user-specified Apache2.2 apxs name/location... $ECHO_C" >&6
25692 if test "$withval" != "no" ; then
25693 if test "$withval" != "yes"; then
25695 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25696 echo "${ECHO_T}\"$withval\"" >&6
25702 # Extract the first word of "apxs2", so it can be a program name with args.
25703 set dummy apxs2; ac_word=$2
25704 echo "$as_me:$LINENO: checking for $ac_word" >&5
25705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25706 if test "${ac_cv_path_APXS22+set}" = set; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
25711 ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25715 for as_dir in $PATH
25718 test -z "$as_dir" && as_dir=.
25719 for ac_exec_ext in '' $ac_executable_extensions; do
25720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25721 ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25728 test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25732 APXS22=$ac_cv_path_APXS22
25734 if test -n "$APXS22"; then
25735 echo "$as_me:$LINENO: result: $APXS22" >&5
25736 echo "${ECHO_T}$APXS22" >&6
25738 echo "$as_me:$LINENO: result: no" >&5
25739 echo "${ECHO_T}no" >&6
25742 if test "$APXS22" = "no" ; then
25743 # Extract the first word of "apxs", so it can be a program name with args.
25744 set dummy apxs; ac_word=$2
25745 echo "$as_me:$LINENO: checking for $ac_word" >&5
25746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25747 if test "${ac_cv_path_APXS22+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25752 ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25756 for as_dir in $PATH
25759 test -z "$as_dir" && as_dir=.
25760 for ac_exec_ext in '' $ac_executable_extensions; do
25761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25762 ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25769 test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25773 APXS22=$ac_cv_path_APXS22
25775 if test -n "$APXS22"; then
25776 echo "$as_me:$LINENO: result: $APXS22" >&5
25777 echo "${ECHO_T}$APXS22" >&6
25779 echo "$as_me:$LINENO: result: no" >&5
25780 echo "${ECHO_T}no" >&6
25784 if test "$APXS22" = "no" ; then
25785 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25786 if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
25790 if test "$APXS22" = "no" ; then
25791 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25792 if test "$APXS22" = "no" && test -f "$i/apxs" ; then
25801 echo "$as_me:$LINENO: checking to see if Apache2.2 apxs was located" >&5
25802 echo $ECHO_N "checking to see if Apache2.2 apxs was located... $ECHO_C" >&6
25803 if test ! -f "$APXS22" ; then
25804 echo "$as_me:$LINENO: result: no" >&5
25805 echo "${ECHO_T}no" >&6
25806 { { 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
25807 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;}
25808 { (exit 1); exit 1; }; }
25810 echo "$as_me:$LINENO: result: $APXS22" >&5
25811 echo "${ECHO_T}$APXS22" >&6
25816 # Check whether --with-apr1 or --without-apr1 was given.
25817 if test "${with_apr1+set}" = set; then
25818 withval="$with_apr1"
25820 echo "$as_me:$LINENO: checking for user-specified apr-1-config name/location" >&5
25821 echo $ECHO_N "checking for user-specified apr-1-config name/location... $ECHO_C" >&6
25822 if test "$withval" != "no" ; then
25823 if test "$withval" != "yes"; then
25824 APR1_CONFIG=$withval
25825 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25826 echo "${ECHO_T}\"$withval\"" >&6
25832 # Extract the first word of "apr-1-config", so it can be a program name with args.
25833 set dummy apr-1-config; ac_word=$2
25834 echo "$as_me:$LINENO: checking for $ac_word" >&5
25835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25836 if test "${ac_cv_path_APR1_CONFIG+set}" = set; then
25837 echo $ECHO_N "(cached) $ECHO_C" >&6
25839 case $APR1_CONFIG in
25841 ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
25844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25845 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
25846 for as_dir in $as_dummy
25849 test -z "$as_dir" && as_dir=.
25850 for ac_exec_ext in '' $ac_executable_extensions; do
25851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25852 ac_cv_path_APR1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25862 APR1_CONFIG=$ac_cv_path_APR1_CONFIG
25864 if test -n "$APR1_CONFIG"; then
25865 echo "$as_me:$LINENO: result: $APR1_CONFIG" >&5
25866 echo "${ECHO_T}$APR1_CONFIG" >&6
25868 echo "$as_me:$LINENO: result: no" >&5
25869 echo "${ECHO_T}no" >&6
25874 if test -f "${APR1_CONFIG}"; then
25875 APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
25877 { { echo "$as_me:$LINENO: error: Unable to locate apr-1-config, may need --with-apr1 option." >&5
25878 echo "$as_me: error: Unable to locate apr-1-config, may need --with-apr1 option." >&2;}
25879 { (exit 1); exit 1; }; }
25882 # extract settings we need from APXS22 -q
25883 APXS22_CC="`$APXS22 -q CC`"
25884 APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS"
25885 APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
25891 # always output the Makefile, even if you don't use it
25892 ac_config_files="$ac_config_files apache/Makefile"
25896 if test "$WANT_APACHE_13" = "yes"; then
25898 BUILD_AP13_FALSE='#'
25900 BUILD_AP13_TRUE='#'
25906 if test "$WANT_APACHE_20" = "yes"; then
25908 BUILD_AP20_FALSE='#'
25910 BUILD_AP20_TRUE='#'
25916 if test "$WANT_APACHE_22" = "yes"; then
25918 BUILD_AP22_FALSE='#'
25920 BUILD_AP22_TRUE='#'
25925 # add the apache module to the list of wanted subdirs..
25926 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" ; then
25927 WANT_SUBDIRS="$WANT_SUBDIRS apache"
25932 # Implement the checks of the ODBC Storage Service
25934 # 1) Assume the user wants ODBC; if it's not found then just continue without
25935 # 2) If the user specifically requested odbc, look for it and ERROR if not found
25936 # 3) If the user specifically requested no odbc, don't build it.
25939 ac_config_files="$ac_config_files odbc-store/Makefile"
25942 # determine whether we should enable the odbc ccache
25943 # Check whether --enable-odbc or --disable-odbc was given.
25944 if test "${enable_odbc+set}" = set; then
25945 enableval="$enable_odbc"
25946 odbc_enabled=$enableval
25948 odbc_enabled=default
25951 if test "x$odbc_enabled" = "x" ; then
25955 # Are we trying to build ODBC?
25956 echo "$as_me:$LINENO: checking whether to build the ODBC storage service" >&5
25957 echo $ECHO_N "checking whether to build the ODBC storage service... $ECHO_C" >&6
25958 if test "$odbc_enabled" = "yes" ; then
25960 echo "$as_me:$LINENO: result: yes" >&5
25961 echo "${ECHO_T}yes" >&6
25962 elif test "$odbc_enabled" = "default" ; then
25964 echo "$as_me:$LINENO: result: yes, if it can be found" >&5
25965 echo "${ECHO_T}yes, if it can be found" >&6
25968 echo "$as_me:$LINENO: result: no" >&5
25969 echo "${ECHO_T}no" >&6
25972 # If we're trying to build ODBC, try to find the odbc_config program.
25973 if test "$build_odbc" = "yes" ; then
25976 # Check whether --with-odbc or --without-odbc was given.
25977 if test "${with_odbc+set}" = set; then
25978 withval="$with_odbc"
25979 if test "$with_odbc" = no ; then
25980 { { echo "$as_me:$LINENO: error: Try running --disable-odbc instead." >&5
25981 echo "$as_me: error: Try running --disable-odbc instead." >&2;}
25982 { (exit 1); exit 1; }; }
25983 elif test "$with_odbc" != yes ; then
25984 odbc_dir="$with_odbc/bin"
25985 if test "$with_odbc" != /usr ; then
25986 ODBC_CFLAGS="-I$with_odbc/include"
25987 ODBC_LIBS="-L$with_odbc/lib"
25992 # Extract the first word of "odbc_config", so it can be a program name with args.
25993 set dummy odbc_config; ac_word=$2
25994 echo "$as_me:$LINENO: checking for $ac_word" >&5
25995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25996 if test "${ac_cv_path_ODBC_CONFIG+set}" = set; then
25997 echo $ECHO_N "(cached) $ECHO_C" >&6
25999 case $ODBC_CONFIG in
26001 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
26004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26005 for as_dir in $odbc_dir $PATH
26008 test -z "$as_dir" && as_dir=.
26009 for ac_exec_ext in '' $ac_executable_extensions; do
26010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26011 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26018 test -z "$ac_cv_path_ODBC_CONFIG" && ac_cv_path_ODBC_CONFIG="no"
26022 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
26024 if test -n "$ODBC_CONFIG"; then
26025 echo "$as_me:$LINENO: result: $ODBC_CONFIG" >&5
26026 echo "${ECHO_T}$ODBC_CONFIG" >&6
26028 echo "$as_me:$LINENO: result: no" >&5
26029 echo "${ECHO_T}no" >&6
26032 if test "$ODBC_CONFIG" = no ; then
26033 { echo "$as_me:$LINENO: WARNING: Cannot find odbc_config, will try to guess settings." >&5
26034 echo "$as_me: WARNING: Cannot find odbc_config, will try to guess settings." >&2;}
26035 ODBC_LIBS="$ODBC_LIBS -lodbc"
26037 ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
26038 ODBC_LIBS=`$ODBC_CONFIG --libs`
26041 save_CPPFLAGS="$CPPFLAGS"
26042 CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
26044 if test "${ac_cv_header_sql_h+set}" = set; then
26045 echo "$as_me:$LINENO: checking for sql.h" >&5
26046 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26047 if test "${ac_cv_header_sql_h+set}" = set; then
26048 echo $ECHO_N "(cached) $ECHO_C" >&6
26050 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26051 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26053 # Is the header compilable?
26054 echo "$as_me:$LINENO: checking sql.h usability" >&5
26055 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26056 cat >conftest.$ac_ext <<_ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h. */
26062 $ac_includes_default
26065 rm -f conftest.$ac_objext
26066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26067 (eval $ac_compile) 2>conftest.er1
26069 grep -v '^ *+' conftest.er1 >conftest.err
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } &&
26074 { ac_try='test -z "$ac_cxx_werror_flag"
26075 || test ! -s conftest.err'
26076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26077 (eval $ac_try) 2>&5
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); }; } &&
26081 { ac_try='test -s conftest.$ac_objext'
26082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; }; then
26087 ac_header_compiler=yes
26089 echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26092 ac_header_compiler=no
26094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26096 echo "${ECHO_T}$ac_header_compiler" >&6
26098 # Is the header present?
26099 echo "$as_me:$LINENO: checking sql.h presence" >&5
26100 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26101 cat >conftest.$ac_ext <<_ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h. */
26109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26112 grep -v '^ *+' conftest.er1 >conftest.err
26114 cat conftest.err >&5
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } >/dev/null; then
26117 if test -s conftest.err; then
26118 ac_cpp_err=$ac_cxx_preproc_warn_flag
26119 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26126 if test -z "$ac_cpp_err"; then
26127 ac_header_preproc=yes
26129 echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26132 ac_header_preproc=no
26134 rm -f conftest.err conftest.$ac_ext
26135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26136 echo "${ECHO_T}$ac_header_preproc" >&6
26138 # So? What about this header?
26139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26141 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26142 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26143 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26144 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26145 ac_header_preproc=yes
26148 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26149 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26150 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26151 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26152 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26153 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26154 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26155 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
26156 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26157 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26158 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26159 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26162 ## --------------------------------------------- ##
26163 ## Report this to shibboleth-users@internet2.edu ##
26164 ## --------------------------------------------- ##
26167 sed "s/^/$as_me: WARNING: /" >&2
26170 echo "$as_me:$LINENO: checking for sql.h" >&5
26171 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26172 if test "${ac_cv_header_sql_h+set}" = set; then
26173 echo $ECHO_N "(cached) $ECHO_C" >&6
26175 ac_cv_header_sql_h=$ac_header_preproc
26177 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26178 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26181 if test $ac_cv_header_sql_h = yes; then
26188 if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
26189 { { echo "$as_me:$LINENO: error: unable to find ODBC header files" >&5
26190 echo "$as_me: error: unable to find ODBC header files" >&2;}
26191 { (exit 1); exit 1; }; }
26194 if test "$have_sql_h" = yes ; then
26196 LIBS="$LIBS $ODBC_LIBS"
26197 echo "$as_me:$LINENO: checking if we can link againt ODBC" >&5
26198 echo $ECHO_N "checking if we can link againt ODBC... $ECHO_C" >&6
26199 cat >conftest.$ac_ext <<_ACEOF
26202 cat confdefs.h >>conftest.$ac_ext
26203 cat >>conftest.$ac_ext <<_ACEOF
26204 /* end confdefs.h. */
26206 #include <sqlext.h>
26211 SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)
26216 rm -f conftest.$ac_objext conftest$ac_exeext
26217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26218 (eval $ac_link) 2>conftest.er1
26220 grep -v '^ *+' conftest.er1 >conftest.err
26222 cat conftest.err >&5
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); } &&
26225 { ac_try='test -z "$ac_cxx_werror_flag"
26226 || test ! -s conftest.err'
26227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228 (eval $ac_try) 2>&5
26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 (exit $ac_status); }; } &&
26232 { ac_try='test -s conftest$ac_exeext'
26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234 (eval $ac_try) 2>&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); }; }; then
26240 echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26245 rm -f conftest.err conftest.$ac_objext \
26246 conftest$ac_exeext conftest.$ac_ext
26249 if test "$have_odbc_libs" = no ; then
26250 if test "$odbc_enabled" = "yes" ; then
26251 { { echo "$as_me:$LINENO: error: unable to link with ODBC Library" >&5
26252 echo "$as_me: error: unable to link with ODBC Library" >&2;}
26253 { (exit 1); exit 1; }; }
26255 echo "$as_me:$LINENO: result: no" >&5
26256 echo "${ECHO_T}no" >&6
26261 CPPFLAGS="$save_CPPFLAGS"
26264 # if have_odbc_libs=yes then go ahead with building ODBC
26265 if test "$have_odbc_libs" = yes ; then
26266 # this AC_MSG_RESULT is from above!
26267 echo "$as_me:$LINENO: result: yes" >&5
26268 echo "${ECHO_T}yes" >&6
26269 WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
26277 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
26278 echo "=================================================================="
26279 echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
26280 echo " compiler than the one used to compile Apache."
26282 echo " Current compiler: $CC"
26283 echo " Apache's compiler: $APXS_CC"
26285 echo "This could cause problems."
26286 echo "=================================================================="
26289 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
26290 echo "=================================================================="
26291 echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
26292 echo " compiler than the one used to compile Apache."
26294 echo " Current compiler: $CC"
26295 echo " Apache's compiler: $APXS2_CC"
26297 echo "This could cause problems."
26298 echo "=================================================================="
26301 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
26302 echo "=================================================================="
26303 echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
26304 echo " compiler than the one used to compile Apache."
26306 echo " Current compiler: $CC"
26307 echo " Apache's compiler: $APXS22_CC"
26309 echo "This could cause problems."
26310 echo "=================================================================="
26313 LIBTOOL="$LIBTOOL --silent"
26315 cat >confcache <<\_ACEOF
26316 # This file is a shell script that caches the results of configure
26317 # tests run on this system so they can be shared between configure
26318 # scripts and configure runs, see configure's option --config-cache.
26319 # It is not useful on other systems. If it contains results you don't
26320 # want to keep, you may remove or edit it.
26322 # config.status only pays attention to the cache file if you give it
26323 # the --recheck option to rerun configure.
26325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26327 # following values.
26331 # The following way of writing the cache mishandles newlines in values,
26332 # but we know of no workaround that is simple, portable, and efficient.
26333 # So, don't put newlines in cache variables' values.
26334 # Ultrix sh set writes to stderr and can't be redirected directly,
26335 # and sets the high bit in the cache file unless we assign to the vars.
26338 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26340 # `set' does not quote correctly, so add quotes (double-quote
26341 # substitution turns \\\\ into \\, and sed turns \\ into \).
26344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26347 # `set' quotes correctly as required by POSIX, so do not add quotes.
26349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26358 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26360 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26361 if test -w $cache_file; then
26362 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26363 cat confcache >$cache_file
26365 echo "not updating unwritable cache $cache_file"
26370 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26371 # Let make expand exec_prefix.
26372 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26374 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26375 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26376 # trailing colons and then remove the whole line if VPATH becomes empty
26377 # (actually we leave an empty line to preserve line numbers).
26378 if test "x$srcdir" = x.; then
26379 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26380 s/:*\$(srcdir):*/:/;
26381 s/:*\${srcdir}:*/:/;
26383 s/^\([^=]*=[ ]*\):*/\1/;
26389 DEFS=-DHAVE_CONFIG_H
26393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26394 # 1. Remove the extension, and $U if already installed.
26395 ac_i=`echo "$ac_i" |
26396 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26398 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26399 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26401 LIBOBJS=$ac_libobjs
26403 LTLIBOBJS=$ac_ltlibobjs
26406 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26407 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26408 Usually this means the macro was only invoked conditionally." >&5
26409 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26410 Usually this means the macro was only invoked conditionally." >&2;}
26411 { (exit 1); exit 1; }; }
26413 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26414 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26415 Usually this means the macro was only invoked conditionally." >&5
26416 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26417 Usually this means the macro was only invoked conditionally." >&2;}
26418 { (exit 1); exit 1; }; }
26420 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26421 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26422 Usually this means the macro was only invoked conditionally." >&5
26423 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26424 Usually this means the macro was only invoked conditionally." >&2;}
26425 { (exit 1); exit 1; }; }
26427 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26428 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26429 Usually this means the macro was only invoked conditionally." >&5
26430 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26431 Usually this means the macro was only invoked conditionally." >&2;}
26432 { (exit 1); exit 1; }; }
26434 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26435 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26436 Usually this means the macro was only invoked conditionally." >&5
26437 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26438 Usually this means the macro was only invoked conditionally." >&2;}
26439 { (exit 1); exit 1; }; }
26441 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26442 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26443 Usually this means the macro was only invoked conditionally." >&5
26444 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26445 Usually this means the macro was only invoked conditionally." >&2;}
26446 { (exit 1); exit 1; }; }
26448 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26449 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26450 Usually this means the macro was only invoked conditionally." >&5
26451 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26452 Usually this means the macro was only invoked conditionally." >&2;}
26453 { (exit 1); exit 1; }; }
26455 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26456 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26457 Usually this means the macro was only invoked conditionally." >&5
26458 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26459 Usually this means the macro was only invoked conditionally." >&2;}
26460 { (exit 1); exit 1; }; }
26462 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26463 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26464 Usually this means the macro was only invoked conditionally." >&5
26465 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26466 Usually this means the macro was only invoked conditionally." >&2;}
26467 { (exit 1); exit 1; }; }
26469 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26470 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26471 Usually this means the macro was only invoked conditionally." >&5
26472 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26473 Usually this means the macro was only invoked conditionally." >&2;}
26474 { (exit 1); exit 1; }; }
26476 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26477 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26478 Usually this means the macro was only invoked conditionally." >&5
26479 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26480 Usually this means the macro was only invoked conditionally." >&2;}
26481 { (exit 1); exit 1; }; }
26483 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26484 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26485 Usually this means the macro was only invoked conditionally." >&5
26486 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26487 Usually this means the macro was only invoked conditionally." >&2;}
26488 { (exit 1); exit 1; }; }
26490 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26491 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26492 Usually this means the macro was only invoked conditionally." >&5
26493 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26494 Usually this means the macro was only invoked conditionally." >&2;}
26495 { (exit 1); exit 1; }; }
26497 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26498 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26499 Usually this means the macro was only invoked conditionally." >&5
26500 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26501 Usually this means the macro was only invoked conditionally." >&2;}
26502 { (exit 1); exit 1; }; }
26504 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26505 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26506 Usually this means the macro was only invoked conditionally." >&5
26507 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26508 Usually this means the macro was only invoked conditionally." >&2;}
26509 { (exit 1); exit 1; }; }
26511 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26512 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26513 Usually this means the macro was only invoked conditionally." >&5
26514 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26515 Usually this means the macro was only invoked conditionally." >&2;}
26516 { (exit 1); exit 1; }; }
26518 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26519 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26520 Usually this means the macro was only invoked conditionally." >&5
26521 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26522 Usually this means the macro was only invoked conditionally." >&2;}
26523 { (exit 1); exit 1; }; }
26525 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26526 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26527 Usually this means the macro was only invoked conditionally." >&5
26528 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26529 Usually this means the macro was only invoked conditionally." >&2;}
26530 { (exit 1); exit 1; }; }
26532 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26533 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26534 Usually this means the macro was only invoked conditionally." >&5
26535 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26536 Usually this means the macro was only invoked conditionally." >&2;}
26537 { (exit 1); exit 1; }; }
26539 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26540 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26541 Usually this means the macro was only invoked conditionally." >&5
26542 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26543 Usually this means the macro was only invoked conditionally." >&2;}
26544 { (exit 1); exit 1; }; }
26546 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26547 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26548 Usually this means the macro was only invoked conditionally." >&5
26549 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26550 Usually this means the macro was only invoked conditionally." >&2;}
26551 { (exit 1); exit 1; }; }
26553 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26554 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26555 Usually this means the macro was only invoked conditionally." >&5
26556 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26557 Usually this means the macro was only invoked conditionally." >&2;}
26558 { (exit 1); exit 1; }; }
26560 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26561 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26562 Usually this means the macro was only invoked conditionally." >&5
26563 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26564 Usually this means the macro was only invoked conditionally." >&2;}
26565 { (exit 1); exit 1; }; }
26567 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26568 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26569 Usually this means the macro was only invoked conditionally." >&5
26570 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26571 Usually this means the macro was only invoked conditionally." >&2;}
26572 { (exit 1); exit 1; }; }
26574 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26575 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26576 Usually this means the macro was only invoked conditionally." >&5
26577 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26578 Usually this means the macro was only invoked conditionally." >&2;}
26579 { (exit 1); exit 1; }; }
26581 if test -z "${BUILD_NSAPI_TRUE}" && test -z "${BUILD_NSAPI_FALSE}"; then
26582 { { echo "$as_me:$LINENO: error: conditional \"BUILD_NSAPI\" was never defined.
26583 Usually this means the macro was only invoked conditionally." >&5
26584 echo "$as_me: error: conditional \"BUILD_NSAPI\" was never defined.
26585 Usually this means the macro was only invoked conditionally." >&2;}
26586 { (exit 1); exit 1; }; }
26588 if test -z "${BUILD_FASTCGI_TRUE}" && test -z "${BUILD_FASTCGI_FALSE}"; then
26589 { { echo "$as_me:$LINENO: error: conditional \"BUILD_FASTCGI\" was never defined.
26590 Usually this means the macro was only invoked conditionally." >&5
26591 echo "$as_me: error: conditional \"BUILD_FASTCGI\" was never defined.
26592 Usually this means the macro was only invoked conditionally." >&2;}
26593 { (exit 1); exit 1; }; }
26595 if test -z "${BUILD_MEMCACHED_TRUE}" && test -z "${BUILD_MEMCACHED_FALSE}"; then
26596 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MEMCACHED\" was never defined.
26597 Usually this means the macro was only invoked conditionally." >&5
26598 echo "$as_me: error: conditional \"BUILD_MEMCACHED\" was never defined.
26599 Usually this means the macro was only invoked conditionally." >&2;}
26600 { (exit 1); exit 1; }; }
26602 if test -z "${BUILD_AP13_TRUE}" && test -z "${BUILD_AP13_FALSE}"; then
26603 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP13\" was never defined.
26604 Usually this means the macro was only invoked conditionally." >&5
26605 echo "$as_me: error: conditional \"BUILD_AP13\" was never defined.
26606 Usually this means the macro was only invoked conditionally." >&2;}
26607 { (exit 1); exit 1; }; }
26609 if test -z "${BUILD_AP20_TRUE}" && test -z "${BUILD_AP20_FALSE}"; then
26610 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP20\" was never defined.
26611 Usually this means the macro was only invoked conditionally." >&5
26612 echo "$as_me: error: conditional \"BUILD_AP20\" was never defined.
26613 Usually this means the macro was only invoked conditionally." >&2;}
26614 { (exit 1); exit 1; }; }
26616 if test -z "${BUILD_AP22_TRUE}" && test -z "${BUILD_AP22_FALSE}"; then
26617 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP22\" was never defined.
26618 Usually this means the macro was only invoked conditionally." >&5
26619 echo "$as_me: error: conditional \"BUILD_AP22\" was never defined.
26620 Usually this means the macro was only invoked conditionally." >&2;}
26621 { (exit 1); exit 1; }; }
26624 : ${CONFIG_STATUS=./config.status}
26625 ac_clean_files_save=$ac_clean_files
26626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26627 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26628 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26629 cat >$CONFIG_STATUS <<_ACEOF
26631 # Generated by $as_me.
26632 # Run this file to recreate the current configuration.
26633 # Compiler output produced by configure, useful for debugging
26634 # configure, is in config.log if it exists.
26637 ac_cs_recheck=false
26639 SHELL=\${CONFIG_SHELL-$SHELL}
26642 cat >>$CONFIG_STATUS <<\_ACEOF
26643 ## --------------------- ##
26644 ## M4sh Initialization. ##
26645 ## --------------------- ##
26647 # Be Bourne compatible
26648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26651 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26652 # is contrary to our usage. Disable this feature.
26653 alias -g '${1+"$@"}'='"$@"'
26654 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26657 DUALCASE=1; export DUALCASE # for MKS sh
26659 # Support unset when possible.
26660 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26667 # Work around bugs in pre-3.0 UWIN ksh.
26668 $as_unset ENV MAIL MAILPATH
26675 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26676 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26677 LC_TELEPHONE LC_TIME
26679 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26680 eval $as_var=C; export $as_var
26686 # Required to use basename.
26687 if expr a : '\(a\)' >/dev/null 2>&1; then
26693 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26694 as_basename=basename
26700 # Name of the executable.
26701 as_me=`$as_basename "$0" ||
26702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26703 X"$0" : 'X\(//\)$' \| \
26704 X"$0" : 'X\(/\)$' \| \
26705 . : '\(.\)' 2>/dev/null ||
26707 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26708 /^X\/\(\/\/\)$/{ s//\1/; q; }
26709 /^X\/\(\/\).*/{ s//\1/; q; }
26713 # PATH needs CR, and LINENO needs CR and PATH.
26714 # Avoid depending upon Character Ranges.
26715 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26716 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26717 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26718 as_cr_digits='0123456789'
26719 as_cr_alnum=$as_cr_Letters$as_cr_digits
26721 # The user is always right.
26722 if test "${PATH_SEPARATOR+set}" != set; then
26723 echo "#! /bin/sh" >conf$$.sh
26724 echo "exit 0" >>conf$$.sh
26726 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26735 as_lineno_1=$LINENO
26736 as_lineno_2=$LINENO
26737 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26738 test "x$as_lineno_1" != "x$as_lineno_2" &&
26739 test "x$as_lineno_3" = "x$as_lineno_2" || {
26740 # Find who we are. Look in the path if we contain no path at all
26743 *[\\/]* ) as_myself=$0 ;;
26744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26745 for as_dir in $PATH
26748 test -z "$as_dir" && as_dir=.
26749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26754 # We did not find ourselves, most probably we were run as `sh COMMAND'
26755 # in which case we are not to be found in the path.
26756 if test "x$as_myself" = x; then
26759 if test ! -f "$as_myself"; then
26760 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26761 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26762 { (exit 1); exit 1; }; }
26764 case $CONFIG_SHELL in
26766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26767 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26770 test -z "$as_dir" && as_dir=.
26771 for as_base in sh bash ksh sh5; do
26774 if ("$as_dir/$as_base" -c '
26775 as_lineno_1=$LINENO
26776 as_lineno_2=$LINENO
26777 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26778 test "x$as_lineno_1" != "x$as_lineno_2" &&
26779 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26780 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26781 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26782 CONFIG_SHELL=$as_dir/$as_base
26783 export CONFIG_SHELL
26784 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26792 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26793 # uniformly replaced by the line number. The first 'sed' inserts a
26794 # line-number line before each line; the second 'sed' does the real
26795 # work. The second script uses 'N' to pair each line-number line
26796 # with the numbered line, and appends trailing '-' during
26797 # substitution so that $LINENO is not a special case at line end.
26798 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26799 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26800 sed '=' <$as_myself |
26805 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26808 s,^['$as_cr_digits']*\n,,
26809 ' >$as_me.lineno &&
26810 chmod +x $as_me.lineno ||
26811 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26812 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26813 { (exit 1); exit 1; }; }
26815 # Don't try to exec as it changes $[0], causing all sort of problems
26816 # (the dirname of $[0] is not the place where we might find the
26817 # original and so on. Autoconf is especially sensible to this).
26819 # Exit status is that of the last command.
26824 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26825 *c*,-n*) ECHO_N= ECHO_C='
26827 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26828 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26831 if expr a : '\(a\)' >/dev/null 2>&1; then
26837 rm -f conf$$ conf$$.exe conf$$.file
26839 if ln -s conf$$.file conf$$ 2>/dev/null; then
26840 # We could just check for DJGPP; but this test a) works b) is more generic
26841 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26842 if test -f conf$$.exe; then
26843 # Don't use ln at all; we don't have any links
26848 elif ln conf$$.file conf$$ 2>/dev/null; then
26853 rm -f conf$$ conf$$.exe conf$$.file
26855 if mkdir -p . 2>/dev/null; then
26858 test -d ./-p && rmdir ./-p
26862 as_executable_p="test -f"
26864 # Sed expression to map a string onto a valid CPP name.
26865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26867 # Sed expression to map a string onto a valid variable name.
26868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26872 # We need space, tab and new line, in precisely that order.
26882 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26883 # report actual input values of CONFIG_FILES etc. instead of their
26884 # values after options handling. Logging --version etc. is OK.
26888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26889 ## Running $as_me. ##
26894 This file was extended by shibboleth $as_me 2.2.1, which was
26895 generated by GNU Autoconf 2.59. Invocation command line was
26897 CONFIG_FILES = $CONFIG_FILES
26898 CONFIG_HEADERS = $CONFIG_HEADERS
26899 CONFIG_LINKS = $CONFIG_LINKS
26900 CONFIG_COMMANDS = $CONFIG_COMMANDS
26904 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26908 # Files that config.status was made for.
26909 if test -n "$ac_config_files"; then
26910 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26913 if test -n "$ac_config_headers"; then
26914 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26917 if test -n "$ac_config_links"; then
26918 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26921 if test -n "$ac_config_commands"; then
26922 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26925 cat >>$CONFIG_STATUS <<\_ACEOF
26928 \`$as_me' instantiates files from templates according to the
26929 current configuration.
26931 Usage: $0 [OPTIONS] [FILE]...
26933 -h, --help print this help, then exit
26934 -V, --version print version number, then exit
26935 -q, --quiet do not print progress messages
26936 -d, --debug don't remove temporary files
26937 --recheck update $as_me by reconfiguring in the same conditions
26938 --file=FILE[:TEMPLATE]
26939 instantiate the configuration file FILE
26940 --header=FILE[:TEMPLATE]
26941 instantiate the configuration header FILE
26943 Configuration files:
26946 Configuration headers:
26949 Configuration commands:
26952 Report bugs to <bug-autoconf@gnu.org>."
26955 cat >>$CONFIG_STATUS <<_ACEOF
26957 shibboleth config.status 2.2.1
26958 configured by $0, generated by GNU Autoconf 2.59,
26959 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26961 Copyright (C) 2003 Free Software Foundation, Inc.
26962 This config.status script is free software; the Free Software Foundation
26963 gives unlimited permission to copy, distribute and modify it."
26968 cat >>$CONFIG_STATUS <<\_ACEOF
26969 # If no file are specified by the user, then we need to provide default
26970 # value. By we need to know if files were specified by the user.
26976 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26977 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26985 *) # This is not an option, so the user has probably given explicit
26988 ac_need_defaults=false;;
26992 # Handling of the options.
26994 cat >>$CONFIG_STATUS <<\_ACEOF
26995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26997 --version | --vers* | -V )
26998 echo "$ac_cs_version"; exit 0 ;;
27000 # Conflict between --help and --header
27001 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27002 Try \`$0 --help' for more information." >&5
27003 echo "$as_me: error: ambiguous option: $1
27004 Try \`$0 --help' for more information." >&2;}
27005 { (exit 1); exit 1; }; };;
27006 --help | --hel | -h )
27007 echo "$ac_cs_usage"; exit 0 ;;
27008 --debug | --d* | -d )
27010 --file | --fil | --fi | --f )
27012 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27013 ac_need_defaults=false;;
27014 --header | --heade | --head | --hea )
27016 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27017 ac_need_defaults=false;;
27018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27022 # This is an error.
27023 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27024 Try \`$0 --help' for more information." >&5
27025 echo "$as_me: error: unrecognized option: $1
27026 Try \`$0 --help' for more information." >&2;}
27027 { (exit 1); exit 1; }; } ;;
27029 *) ac_config_targets="$ac_config_targets $1" ;;
27035 ac_configure_extra_args=
27037 if $ac_cs_silent; then
27039 ac_configure_extra_args="$ac_configure_extra_args --silent"
27043 cat >>$CONFIG_STATUS <<_ACEOF
27044 if \$ac_cs_recheck; then
27045 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27046 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27051 cat >>$CONFIG_STATUS <<_ACEOF
27053 # INIT-COMMANDS section.
27056 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27062 cat >>$CONFIG_STATUS <<\_ACEOF
27063 for ac_config_target in $ac_config_targets
27065 case "$ac_config_target" in
27066 # Handling of arguments.
27067 "shibboleth.spec" ) CONFIG_FILES="$CONFIG_FILES shibboleth.spec" ;;
27068 "pkginfo" ) CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
27069 "Portfile" ) CONFIG_FILES="$CONFIG_FILES Portfile" ;;
27070 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27071 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27072 "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
27073 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
27074 "shibsp/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibsp/Makefile" ;;
27075 "shibd/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibd/Makefile" ;;
27076 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
27077 "selinux/Makefile" ) CONFIG_FILES="$CONFIG_FILES selinux/Makefile" ;;
27078 "adfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES adfs/Makefile" ;;
27079 "nsapi_shib/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsapi_shib/Makefile" ;;
27080 "fastcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES fastcgi/Makefile" ;;
27081 "memcache-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES memcache-store/Makefile" ;;
27082 "apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache/Makefile" ;;
27083 "odbc-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES odbc-store/Makefile" ;;
27084 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27085 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27086 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27087 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27088 { (exit 1); exit 1; }; };;
27092 # If the user did not use the arguments to specify the items to instantiate,
27093 # then the envvar interface is used. Set only those that are not.
27094 # We use the long form for the default assignment because of an extremely
27095 # bizarre bug on SunOS 4.1.3.
27096 if $ac_need_defaults; then
27097 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27098 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27099 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27102 # Have a temporary directory for convenience. Make it in the build tree
27103 # simply because there is no reason to put it here, and in addition,
27104 # creating and moving files from /tmp can sometimes cause problems.
27105 # Create a temporary directory, and hook for its removal unless debugging.
27108 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27109 trap '{ (exit 1); exit 1; }' 1 2 13 15
27112 # Create a (secure) tmp directory for tmp files.
27115 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27116 test -n "$tmp" && test -d "$tmp"
27119 tmp=./confstat$$-$RANDOM
27120 (umask 077 && mkdir $tmp)
27123 echo "$me: cannot create a temporary directory in ." >&2
27124 { (exit 1); exit 1; }
27129 cat >>$CONFIG_STATUS <<_ACEOF
27132 # CONFIG_FILES section.
27135 # No need to generate the scripts if there are no CONFIG_FILES.
27136 # This happens for instance when ./config.status config.h
27137 if test -n "\$CONFIG_FILES"; then
27138 # Protect against being on the right side of a sed subst in config.status.
27139 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27140 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27141 s,@SHELL@,$SHELL,;t t
27142 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27143 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27144 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27145 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27146 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27147 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27148 s,@exec_prefix@,$exec_prefix,;t t
27149 s,@prefix@,$prefix,;t t
27150 s,@program_transform_name@,$program_transform_name,;t t
27151 s,@bindir@,$bindir,;t t
27152 s,@sbindir@,$sbindir,;t t
27153 s,@libexecdir@,$libexecdir,;t t
27154 s,@datadir@,$datadir,;t t
27155 s,@sysconfdir@,$sysconfdir,;t t
27156 s,@sharedstatedir@,$sharedstatedir,;t t
27157 s,@localstatedir@,$localstatedir,;t t
27158 s,@libdir@,$libdir,;t t
27159 s,@includedir@,$includedir,;t t
27160 s,@oldincludedir@,$oldincludedir,;t t
27161 s,@infodir@,$infodir,;t t
27162 s,@mandir@,$mandir,;t t
27163 s,@build_alias@,$build_alias,;t t
27164 s,@host_alias@,$host_alias,;t t
27165 s,@target_alias@,$target_alias,;t t
27166 s,@DEFS@,$DEFS,;t t
27167 s,@ECHO_C@,$ECHO_C,;t t
27168 s,@ECHO_N@,$ECHO_N,;t t
27169 s,@ECHO_T@,$ECHO_T,;t t
27170 s,@LIBS@,$LIBS,;t t
27171 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27172 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27173 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27174 s,@CYGPATH_W@,$CYGPATH_W,;t t
27175 s,@PACKAGE@,$PACKAGE,;t t
27176 s,@VERSION@,$VERSION,;t t
27177 s,@ACLOCAL@,$ACLOCAL,;t t
27178 s,@AUTOCONF@,$AUTOCONF,;t t
27179 s,@AUTOMAKE@,$AUTOMAKE,;t t
27180 s,@AUTOHEADER@,$AUTOHEADER,;t t
27181 s,@MAKEINFO@,$MAKEINFO,;t t
27182 s,@install_sh@,$install_sh,;t t
27183 s,@STRIP@,$STRIP,;t t
27184 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27185 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27186 s,@mkdir_p@,$mkdir_p,;t t
27188 s,@SET_MAKE@,$SET_MAKE,;t t
27189 s,@am__leading_dot@,$am__leading_dot,;t t
27190 s,@AMTAR@,$AMTAR,;t t
27191 s,@am__tar@,$am__tar,;t t
27192 s,@am__untar@,$am__untar,;t t
27193 s,@DX_PROJECT@,$DX_PROJECT,;t t
27194 s,@DX_CONFIG@,$DX_CONFIG,;t t
27195 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
27196 s,@DX_ENV@,$DX_ENV,;t t
27197 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
27198 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
27199 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
27200 s,@DX_PERL@,$DX_PERL,;t t
27201 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
27202 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
27203 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
27204 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
27205 s,@DX_DOT@,$DX_DOT,;t t
27206 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
27207 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
27208 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
27209 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
27210 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
27211 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
27212 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
27213 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
27214 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
27215 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
27216 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
27217 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
27218 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
27219 s,@DX_HHC@,$DX_HHC,;t t
27220 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
27221 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
27222 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
27223 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
27224 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
27225 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
27226 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
27227 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
27228 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
27229 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
27230 s,@DX_LATEX@,$DX_LATEX,;t t
27231 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
27232 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
27233 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
27234 s,@DX_DVIPS@,$DX_DVIPS,;t t
27235 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
27236 s,@DX_EGREP@,$DX_EGREP,;t t
27237 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
27238 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
27239 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
27240 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27241 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
27242 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
27243 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
27244 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
27245 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
27246 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
27247 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
27249 s,@CFLAGS@,$CFLAGS,;t t
27250 s,@LDFLAGS@,$LDFLAGS,;t t
27251 s,@CPPFLAGS@,$CPPFLAGS,;t t
27252 s,@ac_ct_CC@,$ac_ct_CC,;t t
27253 s,@EXEEXT@,$EXEEXT,;t t
27254 s,@OBJEXT@,$OBJEXT,;t t
27255 s,@DEPDIR@,$DEPDIR,;t t
27256 s,@am__include@,$am__include,;t t
27257 s,@am__quote@,$am__quote,;t t
27258 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27259 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27260 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27261 s,@CCDEPMODE@,$CCDEPMODE,;t t
27262 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27263 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27265 s,@CXXFLAGS@,$CXXFLAGS,;t t
27266 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27267 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27268 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27269 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27270 s,@build@,$build,;t t
27271 s,@build_cpu@,$build_cpu,;t t
27272 s,@build_vendor@,$build_vendor,;t t
27273 s,@build_os@,$build_os,;t t
27274 s,@host@,$host,;t t
27275 s,@host_cpu@,$host_cpu,;t t
27276 s,@host_vendor@,$host_vendor,;t t
27277 s,@host_os@,$host_os,;t t
27278 s,@EGREP@,$EGREP,;t t
27279 s,@LN_S@,$LN_S,;t t
27280 s,@ECHO@,$ECHO,;t t
27282 s,@ac_ct_AR@,$ac_ct_AR,;t t
27283 s,@RANLIB@,$RANLIB,;t t
27284 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27286 s,@CXXCPP@,$CXXCPP,;t t
27288 s,@FFLAGS@,$FFLAGS,;t t
27289 s,@ac_ct_F77@,$ac_ct_F77,;t t
27290 s,@LIBTOOL@,$LIBTOOL,;t t
27291 s,@acx_pthread_config@,$acx_pthread_config,;t t
27292 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
27293 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
27294 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
27295 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27296 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
27297 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
27298 s,@XMLTOOLINGXMLDIR@,$XMLTOOLINGXMLDIR,;t t
27299 s,@OPENSAMLXMLDIR@,$OPENSAMLXMLDIR,;t t
27300 s,@LITE_LIBS@,$LITE_LIBS,;t t
27301 s,@XMLSEC_LIBS@,$XMLSEC_LIBS,;t t
27302 s,@NSAPI_INCLUDE@,$NSAPI_INCLUDE,;t t
27303 s,@BUILD_NSAPI_TRUE@,$BUILD_NSAPI_TRUE,;t t
27304 s,@BUILD_NSAPI_FALSE@,$BUILD_NSAPI_FALSE,;t t
27305 s,@FASTCGI_INCLUDE@,$FASTCGI_INCLUDE,;t t
27306 s,@FASTCGI_LDFLAGS@,$FASTCGI_LDFLAGS,;t t
27307 s,@FASTCGI_LIBS@,$FASTCGI_LIBS,;t t
27308 s,@BUILD_FASTCGI_TRUE@,$BUILD_FASTCGI_TRUE,;t t
27309 s,@BUILD_FASTCGI_FALSE@,$BUILD_FASTCGI_FALSE,;t t
27310 s,@MEMCACHED_INCLUDE@,$MEMCACHED_INCLUDE,;t t
27311 s,@MEMCACHED_LDFLAGS@,$MEMCACHED_LDFLAGS,;t t
27312 s,@MEMCACHED_LIBS@,$MEMCACHED_LIBS,;t t
27313 s,@BUILD_MEMCACHED_TRUE@,$BUILD_MEMCACHED_TRUE,;t t
27314 s,@BUILD_MEMCACHED_FALSE@,$BUILD_MEMCACHED_FALSE,;t t
27316 s,@APXS@,$APXS,;t t
27317 s,@APXS_CFLAGS@,$APXS_CFLAGS,;t t
27318 s,@APXS_INCLUDE@,$APXS_INCLUDE,;t t
27319 s,@APXS2@,$APXS2,;t t
27320 s,@APR_CONFIG@,$APR_CONFIG,;t t
27321 s,@APXS2_CFLAGS@,$APXS2_CFLAGS,;t t
27322 s,@APXS2_INCLUDE@,$APXS2_INCLUDE,;t t
27323 s,@APXS22@,$APXS22,;t t
27324 s,@APR1_CONFIG@,$APR1_CONFIG,;t t
27325 s,@APXS22_CFLAGS@,$APXS22_CFLAGS,;t t
27326 s,@APXS22_INCLUDE@,$APXS22_INCLUDE,;t t
27327 s,@BUILD_AP13_TRUE@,$BUILD_AP13_TRUE,;t t
27328 s,@BUILD_AP13_FALSE@,$BUILD_AP13_FALSE,;t t
27329 s,@BUILD_AP20_TRUE@,$BUILD_AP20_TRUE,;t t
27330 s,@BUILD_AP20_FALSE@,$BUILD_AP20_FALSE,;t t
27331 s,@BUILD_AP22_TRUE@,$BUILD_AP22_TRUE,;t t
27332 s,@BUILD_AP22_FALSE@,$BUILD_AP22_FALSE,;t t
27333 s,@ODBC_CONFIG@,$ODBC_CONFIG,;t t
27334 s,@ODBC_CFLAGS@,$ODBC_CFLAGS,;t t
27335 s,@ODBC_LIBS@,$ODBC_LIBS,;t t
27336 s,@WANT_SUBDIRS@,$WANT_SUBDIRS,;t t
27337 s,@LIBOBJS@,$LIBOBJS,;t t
27338 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27343 cat >>$CONFIG_STATUS <<\_ACEOF
27344 # Split the substitutions into bite-sized pieces for seds with
27345 # small command number limits, like on Digital OSF/1 and HP-UX.
27346 ac_max_sed_lines=48
27347 ac_sed_frag=1 # Number of current file.
27348 ac_beg=1 # First line for current file.
27349 ac_end=$ac_max_sed_lines # Line after last line for current file.
27352 while $ac_more_lines; do
27353 if test $ac_beg -gt 1; then
27354 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27356 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27358 if test ! -s $tmp/subs.frag; then
27359 ac_more_lines=false
27361 # The purpose of the label and of the branching condition is to
27362 # speed up the sed processing (if there are no `@' at all, there
27363 # is no need to browse any of the substitutions).
27364 # These are the two extra sed commands mentioned above.
27366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27367 if test -z "$ac_sed_cmds"; then
27368 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27370 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27372 ac_sed_frag=`expr $ac_sed_frag + 1`
27374 ac_end=`expr $ac_end + $ac_max_sed_lines`
27377 if test -z "$ac_sed_cmds"; then
27380 fi # test -n "$CONFIG_FILES"
27383 cat >>$CONFIG_STATUS <<\_ACEOF
27384 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27387 - | *:- | *:-:* ) # input from stdin
27389 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27390 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27391 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27393 * ) ac_file_in=$ac_file.in ;;
27396 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27397 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27399 X"$ac_file" : 'X\(//\)[^/]' \| \
27400 X"$ac_file" : 'X\(//\)$' \| \
27401 X"$ac_file" : 'X\(/\)' \| \
27402 . : '\(.\)' 2>/dev/null ||
27404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27406 /^X\(\/\/\)$/{ s//\1/; q; }
27407 /^X\(\/\).*/{ s//\1/; q; }
27409 { if $as_mkdir_p; then
27414 while test ! -d "$as_dir"; do
27415 as_dirs="$as_dir $as_dirs"
27416 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27418 X"$as_dir" : 'X\(//\)[^/]' \| \
27419 X"$as_dir" : 'X\(//\)$' \| \
27420 X"$as_dir" : 'X\(/\)' \| \
27421 . : '\(.\)' 2>/dev/null ||
27423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27425 /^X\(\/\/\)$/{ s//\1/; q; }
27426 /^X\(\/\).*/{ s//\1/; q; }
27429 test ! -n "$as_dirs" || mkdir $as_dirs
27430 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27431 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27432 { (exit 1); exit 1; }; }; }
27436 if test "$ac_dir" != .; then
27437 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27438 # A "../" for each directory in $ac_dir_suffix.
27439 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27441 ac_dir_suffix= ac_top_builddir=
27445 .) # No --srcdir option. We are building in place.
27447 if test -z "$ac_top_builddir"; then
27450 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27452 [\\/]* | ?:[\\/]* ) # Absolute path.
27453 ac_srcdir=$srcdir$ac_dir_suffix;
27454 ac_top_srcdir=$srcdir ;;
27455 *) # Relative path.
27456 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27457 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27460 # Do not use `cd foo && pwd` to compute absolute paths, because
27461 # the directories may not exist.
27463 .) ac_abs_builddir="$ac_dir";;
27466 .) ac_abs_builddir=`pwd`;;
27467 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27468 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27471 case $ac_abs_builddir in
27472 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27474 case ${ac_top_builddir}. in
27475 .) ac_abs_top_builddir=$ac_abs_builddir;;
27476 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27477 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27480 case $ac_abs_builddir in
27481 .) ac_abs_srcdir=$ac_srcdir;;
27484 .) ac_abs_srcdir=$ac_abs_builddir;;
27485 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27486 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27489 case $ac_abs_builddir in
27490 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27492 case $ac_top_srcdir in
27493 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27494 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27495 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27501 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27502 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27505 if test x"$ac_file" != x-; then
27506 { echo "$as_me:$LINENO: creating $ac_file" >&5
27507 echo "$as_me: creating $ac_file" >&6;}
27510 # Let's still pretend it is `configure' which instantiates (i.e., don't
27511 # use $as_me), people would be surprised to read:
27512 # /* config.h. Generated by config.status. */
27513 if test x"$ac_file" = x-; then
27516 configure_input="$ac_file. "
27518 configure_input=$configure_input"Generated from `echo $ac_file_in |
27519 sed 's,.*/,,'` by configure."
27521 # First look for the input files in the build tree, otherwise in the
27523 ac_file_inputs=`IFS=:
27524 for f in $ac_file_in; do
27526 -) echo $tmp/stdin ;;
27528 # Absolute (can't be DOS-style, as IFS=:)
27529 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27530 echo "$as_me: error: cannot find input file: $f" >&2;}
27531 { (exit 1); exit 1; }; }
27534 if test -f "$f"; then
27537 elif test -f "$srcdir/$f"; then
27542 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27543 echo "$as_me: error: cannot find input file: $f" >&2;}
27544 { (exit 1); exit 1; }; }
27547 done` || { (exit 1); exit 1; }
27549 cat >>$CONFIG_STATUS <<_ACEOF
27553 cat >>$CONFIG_STATUS <<\_ACEOF
27555 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27556 s,@configure_input@,$configure_input,;t t
27557 s,@srcdir@,$ac_srcdir,;t t
27558 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27559 s,@top_srcdir@,$ac_top_srcdir,;t t
27560 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27561 s,@builddir@,$ac_builddir,;t t
27562 s,@abs_builddir@,$ac_abs_builddir,;t t
27563 s,@top_builddir@,$ac_top_builddir,;t t
27564 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27565 s,@INSTALL@,$ac_INSTALL,;t t
27566 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27568 if test x"$ac_file" != x-; then
27569 mv $tmp/out $ac_file
27577 cat >>$CONFIG_STATUS <<\_ACEOF
27580 # CONFIG_HEADER section.
27583 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27584 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27586 # ac_d sets the value in "#define NAME VALUE" lines.
27587 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27588 ac_dB='[ ].*$,\1#\2'
27591 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27592 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27593 ac_uB='$,\1#\2define\3'
27597 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27600 - | *:- | *:-:* ) # input from stdin
27602 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27604 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27605 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27606 * ) ac_file_in=$ac_file.in ;;
27609 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27610 echo "$as_me: creating $ac_file" >&6;}
27612 # First look for the input files in the build tree, otherwise in the
27614 ac_file_inputs=`IFS=:
27615 for f in $ac_file_in; do
27617 -) echo $tmp/stdin ;;
27619 # Absolute (can't be DOS-style, as IFS=:)
27620 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27621 echo "$as_me: error: cannot find input file: $f" >&2;}
27622 { (exit 1); exit 1; }; }
27623 # Do quote $f, to prevent DOS paths from being IFS'd.
27626 if test -f "$f"; then
27629 elif test -f "$srcdir/$f"; then
27634 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27635 echo "$as_me: error: cannot find input file: $f" >&2;}
27636 { (exit 1); exit 1; }; }
27639 done` || { (exit 1); exit 1; }
27640 # Remove the trailing spaces.
27641 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27645 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27646 # `conftest.undefs', that substitutes the proper values into
27647 # config.h.in to produce config.h. The first handles `#define'
27648 # templates, and the second `#undef' templates.
27649 # And first: Protect against being on the right side of a sed subst in
27650 # config.status. Protect against being in an unquoted here document
27651 # in config.status.
27652 rm -f conftest.defines conftest.undefs
27653 # Using a here document instead of a string reduces the quoting nightmare.
27654 # Putting comments in sed scripts is not portable.
27656 # `end' is used to avoid that the second main sed command (meant for
27657 # 0-ary CPP macros) applies to n-ary macro definitions.
27658 # See the Autoconf documentation for `clear'.
27659 cat >confdef2sed.sed <<\_ACEOF
27664 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27666 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27669 # If some macros were called several times there might be several times
27670 # the same #defines, which is useless. Nevertheless, we may not want to
27671 # sort them, since we want the *last* AC-DEFINE to be honored.
27672 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27673 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27674 rm -f confdef2sed.sed
27676 # This sed command replaces #undef with comments. This is necessary, for
27677 # example, in the case of _POSIX_SOURCE, which is predefined and required
27678 # on some systems where configure will not decide to define it.
27679 cat >>conftest.undefs <<\_ACEOF
27680 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27683 # Break up conftest.defines because some shells have a limit on the size
27684 # of here documents, and old seds have small limits too (100 cmds).
27685 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27686 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27687 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27688 echo ' :' >>$CONFIG_STATUS
27689 rm -f conftest.tail
27690 while grep . conftest.defines >/dev/null
27692 # Write a limited-size here document to $tmp/defines.sed.
27693 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27694 # Speed up: don't consider the non `#define' lines.
27695 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27696 # Work around the forget-to-reset-the-flag bug.
27697 echo 't clr' >>$CONFIG_STATUS
27698 echo ': clr' >>$CONFIG_STATUS
27699 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27701 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27703 mv $tmp/out $tmp/in
27705 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27706 rm -f conftest.defines
27707 mv conftest.tail conftest.defines
27709 rm -f conftest.defines
27710 echo ' fi # grep' >>$CONFIG_STATUS
27711 echo >>$CONFIG_STATUS
27713 # Break up conftest.undefs because some shells have a limit on the size
27714 # of here documents, and old seds have small limits too (100 cmds).
27715 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27716 rm -f conftest.tail
27717 while grep . conftest.undefs >/dev/null
27719 # Write a limited-size here document to $tmp/undefs.sed.
27720 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27721 # Speed up: don't consider the non `#undef'
27722 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27723 # Work around the forget-to-reset-the-flag bug.
27724 echo 't clr' >>$CONFIG_STATUS
27725 echo ': clr' >>$CONFIG_STATUS
27726 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27728 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27730 mv $tmp/out $tmp/in
27732 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27733 rm -f conftest.undefs
27734 mv conftest.tail conftest.undefs
27736 rm -f conftest.undefs
27738 cat >>$CONFIG_STATUS <<\_ACEOF
27739 # Let's still pretend it is `configure' which instantiates (i.e., don't
27740 # use $as_me), people would be surprised to read:
27741 # /* config.h. Generated by config.status. */
27742 if test x"$ac_file" = x-; then
27743 echo "/* Generated by configure. */" >$tmp/config.h
27745 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27747 cat $tmp/in >>$tmp/config.h
27749 if test x"$ac_file" != x-; then
27750 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27751 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27752 echo "$as_me: $ac_file is unchanged" >&6;}
27754 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27756 X"$ac_file" : 'X\(//\)[^/]' \| \
27757 X"$ac_file" : 'X\(//\)$' \| \
27758 X"$ac_file" : 'X\(/\)' \| \
27759 . : '\(.\)' 2>/dev/null ||
27761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27763 /^X\(\/\/\)$/{ s//\1/; q; }
27764 /^X\(\/\).*/{ s//\1/; q; }
27766 { if $as_mkdir_p; then
27771 while test ! -d "$as_dir"; do
27772 as_dirs="$as_dir $as_dirs"
27773 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27775 X"$as_dir" : 'X\(//\)[^/]' \| \
27776 X"$as_dir" : 'X\(//\)$' \| \
27777 X"$as_dir" : 'X\(/\)' \| \
27778 . : '\(.\)' 2>/dev/null ||
27780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27782 /^X\(\/\/\)$/{ s//\1/; q; }
27783 /^X\(\/\).*/{ s//\1/; q; }
27786 test ! -n "$as_dirs" || mkdir $as_dirs
27787 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27789 { (exit 1); exit 1; }; }; }
27792 mv $tmp/config.h $ac_file
27796 rm -f $tmp/config.h
27798 # Compute $ac_file's index in $config_headers.
27800 for _am_header in $config_headers :; do
27801 case $_am_header in
27802 $ac_file | $ac_file:* )
27805 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27808 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27809 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27810 X$ac_file : 'X\(//\)[^/]' \| \
27811 X$ac_file : 'X\(//\)$' \| \
27812 X$ac_file : 'X\(/\)' \| \
27813 . : '\(.\)' 2>/dev/null ||
27815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27817 /^X\(\/\/\)$/{ s//\1/; q; }
27818 /^X\(\/\).*/{ s//\1/; q; }
27819 s/.*/./; q'`/stamp-h$_am_stamp_count
27822 cat >>$CONFIG_STATUS <<\_ACEOF
27825 # CONFIG_COMMANDS section.
27827 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27828 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27829 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27830 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27831 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27832 X"$ac_dest" : 'X\(//\)[^/]' \| \
27833 X"$ac_dest" : 'X\(//\)$' \| \
27834 X"$ac_dest" : 'X\(/\)' \| \
27835 . : '\(.\)' 2>/dev/null ||
27837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27839 /^X\(\/\/\)$/{ s//\1/; q; }
27840 /^X\(\/\).*/{ s//\1/; q; }
27842 { if $as_mkdir_p; then
27847 while test ! -d "$as_dir"; do
27848 as_dirs="$as_dir $as_dirs"
27849 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27851 X"$as_dir" : 'X\(//\)[^/]' \| \
27852 X"$as_dir" : 'X\(//\)$' \| \
27853 X"$as_dir" : 'X\(/\)' \| \
27854 . : '\(.\)' 2>/dev/null ||
27856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27858 /^X\(\/\/\)$/{ s//\1/; q; }
27859 /^X\(\/\).*/{ s//\1/; q; }
27862 test ! -n "$as_dirs" || mkdir $as_dirs
27863 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27864 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27865 { (exit 1); exit 1; }; }; }
27869 if test "$ac_dir" != .; then
27870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27871 # A "../" for each directory in $ac_dir_suffix.
27872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27874 ac_dir_suffix= ac_top_builddir=
27878 .) # No --srcdir option. We are building in place.
27880 if test -z "$ac_top_builddir"; then
27883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27885 [\\/]* | ?:[\\/]* ) # Absolute path.
27886 ac_srcdir=$srcdir$ac_dir_suffix;
27887 ac_top_srcdir=$srcdir ;;
27888 *) # Relative path.
27889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27893 # Do not use `cd foo && pwd` to compute absolute paths, because
27894 # the directories may not exist.
27896 .) ac_abs_builddir="$ac_dir";;
27899 .) ac_abs_builddir=`pwd`;;
27900 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27901 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27904 case $ac_abs_builddir in
27905 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27907 case ${ac_top_builddir}. in
27908 .) ac_abs_top_builddir=$ac_abs_builddir;;
27909 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27910 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27913 case $ac_abs_builddir in
27914 .) ac_abs_srcdir=$ac_srcdir;;
27917 .) ac_abs_srcdir=$ac_abs_builddir;;
27918 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27919 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27922 case $ac_abs_builddir in
27923 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27925 case $ac_top_srcdir in
27926 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27927 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27928 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27933 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27934 echo "$as_me: executing $ac_dest commands" >&6;}
27936 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27937 # Strip MF so we end up with the name of the file.
27938 mf=`echo "$mf" | sed -e 's/:.*$//'`
27939 # Check whether this is an Automake generated Makefile or not.
27940 # We used to match only the files named `Makefile.in', but
27941 # some people rename them; so instead we look at the file content.
27942 # Grep'ing the first line is not enough: some people post-process
27943 # each Makefile.in and add a new line on top of each file to say so.
27944 # So let's grep whole file.
27945 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27946 dirpart=`(dirname "$mf") 2>/dev/null ||
27947 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27948 X"$mf" : 'X\(//\)[^/]' \| \
27949 X"$mf" : 'X\(//\)$' \| \
27950 X"$mf" : 'X\(/\)' \| \
27951 . : '\(.\)' 2>/dev/null ||
27953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27955 /^X\(\/\/\)$/{ s//\1/; q; }
27956 /^X\(\/\).*/{ s//\1/; q; }
27961 # Extract the definition of DEPDIR, am__include, and am__quote
27962 # from the Makefile without running `make'.
27963 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27964 test -z "$DEPDIR" && continue
27965 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27966 test -z "am__include" && continue
27967 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27968 # When using ansi2knr, U may be empty or an underscore; expand it
27969 U=`sed -n 's/^U = //p' < "$mf"`
27970 # Find all dependency output files, they are included files with
27971 # $(DEPDIR) in their names. We invoke sed twice because it is the
27972 # simplest approach to changing $(DEPDIR) to its actual value in the
27974 for file in `sed -n "
27975 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27976 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27977 # Make sure the directory exists.
27978 test -f "$dirpart/$file" && continue
27979 fdir=`(dirname "$file") 2>/dev/null ||
27980 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27981 X"$file" : 'X\(//\)[^/]' \| \
27982 X"$file" : 'X\(//\)$' \| \
27983 X"$file" : 'X\(/\)' \| \
27984 . : '\(.\)' 2>/dev/null ||
27986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27988 /^X\(\/\/\)$/{ s//\1/; q; }
27989 /^X\(\/\).*/{ s//\1/; q; }
27991 { if $as_mkdir_p; then
27992 mkdir -p $dirpart/$fdir
27994 as_dir=$dirpart/$fdir
27996 while test ! -d "$as_dir"; do
27997 as_dirs="$as_dir $as_dirs"
27998 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27999 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28000 X"$as_dir" : 'X\(//\)[^/]' \| \
28001 X"$as_dir" : 'X\(//\)$' \| \
28002 X"$as_dir" : 'X\(/\)' \| \
28003 . : '\(.\)' 2>/dev/null ||
28005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28007 /^X\(\/\/\)$/{ s//\1/; q; }
28008 /^X\(\/\).*/{ s//\1/; q; }
28011 test ! -n "$as_dirs" || mkdir $as_dirs
28012 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28013 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28014 { (exit 1); exit 1; }; }; }
28016 # echo "creating $dirpart/$file"
28017 echo '# dummy' > "$dirpart/$file"
28025 cat >>$CONFIG_STATUS <<\_ACEOF
28027 { (exit 0); exit 0; }
28029 chmod +x $CONFIG_STATUS
28030 ac_clean_files=$ac_clean_files_save
28033 # configure is writing to config.log, and then calls config.status.
28034 # config.status does its own redirection, appending to config.log.
28035 # Unfortunately, on DOS this fails, as config.log is still kept open
28036 # by configure, so config.status won't be able to write to it; its
28037 # output is simply discarded. So we exec the FD to /dev/null,
28038 # effectively closing config.log, so it can be properly (re)opened and
28039 # appended to by config.status. When coming back to configure, we
28040 # need to make the FD available again.
28041 if test "$no_create" != yes; then
28043 ac_config_status_args=
28044 test "$silent" = yes &&
28045 ac_config_status_args="$ac_config_status_args --quiet"
28047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28050 # would make configure fail if this is the last instruction.
28051 $ac_cs_success || { (exit 1); exit 1; }