2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59 for libtheora 1.0alpha6.
5 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6 @%:@ This configure script is free software; the Free Software Foundation
7 @%:@ gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME='libtheora'
423 PACKAGE_TARNAME='libtheora'
424 PACKAGE_VERSION='1.0alpha6'
425 PACKAGE_STRING='libtheora 1.0alpha6'
428 ac_unique_file="lib/dct.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT V_LIB_CURRENT V_LIB_REVISION V_LIB_AGE 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 CPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ACLOCAL_AMFLAGS HAVE_DOXYGEN HAVE_DOXYGEN_TRUE HAVE_DOXYGEN_FALSE HAVE_PYTHON HAVE_PYTHON_TRUE HAVE_PYTHON_FALSE HAVE_VALGRIND VALGRIND_ENVIRONMENT CPU_x86_64_TRUE CPU_x86_64_FALSE CPU_x86_32_TRUE CPU_x86_32_FALSE SHLIB_VERSION_ARG HAVE_PKG_CONFIG PKG_CONFIG OGG_CFLAGS OGG_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISENC_LIBS VORBISFILE_LIBS SDL_CONFIG SDL_CFLAGS SDL_LIBS THEORA_DISABLE_FLOAT_TRUE THEORA_DISABLE_FLOAT_FALSE THEORA_DISABLE_ENCODE_TRUE THEORA_DISABLE_ENCODE_FALSE GETOPT_OBJS BUILDABLE_EXAMPLES DEBUG PROFILE LIB@&t@OBJS LTLIBOBJS LIBDIR INCLUDEDIR BINDIR DOCDIR'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures libtheora 1.0alpha6 to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1020 if test -n "$ac_init_help"; then
1021 case $ac_init_help in
1022 short | recursive ) echo "Configuration of libtheora 1.0alpha6:";;
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --enable-maintainer-mode enable make rules and dependencies not useful
1030 (and sometimes confusing) to the casual installer
1031 --disable-dependency-tracking speeds up one-time build
1032 --enable-dependency-tracking do not reject slow dependency extractors
1033 --enable-shared@<:@=PKGS@:>@
1034 build shared libraries @<:@default=yes@:>@
1035 --enable-static@<:@=PKGS@:>@
1036 build static libraries @<:@default=yes@:>@
1037 --enable-fast-install@<:@=PKGS@:>@
1038 optimize for fast installation @<:@default=yes@:>@
1039 --disable-libtool-lock avoid locking (might break parallel builds)
1040 --enable-valgrind-testing enable running of tests inside Valgrind
1041 --disable-asm disable assembly optimizations
1042 --disable-oggtest Do not try to compile and run a test Ogg program
1043 --disable-vorbistest Do not try to compile and run a test Vorbis program
1044 --disable-sdltest Do not try to compile and run a test SDL program
1045 --disable-float disable use of floating point code
1046 --disable-encode disable encoding support
1049 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1050 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1051 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1052 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1054 --with-tags@<:@=TAGS@:>@
1055 include additional configurations @<:@automatic@:>@
1056 --with-ogg=PFX Prefix where libogg is installed (optional)
1057 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
1058 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
1059 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
1060 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
1061 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
1062 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1063 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1065 Some influential environment variables:
1066 CC C compiler command
1067 CFLAGS C compiler flags
1068 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1069 nonstandard directory <lib dir>
1070 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071 headers in a nonstandard directory <include dir>
1073 CXX C++ compiler command
1074 CXXFLAGS C++ compiler flags
1075 CXXCPP C++ preprocessor
1076 F77 Fortran 77 compiler command
1077 FFLAGS Fortran 77 compiler flags
1079 Use these variables to override the choices made by `configure' or to help
1080 it to find libraries and programs with nonstandard names/locations.
1085 if test "$ac_init_help" = "recursive"; then
1086 # If there are subdirs, report their specific --help.
1088 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1089 test -d $ac_dir || continue
1092 if test "$ac_dir" != .; then
1093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1094 # A "../" for each directory in $ac_dir_suffix.
1095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097 ac_dir_suffix= ac_top_builddir=
1101 .) # No --srcdir option. We are building in place.
1103 if test -z "$ac_top_builddir"; then
1106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108 [\\/]* | ?:[\\/]* ) # Absolute path.
1109 ac_srcdir=$srcdir$ac_dir_suffix;
1110 ac_top_srcdir=$srcdir ;;
1112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 # Do not use `cd foo && pwd` to compute absolute paths, because
1117 # the directories may not exist.
1119 .) ac_abs_builddir="$ac_dir";;
1122 .) ac_abs_builddir=`pwd`;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127 case $ac_abs_builddir in
1128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 case ${ac_top_builddir}. in
1131 .) ac_abs_top_builddir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_srcdir=$ac_srcdir;;
1140 .) ac_abs_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145 case $ac_abs_builddir in
1146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 case $ac_top_srcdir in
1149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156 # Check for guested configure; otherwise get Cygnus style configure.
1157 if test -f $ac_srcdir/configure.gnu; then
1159 $SHELL $ac_srcdir/configure.gnu --help=recursive
1160 elif test -f $ac_srcdir/configure; then
1162 $SHELL $ac_srcdir/configure --help=recursive
1163 elif test -f $ac_srcdir/configure.ac ||
1164 test -f $ac_srcdir/configure.in; then
1166 $ac_configure --help
1168 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1174 test -n "$ac_init_help" && exit 0
1175 if $ac_init_version; then
1177 libtheora configure 1.0alpha6
1178 generated by GNU Autoconf 2.59
1180 Copyright (C) 2003 Free Software Foundation, Inc.
1181 This configure script is free software; the Free Software Foundation
1182 gives unlimited permission to copy, distribute and modify it.
1188 This file contains any messages produced by compilers while
1189 running configure, to aid debugging if configure makes a mistake.
1191 It was created by libtheora $as_me 1.0alpha6, which was
1192 generated by GNU Autoconf 2.59. Invocation command line was
1199 @%:@@%:@ --------- @%:@@%:@
1200 @%:@@%:@ Platform. @%:@@%:@
1201 @%:@@%:@ --------- @%:@@%:@
1203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1212 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1213 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1216 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1217 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1218 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 test -z "$as_dir" && as_dir=.
1227 echo "PATH: $as_dir"
1235 @%:@@%:@ ----------- @%:@@%:@
1236 @%:@@%:@ Core tests. @%:@@%:@
1237 @%:@@%:@ ----------- @%:@@%:@
1242 # Keep a trace of the command line.
1243 # Strip out --no-create and --no-recursion so they do not pile up.
1244 # Strip out --silent because we don't want to record it for future runs.
1245 # Also quote any args containing shell meta-characters.
1246 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_must_keep_next=false
1257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268 if test $ac_must_keep_next = true; then
1269 ac_must_keep_next=false # Got value, back to normal.
1272 *=* | --config-cache | -C | -disable-* | --disable-* \
1273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275 | -with-* | --with-* | -without-* | --without-* | --x)
1276 case "$ac_configure_args0 " in
1277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280 -* ) ac_must_keep_next=true ;;
1283 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284 # Get rid of the leading space.
1290 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293 # When interrupted or exit'd, cleanup temporary files, and complete
1294 # config.log. We remove comments because anyway the quotes in there
1295 # would cause problems or look ugly.
1296 # WARNING: Be sure not to use single quotes in there, as some shells,
1297 # such as our DU 5.0 friend, will then `close' the trap.
1298 trap 'exit_status=$?
1299 # Save into config.log some information that might help in debugging.
1304 @%:@@%:@ ---------------- @%:@@%:@
1305 @%:@@%:@ Cache variables. @%:@@%:@
1306 @%:@@%:@ ---------------- @%:@@%:@
1309 # The following way of writing the cache mishandles newlines in values,
1312 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327 @%:@@%:@ ----------------- @%:@@%:@
1328 @%:@@%:@ Output variables. @%:@@%:@
1329 @%:@@%:@ ----------------- @%:@@%:@
1332 for ac_var in $ac_subst_vars
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1339 if test -n "$ac_subst_files"; then
1341 @%:@@%:@ ------------- @%:@@%:@
1342 @%:@@%:@ Output files. @%:@@%:@
1343 @%:@@%:@ ------------- @%:@@%:@
1346 for ac_var in $ac_subst_files
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1354 if test -s confdefs.h; then
1356 @%:@@%:@ ----------- @%:@@%:@
1357 @%:@@%:@ confdefs.h. @%:@@%:@
1358 @%:@@%:@ ----------- @%:@@%:@
1361 sed "/^$/d" confdefs.h | sort
1364 test "$ac_signal" != 0 &&
1365 echo "$as_me: caught signal $ac_signal"
1366 echo "$as_me: exit $exit_status"
1368 rm -f core *.core &&
1369 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372 for ac_signal in 1 2 13 15; do
1373 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1378 rm -rf conftest* confdefs.h
1379 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382 # Predefined preprocessor variables.
1384 cat >>confdefs.h <<_ACEOF
1385 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1389 cat >>confdefs.h <<_ACEOF
1390 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394 cat >>confdefs.h <<_ACEOF
1395 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1399 cat >>confdefs.h <<_ACEOF
1400 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1404 cat >>confdefs.h <<_ACEOF
1405 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409 # Let the site file select an alternate cache file if it wants to.
1410 # Prefer explicitly selected file to automatically selected ones.
1411 if test -z "$CONFIG_SITE"; then
1412 if test "x$prefix" != xNONE; then
1413 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418 for ac_site_file in $CONFIG_SITE; do
1419 if test -r "$ac_site_file"; then
1420 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421 echo "$as_me: loading site script $ac_site_file" >&6;}
1422 sed 's/^/| /' "$ac_site_file" >&5
1427 if test -r "$cache_file"; then
1428 # Some versions of bash will fail to source /dev/null (special
1429 # files actually), so we avoid doing that.
1430 if test -f "$cache_file"; then
1431 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432 echo "$as_me: loading cache $cache_file" >&6;}
1434 [\\/]* | ?:[\\/]* ) . $cache_file;;
1435 *) . ./$cache_file;;
1439 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440 echo "$as_me: creating cache $cache_file" >&6;}
1444 # Check that the precious variables saved in the cache have kept the same
1446 ac_cache_corrupted=false
1447 for ac_var in `(set) 2>&1 |
1448 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450 eval ac_new_set=\$ac_env_${ac_var}_set
1451 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452 eval ac_new_val="\$ac_env_${ac_var}_value"
1453 case $ac_old_set,$ac_new_set in
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1464 if test "x$ac_old_val" != "x$ac_new_val"; then
1465 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1468 echo "$as_me: former value: $ac_old_val" >&2;}
1469 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1470 echo "$as_me: current value: $ac_new_val" >&2;}
1471 ac_cache_corrupted=:
1474 # Pass precious variables to config.status.
1475 if test "$ac_new_set" = set; then
1477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 *) ac_arg=$ac_var=$ac_new_val ;;
1481 case " $ac_configure_args " in
1482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1483 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487 if $ac_cache_corrupted; then
1488 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492 { (exit 1); exit 1; }; }
1496 ac_cpp='$CPP $CPPFLAGS'
1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530 if test -f $ac_dir/install-sh; then
1532 ac_install_sh="$ac_aux_dir/install-sh -c"
1534 elif test -f $ac_dir/install.sh; then
1536 ac_install_sh="$ac_aux_dir/install.sh -c"
1538 elif test -f $ac_dir/shtool; then
1540 ac_install_sh="$ac_aux_dir/shtool install -c"
1544 if test -z "$ac_aux_dir"; then
1545 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1547 { (exit 1); exit 1; }; }
1549 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553 # Make sure we can run config.sub.
1554 $ac_config_sub sun4 >/dev/null 2>&1 ||
1555 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1556 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1557 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: checking build system type" >&5
1560 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1561 if test "${ac_cv_build+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 ac_cv_build_alias=$build_alias
1565 test -z "$ac_cv_build_alias" &&
1566 ac_cv_build_alias=`$ac_config_guess`
1567 test -z "$ac_cv_build_alias" &&
1568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1569 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1570 { (exit 1); exit 1; }; }
1571 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1578 echo "${ECHO_T}$ac_cv_build" >&6
1580 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585 echo "$as_me:$LINENO: checking host system type" >&5
1586 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1587 if test "${ac_cv_host+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 ac_cv_host_alias=$host_alias
1591 test -z "$ac_cv_host_alias" &&
1592 ac_cv_host_alias=$ac_cv_build_alias
1593 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1594 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1595 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1596 { (exit 1); exit 1; }; }
1599 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1600 echo "${ECHO_T}$ac_cv_host" >&6
1602 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607 echo "$as_me:$LINENO: checking target system type" >&5
1608 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1609 if test "${ac_cv_target+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 ac_cv_target_alias=$target_alias
1613 test "x$ac_cv_target_alias" = "x" &&
1614 ac_cv_target_alias=$ac_cv_host_alias
1615 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1616 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1617 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1618 { (exit 1); exit 1; }; }
1621 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1622 echo "${ECHO_T}$ac_cv_target" >&6
1623 target=$ac_cv_target
1624 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629 # The aliases save the names the user supplied, while $host etc.
1630 # will get canonicalized.
1631 test -n "$target_alias" &&
1632 test "$program_prefix$program_suffix$program_transform_name" = \
1634 program_prefix=${target_alias}-
1636 ac_config_headers="$ac_config_headers config.h"
1639 am__api_version="1.9"
1640 # Find a good install program. We prefer a C program (faster),
1641 # so one script is as good as another. But avoid the broken or
1642 # incompatible versions:
1643 # SysV /etc/install, /usr/sbin/install
1644 # SunOS /usr/etc/install
1645 # IRIX /sbin/install
1647 # AmigaOS /C/install, which installs bootblocks on floppy discs
1648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1651 # OS/2's system install, which has a completely different semantic
1652 # ./install, which can be erroneously created by make from ./install.sh.
1653 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1654 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1655 if test -z "$INSTALL"; then
1656 if test "${ac_cv_path_install+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 # Account for people who put trailing slashes in PATH elements.
1666 ./ | .// | /cC/* | \
1667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1668 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1671 # OSF1 and SCO ODT 3.0 have their own names for install.
1672 # Don't use installbsd from OSF since it installs stuff as root
1674 for ac_prog in ginstall scoinst install; do
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1677 if test $ac_prog = install &&
1678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679 # AIX install. It has an incompatible calling convention.
1681 elif test $ac_prog = install &&
1682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1683 # program-specific install script used by HP pwplus--don't use.
1686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1698 if test "${ac_cv_path_install+set}" = set; then
1699 INSTALL=$ac_cv_path_install
1701 # As a last resort, use the slow shell script. We don't cache a
1702 # path for INSTALL within a source directory, because that will
1703 # break other packages using the cache if that directory is
1704 # removed, or if the path is relative.
1705 INSTALL=$ac_install_sh
1708 echo "$as_me:$LINENO: result: $INSTALL" >&5
1709 echo "${ECHO_T}$INSTALL" >&6
1711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1712 # It thinks the first close brace ends the variable substitution.
1713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1719 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1720 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1723 echo timestamp > conftest.file
1724 # Do `set' in a subshell so we don't clobber the current shell's
1725 # arguments. Must try -L first in case configure is actually a
1726 # symlink; some systems play weird games with the mod time of symlinks
1727 # (eg FreeBSD returns the mod time of the symlink's containing
1730 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1731 if test "$*" = "X"; then
1733 set X `ls -t $srcdir/configure conftest.file`
1736 if test "$*" != "X $srcdir/configure conftest.file" \
1737 && test "$*" != "X conftest.file $srcdir/configure"; then
1739 # If neither matched, then we have a broken ls. This can happen
1740 # if, for instance, CONFIG_SHELL is bash and it inherits a
1741 # broken ls alias from the environment. This has actually
1742 # happened. Such a system could not be considered "sane".
1743 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1744 alias in your environment" >&5
1745 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1746 alias in your environment" >&2;}
1747 { (exit 1); exit 1; }; }
1750 test "$2" = conftest.file
1756 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1757 Check your system clock" >&5
1758 echo "$as_me: error: newly created file is older than distributed files!
1759 Check your system clock" >&2;}
1760 { (exit 1); exit 1; }; }
1762 echo "$as_me:$LINENO: result: yes" >&5
1763 echo "${ECHO_T}yes" >&6
1764 test "$program_prefix" != NONE &&
1765 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1766 # Use a double $ so make ignores it.
1767 test "$program_suffix" != NONE &&
1768 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1769 # Double any \ or $. echo might interpret backslashes.
1770 # By default was `s,x,x', remove it if useless.
1771 cat <<\_ACEOF >conftest.sed
1772 s/[\\$]/&&/g;s/;s,x,x,$//
1774 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1777 # expand $ac_aux_dir to an absolute path
1778 am_aux_dir=`cd $ac_aux_dir && pwd`
1780 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1781 # Use eval to expand $SHELL
1782 if eval "$MISSING --run true"; then
1783 am_missing_run="$MISSING --run "
1786 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1787 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1790 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1791 # We used to keeping the `.' as first argument, in order to
1792 # allow $(mkdir_p) to be used without argument. As in
1793 # $(mkdir_p) $(somedir)
1794 # where $(somedir) is conditionally defined. However this is wrong
1796 # 1. if the package is installed by a user who cannot write `.'
1797 # make install will fail,
1798 # 2. the above comment should most certainly read
1799 # $(mkdir_p) $(DESTDIR)$(somedir)
1800 # so it does not work when $(somedir) is undefined and
1801 # $(DESTDIR) is not.
1802 # To support the latter case, we have to write
1803 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1804 # so the `.' trick is pointless.
1805 mkdir_p='mkdir -p --'
1807 # On NextStep and OpenStep, the `mkdir' command does not
1808 # recognize any option. It will interpret all options as
1809 # directories to create, and then abort because `.' already
1811 for d in ./-p ./--version;
1813 test -d $d && rmdir $d
1815 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1816 if test -f "$ac_aux_dir/mkinstalldirs"; then
1817 mkdir_p='$(mkinstalldirs)'
1819 mkdir_p='$(install_sh) -d'
1823 for ac_prog in gawk mawk nawk awk
1825 # Extract the first word of "$ac_prog", so it can be a program name with args.
1826 set dummy $ac_prog; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_AWK+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 if test -n "$AWK"; then
1833 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_AWK="$ac_prog"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 if test -n "$AWK"; then
1853 echo "$as_me:$LINENO: result: $AWK" >&5
1854 echo "${ECHO_T}$AWK" >&6
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1860 test -n "$AWK" && break
1863 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1864 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1865 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1866 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 cat >conftest.make <<\_ACEOF
1871 @echo 'ac_maketemp="$(MAKE)"'
1873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1874 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1875 if test -n "$ac_maketemp"; then
1876 eval ac_cv_prog_make_${ac_make}_set=yes
1878 eval ac_cv_prog_make_${ac_make}_set=no
1882 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1883 echo "$as_me:$LINENO: result: yes" >&5
1884 echo "${ECHO_T}yes" >&6
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1889 SET_MAKE="MAKE=${MAKE-make}"
1892 rm -rf .tst 2>/dev/null
1893 mkdir .tst 2>/dev/null
1894 if test -d .tst; then
1899 rmdir .tst 2>/dev/null
1901 # test to see if srcdir already configured
1902 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1903 test -f $srcdir/config.status; then
1904 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1905 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1906 { (exit 1); exit 1; }; }
1909 # test whether we have cygpath
1910 if test -z "$CYGPATH_W"; then
1911 if (cygpath --version) >/dev/null 2>/dev/null; then
1912 CYGPATH_W='cygpath -w'
1919 # Define the identity of the package.
1924 cat >>confdefs.h <<_ACEOF
1925 @%:@define PACKAGE "$PACKAGE"
1929 cat >>confdefs.h <<_ACEOF
1930 @%:@define VERSION "$VERSION"
1933 # Some tools Automake needs.
1935 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1938 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1941 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1944 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1947 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1949 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1951 # Installed binaries are usually stripped using `strip' when the user
1952 # run `make install-strip'. However `strip' might not be the right
1953 # tool to use in cross-compilation environments, therefore Automake
1954 # will honor the `STRIP' environment variable to overrule this program.
1955 if test "$cross_compiling" != no; then
1956 if test -n "$ac_tool_prefix"; then
1957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1958 set dummy ${ac_tool_prefix}strip; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_STRIP+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test -n "$STRIP"; then
1965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 STRIP=$ac_cv_prog_STRIP
1984 if test -n "$STRIP"; then
1985 echo "$as_me:$LINENO: result: $STRIP" >&5
1986 echo "${ECHO_T}$STRIP" >&6
1988 echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1993 if test -z "$ac_cv_prog_STRIP"; then
1995 # Extract the first word of "strip", so it can be a program name with args.
1996 set dummy strip; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$ac_ct_STRIP"; then
2003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 ac_cv_prog_ac_ct_STRIP="strip"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2023 if test -n "$ac_ct_STRIP"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2025 echo "${ECHO_T}$ac_ct_STRIP" >&6
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2033 STRIP="$ac_cv_prog_STRIP"
2037 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2039 # We need awk for the "check" target. The system "awk" is bad on
2041 # Always define AMTAR for backward compatibility.
2043 AMTAR=${AMTAR-"${am_missing_run}tar"}
2045 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2051 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2052 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2053 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2054 if test "${enable_maintainer_mode+set}" = set; then
2055 enableval="$enable_maintainer_mode"
2056 USE_MAINTAINER_MODE=$enableval
2058 USE_MAINTAINER_MODE=no
2060 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2061 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2064 if test $USE_MAINTAINER_MODE = yes; then
2065 MAINTAINER_MODE_TRUE=
2066 MAINTAINER_MODE_FALSE='#'
2068 MAINTAINER_MODE_TRUE='#'
2069 MAINTAINER_MODE_FALSE=
2072 MAINT=$MAINTAINER_MODE_TRUE
2084 SHLIB_VERSION_ARG=""
2087 cflags_save="$CFLAGS"
2089 ac_cpp='$CPP $CPPFLAGS'
2090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093 if test -n "$ac_tool_prefix"; then
2094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 if test -n "$CC"; then
2102 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 if test -n "$CC"; then
2122 echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6
2125 echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2130 if test -z "$ac_cv_prog_CC"; then
2132 # Extract the first word of "gcc", so it can be a program name with args.
2133 set dummy gcc; ac_word=$2
2134 echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test -n "$ac_ct_CC"; then
2140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149 ac_cv_prog_ac_ct_CC="gcc"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2159 if test -n "$ac_ct_CC"; then
2160 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2161 echo "${ECHO_T}$ac_ct_CC" >&6
2163 echo "$as_me:$LINENO: result: no" >&5
2164 echo "${ECHO_T}no" >&6
2172 if test -z "$CC"; then
2173 if test -n "$ac_tool_prefix"; then
2174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2175 set dummy ${ac_tool_prefix}cc; ac_word=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test -n "$CC"; then
2182 ac_cv_prog_CC="$CC" # Let the user override the test.
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 ac_cv_prog_CC="${ac_tool_prefix}cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 if test -n "$CC"; then
2202 echo "$as_me:$LINENO: result: $CC" >&5
2203 echo "${ECHO_T}$CC" >&6
2205 echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2210 if test -z "$ac_cv_prog_CC"; then
2212 # Extract the first word of "cc", so it can be a program name with args.
2213 set dummy cc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 if test -n "$ac_ct_CC"; then
2220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_ac_ct_CC="cc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2253 if test -z "$CC"; then
2254 # Extract the first word of "cc", so it can be a program name with args.
2255 set dummy cc; ac_word=$2
2256 echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$CC"; then
2262 ac_cv_prog_CC="$CC" # Let the user override the test.
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2273 ac_prog_rejected=yes
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 if test $ac_prog_rejected = yes; then
2284 # We found a bogon in the path, so make sure we never use it.
2285 set dummy $ac_cv_prog_CC
2287 if test $@%:@ != 0; then
2288 # We chose a different compiler from the bogus one.
2289 # However, it has the same basename, so the bogon will be chosen
2290 # first if we set CC to just the basename; use the full file name.
2292 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2298 if test -n "$CC"; then
2299 echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6
2302 echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2307 if test -z "$CC"; then
2308 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2313 echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_CC+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC="$CC" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 if test -n "$CC"; then
2339 echo "$as_me:$LINENO: result: $CC" >&5
2340 echo "${ECHO_T}$CC" >&6
2342 echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6
2346 test -n "$CC" && break
2349 if test -z "$CC"; then
2353 # Extract the first word of "$ac_prog", so it can be a program name with args.
2354 set dummy $ac_prog; ac_word=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 ac_cv_prog_ac_ct_CC="$ac_prog"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2380 if test -n "$ac_ct_CC"; then
2381 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2382 echo "${ECHO_T}$ac_ct_CC" >&6
2384 echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2388 test -n "$ac_ct_CC" && break
2397 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&5
2399 echo "$as_me: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&2;}
2401 { (exit 1); exit 1; }; }
2403 # Provide some information about the compiler.
2404 echo "$as_me:$LINENO:" \
2405 "checking for C compiler version" >&5
2406 ac_compiler=`set X $ac_compile; echo $2`
2407 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2408 (eval $ac_compiler --version </dev/null >&5) 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }
2412 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2413 (eval $ac_compiler -v </dev/null >&5) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }
2417 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2418 (eval $ac_compiler -V </dev/null >&5) 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 ac_clean_files_save=$ac_clean_files
2439 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2440 # Try to create an executable without -o first, disregard a.out.
2441 # It will help us diagnose broken compilers, and finding out an intuition
2443 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2444 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2445 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2447 (eval $ac_link_default) 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 # Find the output, starting from the most likely. This scheme is
2452 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2455 # Be careful to initialize this variable, since it used to be cached.
2456 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2458 # b.out is created by i960 compilers.
2459 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2461 test -f "$ac_file" || continue
2463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2466 # This is the source file.
2469 # We found the default executable, but exeext='' is most
2473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474 # FIXME: I believe we export ac_cv_exeext for Libtool,
2475 # but it would be cool to find out if it's true. Does anybody
2476 # maintain Libtool? --akim.
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2487 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2488 See \`config.log' for more details." >&5
2489 echo "$as_me: error: C compiler cannot create executables
2490 See \`config.log' for more details." >&2;}
2491 { (exit 77); exit 77; }; }
2494 ac_exeext=$ac_cv_exeext
2495 echo "$as_me:$LINENO: result: $ac_file" >&5
2496 echo "${ECHO_T}$ac_file" >&6
2498 # Check the compiler produces executables we can run. If not, either
2499 # the compiler is broken, or we cross compile.
2500 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2501 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2502 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2503 # If not cross compiling, check that we can run a simple program.
2504 if test "$cross_compiling" != yes; then
2505 if { ac_try='./$ac_file'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2513 if test "$cross_compiling" = maybe; then
2516 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2517 If you meant to cross compile, use \`--host'.
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot run C compiled programs.
2520 If you meant to cross compile, use \`--host'.
2521 See \`config.log' for more details." >&2;}
2522 { (exit 1); exit 1; }; }
2526 echo "$as_me:$LINENO: result: yes" >&5
2527 echo "${ECHO_T}yes" >&6
2529 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2530 ac_clean_files=$ac_clean_files_save
2531 # Check the compiler produces executables we can run. If not, either
2532 # the compiler is broken, or we cross compile.
2533 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2534 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2535 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2536 echo "${ECHO_T}$cross_compiling" >&6
2538 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2539 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2541 (eval $ac_link) 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; then
2545 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2546 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2547 # work properly (i.e., refer to `conftest.exe'), while it won't with
2549 for ac_file in conftest.exe conftest conftest.*; do
2550 test -f "$ac_file" || continue
2552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2553 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest$ac_cv_exeext
2568 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2569 echo "${ECHO_T}$ac_cv_exeext" >&6
2571 rm -f conftest.$ac_ext
2572 EXEEXT=$ac_cv_exeext
2574 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2575 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2576 if test "${ac_cv_objext+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 cat >conftest.$ac_ext <<_ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2594 rm -f conftest.o conftest.obj
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; then
2600 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2611 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2620 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2621 echo "${ECHO_T}$ac_cv_objext" >&6
2622 OBJEXT=$ac_cv_objext
2624 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2625 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2626 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2679 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2680 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2681 GCC=`test $ac_compiler_gnu = yes && echo yes`
2682 ac_test_CFLAGS=${CFLAGS+set}
2683 ac_save_CFLAGS=$CFLAGS
2685 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2686 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2687 if test "${ac_cv_prog_cc_g+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 cat >conftest.$ac_ext <<_ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2736 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2737 if test "$ac_test_CFLAGS" = set; then
2738 CFLAGS=$ac_save_CFLAGS
2739 elif test $ac_cv_prog_cc_g = yes; then
2740 if test "$GCC" = yes; then
2746 if test "$GCC" = yes; then
2752 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2753 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2754 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 ac_cv_prog_cc_stdc=no
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2767 #include <sys/types.h>
2768 #include <sys/stat.h>
2769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2770 struct buf { int x; };
2771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2772 static char *e (p, i)
2778 static char *f (char * (*g) (char **, int), char **p, ...)
2783 s = g (p, va_arg (v,int));
2788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2789 function prototypes and stuff, but not '\xHH' hex character constants.
2790 These don't provoke an error unfortunately, instead are silently treated
2791 as 'x'. The following induces an error, until -std1 is added to get
2792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2793 array size at least. It's necessary to write '\x00'==0 to get something
2794 that's true only with -std1. */
2795 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2806 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2811 # Don't try gcc -ansi; that turns off useful extensions and
2812 # breaks some systems' header files.
2813 # AIX -qlanglvl=ansi
2814 # Ultrix and OSF/1 -std1
2815 # HP-UX 10.20 and later -Ae
2816 # HP-UX older versions -Aa -D_HPUX_SOURCE
2817 # SVR4 -Xc -D__EXTENSIONS__
2818 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2820 CC="$ac_save_CC $ac_arg"
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2825 grep -v '^ *+' conftest.er1 >conftest.err
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_prog_cc_stdc=$ac_arg
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2849 rm -f conftest.err conftest.$ac_objext
2851 rm -f conftest.$ac_ext conftest.$ac_objext
2856 case "x$ac_cv_prog_cc_stdc" in
2858 echo "$as_me:$LINENO: result: none needed" >&5
2859 echo "${ECHO_T}none needed" >&6 ;;
2861 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2862 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2863 CC="$CC $ac_cv_prog_cc_stdc" ;;
2866 # Some people use a C++ compiler to compile C. Since we use `exit',
2867 # in C++ we need to declare it. In case someone uses the same compiler
2868 # for both compiling C and C++ we need to have the C++ compiler decide
2869 # the declaration of exit, since it's the most demanding environment.
2870 cat >conftest.$ac_ext <<_ACEOF
2871 @%:@ifndef __cplusplus
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>conftest.er1
2879 grep -v '^ *+' conftest.er1 >conftest.err
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 for ac_declaration in \
2898 'extern "C" void std::exit (int) throw (); using std::exit;' \
2899 'extern "C" void std::exit (int); using std::exit;' \
2900 'extern "C" void exit (int) throw ();' \
2901 'extern "C" void exit (int);' \
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2911 @%:@include <stdlib.h>
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2924 grep -v '^ *+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; } &&
2935 { ac_try='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 cat >conftest.$ac_ext <<_ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966 (eval $ac_compile) 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994 if test -n "$ac_declaration"; then
2995 echo '#ifdef __cplusplus' >>confdefs.h
2996 echo $ac_declaration >>confdefs.h
2997 echo '#endif' >>confdefs.h
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 DEPDIR="${am__leading_dot}deps"
3013 ac_config_commands="$ac_config_commands depfiles"
3016 am_make=${MAKE-make}
3017 cat > confinc << 'END'
3022 # If we don't find an include directive, just comment out the code.
3023 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3024 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3028 # First try GNU make style include.
3029 echo "include confinc" > confmf
3030 # We grep out `Entering directory' and `Leaving directory'
3031 # messages which can occur if `w' ends up in MAKEFLAGS.
3032 # In particular we don't look at `^make:' because GNU make might
3033 # be invoked under some other name (usually "gmake"), in which
3034 # case it prints its new name instead of `make'.
3035 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3040 # Now try BSD make style include.
3041 if test "$am__include" = "#"; then
3042 echo '.include "confinc"' > confmf
3043 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3044 am__include=.include
3051 echo "$as_me:$LINENO: result: $_am_result" >&5
3052 echo "${ECHO_T}$_am_result" >&6
3053 rm -f confinc confmf
3055 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3056 if test "${enable_dependency_tracking+set}" = set; then
3057 enableval="$enable_dependency_tracking"
3060 if test "x$enable_dependency_tracking" != xno; then
3061 am_depcomp="$ac_aux_dir/depcomp"
3066 if test "x$enable_dependency_tracking" != xno; then
3077 depcc="$CC" am_compiler_list=
3079 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3080 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3081 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3085 # We make a subdir and do the tests there. Otherwise we can end up
3086 # making bogus files that we don't know about and never remove. For
3087 # instance it was reported that on HP-UX the gcc test will end up
3088 # making a dummy file named `D' -- because `-MD' means `put the output
3091 # Copy depcomp to subdir because otherwise we won't find it if we're
3092 # using a relative directory.
3093 cp "$am_depcomp" conftest.dir
3095 # We will build objects and dependencies in a subdirectory because
3096 # it helps to detect inapplicable dependency modes. For instance
3097 # both Tru64's cc and ICC support -MD to output dependencies as a
3098 # side effect of compilation, but ICC will put the dependencies in
3099 # the current directory while Tru64 will put them in the object
3103 am_cv_CC_dependencies_compiler_type=none
3104 if test "$am_compiler_list" = ""; then
3105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3107 for depmode in $am_compiler_list; do
3108 # Setup a source with many dependencies, because some compilers
3109 # like to wrap large dependency lists on column 80 (with \), and
3110 # we should not choose a depcomp mode which is confused by this.
3112 # We need to recreate these files for each test, as the compiler may
3113 # overwrite some of them when testing with obscure command lines.
3114 # This happens at least with the AIX C compiler.
3116 for i in 1 2 3 4 5 6; do
3117 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3118 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3119 # Solaris 8's {/usr,}/bin/sh.
3120 touch sub/conftst$i.h
3122 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3126 # after this tag, mechanisms are not by side-effect, so they'll
3127 # only be used when explicitly requested
3128 if test "x$enable_dependency_tracking" = xyes; then
3136 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3137 # mode. It turns out that the SunPro C++ compiler does not properly
3138 # handle `-M -o', and we need to detect this.
3139 if depmode=$depmode \
3140 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3141 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3142 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3143 >/dev/null 2>conftest.err &&
3144 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3145 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3147 # icc doesn't choke on unknown options, it will just issue warnings
3148 # or remarks (even with -Werror). So we grep stderr for any message
3149 # that says an option was ignored or not supported.
3150 # When given -MP, icc 7.0 and 7.1 complain thusly:
3151 # icc: Command line warning: ignoring option '-M'; no argument required
3152 # The diagnosis changed in icc 8.0:
3153 # icc: Command line remark: option '-MP' not supported
3154 if (grep 'ignoring option' conftest.err ||
3155 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3156 am_cv_CC_dependencies_compiler_type=$depmode
3165 am_cv_CC_dependencies_compiler_type=none
3169 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3170 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3171 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3176 test "x$enable_dependency_tracking" != xno \
3177 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3179 am__fastdepCC_FALSE='#'
3181 am__fastdepCC_TRUE='#'
3182 am__fastdepCC_FALSE=
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3193 # On Suns, sometimes $CPP names a directory.
3194 if test -n "$CPP" && test -d "$CPP"; then
3197 if test -z "$CPP"; then
3198 if test "${ac_cv_prog_CPP+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 # Double quotes because CPP needs to be expanded
3202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3205 for ac_c_preproc_warn_flag in '' yes
3207 # Use a header file that comes with gcc, so configuring glibc
3208 # with a fresh cross-compiler works.
3209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210 # <limits.h> exists even on freestanding compilers.
3211 # On the NeXT, cc -E runs the code through the compiler's parser,
3212 # not just through cpp. "Syntax error" is here to catch this case.
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3220 @%:@ include <limits.h>
3222 @%:@ include <assert.h>
3226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3229 grep -v '^ *+' conftest.er1 >conftest.err
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } >/dev/null; then
3234 if test -s conftest.err; then
3235 ac_cpp_err=$ac_c_preproc_warn_flag
3236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243 if test -z "$ac_cpp_err"; then
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3249 # Broken: fails on valid input.
3252 rm -f conftest.err conftest.$ac_ext
3254 # OK, works on sane cases. Now check whether non-existent headers
3255 # can be detected and how.
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262 @%:@include <ac_nonexistent.h>
3264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3267 grep -v '^ *+' conftest.er1 >conftest.err
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } >/dev/null; then
3272 if test -s conftest.err; then
3273 ac_cpp_err=$ac_c_preproc_warn_flag
3274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3281 if test -z "$ac_cpp_err"; then
3282 # Broken: success on invalid input.
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 # Passes both tests.
3292 rm -f conftest.err conftest.$ac_ext
3295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3296 rm -f conftest.err conftest.$ac_ext
3297 if $ac_preproc_ok; then
3309 echo "$as_me:$LINENO: result: $CPP" >&5
3310 echo "${ECHO_T}$CPP" >&6
3312 for ac_c_preproc_warn_flag in '' yes
3314 # Use a header file that comes with gcc, so configuring glibc
3315 # with a fresh cross-compiler works.
3316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317 # <limits.h> exists even on freestanding compilers.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3327 @%:@ include <limits.h>
3329 @%:@ include <assert.h>
3333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } >/dev/null; then
3341 if test -s conftest.err; then
3342 ac_cpp_err=$ac_c_preproc_warn_flag
3343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3350 if test -z "$ac_cpp_err"; then
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3356 # Broken: fails on valid input.
3359 rm -f conftest.err conftest.$ac_ext
3361 # OK, works on sane cases. Now check whether non-existent headers
3362 # can be detected and how.
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369 @%:@include <ac_nonexistent.h>
3371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3374 grep -v '^ *+' conftest.er1 >conftest.err
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3388 if test -z "$ac_cpp_err"; then
3389 # Broken: success on invalid input.
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 # Passes both tests.
3399 rm -f conftest.err conftest.$ac_ext
3402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403 rm -f conftest.err conftest.$ac_ext
3404 if $ac_preproc_ok; then
3407 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3408 See \`config.log' for more details." >&5
3409 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3410 See \`config.log' for more details." >&2;}
3411 { (exit 1); exit 1; }; }
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420 CFLAGS="$cflags_save"
3422 # Check whether --enable-shared or --disable-shared was given.
3423 if test "${enable_shared+set}" = set; then
3424 enableval="$enable_shared"
3425 p=${PACKAGE-default}
3427 yes) enable_shared=yes ;;
3428 no) enable_shared=no ;;
3431 # Look at the argument we got. We use all the common list separators.
3432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3433 for pkg in $enableval; do
3435 if test "X$pkg" = "X$p"; then
3446 # Check whether --enable-static or --disable-static was given.
3447 if test "${enable_static+set}" = set; then
3448 enableval="$enable_static"
3449 p=${PACKAGE-default}
3451 yes) enable_static=yes ;;
3452 no) enable_static=no ;;
3455 # Look at the argument we got. We use all the common list separators.
3456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3457 for pkg in $enableval; do
3459 if test "X$pkg" = "X$p"; then
3470 # Check whether --enable-fast-install or --disable-fast-install was given.
3471 if test "${enable_fast_install+set}" = set; then
3472 enableval="$enable_fast_install"
3473 p=${PACKAGE-default}
3475 yes) enable_fast_install=yes ;;
3476 no) enable_fast_install=no ;;
3478 enable_fast_install=no
3479 # Look at the argument we got. We use all the common list separators.
3480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3481 for pkg in $enableval; do
3483 if test "X$pkg" = "X$p"; then
3484 enable_fast_install=yes
3491 enable_fast_install=yes
3494 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3495 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3496 if test "${lt_cv_path_SED+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 # Loop through the user's path and test for sed and gsed.
3500 # Then use that list of sed's as ones to test for truncation.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for lt_ac_prog in sed gsed; do
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3509 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3516 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3517 # along with /bin/sed that truncates output.
3518 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3519 test ! -f $lt_ac_sed && break
3520 cat /dev/null > conftest.in
3522 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3523 # Check for GNU sed and select it if it is found.
3524 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3525 lt_cv_path_SED=$lt_ac_sed
3529 cat conftest.in conftest.in >conftest.tmp
3530 mv conftest.tmp conftest.in
3531 cp conftest.in conftest.nl
3533 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3534 cmp -s conftest.out conftest.nl || break
3535 # 10000 chars as input seems more than enough
3536 test $lt_ac_count -gt 10 && break
3537 lt_ac_count=`expr $lt_ac_count + 1`
3538 if test $lt_ac_count -gt $lt_ac_max; then
3539 lt_ac_max=$lt_ac_count
3540 lt_cv_path_SED=$lt_ac_sed
3548 echo "$as_me:$LINENO: result: $SED" >&5
3549 echo "${ECHO_T}$SED" >&6
3551 echo "$as_me:$LINENO: checking for egrep" >&5
3552 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3553 if test "${ac_cv_prog_egrep+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3557 then ac_cv_prog_egrep='grep -E'
3558 else ac_cv_prog_egrep='egrep'
3561 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3562 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3563 EGREP=$ac_cv_prog_egrep
3567 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3568 if test "${with_gnu_ld+set}" = set; then
3569 withval="$with_gnu_ld"
3570 test "$withval" = no || with_gnu_ld=yes
3575 if test "$GCC" = yes; then
3576 # Check if gcc -print-prog-name=ld gives a path.
3577 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3578 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3581 # gcc leaves a trailing carriage return which upsets mingw
3582 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3584 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3587 # Accept absolute paths.
3589 re_direlt='/[^/][^/]*/\.\./'
3590 # Canonicalize the pathname of ld
3591 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3592 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3593 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3595 test -z "$LD" && LD="$ac_prog"
3598 # If it fails, then pretend we aren't using GCC.
3602 # If it is relative, then search for the first ld in PATH.
3606 elif test "$with_gnu_ld" = yes; then
3607 echo "$as_me:$LINENO: checking for GNU ld" >&5
3608 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3610 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3611 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3613 if test "${lt_cv_path_LD+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 if test -z "$LD"; then
3617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3618 for ac_dir in $PATH; do
3620 test -z "$ac_dir" && ac_dir=.
3621 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3622 lt_cv_path_LD="$ac_dir/$ac_prog"
3623 # Check to see if the program is GNU ld. I'd rather use --version,
3624 # but apparently some GNU ld's only accept -v.
3625 # Break only if it was the GNU/non-GNU ld that we prefer.
3626 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3627 *GNU* | *'with BFD'*)
3628 test "$with_gnu_ld" != no && break
3631 test "$with_gnu_ld" != yes && break
3638 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3643 if test -n "$LD"; then
3644 echo "$as_me:$LINENO: result: $LD" >&5
3645 echo "${ECHO_T}$LD" >&6
3647 echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6
3650 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3651 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3652 { (exit 1); exit 1; }; }
3653 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3654 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3655 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3659 case `$LD -v 2>&1 </dev/null` in
3660 *GNU* | *'with BFD'*)
3661 lt_cv_prog_gnu_ld=yes
3664 lt_cv_prog_gnu_ld=no
3668 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3669 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3670 with_gnu_ld=$lt_cv_prog_gnu_ld
3673 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3674 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3675 if test "${lt_cv_ld_reload_flag+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 lt_cv_ld_reload_flag='-r'
3680 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3681 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3682 reload_flag=$lt_cv_ld_reload_flag
3683 case $reload_flag in
3685 *) reload_flag=" $reload_flag" ;;
3687 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3689 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3690 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3691 if test "${lt_cv_path_NM+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 if test -n "$NM"; then
3695 # Let the user override the test.
3698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3699 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3701 test -z "$ac_dir" && ac_dir=.
3702 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3703 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3704 # Check to see if the nm accepts a BSD-compat flag.
3705 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3706 # nm: unknown option "B" ignored
3707 # Tru64's nm complains that /dev/null is an invalid object file
3708 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3709 */dev/null* | *'Invalid file or object type'*)
3710 lt_cv_path_NM="$tmp_nm -B"
3714 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3716 lt_cv_path_NM="$tmp_nm -p"
3720 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3721 continue # so that we can try to find one that supports BSD flags
3728 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3731 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3732 echo "${ECHO_T}$lt_cv_path_NM" >&6
3735 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3736 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3738 if test "$LN_S" = "ln -s"; then
3739 echo "$as_me:$LINENO: result: yes" >&5
3740 echo "${ECHO_T}yes" >&6
3742 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3743 echo "${ECHO_T}no, using $LN_S" >&6
3746 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3747 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3748 if test "${lt_cv_deplibs_check_method+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 lt_cv_file_magic_cmd='$MAGIC_CMD'
3752 lt_cv_file_magic_test_file=
3753 lt_cv_deplibs_check_method='unknown'
3754 # Need to set the preceding variable on all platforms that support
3755 # interlibrary dependencies.
3756 # 'none' -- dependencies not supported.
3757 # `unknown' -- same as none, but documents that we really don't know.
3758 # 'pass_all' -- all dependencies passed with no checks.
3759 # 'test_compile' -- check by making test program.
3760 # 'file_magic [[regex]]' -- check by looking for files in library path
3761 # which responds to the $file_magic_cmd with a given extended regex.
3762 # If you have `file' or equivalent on your system and you're not sure
3763 # whether `pass_all' will *always* work, you probably want this one.
3767 lt_cv_deplibs_check_method=pass_all
3771 lt_cv_deplibs_check_method=pass_all
3775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3776 lt_cv_file_magic_cmd='/usr/bin/file -L'
3777 lt_cv_file_magic_test_file=/shlib/libc.so
3781 # func_win32_libid is a shell function defined in ltmain.sh
3782 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3783 lt_cv_file_magic_cmd='func_win32_libid'
3787 # Base MSYS/MinGW do not provide the 'file' command needed by
3788 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3789 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3790 lt_cv_file_magic_cmd='$OBJDUMP -f'
3793 darwin* | rhapsody*)
3794 lt_cv_deplibs_check_method=pass_all
3797 freebsd* | kfreebsd*-gnu)
3798 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3801 # Not sure whether the presence of OpenBSD here was a mistake.
3802 # Let's accept both of them until this is cleared up.
3803 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3804 lt_cv_file_magic_cmd=/usr/bin/file
3805 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3809 lt_cv_deplibs_check_method=pass_all
3814 lt_cv_deplibs_check_method=pass_all
3817 hpux10.20* | hpux11*)
3818 lt_cv_file_magic_cmd=/usr/bin/file
3821 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3822 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3825 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]'
3826 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3829 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3830 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3835 irix5* | irix6* | nonstopux*)
3837 *-32|*"-32 ") libmagic=32-bit;;
3838 *-n32|*"-n32 ") libmagic=N32;;
3839 *-64|*"-64 ") libmagic=64-bit;;
3840 *) libmagic=never-match;;
3842 lt_cv_deplibs_check_method=pass_all
3845 # This must be Linux ELF.
3847 lt_cv_deplibs_check_method=pass_all
3850 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3851 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3860 lt_cv_file_magic_cmd=/usr/bin/file
3861 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3865 lt_cv_deplibs_check_method=unknown
3869 lt_cv_file_magic_cmd=/usr/bin/file
3870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3871 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3874 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3878 osf3* | osf4* | osf5*)
3879 lt_cv_deplibs_check_method=pass_all
3883 lt_cv_deplibs_check_method=pass_all
3887 lt_cv_deplibs_check_method=pass_all
3890 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3891 case $host_vendor in
3893 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]'
3894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3897 lt_cv_deplibs_check_method=pass_all
3900 lt_cv_file_magic_cmd='/bin/file'
3901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3904 lt_cv_file_magic_cmd='/bin/file'
3905 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3906 lt_cv_file_magic_test_file=/lib/libc.so
3909 lt_cv_deplibs_check_method=pass_all
3914 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3915 lt_cv_deplibs_check_method=pass_all
3920 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3921 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3922 file_magic_cmd=$lt_cv_file_magic_cmd
3923 deplibs_check_method=$lt_cv_deplibs_check_method
3924 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3929 # If no C compiler was specified, use CC.
3932 # Allow CC to be a program name with arguments.
3936 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3937 if test "${enable_libtool_lock+set}" = set; then
3938 enableval="$enable_libtool_lock"
3941 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3943 # Some flags need to be propagated to the compiler or linker for good
3947 # Find out which ABI we are using.
3948 echo 'int i;' > conftest.$ac_ext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; then
3954 case `/usr/bin/file conftest.$ac_objext` in
3966 # Find out which ABI we are using.
3967 echo '#line __oline__ "configure"' > conftest.$ac_ext
3968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3969 (eval $ac_compile) 2>&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; then
3973 if test "$lt_cv_prog_gnu_ld" = yes; then
3974 case `/usr/bin/file conftest.$ac_objext` in
3976 LD="${LD-ld} -melf32bsmip"
3979 LD="${LD-ld} -melf32bmipn32"
3982 LD="${LD-ld} -melf64bmip"
3986 case `/usr/bin/file conftest.$ac_objext` in
4002 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4003 # Find out which ABI we are using.
4004 echo 'int i;' > conftest.$ac_ext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; then
4010 case "`/usr/bin/file conftest.o`" in
4014 LD="${LD-ld} -m elf_i386"
4016 ppc64-*linux*|powerpc64-*linux*)
4017 LD="${LD-ld} -m elf32ppclinux"
4020 LD="${LD-ld} -m elf_s390"
4023 LD="${LD-ld} -m elf32_sparc"
4030 LD="${LD-ld} -m elf_x86_64"
4032 ppc*-*linux*|powerpc*-*linux*)
4033 LD="${LD-ld} -m elf64ppc"
4036 LD="${LD-ld} -m elf64_s390"
4039 LD="${LD-ld} -m elf64_sparc"
4049 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4050 SAVE_CFLAGS="$CFLAGS"
4051 CFLAGS="$CFLAGS -belf"
4052 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4053 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4054 if test "${lt_cv_cc_needs_belf+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4078 rm -f conftest.$ac_objext conftest$ac_exeext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4080 (eval $ac_link) 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest$ac_exeext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 lt_cv_cc_needs_belf=yes
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 lt_cv_cc_needs_belf=no
4106 rm -f conftest.err conftest.$ac_objext \
4107 conftest$ac_exeext conftest.$ac_ext
4109 ac_cpp='$CPP $CPPFLAGS'
4110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4116 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4117 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4118 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4119 CFLAGS="$SAVE_CFLAGS"
4125 need_locks="$enable_libtool_lock"
4129 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4130 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4131 if test "${ac_cv_header_stdc+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>conftest.er1
4157 grep -v '^ *+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try='test -s conftest.$ac_objext'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 ac_cv_header_stdc=yes
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 ac_cv_header_stdc=no
4181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183 if test $ac_cv_header_stdc = yes; then
4184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195 $EGREP "memchr" >/dev/null 2>&1; then
4198 ac_cv_header_stdc=no
4204 if test $ac_cv_header_stdc = yes; then
4205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216 $EGREP "free" >/dev/null 2>&1; then
4219 ac_cv_header_stdc=no
4225 if test $ac_cv_header_stdc = yes; then
4226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4227 if test "$cross_compiling" = yes; then
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4237 #if ((' ' & 0x0FF) == 0x020)
4238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4241 # define ISLOWER(c) \
4242 (('a' <= (c) && (c) <= 'i') \
4243 || ('j' <= (c) && (c) <= 'r') \
4244 || ('s' <= (c) && (c) <= 'z'))
4245 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4253 for (i = 0; i < 256; i++)
4254 if (XOR (islower (i), ISLOWER (i))
4255 || toupper (i) != TOUPPER (i))
4260 rm -f conftest$ac_exeext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262 (eval $ac_link) 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4273 echo "$as_me: program exited with status $ac_status" >&5
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4278 ac_cv_header_stdc=no
4280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4284 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4285 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4286 if test $ac_cv_header_stdc = yes; then
4288 cat >>confdefs.h <<\_ACEOF
4289 @%:@define STDC_HEADERS 1
4294 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4304 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4305 inttypes.h stdint.h unistd.h
4307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4308 echo "$as_me:$LINENO: checking for $ac_header" >&5
4309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 $ac_includes_default
4321 @%:@include <$ac_header>
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325 (eval $ac_compile) 2>conftest.er1
4327 grep -v '^ *+' conftest.er1 >conftest.err
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; } &&
4338 { ac_try='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 eval "$as_ac_Header=yes"
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 eval "$as_ac_Header=no"
4351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4356 cat >>confdefs.h <<_ACEOF
4357 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 for ac_header in dlfcn.h
4368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4370 echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4378 # Is the header compilable?
4379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4381 cat >conftest.$ac_ext <<_ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 $ac_includes_default
4388 @%:@include <$ac_header>
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>conftest.er1
4394 grep -v '^ *+' conftest.er1 >conftest.err
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 ac_header_compiler=yes
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 ac_header_compiler=no
4418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4420 echo "${ECHO_T}$ac_header_compiler" >&6
4422 # Is the header present?
4423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 @%:@include <$ac_header>
4433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } >/dev/null; then
4441 if test -s conftest.err; then
4442 ac_cpp_err=$ac_c_preproc_warn_flag
4443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4450 if test -z "$ac_cpp_err"; then
4451 ac_header_preproc=yes
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4456 ac_header_preproc=no
4458 rm -f conftest.err conftest.$ac_ext
4459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4460 echo "${ECHO_T}$ac_header_preproc" >&6
4462 # So? What about this header?
4463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4469 ac_header_preproc=yes
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4486 @%:@@%:@ ------------------------------------ @%:@@%:@
4487 @%:@@%:@ Report this to the libtheora lists. @%:@@%:@
4488 @%:@@%:@ ------------------------------------ @%:@@%:@
4491 sed "s/^/$as_me: WARNING: /" >&2
4494 echo "$as_me:$LINENO: checking for $ac_header" >&5
4495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 eval "$as_ac_Header=\$ac_header_preproc"
4501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4506 cat >>confdefs.h <<_ACEOF
4507 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4515 ac_cpp='$CXXCPP $CPPFLAGS'
4516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519 if test -n "$ac_tool_prefix"; then
4520 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4524 echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_prog_CXX+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 if test -n "$CXX"; then
4530 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 if test -n "$CXX"; then
4550 echo "$as_me:$LINENO: result: $CXX" >&5
4551 echo "${ECHO_T}$CXX" >&6
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4557 test -n "$CXX" && break
4560 if test -z "$CXX"; then
4562 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4564 # Extract the first word of "$ac_prog", so it can be a program name with args.
4565 set dummy $ac_prog; ac_word=$2
4566 echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4568 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 if test -n "$ac_ct_CXX"; then
4572 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_ac_ct_CXX="$ac_prog"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4591 if test -n "$ac_ct_CXX"; then
4592 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4593 echo "${ECHO_T}$ac_ct_CXX" >&6
4595 echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4599 test -n "$ac_ct_CXX" && break
4601 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4607 # Provide some information about the compiler.
4608 echo "$as_me:$LINENO:" \
4609 "checking for C++ compiler version" >&5
4610 ac_compiler=`set X $ac_compile; echo $2`
4611 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4612 (eval $ac_compiler --version </dev/null >&5) 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }
4616 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4617 (eval $ac_compiler -v </dev/null >&5) 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }
4621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4622 (eval $ac_compiler -V </dev/null >&5) 2>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }
4627 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4628 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4629 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4650 rm -f conftest.$ac_objext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652 (eval $ac_compile) 2>conftest.er1
4654 grep -v '^ *+' conftest.er1 >conftest.err
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4682 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4683 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4684 GXX=`test $ac_compiler_gnu = yes && echo yes`
4685 ac_test_CXXFLAGS=${CXXFLAGS+set}
4686 ac_save_CXXFLAGS=$CXXFLAGS
4688 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4689 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4690 if test "${ac_cv_prog_cxx_g+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4708 rm -f conftest.$ac_objext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710 (eval $ac_compile) 2>conftest.er1
4712 grep -v '^ *+' conftest.er1 >conftest.err
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; } &&
4723 { ac_try='test -s conftest.$ac_objext'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4729 ac_cv_prog_cxx_g=yes
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4738 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4739 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4740 if test "$ac_test_CXXFLAGS" = set; then
4741 CXXFLAGS=$ac_save_CXXFLAGS
4742 elif test $ac_cv_prog_cxx_g = yes; then
4743 if test "$GXX" = yes; then
4749 if test "$GXX" = yes; then
4755 for ac_declaration in \
4757 'extern "C" void std::exit (int) throw (); using std::exit;' \
4758 'extern "C" void std::exit (int); using std::exit;' \
4759 'extern "C" void exit (int) throw ();' \
4760 'extern "C" void exit (int);' \
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4770 @%:@include <stdlib.h>
4779 rm -f conftest.$ac_objext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781 (eval $ac_compile) 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try='test -s conftest.$ac_objext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4808 cat >conftest.$ac_ext <<_ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>conftest.er1
4827 grep -v '^ *+' conftest.er1 >conftest.err
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853 if test -n "$ac_declaration"; then
4854 echo '#ifdef __cplusplus' >>confdefs.h
4855 echo $ac_declaration >>confdefs.h
4856 echo '#endif' >>confdefs.h
4860 ac_cpp='$CXXCPP $CPPFLAGS'
4861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4865 depcc="$CXX" am_compiler_list=
4867 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4868 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4869 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4873 # We make a subdir and do the tests there. Otherwise we can end up
4874 # making bogus files that we don't know about and never remove. For
4875 # instance it was reported that on HP-UX the gcc test will end up
4876 # making a dummy file named `D' -- because `-MD' means `put the output
4879 # Copy depcomp to subdir because otherwise we won't find it if we're
4880 # using a relative directory.
4881 cp "$am_depcomp" conftest.dir
4883 # We will build objects and dependencies in a subdirectory because
4884 # it helps to detect inapplicable dependency modes. For instance
4885 # both Tru64's cc and ICC support -MD to output dependencies as a
4886 # side effect of compilation, but ICC will put the dependencies in
4887 # the current directory while Tru64 will put them in the object
4891 am_cv_CXX_dependencies_compiler_type=none
4892 if test "$am_compiler_list" = ""; then
4893 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4895 for depmode in $am_compiler_list; do
4896 # Setup a source with many dependencies, because some compilers
4897 # like to wrap large dependency lists on column 80 (with \), and
4898 # we should not choose a depcomp mode which is confused by this.
4900 # We need to recreate these files for each test, as the compiler may
4901 # overwrite some of them when testing with obscure command lines.
4902 # This happens at least with the AIX C compiler.
4904 for i in 1 2 3 4 5 6; do
4905 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4906 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4907 # Solaris 8's {/usr,}/bin/sh.
4908 touch sub/conftst$i.h
4910 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4914 # after this tag, mechanisms are not by side-effect, so they'll
4915 # only be used when explicitly requested
4916 if test "x$enable_dependency_tracking" = xyes; then
4924 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4925 # mode. It turns out that the SunPro C++ compiler does not properly
4926 # handle `-M -o', and we need to detect this.
4927 if depmode=$depmode \
4928 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4930 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4931 >/dev/null 2>conftest.err &&
4932 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4933 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4934 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4935 # icc doesn't choke on unknown options, it will just issue warnings
4936 # or remarks (even with -Werror). So we grep stderr for any message
4937 # that says an option was ignored or not supported.
4938 # When given -MP, icc 7.0 and 7.1 complain thusly:
4939 # icc: Command line warning: ignoring option '-M'; no argument required
4940 # The diagnosis changed in icc 8.0:
4941 # icc: Command line remark: option '-MP' not supported
4942 if (grep 'ignoring option' conftest.err ||
4943 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4944 am_cv_CXX_dependencies_compiler_type=$depmode
4953 am_cv_CXX_dependencies_compiler_type=none
4957 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4958 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4959 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4964 test "x$enable_dependency_tracking" != xno \
4965 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4966 am__fastdepCXX_TRUE=
4967 am__fastdepCXX_FALSE='#'
4969 am__fastdepCXX_TRUE='#'
4970 am__fastdepCXX_FALSE=
4975 ac_cpp='$CXXCPP $CPPFLAGS'
4976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4979 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4980 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4981 if test -z "$CXXCPP"; then
4982 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 # Double quotes because CXXCPP needs to be expanded
4986 for CXXCPP in "$CXX -E" "/lib/cpp"
4989 for ac_cxx_preproc_warn_flag in '' yes
4991 # Use a header file that comes with gcc, so configuring glibc
4992 # with a fresh cross-compiler works.
4993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4994 # <limits.h> exists even on freestanding compilers.
4995 # On the NeXT, cc -E runs the code through the compiler's parser,
4996 # not just through cpp. "Syntax error" is here to catch this case.
4997 cat >conftest.$ac_ext <<_ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5004 @%:@ include <limits.h>
5006 @%:@ include <assert.h>
5010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } >/dev/null; then
5018 if test -s conftest.err; then
5019 ac_cpp_err=$ac_cxx_preproc_warn_flag
5020 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5027 if test -z "$ac_cpp_err"; then
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5033 # Broken: fails on valid input.
5036 rm -f conftest.err conftest.$ac_ext
5038 # OK, works on sane cases. Now check whether non-existent headers
5039 # can be detected and how.
5040 cat >conftest.$ac_ext <<_ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 @%:@include <ac_nonexistent.h>
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_cxx_preproc_warn_flag
5058 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5065 if test -z "$ac_cpp_err"; then
5066 # Broken: success on invalid input.
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 # Passes both tests.
5076 rm -f conftest.err conftest.$ac_ext
5079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5080 rm -f conftest.err conftest.$ac_ext
5081 if $ac_preproc_ok; then
5086 ac_cv_prog_CXXCPP=$CXXCPP
5089 CXXCPP=$ac_cv_prog_CXXCPP
5091 ac_cv_prog_CXXCPP=$CXXCPP
5093 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5094 echo "${ECHO_T}$CXXCPP" >&6
5096 for ac_cxx_preproc_warn_flag in '' yes
5098 # Use a header file that comes with gcc, so configuring glibc
5099 # with a fresh cross-compiler works.
5100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5101 # <limits.h> exists even on freestanding compilers.
5102 # On the NeXT, cc -E runs the code through the compiler's parser,
5103 # not just through cpp. "Syntax error" is here to catch this case.
5104 cat >conftest.$ac_ext <<_ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5111 @%:@ include <limits.h>
5113 @%:@ include <assert.h>
5117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } >/dev/null; then
5125 if test -s conftest.err; then
5126 ac_cpp_err=$ac_cxx_preproc_warn_flag
5127 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5134 if test -z "$ac_cpp_err"; then
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140 # Broken: fails on valid input.
5143 rm -f conftest.err conftest.$ac_ext
5145 # OK, works on sane cases. Now check whether non-existent headers
5146 # can be detected and how.
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 @%:@include <ac_nonexistent.h>
5155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5158 grep -v '^ *+' conftest.er1 >conftest.err
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } >/dev/null; then
5163 if test -s conftest.err; then
5164 ac_cpp_err=$ac_cxx_preproc_warn_flag
5165 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5172 if test -z "$ac_cpp_err"; then
5173 # Broken: success on invalid input.
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Passes both tests.
5183 rm -f conftest.err conftest.$ac_ext
5186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5187 rm -f conftest.err conftest.$ac_ext
5188 if $ac_preproc_ok; then
5191 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5192 See \`config.log' for more details." >&5
5193 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5194 See \`config.log' for more details." >&2;}
5195 { (exit 1); exit 1; }; }
5199 ac_cpp='$CXXCPP $CPPFLAGS'
5200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5207 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5209 if test -n "$ac_tool_prefix"; then
5210 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5214 echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216 if test "${ac_cv_prog_F77+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 if test -n "$F77"; then
5220 ac_cv_prog_F77="$F77" # Let the user override the test.
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 if test -n "$F77"; then
5240 echo "$as_me:$LINENO: result: $F77" >&5
5241 echo "${ECHO_T}$F77" >&6
5243 echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6
5247 test -n "$F77" && break
5250 if test -z "$F77"; then
5252 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5254 # Extract the first word of "$ac_prog", so it can be a program name with args.
5255 set dummy $ac_prog; ac_word=$2
5256 echo "$as_me:$LINENO: checking for $ac_word" >&5
5257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5258 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 if test -n "$ac_ct_F77"; then
5262 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_ac_ct_F77="$ac_prog"
5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5281 if test -n "$ac_ct_F77"; then
5282 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5283 echo "${ECHO_T}$ac_ct_F77" >&6
5285 echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5289 test -n "$ac_ct_F77" && break
5296 # Provide some information about the compiler.
5297 echo "$as_me:__oline__:" \
5298 "checking for Fortran 77 compiler version" >&5
5299 ac_compiler=`set X $ac_compile; echo $2`
5300 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5301 (eval $ac_compiler --version </dev/null >&5) 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5306 (eval $ac_compiler -v </dev/null >&5) 2>&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }
5310 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5311 (eval $ac_compiler -V </dev/null >&5) 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5317 # If we don't use `.F' as extension, the preprocessor is not run on the
5318 # input file. (Note that this only needs to work for GNU compilers.)
5321 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5322 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5323 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 cat >conftest.$ac_ext <<_ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336 (eval $ac_compile) 2>conftest.er1
5338 grep -v '^ *+' conftest.er1 >conftest.err
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; } &&
5349 { ac_try='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5366 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5367 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5369 ac_test_FFLAGS=${FFLAGS+set}
5370 ac_save_FFLAGS=$FFLAGS
5372 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5373 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5374 if test "${ac_cv_prog_f77_g+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.$ac_ext <<_ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; } &&
5398 { ac_try='test -s conftest.$ac_objext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_cv_prog_f77_g=yes
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5414 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5415 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5416 if test "$ac_test_FFLAGS" = set; then
5417 FFLAGS=$ac_save_FFLAGS
5418 elif test $ac_cv_prog_f77_g = yes; then
5419 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5425 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5432 G77=`test $ac_compiler_gnu = yes && echo yes`
5434 ac_cpp='$CPP $CPPFLAGS'
5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5443 # find the maximum length of command line arguments
5444 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5445 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5446 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 # On DJGPP, this test can blow up pretty badly due to problems in libc
5455 # (any single argument exceeding 2000 bytes causes a buffer overrun
5456 # during glob expansion). Even if it were fixed, the result of this
5457 # check would be larger than it should be.
5458 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5462 # Under GNU Hurd, this test is not required because there is
5463 # no limit to the length of command line arguments.
5464 # Libtool will interpret -1 as no limit whatsoever
5465 lt_cv_sys_max_cmd_len=-1;
5469 # On Win9x/ME, this test blows up -- it succeeds, but takes
5470 # about 5 minutes as the teststring grows exponentially.
5471 # Worse, since 9x/ME are not pre-emptively multitasking,
5472 # you end up with a "frozen" computer, even though with patience
5473 # the test eventually succeeds (with a max line length of 256k).
5474 # Instead, let's just punt: use the minimum linelength reported by
5475 # all of the supported platforms: 8192 (on NT/2K/XP).
5476 lt_cv_sys_max_cmd_len=8192;
5480 # On AmigaOS with pdksh, this test takes hours, literally.
5481 # So we just punt and use a minimum line length of 8192.
5482 lt_cv_sys_max_cmd_len=8192;
5486 # If test is not a shell built-in, we'll probably end up computing a
5487 # maximum length that is only half of the actual maximum length, but
5489 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5490 = "XX$teststring") >/dev/null 2>&1 &&
5491 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5492 lt_cv_sys_max_cmd_len=$new_result &&
5493 test $i != 17 # 1/2 MB should be enough
5496 teststring=$teststring$teststring
5499 # Add a significant safety factor because C++ compilers can tack on massive
5500 # amounts of additional arguments before passing them to the linker.
5501 # It appears as though 1/2 is a usable value.
5502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5508 if test -n $lt_cv_sys_max_cmd_len ; then
5509 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5510 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5512 echo "$as_me:$LINENO: result: none" >&5
5513 echo "${ECHO_T}none" >&6
5519 # Check for command to grab the raw symbol name followed by C symbol from nm.
5520 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5521 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5522 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 # These are sane defaults that work on at least a few old systems.
5527 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5529 # Character class describing NM global symbol codes.
5530 symcode='[BCDEGRST]'
5532 # Regexp to match symbols that can be accessed directly from C.
5533 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5535 # Transform the above into a raw symbol and a C symbol.
5536 symxfrm='\1 \2\3 \3'
5538 # Transform an extracted symbol line into a proper C declaration
5539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5541 # Transform an extracted symbol line into symbol name and symbol address
5542 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'"
5544 # Define system-specific variables.
5549 cygwin* | mingw* | pw32*)
5550 symcode='[ABCDGISTW]'
5552 hpux*) # Its linker distinguishes data from code symbols
5553 if test "$host_cpu" = ia64; then
5554 symcode='[ABCDEGRST]'
5556 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5557 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'"
5560 symcode='[BCDEGRST]'
5563 symcode='[BCDEGQRST]'
5573 # Handle CRLF in mingw tool chain
5577 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5581 # If we're using GNU nm, then use its standard symbol codes.
5582 case `$NM -V 2>&1` in
5583 *GNU* | *'with BFD'*)
5584 symcode='[ABCDGIRSTW]' ;;
5587 # Try without a prefix undercore, then with it.
5588 for ac_symprfx in "" "_"; do
5590 # Write the raw and C identifiers.
5591 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5593 # Check to see that the pipe works correctly.
5597 cat > conftest.$ac_ext <<EOF
5602 void nm_test_func(){}
5606 int main(){nm_test_var='a';nm_test_func();return(0);}
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; then
5614 # Now try to grab the symbols.
5616 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5617 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && test -s "$nlist"; then
5621 # Try sorting and uniquifying the output.
5622 if sort "$nlist" | uniq > "$nlist"T; then
5623 mv -f "$nlist"T "$nlist"
5628 # Make sure that we snagged all the symbols we need.
5629 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5630 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5631 cat <<EOF > conftest.$ac_ext
5637 # Now generate the symbol file.
5638 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5640 cat <<EOF >> conftest.$ac_ext
5641 #if defined (__STDC__) && __STDC__
5642 # define lt_ptr_t void *
5644 # define lt_ptr_t char *
5648 /* The mapping between symbol names and symbols. */
5653 lt_preloaded_symbols[] =
5656 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5657 cat <<\EOF >> conftest.$ac_ext
5665 # Now try linking the two files.
5666 mv conftest.$ac_objext conftstm.$ac_objext
5667 lt_save_LIBS="$LIBS"
5668 lt_save_CFLAGS="$CFLAGS"
5669 LIBS="conftstm.$ac_objext"
5670 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 (eval $ac_link) 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5678 LIBS="$lt_save_LIBS"
5679 CFLAGS="$lt_save_CFLAGS"
5681 echo "cannot find nm_test_func in $nlist" >&5
5684 echo "cannot find nm_test_var in $nlist" >&5
5687 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5690 echo "$progname: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5693 rm -f conftest* conftst*
5695 # Do not use the global_symbol_pipe unless it works.
5696 if test "$pipe_works" = yes; then
5699 lt_cv_sys_global_symbol_pipe=
5705 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5706 lt_cv_sys_global_symbol_to_cdecl=
5708 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5709 echo "$as_me:$LINENO: result: failed" >&5
5710 echo "${ECHO_T}failed" >&6
5712 echo "$as_me:$LINENO: result: ok" >&5
5713 echo "${ECHO_T}ok" >&6
5716 echo "$as_me:$LINENO: checking for objdir" >&5
5717 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5718 if test "${lt_cv_objdir+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 rm -f .libs 2>/dev/null
5722 mkdir .libs 2>/dev/null
5723 if test -d .libs; then
5726 # MS-DOS does not allow filenames that begin with a dot.
5729 rmdir .libs 2>/dev/null
5731 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5732 echo "${ECHO_T}$lt_cv_objdir" >&6
5733 objdir=$lt_cv_objdir
5741 # AIX sometimes has problems with the GCC collect2 program. For some
5742 # reason, if we set the COLLECT_NAMES environment variable, the problems
5743 # vanish in a puff of smoke.
5744 if test "X${COLLECT_NAMES+set}" != Xset; then
5746 export COLLECT_NAMES
5751 # Sed substitution that helps us do robust quoting. It backslashifies
5752 # metacharacters that are still active within double-quoted strings.
5753 Xsed='sed -e s/^X//'
5754 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5756 # Same as above, but do not quote variable references.
5757 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5759 # Sed substitution to delay expansion of an escaped shell variable in a
5760 # double_quote_subst'ed string.
5761 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5763 # Sed substitution to avoid accidental globbing in evaled expressions
5764 no_glob_subst='s/\*/\\\*/g'
5770 default_ofile=libtool
5771 can_build_shared=yes
5773 # All known linkers require a `.a' archive for static linking (except M$VC,
5774 # which needs '.lib').
5776 ltmain="$ac_aux_dir/ltmain.sh"
5777 ofile="$default_ofile"
5778 with_gnu_ld="$lt_cv_prog_gnu_ld"
5780 if test -n "$ac_tool_prefix"; then
5781 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5782 set dummy ${ac_tool_prefix}ar; ac_word=$2
5783 echo "$as_me:$LINENO: checking for $ac_word" >&5
5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5785 if test "${ac_cv_prog_AR+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 if test -n "$AR"; then
5789 ac_cv_prog_AR="$AR" # Let the user override the test.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_prog_AR="${ac_tool_prefix}ar"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 if test -n "$AR"; then
5809 echo "$as_me:$LINENO: result: $AR" >&5
5810 echo "${ECHO_T}$AR" >&6
5812 echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5817 if test -z "$ac_cv_prog_AR"; then
5819 # Extract the first word of "ar", so it can be a program name with args.
5820 set dummy ar; ac_word=$2
5821 echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 if test -n "$ac_ct_AR"; then
5827 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_ac_ct_AR="ar"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5846 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5847 if test -n "$ac_ct_AR"; then
5848 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5849 echo "${ECHO_T}$ac_ct_AR" >&6
5851 echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6
5860 if test -n "$ac_tool_prefix"; then
5861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5862 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_RANLIB+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 if test -n "$RANLIB"; then
5869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 RANLIB=$ac_cv_prog_RANLIB
5888 if test -n "$RANLIB"; then
5889 echo "$as_me:$LINENO: result: $RANLIB" >&5
5890 echo "${ECHO_T}$RANLIB" >&6
5892 echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5897 if test -z "$ac_cv_prog_RANLIB"; then
5898 ac_ct_RANLIB=$RANLIB
5899 # Extract the first word of "ranlib", so it can be a program name with args.
5900 set dummy ranlib; ac_word=$2
5901 echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 if test -n "$ac_ct_RANLIB"; then
5907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_ac_ct_RANLIB="ranlib"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5926 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5927 if test -n "$ac_ct_RANLIB"; then
5928 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5929 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5931 echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5935 RANLIB=$ac_ct_RANLIB
5937 RANLIB="$ac_cv_prog_RANLIB"
5940 if test -n "$ac_tool_prefix"; then
5941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5942 set dummy ${ac_tool_prefix}strip; ac_word=$2
5943 echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945 if test "${ac_cv_prog_STRIP+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$STRIP"; then
5949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 STRIP=$ac_cv_prog_STRIP
5968 if test -n "$STRIP"; then
5969 echo "$as_me:$LINENO: result: $STRIP" >&5
5970 echo "${ECHO_T}$STRIP" >&6
5972 echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5977 if test -z "$ac_cv_prog_STRIP"; then
5979 # Extract the first word of "strip", so it can be a program name with args.
5980 set dummy strip; ac_word=$2
5981 echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5983 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 if test -n "$ac_ct_STRIP"; then
5987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996 ac_cv_prog_ac_ct_STRIP="strip"
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6006 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6007 if test -n "$ac_ct_STRIP"; then
6008 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6009 echo "${ECHO_T}$ac_ct_STRIP" >&6
6011 echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6
6017 STRIP="$ac_cv_prog_STRIP"
6022 old_CFLAGS="$CFLAGS"
6024 # Set sane defaults for various variables
6025 test -z "$AR" && AR=ar
6026 test -z "$AR_FLAGS" && AR_FLAGS=cru
6027 test -z "$AS" && AS=as
6028 test -z "$CC" && CC=cc
6029 test -z "$LTCC" && LTCC=$CC
6030 test -z "$DLLTOOL" && DLLTOOL=dlltool
6031 test -z "$LD" && LD=ld
6032 test -z "$LN_S" && LN_S="ln -s"
6033 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6034 test -z "$NM" && NM=nm
6035 test -z "$SED" && SED=sed
6036 test -z "$OBJDUMP" && OBJDUMP=objdump
6037 test -z "$RANLIB" && RANLIB=:
6038 test -z "$STRIP" && STRIP=:
6039 test -z "$ac_objext" && ac_objext=o
6041 # Determine commands to create old-style static archives.
6042 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6043 old_postinstall_cmds='chmod 644 $oldlib'
6044 old_postuninstall_cmds=
6046 if test -n "$RANLIB"; then
6049 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6052 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6055 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6058 # Only perform the check for file, if the check method requires it
6059 case $deplibs_check_method in
6061 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6062 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6063 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6064 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6072 lt_save_MAGIC_CMD="$MAGIC_CMD"
6073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6075 for ac_dir in $ac_dummy; do
6077 test -z "$ac_dir" && ac_dir=.
6078 if test -f $ac_dir/${ac_tool_prefix}file; then
6079 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6080 if test -n "$file_magic_test_file"; then
6081 case $deplibs_check_method in
6083 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6086 $EGREP "$file_magic_regex" > /dev/null; then
6091 *** Warning: the command libtool uses to detect shared libraries,
6092 *** $file_magic_cmd, produces output that libtool cannot recognize.
6093 *** The result is that libtool may fail to recognize shared libraries
6094 *** as such. This will affect the creation of libtool libraries that
6095 *** depend on shared libraries, but programs linked with such libtool
6096 *** libraries will work regardless of this problem. Nevertheless, you
6097 *** may want to report the problem to your system manager and/or to
6098 *** bug-libtool@gnu.org
6108 MAGIC_CMD="$lt_save_MAGIC_CMD"
6113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6114 if test -n "$MAGIC_CMD"; then
6115 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6116 echo "${ECHO_T}$MAGIC_CMD" >&6
6118 echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6
6122 if test -z "$lt_cv_path_MAGIC_CMD"; then
6123 if test -n "$ac_tool_prefix"; then
6124 echo "$as_me:$LINENO: checking for file" >&5
6125 echo $ECHO_N "checking for file... $ECHO_C" >&6
6126 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6134 lt_save_MAGIC_CMD="$MAGIC_CMD"
6135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6137 for ac_dir in $ac_dummy; do
6139 test -z "$ac_dir" && ac_dir=.
6140 if test -f $ac_dir/file; then
6141 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6142 if test -n "$file_magic_test_file"; then
6143 case $deplibs_check_method in
6145 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6148 $EGREP "$file_magic_regex" > /dev/null; then
6153 *** Warning: the command libtool uses to detect shared libraries,
6154 *** $file_magic_cmd, produces output that libtool cannot recognize.
6155 *** The result is that libtool may fail to recognize shared libraries
6156 *** as such. This will affect the creation of libtool libraries that
6157 *** depend on shared libraries, but programs linked with such libtool
6158 *** libraries will work regardless of this problem. Nevertheless, you
6159 *** may want to report the problem to your system manager and/or to
6160 *** bug-libtool@gnu.org
6170 MAGIC_CMD="$lt_save_MAGIC_CMD"
6175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6176 if test -n "$MAGIC_CMD"; then
6177 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6178 echo "${ECHO_T}$MAGIC_CMD" >&6
6180 echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6
6196 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6197 if test "${enable_libtool_lock+set}" = set; then
6198 enableval="$enable_libtool_lock"
6201 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6204 # Check whether --with-pic or --without-pic was given.
6205 if test "${with_pic+set}" = set; then
6211 test -z "$pic_mode" && pic_mode=default
6213 # Use C for the default configuration in the libtool script
6217 ac_cpp='$CPP $CPPFLAGS'
6218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6223 # Source file extension for C test sources.
6226 # Object file extension for compiled C test sources.
6230 # Code to be used in simple compile tests
6231 lt_simple_compile_test_code="int some_variable = 0;\n"
6233 # Code to be used in simple link tests
6234 lt_simple_link_test_code='int main(){return(0);}\n'
6237 # If no C compiler was specified, use CC.
6240 # Allow CC to be a program name with arguments.
6245 # Check for any special shared library compilation flags.
6248 if test "$GCC" = no; then
6251 lt_prog_cc_shlib='-belf'
6255 if test -n "$lt_prog_cc_shlib"; then
6256 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6257 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6258 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6260 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6261 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6262 lt_cv_prog_cc_can_build_shared=no
6268 # Check to make sure the static flag actually works.
6270 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6271 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6272 if test "${lt_prog_compiler_static_works+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 lt_prog_compiler_static_works=no
6276 save_LDFLAGS="$LDFLAGS"
6277 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6278 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6279 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6280 # The compiler can only warn and ignore the option if not recognized
6281 # So say no if there are warnings
6282 if test -s conftest.err; then
6283 # Append any errors to the config.log.
6284 cat conftest.err 1>&5
6286 lt_prog_compiler_static_works=yes
6290 LDFLAGS="$save_LDFLAGS"
6293 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6294 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6296 if test x"$lt_prog_compiler_static_works" = xyes; then
6299 lt_prog_compiler_static=
6305 ## There is no encapsulation within the following macros, do not change
6306 ## the running order or otherwise move them around unless you know exactly
6307 ## what you are doing...
6309 lt_prog_compiler_no_builtin_flag=
6311 if test "$GCC" = yes; then
6312 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6315 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6316 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6317 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 lt_cv_prog_compiler_rtti_exceptions=no
6321 ac_outfile=conftest.$ac_objext
6322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6323 lt_compiler_flag="-fno-rtti -fno-exceptions"
6324 # Insert the option either (1) after the last *FLAGS variable, or
6325 # (2) before a word containing "conftest.", or (3) at the end.
6326 # Note that $ac_compile itself does not contain backslashes and begins
6327 # with a dollar sign (not a hyphen), so the echo should work correctly.
6328 # The option is referenced via a variable to avoid confusing sed.
6329 lt_compile=`echo "$ac_compile" | $SED \
6330 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6332 -e 's:$: $lt_compiler_flag:'`
6333 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6334 (eval "$lt_compile" 2>conftest.err)
6336 cat conftest.err >&5
6337 echo "$as_me:__oline__: \$? = $ac_status" >&5
6338 if (exit $ac_status) && test -s "$ac_outfile"; then
6339 # The compiler can only warn and ignore the option if not recognized
6340 # So say no if there are warnings
6341 if test ! -s conftest.err; then
6342 lt_cv_prog_compiler_rtti_exceptions=yes
6348 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6349 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6351 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6352 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6359 lt_prog_compiler_wl=
6360 lt_prog_compiler_pic=
6361 lt_prog_compiler_static=
6363 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6364 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6366 if test "$GCC" = yes; then
6367 lt_prog_compiler_wl='-Wl,'
6368 lt_prog_compiler_static='-static'
6372 # All AIX code is PIC.
6373 if test "$host_cpu" = ia64; then
6374 # AIX 5 now supports IA64 processor
6375 lt_prog_compiler_static='-Bstatic'
6380 # FIXME: we need at least 68020 code to build shared libraries, but
6381 # adding the `-m68020' flag to GCC prevents building anything better,
6383 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6386 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6387 # PIC is the default for these OSes.
6390 mingw* | pw32* | os2*)
6391 # This hack is so that the source file can tell whether it is being
6392 # built for inclusion in a dll (and should export symbols for example).
6393 lt_prog_compiler_pic='-DDLL_EXPORT'
6396 darwin* | rhapsody*)
6397 # PIC is the default on this platform
6398 # Common symbols not allowed in MH_DYLIB files
6399 lt_prog_compiler_pic='-fno-common'
6403 # Just because we use GCC doesn't mean we suddenly get shared libraries
6404 # on systems that don't support them.
6405 lt_prog_compiler_can_build_shared=no
6410 if test -d /usr/nec; then
6411 lt_prog_compiler_pic=-Kconform_pic
6416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6423 lt_prog_compiler_pic='-fPIC'
6429 lt_prog_compiler_pic='-fPIC'
6433 # PORTME Check for flag to pass linker flags through the system compiler.
6436 lt_prog_compiler_wl='-Wl,'
6437 if test "$host_cpu" = ia64; then
6438 # AIX 5 now supports IA64 processor
6439 lt_prog_compiler_static='-Bstatic'
6441 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6445 mingw* | pw32* | os2*)
6446 # This hack is so that the source file can tell whether it is being
6447 # built for inclusion in a dll (and should export symbols for example).
6448 lt_prog_compiler_pic='-DDLL_EXPORT'
6451 hpux9* | hpux10* | hpux11*)
6452 lt_prog_compiler_wl='-Wl,'
6453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6460 lt_prog_compiler_pic='+Z'
6463 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6464 lt_prog_compiler_static='${wl}-a ${wl}archive'
6467 irix5* | irix6* | nonstopux*)
6468 lt_prog_compiler_wl='-Wl,'
6469 # PIC (with -KPIC) is the default.
6470 lt_prog_compiler_static='-non_shared'
6474 lt_prog_compiler_pic='-KPIC'
6475 lt_prog_compiler_static='-Bstatic'
6481 lt_prog_compiler_wl='-Wl,'
6482 lt_prog_compiler_pic='-KPIC'
6483 lt_prog_compiler_static='-static'
6486 lt_prog_compiler_wl='-Wl,'
6487 # All Alpha code is PIC.
6488 lt_prog_compiler_static='-non_shared'
6493 osf3* | osf4* | osf5*)
6494 lt_prog_compiler_wl='-Wl,'
6495 # All OSF/1 code is PIC.
6496 lt_prog_compiler_static='-non_shared'
6500 lt_prog_compiler_pic='-Kpic'
6501 lt_prog_compiler_static='-dn'
6505 lt_prog_compiler_wl='-Wl,'
6506 lt_prog_compiler_pic='-KPIC'
6507 lt_prog_compiler_static='-Bstatic'
6511 lt_prog_compiler_wl='-Qoption ld '
6512 lt_prog_compiler_pic='-PIC'
6513 lt_prog_compiler_static='-Bstatic'
6516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6517 lt_prog_compiler_wl='-Wl,'
6518 lt_prog_compiler_pic='-KPIC'
6519 lt_prog_compiler_static='-Bstatic'
6523 if test -d /usr/nec ;then
6524 lt_prog_compiler_pic='-Kconform_pic'
6525 lt_prog_compiler_static='-Bstatic'
6530 lt_prog_compiler_pic='-pic'
6531 lt_prog_compiler_static='-Bstatic'
6535 lt_prog_compiler_can_build_shared=no
6540 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6541 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6544 # Check to make sure the PIC flag actually works.
6546 if test -n "$lt_prog_compiler_pic"; then
6548 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6549 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6550 if test "${lt_prog_compiler_pic_works+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 lt_prog_compiler_pic_works=no
6554 ac_outfile=conftest.$ac_objext
6555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6556 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6557 # Insert the option either (1) after the last *FLAGS variable, or
6558 # (2) before a word containing "conftest.", or (3) at the end.
6559 # Note that $ac_compile itself does not contain backslashes and begins
6560 # with a dollar sign (not a hyphen), so the echo should work correctly.
6561 # The option is referenced via a variable to avoid confusing sed.
6562 lt_compile=`echo "$ac_compile" | $SED \
6563 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6565 -e 's:$: $lt_compiler_flag:'`
6566 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6567 (eval "$lt_compile" 2>conftest.err)
6569 cat conftest.err >&5
6570 echo "$as_me:__oline__: \$? = $ac_status" >&5
6571 if (exit $ac_status) && test -s "$ac_outfile"; then
6572 # The compiler can only warn and ignore the option if not recognized
6573 # So say no if there are warnings
6574 if test ! -s conftest.err; then
6575 lt_prog_compiler_pic_works=yes
6581 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6582 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6584 if test x"$lt_prog_compiler_pic_works" = xyes; then
6585 case $lt_prog_compiler_pic in
6587 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6590 lt_prog_compiler_pic=
6591 lt_prog_compiler_can_build_shared=no
6596 # For platforms which do not support PIC, -DPIC is meaningless:
6598 lt_prog_compiler_pic=
6601 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6605 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6606 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6607 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 lt_cv_prog_compiler_c_o=no
6611 $rm -r conftest 2>/dev/null
6615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6617 lt_compiler_flag="-o out/conftest2.$ac_objext"
6618 # Insert the option either (1) after the last *FLAGS variable, or
6619 # (2) before a word containing "conftest.", or (3) at the end.
6620 # Note that $ac_compile itself does not contain backslashes and begins
6621 # with a dollar sign (not a hyphen), so the echo should work correctly.
6622 lt_compile=`echo "$ac_compile" | $SED \
6623 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6625 -e 's:$: $lt_compiler_flag:'`
6626 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6627 (eval "$lt_compile" 2>out/conftest.err)
6629 cat out/conftest.err >&5
6630 echo "$as_me:__oline__: \$? = $ac_status" >&5
6631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6633 # The compiler can only warn and ignore the option if not recognized
6634 # So say no if there are warnings
6635 if test ! -s out/conftest.err; then
6636 lt_cv_prog_compiler_c_o=yes
6641 # SGI C++ compiler will create directory out/ii_files/ for
6642 # template instantiation
6643 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6644 $rm out/* && rmdir out
6650 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6651 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6654 hard_links="nottested"
6655 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6656 # do not overwrite the value of need_locks provided by the user
6657 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6658 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6663 ln conftest.a conftest.b 2>&5 || hard_links=no
6664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6665 echo "$as_me:$LINENO: result: $hard_links" >&5
6666 echo "${ECHO_T}$hard_links" >&6
6667 if test "$hard_links" = no; then
6668 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6669 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6676 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6677 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6680 allow_undefined_flag=
6681 enable_shared_with_static_runtimes=no
6683 archive_expsym_cmds=
6684 old_archive_From_new_cmds=
6685 old_archive_from_expsyms_cmds=
6686 export_dynamic_flag_spec=
6687 whole_archive_flag_spec=
6688 thread_safe_flag_spec=
6689 hardcode_libdir_flag_spec=
6690 hardcode_libdir_flag_spec_ld=
6691 hardcode_libdir_separator=
6694 hardcode_shlibpath_var=unsupported
6695 link_all_deplibs=unknown
6696 hardcode_automatic=no
6699 always_export_symbols=no
6700 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6701 # include_expsyms should be a list of space-separated symbols to be *always*
6702 # included in the symbol list
6704 # exclude_expsyms can be an extended regexp of symbols to exclude
6705 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6706 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6707 # as well as any symbol that contains `d'.
6708 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6709 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6710 # platforms (ab)use it in PIC code, but their linkers get confused if
6711 # the symbol is explicitly referenced. Since portable code cannot
6712 # rely on this symbol name, it's probably fine to never include it in
6713 # preloaded symbol tables.
6714 extract_expsyms_cmds=
6717 cygwin* | mingw* | pw32*)
6718 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6719 # When not using gcc, we currently assume that we are using
6720 # Microsoft Visual C++.
6721 if test "$GCC" != yes; then
6731 if test "$with_gnu_ld" = yes; then
6732 # If archive_cmds runs LD, not CC, wlarc should be empty
6735 # See if GNU ld supports shared libraries.
6737 aix3* | aix4* | aix5*)
6738 # On AIX/PPC, the GNU linker is very broken
6739 if test "$host_cpu" != ia64; then
6743 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6744 *** to be unable to reliably create shared libraries on AIX.
6745 *** Therefore, libtool is disabling shared libraries support. If you
6746 *** really care for shared libraries, you may want to modify your PATH
6747 *** so that a non-GNU linker is found, and then restart.
6754 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)'
6755 hardcode_libdir_flag_spec='-L$libdir'
6756 hardcode_minus_L=yes
6758 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6759 # that the semantics of dynamic libraries on AmigaOS, at least up
6760 # to version 4, is to share data among multiple programs linked
6761 # with the same dynamic library. Since this doesn't match the
6762 # behavior of shared libraries on other platforms, we can't use
6768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6769 allow_undefined_flag=unsupported
6770 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6771 # support --undefined. This deserves some investigation. FIXME
6772 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6778 cygwin* | mingw* | pw32*)
6779 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6780 # as there is no search path for DLLs.
6781 hardcode_libdir_flag_spec='-L$libdir'
6782 allow_undefined_flag=unsupported
6783 always_export_symbols=no
6784 enable_shared_with_static_runtimes=yes
6785 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6787 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6789 # If the export-symbols file already is a .def file (1st line
6790 # is EXPORTS), use it as is; otherwise, prepend...
6791 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6792 cp $export_symbols $output_objdir/$soname.def;
6794 echo EXPORTS > $output_objdir/$soname.def;
6795 cat $export_symbols >> $output_objdir/$soname.def;
6797 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6803 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6805 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6814 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6819 *** create shared libraries on Solaris systems. Therefore, libtool
6820 *** is disabling shared libraries support. We urge you to upgrade GNU
6821 *** binutils to release 2.9.1 or newer. Another option is to modify
6822 *** your PATH or compiler configuration so that the native linker is
6823 *** used, and then restart.
6826 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6835 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6838 hardcode_shlibpath_var=no
6842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6843 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6844 archive_cmds="$tmp_archive_cmds"
6845 supports_anon_versioning=no
6846 case `$LD -v 2>/dev/null` in
6847 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6848 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6849 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6850 *\ 2.11.*) ;; # other 2.11 versions
6851 *) supports_anon_versioning=yes ;;
6853 if test $supports_anon_versioning = yes; then
6854 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6856 $echo "local: *; };" >> $output_objdir/$libname.ver~
6857 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6859 archive_expsym_cmds="$tmp_archive_cmds"
6868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6877 if test "$ld_shlibs" = yes; then
6878 runpath_var=LD_RUN_PATH
6879 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6880 export_dynamic_flag_spec='${wl}--export-dynamic'
6881 # ancient GNU ld didn't support --whole-archive et. al.
6882 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6883 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6885 whole_archive_flag_spec=
6889 # PORTME fill in a description of your system's linker (not GNU ld)
6892 allow_undefined_flag=unsupported
6893 always_export_symbols=yes
6894 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'
6895 # Note: this linker hardcodes the directories in LIBPATH if there
6896 # are no directories specified by -L.
6897 hardcode_minus_L=yes
6898 if test "$GCC" = yes && test -z "$link_static_flag"; then
6899 # Neither direct hardcoding nor static linking is supported with a
6901 hardcode_direct=unsupported
6906 if test "$host_cpu" = ia64; then
6907 # On IA64, the linker does run time linking by default, so we don't
6908 # have to do anything special.
6909 aix_use_runtimelinking=no
6910 exp_sym_flag='-Bexport'
6913 # If we're using GNU nm, then we don't want the "-C" option.
6914 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6915 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6916 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'
6918 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'
6920 aix_use_runtimelinking=no
6922 # Test if we are trying to use run time linking or normal
6923 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6924 # need to do runtime linking.
6925 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6926 for ld_flag in $LDFLAGS; do
6927 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6928 aix_use_runtimelinking=yes
6934 exp_sym_flag='-bexport'
6935 no_entry_flag='-bnoentry'
6938 # When large executables or shared objects are built, AIX ld can
6939 # have problems creating the table of contents. If linking a library
6940 # or program results in "error TOC overflow" add -mminimal-toc to
6941 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6942 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6946 hardcode_libdir_separator=':'
6947 link_all_deplibs=yes
6949 if test "$GCC" = yes; then
6950 case $host_os in aix4.012|aix4.012.*)
6951 # We only want to do this on AIX 4.2 and lower, the check
6952 # below for broken collect2 doesn't work under 4.3+
6953 collect2name=`${CC} -print-prog-name=collect2`
6954 if test -f "$collect2name" && \
6955 strings "$collect2name" | grep resolve_lib_name >/dev/null
6957 # We have reworked collect2
6960 # We have old collect2
6961 hardcode_direct=unsupported
6962 # It fails to find uninstalled libraries when the uninstalled
6963 # path is not listed in the libpath. Setting hardcode_minus_L
6964 # to unsupported forces relinking
6965 hardcode_minus_L=yes
6966 hardcode_libdir_flag_spec='-L$libdir'
6967 hardcode_libdir_separator=
6970 shared_flag='-shared'
6973 if test "$host_cpu" = ia64; then
6974 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6975 # chokes on -Wl,-G. The following line is correct:
6978 if test "$aix_use_runtimelinking" = yes; then
6979 shared_flag='${wl}-G'
6981 shared_flag='${wl}-bM:SRE'
6986 # It seems that -bexpall does not export symbols beginning with
6987 # underscore (_), so it is better to generate a list of symbols to export.
6988 always_export_symbols=yes
6989 if test "$aix_use_runtimelinking" = yes; then
6990 # Warning - without using the other runtime loading flags (-brtl),
6991 # -berok will link without error, but may produce a broken library.
6992 allow_undefined_flag='-berok'
6993 # Determine the default libpath from the value encoded in an empty executable.
6994 cat >conftest.$ac_ext <<_ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7009 rm -f conftest.$ac_objext conftest$ac_exeext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7011 (eval $ac_link) 2>conftest.er1
7013 grep -v '^ *+' conftest.er1 >conftest.err
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest$ac_exeext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7033 # Check for a 64-bit object if we didn't find anything.
7034 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; }
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7041 rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7045 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7046 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"
7048 if test "$host_cpu" = ia64; then
7049 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7050 allow_undefined_flag="-z nodefs"
7051 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"
7053 # Determine the default libpath from the value encoded in an empty executable.
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7069 rm -f conftest.$ac_objext conftest$ac_exeext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071 (eval $ac_link) 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7093 # Check for a 64-bit object if we didn't find anything.
7094 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; }
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7101 rm -f conftest.err conftest.$ac_objext \
7102 conftest$ac_exeext conftest.$ac_ext
7103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7105 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7106 # Warning - without using the other run time loading flags,
7107 # -berok will link without error, but may produce a broken library.
7108 no_undefined_flag=' ${wl}-bernotok'
7109 allow_undefined_flag=' ${wl}-berok'
7110 # -bexpall does not export symbols beginning with underscore (_)
7111 always_export_symbols=yes
7112 # Exported symbols can be pulled into shared objects from archives
7113 whole_archive_flag_spec=' '
7114 archive_cmds_need_lc=yes
7115 # This is similar to how AIX traditionally builds it's shared libraries.
7116 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'
7122 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)'
7123 hardcode_libdir_flag_spec='-L$libdir'
7124 hardcode_minus_L=yes
7125 # see comment about different semantics on the GNU ld section
7130 export_dynamic_flag_spec=-rdynamic
7133 cygwin* | mingw* | pw32*)
7134 # When not using gcc, we currently assume that we are using
7135 # Microsoft Visual C++.
7136 # hardcode_libdir_flag_spec is actually meaningless, as there is
7137 # no search path for DLLs.
7138 hardcode_libdir_flag_spec=' '
7139 allow_undefined_flag=unsupported
7140 # Tell ltmain to make .lib files, not .a files.
7142 # Tell ltmain to make .dll files, not .so files.
7144 # FIXME: Setting linknames here is a bad hack.
7145 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7146 # The linker will automatically build a .lib file if we build a DLL.
7147 old_archive_From_new_cmds='true'
7148 # FIXME: Should let the user specify the lib program.
7149 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7150 fix_srcfile_path='`cygpath -w "$srcfile"`'
7151 enable_shared_with_static_runtimes=yes
7154 darwin* | rhapsody*)
7155 if test "$GXX" = yes ; then
7156 archive_cmds_need_lc=no
7158 rhapsody* | darwin1.[012])
7159 allow_undefined_flag='-undefined suppress'
7162 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7163 allow_undefined_flag='-flat_namespace -undefined suppress'
7165 case ${MACOSX_DEPLOYMENT_TARGET} in
7167 allow_undefined_flag='-flat_namespace -undefined suppress'
7170 allow_undefined_flag='-undefined dynamic_lookup'
7176 lt_int_apple_cc_single_mod=no
7177 output_verbose_link_cmd='echo'
7178 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7179 lt_int_apple_cc_single_mod=yes
7181 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7182 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7184 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'
7186 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7188 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7189 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}'
7191 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}'
7193 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}'
7195 hardcode_automatic=yes
7196 hardcode_shlibpath_var=unsupported
7197 whole_archive_flag_spec='-all_load $convenience'
7198 link_all_deplibs=yes
7205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7206 hardcode_libdir_flag_spec='-L$libdir'
7207 hardcode_shlibpath_var=no
7214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7215 # support. Future versions do this automatically, but an explicit c++rt0.o
7216 # does not break anything, and helps significantly (at the cost of a little
7219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7220 hardcode_libdir_flag_spec='-R$libdir'
7222 hardcode_shlibpath_var=no
7225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7229 hardcode_minus_L=yes
7230 hardcode_shlibpath_var=no
7233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7234 freebsd* | kfreebsd*-gnu)
7235 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7236 hardcode_libdir_flag_spec='-R$libdir'
7238 hardcode_shlibpath_var=no
7242 if test "$GCC" = yes; then
7243 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'
7245 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'
7247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7248 hardcode_libdir_separator=:
7251 # hardcode_minus_L: Not really in the search PATH,
7252 # but as the default location of the library.
7253 hardcode_minus_L=yes
7254 export_dynamic_flag_spec='${wl}-E'
7258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7261 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7270 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7273 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7277 if test "$with_gnu_ld" = no; then
7280 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7281 hardcode_libdir_flag_spec_ld='+b $libdir'
7282 hardcode_libdir_separator=:
7284 hardcode_shlibpath_var=no
7287 hardcode_libdir_flag_spec='-L$libdir'
7289 hardcode_shlibpath_var=no
7291 # hardcode_minus_L: Not really in the search PATH,
7292 # but as the default location of the library.
7293 hardcode_minus_L=yes
7296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7297 hardcode_libdir_separator=:
7299 export_dynamic_flag_spec='${wl}-E'
7301 # hardcode_minus_L: Not really in the search PATH,
7302 # but as the default location of the library.
7303 hardcode_minus_L=yes
7309 irix5* | irix6* | nonstopux*)
7310 if test "$GCC" = yes; then
7311 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'
7313 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'
7314 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7317 hardcode_libdir_separator=:
7318 link_all_deplibs=yes
7321 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7325 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7327 hardcode_libdir_flag_spec='-R$libdir'
7329 hardcode_shlibpath_var=no
7333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7336 hardcode_libdir_separator=:
7337 hardcode_shlibpath_var=no
7342 hardcode_shlibpath_var=no
7343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7346 export_dynamic_flag_spec='${wl}-E'
7349 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7351 hardcode_libdir_flag_spec='-R$libdir'
7354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7355 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7362 hardcode_libdir_flag_spec='-L$libdir'
7363 hardcode_minus_L=yes
7364 allow_undefined_flag=unsupported
7365 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'
7366 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7370 if test "$GCC" = yes; then
7371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7372 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'
7374 allow_undefined_flag=' -expect_unresolved \*'
7375 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'
7377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7378 hardcode_libdir_separator=:
7381 osf4* | osf5*) # as osf3* with the addition of -msym flag
7382 if test "$GCC" = yes; then
7383 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7384 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'
7385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7387 allow_undefined_flag=' -expect_unresolved \*'
7388 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'
7389 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7390 $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'
7392 # Both c and cxx compiler support -rpath directly
7393 hardcode_libdir_flag_spec='-rpath $libdir'
7395 hardcode_libdir_separator=:
7399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_shlibpath_var=no
7401 export_dynamic_flag_spec='${wl}-Bexport'
7402 runpath_var=LD_RUN_PATH
7403 hardcode_runpath_var=yes
7407 no_undefined_flag=' -z text'
7408 if test "$GCC" = yes; then
7409 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7410 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7411 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7413 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7417 hardcode_libdir_flag_spec='-R$libdir'
7418 hardcode_shlibpath_var=no
7420 solaris2.[0-5] | solaris2.[0-5].*) ;;
7421 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7422 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7424 link_all_deplibs=yes
7428 if test "x$host_vendor" = xsequent; then
7429 # Use $CC to link under sequent, because it throws in some extra .o
7430 # files that make .init and .fini sections work.
7431 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7433 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7435 hardcode_libdir_flag_spec='-L$libdir'
7437 hardcode_minus_L=yes
7438 hardcode_shlibpath_var=no
7442 case $host_vendor in
7444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7445 hardcode_direct=yes # is this really true???
7448 ## LD is ld it makes a PLAMLIB
7449 ## CC just makes a GrossModule.
7450 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7451 reload_cmds='$CC -r -o $output$reload_objs'
7455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7456 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7459 runpath_var='LD_RUN_PATH'
7460 hardcode_shlibpath_var=no
7464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7465 hardcode_shlibpath_var=no
7466 export_dynamic_flag_spec='-Bexport'
7470 if test -d /usr/nec; then
7471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7472 hardcode_shlibpath_var=no
7473 runpath_var=LD_RUN_PATH
7474 hardcode_runpath_var=yes
7480 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7483 hardcode_shlibpath_var=no
7484 hardcode_runpath_var=yes
7485 runpath_var=LD_RUN_PATH
7488 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7489 no_undefined_flag='${wl}-z ${wl}text'
7490 if test "$GCC" = yes; then
7491 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7493 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7495 runpath_var='LD_RUN_PATH'
7496 hardcode_shlibpath_var=no
7500 no_undefined_flag=' -z text'
7501 # $CC -shared without GNU ld will not create a library from C++
7502 # object files and a static libstdc++, better avoid it by now
7503 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7504 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7505 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7506 hardcode_libdir_flag_spec=
7507 hardcode_shlibpath_var=no
7508 runpath_var='LD_RUN_PATH'
7512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7513 hardcode_libdir_flag_spec='-L$libdir'
7514 hardcode_shlibpath_var=no
7523 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7524 echo "${ECHO_T}$ld_shlibs" >&6
7525 test "$ld_shlibs" = no && can_build_shared=no
7527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7528 if test "$GCC" = yes; then
7529 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7533 # Do we need to explicitly link libc?
7535 case "x$archive_cmds_need_lc" in
7537 # Assume -lc should be added
7538 archive_cmds_need_lc=yes
7540 if test "$enable_shared" = yes && test "$GCC" = yes; then
7541 case $archive_cmds in
7543 # FIXME: we may have to deal with multi-command sequences.
7546 # Test whether the compiler implicitly links with -lc since on some
7547 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7548 # to ld, don't add -lc before -lgcc.
7549 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7550 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555 (eval $ac_compile) 2>&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } 2>conftest.err; then
7561 libobjs=conftest.$ac_objext
7563 wl=$lt_prog_compiler_wl
7569 lt_save_allow_undefined_flag=$allow_undefined_flag
7570 allow_undefined_flag=
7571 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7572 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }
7577 archive_cmds_need_lc=no
7579 archive_cmds_need_lc=yes
7581 allow_undefined_flag=$lt_save_allow_undefined_flag
7583 cat conftest.err 1>&5
7586 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7587 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7594 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7595 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7597 libname_spec='lib$name'
7605 shlibpath_overrides_runpath=unknown
7607 dynamic_linker="$host_os ld.so"
7608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7609 if test "$GCC" = yes; then
7610 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7611 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7612 # if the path contains ";" then we assume it to be the separator
7613 # otherwise default to the standard path separator (i.e. ":") - it is
7614 # assumed that no part of a normal pathname contains ";" but that should
7615 # okay in the real world where ";" in dirpaths is itself problematic.
7616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7621 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7623 need_lib_prefix=unknown
7624 hardcode_into_libs=no
7626 # when you set need_version to no, make sure it does not cause -set_version
7627 # flags to be left without arguments
7628 need_version=unknown
7633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7634 shlibpath_var=LIBPATH
7636 # AIX 3 has no versioning support, so we append a major version to the name.
7637 soname_spec='${libname}${release}${shared_ext}$major'
7644 hardcode_into_libs=yes
7645 if test "$host_cpu" = ia64; then
7646 # AIX 5 supports IA64
7647 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7648 shlibpath_var=LD_LIBRARY_PATH
7650 # With GCC up to 2.95.x, collect2 would create an import file
7651 # for dependence libraries. The import file would start with
7652 # the line `#! .'. This would cause the generated library to
7653 # depend on `.', always an invalid library. This was fixed in
7654 # development snapshots of GCC prior to 3.0.
7656 aix4 | aix4.[01] | aix4.[01].*)
7657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7659 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7667 # soname into executable. Probably we can add versioning support to
7668 # collect2, so additional links can be useful in future.
7669 if test "$aix_use_runtimelinking" = yes; then
7670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7671 # instead of lib<name>.a to let people know that these are not
7672 # typical AIX shared libraries.
7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7675 # We preserve .a as extension for shared libraries through AIX4.2
7676 # and later when we are not doing run time linking.
7677 library_names_spec='${libname}${release}.a $libname.a'
7678 soname_spec='${libname}${release}${shared_ext}$major'
7680 shlibpath_var=LIBPATH
7685 library_names_spec='$libname.ixlibrary $libname.a'
7686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7687 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'
7691 library_names_spec='${libname}${shared_ext}'
7692 dynamic_linker="$host_os ld.so"
7693 shlibpath_var=LIBRARY_PATH
7699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7700 soname_spec='${libname}${release}${shared_ext}$major'
7701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7702 shlibpath_var=LD_LIBRARY_PATH
7703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7705 # the default ld.so.conf also contains /usr/contrib/lib and
7706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7707 # libtool to hard-code these into programs
7710 cygwin* | mingw* | pw32*)
7711 version_type=windows
7716 case $GCC,$host_os in
7717 yes,cygwin* | yes,mingw* | yes,pw32*)
7718 library_names_spec='$libname.dll.a'
7719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7720 postinstall_cmds='base_file=`basename \${file}`~
7721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7722 dldir=$destdir/`dirname \$dlpath`~
7723 test -d \$dldir || mkdir -p \$dldir~
7724 $install_prog $dir/$dlname \$dldir/$dlname'
7725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7726 dlpath=$dir/\$dldll~
7728 shlibpath_overrides_runpath=yes
7732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7733 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7734 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7737 # MinGW DLLs use traditional 'lib' prefix
7738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7739 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7740 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7741 # It is most probably a Windows format PATH printed by
7742 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7743 # path with ; separators, and with drive letters. We can handle the
7744 # drive letters (cygwin fileutils understands them), so leave them,
7745 # especially as we might pass files found there to a mingw objdump,
7746 # which wouldn't understand a cygwinified path. Ahh.
7747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7753 # pw32 DLLs use 'pw' prefix rather than 'lib'
7754 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7763 dynamic_linker='Win32 ld.exe'
7764 # FIXME: first we should search . and the directory the executable is in
7768 darwin* | rhapsody*)
7769 dynamic_linker="$host_os dyld"
7773 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7774 soname_spec='${libname}${release}${major}$shared_ext'
7775 shlibpath_overrides_runpath=yes
7776 shlibpath_var=DYLD_LIBRARY_PATH
7777 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7778 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7779 if test "$GCC" = yes; then
7780 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"`
7782 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7784 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7792 soname_spec='${libname}${release}${shared_ext}$major'
7793 shlibpath_var=LD_LIBRARY_PATH
7804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7805 soname_spec='${libname}${release}${shared_ext}$major'
7806 shlibpath_var=LD_LIBRARY_PATH
7807 shlibpath_overrides_runpath=no
7808 hardcode_into_libs=yes
7809 dynamic_linker='GNU ld.so'
7813 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7814 version_type=freebsd-$objformat
7815 case $version_type in
7817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7826 shlibpath_var=LD_LIBRARY_PATH
7829 shlibpath_overrides_runpath=yes
7831 freebsd3.01* | freebsdelf3.01*)
7832 shlibpath_overrides_runpath=yes
7833 hardcode_into_libs=yes
7836 shlibpath_overrides_runpath=no
7837 hardcode_into_libs=yes
7846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7847 soname_spec='${libname}${release}${shared_ext}$major'
7848 shlibpath_var=LD_LIBRARY_PATH
7849 hardcode_into_libs=yes
7852 hpux9* | hpux10* | hpux11*)
7853 # Give a soname corresponding to the major version so that dld.sl refuses to
7854 # link against other versions.
7861 hardcode_into_libs=yes
7862 dynamic_linker="$host_os dld.so"
7863 shlibpath_var=LD_LIBRARY_PATH
7864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866 soname_spec='${libname}${release}${shared_ext}$major'
7867 if test "X$HPUX_IA64_MODE" = X32; then
7868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7876 hardcode_into_libs=yes
7877 dynamic_linker="$host_os dld.sl"
7878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881 soname_spec='${libname}${release}${shared_ext}$major'
7882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7887 dynamic_linker="$host_os dld.sl"
7888 shlibpath_var=SHLIB_PATH
7889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7891 soname_spec='${libname}${release}${shared_ext}$major'
7894 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7895 postinstall_cmds='chmod 555 $lib'
7898 irix5* | irix6* | nonstopux*)
7900 nonstopux*) version_type=nonstopux ;;
7902 if test "$lt_cv_prog_gnu_ld" = yes; then
7910 soname_spec='${libname}${release}${shared_ext}$major'
7911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7913 irix5* | nonstopux*)
7917 case $LD in # libtool.m4 will add one of these switches to LD
7918 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7919 libsuff= shlibsuff= libmagic=32-bit;;
7920 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7921 libsuff=32 shlibsuff=N32 libmagic=N32;;
7922 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7923 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7924 *) libsuff= shlibsuff= libmagic=never-match;;
7928 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7929 shlibpath_overrides_runpath=no
7930 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7931 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7932 hardcode_into_libs=yes
7935 # No shared lib support for Linux oldld, aout, or coff.
7936 linux*oldld* | linux*aout* | linux*coff*)
7940 # This must be Linux ELF.
7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7946 soname_spec='${libname}${release}${shared_ext}$major'
7947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7948 shlibpath_var=LD_LIBRARY_PATH
7949 shlibpath_overrides_runpath=no
7950 # This implies no fast_install, which is unacceptable.
7951 # Some rework will be needed to allow for fast_install
7952 # before this can be enabled.
7953 hardcode_into_libs=yes
7955 # Append ld.so.conf contents to the search path
7956 if test -f /etc/ld.so.conf; then
7957 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7961 # We used to test for /lib/ld.so.1 and disable shared libraries on
7962 # powerpc, because MkLinux only supported shared libraries with the
7963 # GNU dynamic linker. Since this was broken with cross compilers,
7964 # most powerpc-linux boxes support dynamic linking these days and
7965 # people can always --disable-shared, the test was removed, and we
7966 # assume the GNU/Linux dynamic linker is in use.
7967 dynamic_linker='GNU/Linux ld.so'
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7975 soname_spec='${libname}${release}${shared_ext}$major'
7976 shlibpath_var=LD_LIBRARY_PATH
7977 shlibpath_overrides_runpath=no
7978 hardcode_into_libs=yes
7979 dynamic_linker='NetBSD ld.elf_so'
7986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7987 soname_spec='${libname}${release}${shared_ext}$major'
7988 shlibpath_var=LD_LIBRARY_PATH
7989 shlibpath_overrides_runpath=no
7990 hardcode_into_libs=yes
7991 dynamic_linker='GNU ld.so'
7998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8001 dynamic_linker='NetBSD (a.out) ld.so'
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8004 soname_spec='${libname}${release}${shared_ext}$major'
8005 dynamic_linker='NetBSD ld.elf_so'
8007 shlibpath_var=LD_LIBRARY_PATH
8008 shlibpath_overrides_runpath=yes
8009 hardcode_into_libs=yes
8014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8015 shlibpath_var=LD_LIBRARY_PATH
8016 shlibpath_overrides_runpath=yes
8023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024 soname_spec='${libname}${release}${shared_ext}$major'
8025 shlibpath_var=LD_LIBRARY_PATH
8026 shlibpath_overrides_runpath=yes
8033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8035 shlibpath_var=LD_LIBRARY_PATH
8036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8038 openbsd2.[89] | openbsd2.[89].*)
8039 shlibpath_overrides_runpath=no
8042 shlibpath_overrides_runpath=yes
8046 shlibpath_overrides_runpath=yes
8051 libname_spec='$name'
8054 library_names_spec='$libname${shared_ext} $libname.a'
8055 dynamic_linker='OS/2 ld.exe'
8056 shlibpath_var=LIBPATH
8059 osf3* | osf4* | osf5*)
8063 soname_spec='${libname}${release}${shared_ext}$major'
8064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8065 shlibpath_var=LD_LIBRARY_PATH
8066 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8067 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8072 soname_spec='${libname}${release}${shared_ext}$major'
8073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8074 shlibpath_var=LD_LIBRARY_PATH
8081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8082 soname_spec='${libname}${release}${shared_ext}$major'
8083 shlibpath_var=LD_LIBRARY_PATH
8084 shlibpath_overrides_runpath=yes
8085 hardcode_into_libs=yes
8086 # ldd complains unless libraries are executable
8087 postinstall_cmds='chmod +x $lib'
8092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8093 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8094 shlibpath_var=LD_LIBRARY_PATH
8095 shlibpath_overrides_runpath=yes
8096 if test "$with_gnu_ld" = yes; then
8102 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8105 soname_spec='${libname}${release}${shared_ext}$major'
8106 shlibpath_var=LD_LIBRARY_PATH
8107 case $host_vendor in
8109 shlibpath_overrides_runpath=no
8111 export_dynamic_flag_spec='${wl}-Blargedynsym'
8112 runpath_var=LD_RUN_PATH
8120 shlibpath_overrides_runpath=no
8121 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8127 if test -d /usr/nec ;then
8129 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8130 soname_spec='$libname${shared_ext}.$major'
8131 shlibpath_var=LD_LIBRARY_PATH
8137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8138 soname_spec='${libname}${release}${shared_ext}$major'
8139 shlibpath_var=LD_LIBRARY_PATH
8146 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8147 echo "${ECHO_T}$dynamic_linker" >&6
8148 test "$dynamic_linker" = no && can_build_shared=no
8150 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8151 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8153 if test -n "$hardcode_libdir_flag_spec" || \
8154 test -n "$runpath_var " || \
8155 test "X$hardcode_automatic"="Xyes" ; then
8157 # We can hardcode non-existant directories.
8158 if test "$hardcode_direct" != no &&
8159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8160 # have to relink, otherwise we might link with an installed library
8161 # when we should be linking with a yet-to-be-installed one
8162 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8163 test "$hardcode_minus_L" != no; then
8164 # Linking always hardcodes the temporary library directory.
8165 hardcode_action=relink
8167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8168 hardcode_action=immediate
8171 # We cannot hardcode anything, or else we can only hardcode existing
8173 hardcode_action=unsupported
8175 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8176 echo "${ECHO_T}$hardcode_action" >&6
8178 if test "$hardcode_action" = relink; then
8179 # Fast installation is not supported
8180 enable_fast_install=no
8181 elif test "$shlibpath_overrides_runpath" = yes ||
8182 test "$enable_shared" = no; then
8183 # Fast installation is not necessary
8184 enable_fast_install=needless
8189 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8190 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8191 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8192 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8193 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8194 echo "$as_me:$LINENO: result: yes" >&5
8195 echo "${ECHO_T}yes" >&6
8197 # FIXME - insert some real tests, host_os isn't really good enough
8200 if test -n "$STRIP" ; then
8201 striplib="$STRIP -x"
8202 echo "$as_me:$LINENO: result: yes" >&5
8203 echo "${ECHO_T}yes" >&6
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8210 echo "$as_me:$LINENO: result: no" >&5
8211 echo "${ECHO_T}no" >&6
8216 if test "x$enable_dlopen" != xyes; then
8217 enable_dlopen=unknown
8218 enable_dlopen_self=unknown
8219 enable_dlopen_self_static=unknown
8226 lt_cv_dlopen="load_add_on"
8228 lt_cv_dlopen_self=yes
8232 lt_cv_dlopen="LoadLibrary"
8237 lt_cv_dlopen="dlopen"
8242 # if libdl is installed we need to link against it
8243 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8244 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8245 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 ac_check_lib_save_LIBS=$LIBS
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8257 /* Override any gcc2 internal prototype to avoid an error. */
8261 /* We use char because int might match the return type of a gcc2
8262 builtin and then its argument prototype would still apply. */
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>conftest.er1
8276 grep -v '^ *+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; } &&
8287 { ac_try='test -s conftest$ac_exeext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 ac_cv_lib_dl_dlopen=yes
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8298 ac_cv_lib_dl_dlopen=no
8300 rm -f conftest.err conftest.$ac_objext \
8301 conftest$ac_exeext conftest.$ac_ext
8302 LIBS=$ac_check_lib_save_LIBS
8304 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8305 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8306 if test $ac_cv_lib_dl_dlopen = yes; then
8307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8312 lt_cv_dlopen_self=yes
8319 echo "$as_me:$LINENO: checking for shl_load" >&5
8320 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8321 if test "${ac_cv_func_shl_load+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 cat >conftest.$ac_ext <<_ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8332 #define shl_load innocuous_shl_load
8334 /* System header to define __stub macros and hopefully few prototypes,
8335 which can conflict with char shl_load (); below.
8336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8337 <limits.h> exists even on freestanding compilers. */
8340 # include <limits.h>
8342 # include <assert.h>
8347 /* Override any gcc2 internal prototype to avoid an error. */
8352 /* We use char because int might match the return type of a gcc2
8353 builtin and then its argument prototype would still apply. */
8355 /* The GNU C library defines this for functions which it implements
8356 to always fail with ENOSYS. Some functions are actually named
8357 something starting with __ and the normal name is an alias. */
8358 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8361 char (*f) () = shl_load;
8370 return f != shl_load;
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8377 (eval $ac_link) 2>conftest.er1
8379 grep -v '^ *+' conftest.er1 >conftest.err
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; } &&
8390 { ac_try='test -s conftest$ac_exeext'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 ac_cv_func_shl_load=yes
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 ac_cv_func_shl_load=no
8403 rm -f conftest.err conftest.$ac_objext \
8404 conftest$ac_exeext conftest.$ac_ext
8406 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8407 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8408 if test $ac_cv_func_shl_load = yes; then
8409 lt_cv_dlopen="shl_load"
8411 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8412 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8413 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 ac_check_lib_save_LIBS=$LIBS
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8425 /* Override any gcc2 internal prototype to avoid an error. */
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } &&
8449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_lib_dld_shl_load=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_cv_lib_dld_shl_load=no
8468 rm -f conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
8470 LIBS=$ac_check_lib_save_LIBS
8472 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8473 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8474 if test $ac_cv_lib_dld_shl_load = yes; then
8475 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8477 echo "$as_me:$LINENO: checking for dlopen" >&5
8478 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8479 if test "${ac_cv_func_dlopen+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 cat >conftest.$ac_ext <<_ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8490 #define dlopen innocuous_dlopen
8492 /* System header to define __stub macros and hopefully few prototypes,
8493 which can conflict with char dlopen (); below.
8494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8495 <limits.h> exists even on freestanding compilers. */
8498 # include <limits.h>
8500 # include <assert.h>
8505 /* Override any gcc2 internal prototype to avoid an error. */
8510 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */
8513 /* The GNU C library defines this for functions which it implements
8514 to always fail with ENOSYS. Some functions are actually named
8515 something starting with __ and the normal name is an alias. */
8516 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8519 char (*f) () = dlopen;
8533 rm -f conftest.$ac_objext conftest$ac_exeext
8534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8535 (eval $ac_link) 2>conftest.er1
8537 grep -v '^ *+' conftest.er1 >conftest.err
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 ac_cv_func_dlopen=yes
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8559 ac_cv_func_dlopen=no
8561 rm -f conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8564 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8565 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8566 if test $ac_cv_func_dlopen = yes; then
8567 lt_cv_dlopen="dlopen"
8569 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8570 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8571 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 ac_check_lib_save_LIBS=$LIBS
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8583 /* Override any gcc2 internal prototype to avoid an error. */
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8600 (eval $ac_link) 2>conftest.er1
8602 grep -v '^ *+' conftest.er1 >conftest.err
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_lib_dl_dlopen=yes
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 ac_cv_lib_dl_dlopen=no
8626 rm -f conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext conftest.$ac_ext
8628 LIBS=$ac_check_lib_save_LIBS
8630 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8632 if test $ac_cv_lib_dl_dlopen = yes; then
8633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8635 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8636 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8637 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 ac_check_lib_save_LIBS=$LIBS
8642 cat >conftest.$ac_ext <<_ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8649 /* Override any gcc2 internal prototype to avoid an error. */
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666 (eval $ac_link) 2>conftest.er1
8668 grep -v '^ *+' conftest.er1 >conftest.err
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; } &&
8679 { ac_try='test -s conftest$ac_exeext'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 ac_cv_lib_svld_dlopen=yes
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8690 ac_cv_lib_svld_dlopen=no
8692 rm -f conftest.err conftest.$ac_objext \
8693 conftest$ac_exeext conftest.$ac_ext
8694 LIBS=$ac_check_lib_save_LIBS
8696 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8697 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8698 if test $ac_cv_lib_svld_dlopen = yes; then
8699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8701 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8702 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8703 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 ac_check_lib_save_LIBS=$LIBS
8708 cat >conftest.$ac_ext <<_ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8715 /* Override any gcc2 internal prototype to avoid an error. */
8719 /* We use char because int might match the return type of a gcc2
8720 builtin and then its argument prototype would still apply. */
8730 rm -f conftest.$ac_objext conftest$ac_exeext
8731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8732 (eval $ac_link) 2>conftest.er1
8734 grep -v '^ *+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } &&
8739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest$ac_exeext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_cv_lib_dld_dld_link=yes
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 ac_cv_lib_dld_dld_link=no
8758 rm -f conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 LIBS=$ac_check_lib_save_LIBS
8762 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8763 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8764 if test $ac_cv_lib_dld_dld_link = yes; then
8765 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8786 if test "x$lt_cv_dlopen" != xno; then
8792 case $lt_cv_dlopen in
8794 save_CPPFLAGS="$CPPFLAGS"
8795 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8797 save_LDFLAGS="$LDFLAGS"
8798 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8801 LIBS="$lt_cv_dlopen_libs $LIBS"
8803 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8804 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8805 if test "${lt_cv_dlopen_self+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 if test "$cross_compiling" = yes; then :
8809 lt_cv_dlopen_self=cross
8811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8812 lt_status=$lt_dlunknown
8813 cat > conftest.$ac_ext <<EOF
8814 #line __oline__ "configure"
8815 #include "confdefs.h"
8824 # define LT_DLGLOBAL RTLD_GLOBAL
8827 # define LT_DLGLOBAL DL_GLOBAL
8829 # define LT_DLGLOBAL 0
8833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8834 find out it does not work in some platform. */
8835 #ifndef LT_DLLAZY_OR_NOW
8837 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8840 # define LT_DLLAZY_OR_NOW DL_LAZY
8843 # define LT_DLLAZY_OR_NOW RTLD_NOW
8846 # define LT_DLLAZY_OR_NOW DL_NOW
8848 # define LT_DLLAZY_OR_NOW 0
8856 extern "C" void exit (int);
8859 void fnord() { int i=42;}
8862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8863 int status = $lt_dlunknown;
8867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8868 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8869 /* dlclose (self); */
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8880 (./conftest; exit; ) 2>/dev/null
8883 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8884 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8885 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8888 # compilation failed
8889 lt_cv_dlopen_self=no
8896 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8897 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8899 if test "x$lt_cv_dlopen_self" = xyes; then
8900 LDFLAGS="$LDFLAGS $link_static_flag"
8901 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8902 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8903 if test "${lt_cv_dlopen_self_static+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 if test "$cross_compiling" = yes; then :
8907 lt_cv_dlopen_self_static=cross
8909 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8910 lt_status=$lt_dlunknown
8911 cat > conftest.$ac_ext <<EOF
8912 #line __oline__ "configure"
8913 #include "confdefs.h"
8922 # define LT_DLGLOBAL RTLD_GLOBAL
8925 # define LT_DLGLOBAL DL_GLOBAL
8927 # define LT_DLGLOBAL 0
8931 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8932 find out it does not work in some platform. */
8933 #ifndef LT_DLLAZY_OR_NOW
8935 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8938 # define LT_DLLAZY_OR_NOW DL_LAZY
8941 # define LT_DLLAZY_OR_NOW RTLD_NOW
8944 # define LT_DLLAZY_OR_NOW DL_NOW
8946 # define LT_DLLAZY_OR_NOW 0
8954 extern "C" void exit (int);
8957 void fnord() { int i=42;}
8960 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8961 int status = $lt_dlunknown;
8965 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8966 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8967 /* dlclose (self); */
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8978 (./conftest; exit; ) 2>/dev/null
8981 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8982 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8983 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8986 # compilation failed
8987 lt_cv_dlopen_self_static=no
8994 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8995 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8998 CPPFLAGS="$save_CPPFLAGS"
8999 LDFLAGS="$save_LDFLAGS"
9004 case $lt_cv_dlopen_self in
9005 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9006 *) enable_dlopen_self=unknown ;;
9009 case $lt_cv_dlopen_self_static in
9010 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9011 *) enable_dlopen_self_static=unknown ;;
9016 # Report which librarie types wil actually be built
9017 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9018 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9019 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9020 echo "${ECHO_T}$can_build_shared" >&6
9022 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9023 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9024 test "$can_build_shared" = "no" && enable_shared=no
9026 # On AIX, shared libraries and static libraries use the same namespace, and
9027 # are all built from PIC.
9030 test "$enable_shared" = yes && enable_static=no
9031 if test -n "$RANLIB"; then
9032 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9033 postinstall_cmds='$RANLIB $lib'
9038 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9039 test "$enable_shared" = yes && enable_static=no
9042 darwin* | rhapsody*)
9043 if test "$GCC" = yes; then
9044 archive_cmds_need_lc=no
9046 rhapsody* | darwin1.[012])
9047 allow_undefined_flag='-undefined suppress'
9050 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9051 allow_undefined_flag='-flat_namespace -undefined suppress'
9053 case ${MACOSX_DEPLOYMENT_TARGET} in
9055 allow_undefined_flag='-flat_namespace -undefined suppress'
9058 allow_undefined_flag='-undefined dynamic_lookup'
9064 output_verbose_link_cmd='echo'
9065 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9066 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9067 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9068 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}'
9069 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}'
9071 hardcode_automatic=yes
9072 hardcode_shlibpath_var=unsupported
9073 whole_archive_flag_spec='-all_load $convenience'
9074 link_all_deplibs=yes
9080 echo "$as_me:$LINENO: result: $enable_shared" >&5
9081 echo "${ECHO_T}$enable_shared" >&6
9083 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9084 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9085 # Make sure either enable_shared or enable_static is yes.
9086 test "$enable_shared" = yes || enable_static=yes
9087 echo "$as_me:$LINENO: result: $enable_static" >&5
9088 echo "${ECHO_T}$enable_static" >&6
9090 # The else clause should only fire when bootstrapping the
9091 # libtool distribution, otherwise you forgot to ship ltmain.sh
9092 # with your package, and you will get complaints that there are
9093 # no rules to generate ltmain.sh.
9094 if test -f "$ltmain"; then
9095 # See if we are running on zsh, and set the options which allow our commands through
9096 # without removal of \ escapes.
9097 if test -n "${ZSH_VERSION+set}" ; then
9098 setopt NO_GLOB_SUBST
9100 # Now quote all the things that may contain metacharacters while being
9101 # careful not to overquote the AC_SUBSTed values. We take copies of the
9102 # variables and quote the copies for generation of the libtool script.
9103 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9105 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9106 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9107 deplibs_check_method reload_flag reload_cmds need_locks \
9108 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9109 lt_cv_sys_global_symbol_to_c_name_address \
9110 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9111 old_postinstall_cmds old_postuninstall_cmds \
9115 lt_prog_compiler_wl \
9116 lt_prog_compiler_pic \
9117 lt_prog_compiler_static \
9118 lt_prog_compiler_no_builtin_flag \
9119 export_dynamic_flag_spec \
9120 thread_safe_flag_spec \
9121 whole_archive_flag_spec \
9122 enable_shared_with_static_runtimes \
9124 old_archive_from_new_cmds \
9129 compiler_lib_search_path \
9131 archive_expsym_cmds \
9133 postuninstall_cmds \
9134 old_archive_from_expsyms_cmds \
9135 allow_undefined_flag \
9137 export_symbols_cmds \
9138 hardcode_libdir_flag_spec \
9139 hardcode_libdir_flag_spec_ld \
9140 hardcode_libdir_separator \
9141 hardcode_automatic \
9143 module_expsym_cmds \
9144 lt_cv_prog_compiler_c_o \
9149 old_archive_cmds | \
9150 old_archive_from_new_cmds | \
9152 archive_expsym_cmds | \
9154 module_expsym_cmds | \
9155 old_archive_from_expsyms_cmds | \
9156 export_symbols_cmds | \
9157 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9158 postinstall_cmds | postuninstall_cmds | \
9159 old_postinstall_cmds | old_postuninstall_cmds | \
9160 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9161 # Double-quote double-evaled strings.
9162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9171 *'\$0 --fallback-echo"')
9172 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9177 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9179 { echo "$as_me:$LINENO: creating $ofile" >&5
9180 echo "$as_me: creating $ofile" >&6;}
9182 cat <<__EOF__ >> "$cfgfile"
9185 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9186 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9187 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9189 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9190 # Free Software Foundation, Inc.
9192 # This file is part of GNU Libtool:
9193 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9195 # This program is free software; you can redistribute it and/or modify
9196 # it under the terms of the GNU General Public License as published by
9197 # the Free Software Foundation; either version 2 of the License, or
9198 # (at your option) any later version.
9200 # This program is distributed in the hope that it will be useful, but
9201 # WITHOUT ANY WARRANTY; without even the implied warranty of
9202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9203 # General Public License for more details.
9205 # You should have received a copy of the GNU General Public License
9206 # along with this program; if not, write to the Free Software
9207 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9209 # As a special exception to the GNU General Public License, if you
9210 # distribute this file as part of a program that contains a
9211 # configuration script generated by Autoconf, you may include it under
9212 # the same distribution terms that you use for the rest of that program.
9214 # A sed program that does not truncate output.
9217 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9218 Xsed="$SED -e s/^X//"
9220 # The HP-UX ksh and POSIX shell print the target directory to stdout
9222 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9224 # The names of the tagged configurations supported by this script.
9227 # ### BEGIN LIBTOOL CONFIG
9229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9231 # Shell to use when invoking shell scripts.
9234 # Whether or not to build shared libraries.
9235 build_libtool_libs=$enable_shared
9237 # Whether or not to build static libraries.
9238 build_old_libs=$enable_static
9240 # Whether or not to add -lc for building shared libraries.
9241 build_libtool_need_lc=$archive_cmds_need_lc
9243 # Whether or not to disallow shared libs when runtime libs are static
9244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9246 # Whether or not to optimize for fast installation.
9247 fast_install=$enable_fast_install
9250 host_alias=$host_alias
9253 # An echo program that does not interpret backslashes.
9258 AR_FLAGS=$lt_AR_FLAGS
9263 # A language-specific compiler.
9266 # Is the compiler the GNU C compiler?
9272 # The linker used to build libraries.
9275 # Whether we need hard or soft links.
9278 # A BSD-compatible nm program.
9281 # A symbol stripping program
9284 # Used to examine libraries when file_magic_cmd begins "file"
9285 MAGIC_CMD=$MAGIC_CMD
9287 # Used on cygwin: DLL creation program.
9290 # Used on cygwin: object dumper.
9293 # Used on cygwin: assembler.
9296 # The name of the directory that contains temporary libtool files.
9299 # How to create reloadable object files.
9300 reload_flag=$lt_reload_flag
9301 reload_cmds=$lt_reload_cmds
9303 # How to pass a linker flag through the compiler.
9304 wl=$lt_lt_prog_compiler_wl
9306 # Object file suffix (normally "o").
9309 # Old archive suffix (normally "a").
9312 # Shared library suffix (normally ".so").
9313 shrext_cmds='$shrext_cmds'
9315 # Executable file suffix (normally "").
9318 # Additional compiler flags for building library objects.
9319 pic_flag=$lt_lt_prog_compiler_pic
9322 # What is the maximum length of a command?
9323 max_cmd_len=$lt_cv_sys_max_cmd_len
9325 # Does compiler simultaneously support -c and -o options?
9326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9328 # Must we lock files when doing compilation ?
9329 need_locks=$lt_need_locks
9331 # Do we need the lib prefix for modules?
9332 need_lib_prefix=$need_lib_prefix
9334 # Do we need a version for libraries?
9335 need_version=$need_version
9337 # Whether dlopen is supported.
9338 dlopen_support=$enable_dlopen
9340 # Whether dlopen of programs is supported.
9341 dlopen_self=$enable_dlopen_self
9343 # Whether dlopen of statically linked programs is supported.
9344 dlopen_self_static=$enable_dlopen_self_static
9346 # Compiler flag to prevent dynamic linking.
9347 link_static_flag=$lt_lt_prog_compiler_static
9349 # Compiler flag to turn off builtin functions.
9350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9352 # Compiler flag to allow reflexive dlopens.
9353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9355 # Compiler flag to generate shared objects directly from archives.
9356 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9358 # Compiler flag to generate thread-safe objects.
9359 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9361 # Library versioning type.
9362 version_type=$version_type
9364 # Format of library name prefix.
9365 libname_spec=$lt_libname_spec
9367 # List of archive names. First name is the real one, the rest are links.
9368 # The last name is the one that the linker finds with -lNAME.
9369 library_names_spec=$lt_library_names_spec
9371 # The coded name of the library, if different from the real name.
9372 soname_spec=$lt_soname_spec
9374 # Commands used to build and install an old-style archive.
9376 old_archive_cmds=$lt_old_archive_cmds
9377 old_postinstall_cmds=$lt_old_postinstall_cmds
9378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9380 # Create an old-style archive from a shared archive.
9381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9383 # Create a temporary old-style archive to link instead of a shared archive.
9384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9386 # Commands used to build and install a shared archive.
9387 archive_cmds=$lt_archive_cmds
9388 archive_expsym_cmds=$lt_archive_expsym_cmds
9389 postinstall_cmds=$lt_postinstall_cmds
9390 postuninstall_cmds=$lt_postuninstall_cmds
9392 # Commands used to build a loadable module (assumed same as above if empty)
9393 module_cmds=$lt_module_cmds
9394 module_expsym_cmds=$lt_module_expsym_cmds
9396 # Commands to strip libraries.
9397 old_striplib=$lt_old_striplib
9398 striplib=$lt_striplib
9400 # Dependencies to place before the objects being linked to create a
9402 predep_objects=$lt_predep_objects
9404 # Dependencies to place after the objects being linked to create a
9406 postdep_objects=$lt_postdep_objects
9408 # Dependencies to place before the objects being linked to create a
9412 # Dependencies to place after the objects being linked to create a
9414 postdeps=$lt_postdeps
9416 # The library search path used internally by the compiler when linking
9418 compiler_lib_search_path=$lt_compiler_lib_search_path
9420 # Method to check whether dependent libraries are shared objects.
9421 deplibs_check_method=$lt_deplibs_check_method
9423 # Command to use when deplibs_check_method == file_magic.
9424 file_magic_cmd=$lt_file_magic_cmd
9426 # Flag that allows shared libraries with undefined symbols to be built.
9427 allow_undefined_flag=$lt_allow_undefined_flag
9429 # Flag that forces no undefined symbols.
9430 no_undefined_flag=$lt_no_undefined_flag
9432 # Commands used to finish a libtool library installation in a directory.
9433 finish_cmds=$lt_finish_cmds
9435 # Same as above, but a single script fragment to be evaled but not shown.
9436 finish_eval=$lt_finish_eval
9438 # Take the output of nm and produce a listing of raw symbols and C names.
9439 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9441 # Transform the output of nm in a proper C declaration
9442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9444 # Transform the output of nm in a C name address pair
9445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9447 # This is the shared library runtime path variable.
9448 runpath_var=$runpath_var
9450 # This is the shared library path variable.
9451 shlibpath_var=$shlibpath_var
9453 # Is shlibpath searched before the hard-coded library search path?
9454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9456 # How to hardcode a shared library path into an executable.
9457 hardcode_action=$hardcode_action
9459 # Whether we should hardcode library paths into libraries.
9460 hardcode_into_libs=$hardcode_into_libs
9462 # Flag to hardcode \$libdir into a binary during linking.
9463 # This must work even if \$libdir does not exist.
9464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9466 # If ld is used when linking, flag to hardcode \$libdir into
9467 # a binary during linking. This must work even if \$libdir does
9469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9471 # Whether we need a single -rpath flag with a separated argument.
9472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9474 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9476 hardcode_direct=$hardcode_direct
9478 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9480 hardcode_minus_L=$hardcode_minus_L
9482 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9483 # the resulting binary.
9484 hardcode_shlibpath_var=$hardcode_shlibpath_var
9486 # Set to yes if building a shared library automatically hardcodes DIR into the library
9487 # and all subsequent libraries and executables linked against it.
9488 hardcode_automatic=$hardcode_automatic
9490 # Variables whose values should be saved in libtool wrapper scripts and
9491 # restored at relink time.
9492 variables_saved_for_relink="$variables_saved_for_relink"
9494 # Whether libtool must link a program against all its dependency libraries.
9495 link_all_deplibs=$link_all_deplibs
9497 # Compile-time system search path for libraries
9498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9500 # Run-time system search path for libraries
9501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9503 # Fix the shell variable \$srcfile for the compiler.
9504 fix_srcfile_path="$fix_srcfile_path"
9506 # Set to yes if exported symbols are required.
9507 always_export_symbols=$always_export_symbols
9509 # The commands to list exported symbols.
9510 export_symbols_cmds=$lt_export_symbols_cmds
9512 # The commands to extract the exported symbol list from a shared archive.
9513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9515 # Symbols that should not be listed in the preloaded symbols.
9516 exclude_expsyms=$lt_exclude_expsyms
9518 # Symbols that must always be exported.
9519 include_expsyms=$lt_include_expsyms
9521 # ### END LIBTOOL CONFIG
9528 cat <<\EOF >> "$cfgfile"
9530 # AIX sometimes has problems with the GCC collect2 program. For some
9531 # reason, if we set the COLLECT_NAMES environment variable, the problems
9532 # vanish in a puff of smoke.
9533 if test "X${COLLECT_NAMES+set}" != Xset; then
9535 export COLLECT_NAMES
9541 # We use sed instead of cat because bash on DJGPP gets confused if
9542 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9543 # text mode, it properly converts lines to CR/LF. This bash problem
9544 # is reportedly fixed, but why not run on old versions too?
9545 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9547 mv -f "$cfgfile" "$ofile" || \
9548 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9552 # If there is no Makefile yet, we rely on a make rule to execute
9553 # `config.status --recheck' to rerun these tests and create the
9554 # libtool script then.
9555 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9556 if test -f "$ltmain_in"; then
9557 test -f Makefile && make "$ltmain"
9563 ac_cpp='$CPP $CPPFLAGS'
9564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9571 # Check whether --with-tags or --without-tags was given.
9572 if test "${with_tags+set}" = set; then
9573 withval="$with_tags"
9577 if test -f "$ltmain" && test -n "$tagnames"; then
9578 if test ! -f "${ofile}"; then
9579 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9580 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9583 if test -z "$LTCC"; then
9584 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9585 if test -z "$LTCC"; then
9586 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9587 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9589 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9590 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9594 # Extract list of available tagged configurations in $ofile.
9595 # Note that this assumes the entire list is on one line.
9596 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9599 for tagname in $tagnames; do
9601 # Check whether tagname contains only valid characters
9602 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9604 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9605 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9606 { (exit 1); exit 1; }; }
9610 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9612 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9613 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9614 { (exit 1); exit 1; }; }
9617 # Update the list of available tags.
9618 if test -n "$tagname"; then
9619 echo appending configuration tag \"$tagname\" to $ofile
9623 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9625 ac_cpp='$CXXCPP $CPPFLAGS'
9626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9633 archive_cmds_need_lc_CXX=no
9634 allow_undefined_flag_CXX=
9635 always_export_symbols_CXX=no
9636 archive_expsym_cmds_CXX=
9637 export_dynamic_flag_spec_CXX=
9638 hardcode_direct_CXX=no
9639 hardcode_libdir_flag_spec_CXX=
9640 hardcode_libdir_flag_spec_ld_CXX=
9641 hardcode_libdir_separator_CXX=
9642 hardcode_minus_L_CXX=no
9643 hardcode_automatic_CXX=no
9645 module_expsym_cmds_CXX=
9646 link_all_deplibs_CXX=unknown
9647 old_archive_cmds_CXX=$old_archive_cmds
9648 no_undefined_flag_CXX=
9649 whole_archive_flag_spec_CXX=
9650 enable_shared_with_static_runtimes_CXX=no
9652 # Dependencies to place before and after the object being linked:
9654 postdep_objects_CXX=
9657 compiler_lib_search_path_CXX=
9659 # Source file extension for C++ test sources.
9662 # Object file extension for compiled C++ test sources.
9666 # Code to be used in simple compile tests
9667 lt_simple_compile_test_code="int some_variable = 0;\n"
9669 # Code to be used in simple link tests
9670 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9672 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9674 # If no C compiler was specified, use CC.
9677 # Allow CC to be a program name with arguments.
9681 # Allow CC to be a program name with arguments.
9686 lt_save_with_gnu_ld=$with_gnu_ld
9687 lt_save_path_LD=$lt_cv_path_LD
9688 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9689 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9691 unset lt_cv_prog_gnu_ld
9693 if test -n "${lt_cv_path_LDCXX+set}"; then
9694 lt_cv_path_LD=$lt_cv_path_LDCXX
9698 test -z "${LDCXX+set}" || LD=$LDCXX
9702 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9704 # We don't want -fno-exception wen compiling C++ code, so set the
9705 # no_builtin_flag separately
9706 if test "$GXX" = yes; then
9707 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9709 lt_prog_compiler_no_builtin_flag_CXX=
9712 if test "$GXX" = yes; then
9713 # Set up default GNU C++ configuration
9716 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9717 if test "${with_gnu_ld+set}" = set; then
9718 withval="$with_gnu_ld"
9719 test "$withval" = no || with_gnu_ld=yes
9724 if test "$GCC" = yes; then
9725 # Check if gcc -print-prog-name=ld gives a path.
9726 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9727 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9730 # gcc leaves a trailing carriage return which upsets mingw
9731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9736 # Accept absolute paths.
9738 re_direlt='/[^/][^/]*/\.\./'
9739 # Canonicalize the pathname of ld
9740 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9741 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9742 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9744 test -z "$LD" && LD="$ac_prog"
9747 # If it fails, then pretend we aren't using GCC.
9751 # If it is relative, then search for the first ld in PATH.
9755 elif test "$with_gnu_ld" = yes; then
9756 echo "$as_me:$LINENO: checking for GNU ld" >&5
9757 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9759 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9760 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9762 if test "${lt_cv_path_LD+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 if test -z "$LD"; then
9766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9767 for ac_dir in $PATH; do
9769 test -z "$ac_dir" && ac_dir=.
9770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9771 lt_cv_path_LD="$ac_dir/$ac_prog"
9772 # Check to see if the program is GNU ld. I'd rather use --version,
9773 # but apparently some GNU ld's only accept -v.
9774 # Break only if it was the GNU/non-GNU ld that we prefer.
9775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9776 *GNU* | *'with BFD'*)
9777 test "$with_gnu_ld" != no && break
9780 test "$with_gnu_ld" != yes && break
9787 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9792 if test -n "$LD"; then
9793 echo "$as_me:$LINENO: result: $LD" >&5
9794 echo "${ECHO_T}$LD" >&6
9796 echo "$as_me:$LINENO: result: no" >&5
9797 echo "${ECHO_T}no" >&6
9799 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9800 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9801 { (exit 1); exit 1; }; }
9802 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9803 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9804 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9808 case `$LD -v 2>&1 </dev/null` in
9809 *GNU* | *'with BFD'*)
9810 lt_cv_prog_gnu_ld=yes
9813 lt_cv_prog_gnu_ld=no
9817 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9818 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9819 with_gnu_ld=$lt_cv_prog_gnu_ld
9823 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9824 # archiving commands below assume that GNU ld is being used.
9825 if test "$with_gnu_ld" = yes; then
9826 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827 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'
9829 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9832 # If archive_cmds runs LD, not CC, wlarc should be empty
9833 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9834 # investigate it a little bit more. (MM)
9837 # ancient GNU ld didn't support --whole-archive et. al.
9838 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9839 grep 'no-whole-archive' > /dev/null; then
9840 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9842 whole_archive_flag_spec_CXX=
9848 # A generic and very simple default shared library creation
9849 # command for GNU C++ for the case where it uses the native
9850 # linker, instead of GNU ld. If possible, this setting should
9851 # overridden to take advantage of the native linker features on
9852 # the platform it is being used on.
9853 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9856 # Commands to make compiler produce verbose output that lists
9857 # what "hidden" libraries, object files and flags are used when
9858 # linking a shared library.
9859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9867 # PORTME: fill in a description of your system's C++ link characteristics
9868 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9869 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9873 # FIXME: insert proper C++ library support
9877 if test "$host_cpu" = ia64; then
9878 # On IA64, the linker does run time linking by default, so we don't
9879 # have to do anything special.
9880 aix_use_runtimelinking=no
9881 exp_sym_flag='-Bexport'
9884 aix_use_runtimelinking=no
9886 # Test if we are trying to use run time linking or normal
9887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9888 # need to do runtime linking.
9889 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9890 for ld_flag in $LDFLAGS; do
9893 aix_use_runtimelinking=yes
9900 exp_sym_flag='-bexport'
9901 no_entry_flag='-bnoentry'
9904 # When large executables or shared objects are built, AIX ld can
9905 # have problems creating the table of contents. If linking a library
9906 # or program results in "error TOC overflow" add -mminimal-toc to
9907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9911 hardcode_direct_CXX=yes
9912 hardcode_libdir_separator_CXX=':'
9913 link_all_deplibs_CXX=yes
9915 if test "$GXX" = yes; then
9916 case $host_os in aix4.012|aix4.012.*)
9917 # We only want to do this on AIX 4.2 and lower, the check
9918 # below for broken collect2 doesn't work under 4.3+
9919 collect2name=`${CC} -print-prog-name=collect2`
9920 if test -f "$collect2name" && \
9921 strings "$collect2name" | grep resolve_lib_name >/dev/null
9923 # We have reworked collect2
9924 hardcode_direct_CXX=yes
9926 # We have old collect2
9927 hardcode_direct_CXX=unsupported
9928 # It fails to find uninstalled libraries when the uninstalled
9929 # path is not listed in the libpath. Setting hardcode_minus_L
9930 # to unsupported forces relinking
9931 hardcode_minus_L_CXX=yes
9932 hardcode_libdir_flag_spec_CXX='-L$libdir'
9933 hardcode_libdir_separator_CXX=
9936 shared_flag='-shared'
9939 if test "$host_cpu" = ia64; then
9940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9941 # chokes on -Wl,-G. The following line is correct:
9944 if test "$aix_use_runtimelinking" = yes; then
9945 shared_flag='${wl}-G'
9947 shared_flag='${wl}-bM:SRE'
9952 # It seems that -bexpall does not export symbols beginning with
9953 # underscore (_), so it is better to generate a list of symbols to export.
9954 always_export_symbols_CXX=yes
9955 if test "$aix_use_runtimelinking" = yes; then
9956 # Warning - without using the other runtime loading flags (-brtl),
9957 # -berok will link without error, but may produce a broken library.
9958 allow_undefined_flag_CXX='-berok'
9959 # Determine the default libpath from the value encoded in an empty executable.
9960 cat >conftest.$ac_ext <<_ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h. */
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977 (eval $ac_link) 2>conftest.er1
9979 grep -v '^ *+' conftest.er1 >conftest.err
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9999 # Check for a 64-bit object if we didn't find anything.
10000 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; }
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10007 rm -f conftest.err conftest.$ac_objext \
10008 conftest$ac_exeext conftest.$ac_ext
10009 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10011 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10013 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"
10015 if test "$host_cpu" = ia64; then
10016 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10017 allow_undefined_flag_CXX="-z nodefs"
10018 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"
10020 # Determine the default libpath from the value encoded in an empty executable.
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038 (eval $ac_link) 2>conftest.er1
10040 grep -v '^ *+' conftest.er1 >conftest.err
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10060 # Check for a 64-bit object if we didn't find anything.
10061 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; }
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10068 rm -f conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10072 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10073 # Warning - without using the other run time loading flags,
10074 # -berok will link without error, but may produce a broken library.
10075 no_undefined_flag_CXX=' ${wl}-bernotok'
10076 allow_undefined_flag_CXX=' ${wl}-berok'
10077 # -bexpall does not export symbols beginning with underscore (_)
10078 always_export_symbols_CXX=yes
10079 # Exported symbols can be pulled into shared objects from archives
10080 whole_archive_flag_spec_CXX=' '
10081 archive_cmds_need_lc_CXX=yes
10082 # This is similar to how AIX traditionally builds it's shared libraries.
10083 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'
10088 case $cc_basename in
10090 # FIXME: insert proper C++ library support
10096 cygwin* | mingw* | pw32*)
10097 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10098 # as there is no search path for DLLs.
10099 hardcode_libdir_flag_spec_CXX='-L$libdir'
10100 allow_undefined_flag_CXX=unsupported
10101 always_export_symbols_CXX=no
10102 enable_shared_with_static_runtimes_CXX=yes
10104 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10105 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'
10106 # If the export-symbols file already is a .def file (1st line
10107 # is EXPORTS), use it as is; otherwise, prepend...
10108 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10109 cp $export_symbols $output_objdir/$soname.def;
10111 echo EXPORTS > $output_objdir/$soname.def;
10112 cat $export_symbols >> $output_objdir/$soname.def;
10114 $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'
10120 darwin* | rhapsody*)
10121 if test "$GXX" = yes; then
10122 archive_cmds_need_lc_CXX=no
10124 rhapsody* | darwin1.[012])
10125 allow_undefined_flag_CXX='-undefined suppress'
10128 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10129 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10131 case ${MACOSX_DEPLOYMENT_TARGET} in
10133 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10136 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10142 lt_int_apple_cc_single_mod=no
10143 output_verbose_link_cmd='echo'
10144 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10145 lt_int_apple_cc_single_mod=yes
10147 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10148 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10150 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'
10152 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10154 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10155 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10156 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}'
10158 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}'
10160 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}'
10161 hardcode_direct_CXX=no
10162 hardcode_automatic_CXX=yes
10163 hardcode_shlibpath_var_CXX=unsupported
10164 whole_archive_flag_spec_CXX='-all_load $convenience'
10165 link_all_deplibs_CXX=yes
10172 case $cc_basename in
10174 # FIXME: insert proper C++ library support
10178 # Green Hills C++ Compiler
10179 # FIXME: insert proper C++ library support
10183 # FIXME: insert proper C++ library support
10189 # C++ shared libraries reported to be fairly broken before switch to ELF
10193 archive_cmds_need_lc_CXX=no
10195 freebsd* | kfreebsd*-gnu)
10196 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10203 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10204 hardcode_libdir_separator_CXX=:
10205 export_dynamic_flag_spec_CXX='${wl}-E'
10206 hardcode_direct_CXX=yes
10207 hardcode_minus_L_CXX=yes # Not in the search PATH,
10208 # but as the default
10209 # location of the library.
10211 case $cc_basename in
10213 # FIXME: insert proper C++ library support
10217 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'
10218 # Commands to make compiler produce verbose output that lists
10219 # what "hidden" libraries, object files and flags are used when
10220 # linking a shared library.
10222 # There doesn't appear to be a way to prevent this compiler from
10223 # explicitly linking system object files so we need to strip them
10224 # from the output so that they don't get included in the library
10226 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'
10229 if test "$GXX" = yes; then
10230 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'
10232 # FIXME: insert proper C++ library support
10239 if test $with_gnu_ld = no; then
10240 case "$host_cpu" in
10242 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10243 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10244 hardcode_libdir_separator_CXX=:
10247 hardcode_libdir_flag_spec_CXX='-L$libdir'
10250 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10251 hardcode_libdir_separator_CXX=:
10252 export_dynamic_flag_spec_CXX='${wl}-E'
10256 case "$host_cpu" in
10258 hardcode_direct_CXX=no
10259 hardcode_shlibpath_var_CXX=no
10262 hardcode_direct_CXX=no
10263 hardcode_shlibpath_var_CXX=no
10264 hardcode_minus_L_CXX=yes # Not in the search PATH,
10265 # but as the default
10266 # location of the library.
10269 hardcode_direct_CXX=yes
10270 hardcode_minus_L_CXX=yes # Not in the search PATH,
10271 # but as the default
10272 # location of the library.
10276 case $cc_basename in
10278 # FIXME: insert proper C++ library support
10282 case "$host_cpu" in
10284 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10287 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10290 # Commands to make compiler produce verbose output that lists
10291 # what "hidden" libraries, object files and flags are used when
10292 # linking a shared library.
10294 # There doesn't appear to be a way to prevent this compiler from
10295 # explicitly linking system object files so we need to strip them
10296 # from the output so that they don't get included in the library
10298 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'
10301 if test "$GXX" = yes; then
10302 if test $with_gnu_ld = no; then
10303 case "$host_cpu" in
10305 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10308 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'
10313 # FIXME: insert proper C++ library support
10320 case $cc_basename in
10323 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'
10325 # Archives containing C++ object files must be created using
10326 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10327 # necessary to make sure instantiated templates are included
10329 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10332 if test "$GXX" = yes; then
10333 if test "$with_gnu_ld" = no; then
10334 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'
10336 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'
10339 link_all_deplibs_CXX=yes
10342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10343 hardcode_libdir_separator_CXX=:
10346 case $cc_basename in
10348 # Kuck and Associates, Inc. (KAI) C++ Compiler
10350 # KCC will only create a shared library if the output file
10351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10352 # to its proper name (with version) after linking.
10353 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'
10354 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'
10355 # Commands to make compiler produce verbose output that lists
10356 # what "hidden" libraries, object files and flags are used when
10357 # linking a shared library.
10359 # There doesn't appear to be a way to prevent this compiler from
10360 # explicitly linking system object files so we need to strip them
10361 # from the output so that they don't get included in the library
10363 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'
10365 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10368 # Archives containing C++ object files must be created using
10369 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10370 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10375 archive_cmds_need_lc_CXX=no
10376 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10377 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'
10378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10380 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10384 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10385 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'
10387 runpath_var=LD_RUN_PATH
10388 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10389 hardcode_libdir_separator_CXX=:
10391 # Commands to make compiler produce verbose output that lists
10392 # what "hidden" libraries, object files and flags are used when
10393 # linking a shared library.
10395 # There doesn't appear to be a way to prevent this compiler from
10396 # explicitly linking system object files so we need to strip them
10397 # from the output so that they don't get included in the library
10399 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'
10404 # FIXME: insert proper C++ library support
10408 # FIXME: insert proper C++ library support
10412 case $cc_basename in
10414 # FIXME: insert proper C++ library support
10418 # FIXME: insert proper C++ library support
10423 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10425 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10427 hardcode_libdir_flag_spec_CXX='-R$libdir'
10428 hardcode_direct_CXX=yes
10429 hardcode_shlibpath_var_CXX=no
10431 # Workaround some broken pre-1.5 toolchains
10432 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10435 case $cc_basename in
10437 # Kuck and Associates, Inc. (KAI) C++ Compiler
10439 # KCC will only create a shared library if the output file
10440 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10441 # to its proper name (with version) after linking.
10442 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'
10444 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10445 hardcode_libdir_separator_CXX=:
10447 # Archives containing C++ object files must be created using
10448 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10449 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10453 # Rational C++ 2.4.1
10454 # FIXME: insert proper C++ library support
10458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10459 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'
10461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10462 hardcode_libdir_separator_CXX=:
10464 # Commands to make compiler produce verbose output that lists
10465 # what "hidden" libraries, object files and flags are used when
10466 # linking a shared library.
10468 # There doesn't appear to be a way to prevent this compiler from
10469 # explicitly linking system object files so we need to strip them
10470 # from the output so that they don't get included in the library
10472 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'
10475 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10476 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10477 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'
10479 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10480 hardcode_libdir_separator_CXX=:
10482 # Commands to make compiler produce verbose output that lists
10483 # what "hidden" libraries, object files and flags are used when
10484 # linking a shared library.
10485 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10488 # FIXME: insert proper C++ library support
10495 case $cc_basename in
10497 # Kuck and Associates, Inc. (KAI) C++ Compiler
10499 # KCC will only create a shared library if the output file
10500 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10501 # to its proper name (with version) after linking.
10502 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'
10504 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10505 hardcode_libdir_separator_CXX=:
10507 # Archives containing C++ object files must be created using
10508 # the KAI C++ compiler.
10509 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10512 # Rational C++ 2.4.1
10513 # FIXME: insert proper C++ library support
10517 allow_undefined_flag_CXX=' -expect_unresolved \*'
10518 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'
10519 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10520 echo "-hidden">> $lib.exp~
10521 $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~
10524 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10525 hardcode_libdir_separator_CXX=:
10527 # Commands to make compiler produce verbose output that lists
10528 # what "hidden" libraries, object files and flags are used when
10529 # linking a shared library.
10531 # There doesn't appear to be a way to prevent this compiler from
10532 # explicitly linking system object files so we need to strip them
10533 # from the output so that they don't get included in the library
10535 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'
10538 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10539 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10540 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'
10542 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10543 hardcode_libdir_separator_CXX=:
10545 # Commands to make compiler produce verbose output that lists
10546 # what "hidden" libraries, object files and flags are used when
10547 # linking a shared library.
10548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10551 # FIXME: insert proper C++ library support
10558 # FIXME: insert proper C++ library support
10562 archive_cmds_need_lc_CXX=no
10563 case $cc_basename in
10565 # FIXME: insert proper C++ library support
10569 # FIXME: insert proper C++ library support
10575 case $cc_basename in
10578 # FIXME: insert proper C++ library support
10583 # FIXME: insert proper C++ library support
10587 # FIXME: insert proper C++ library support
10593 case $cc_basename in
10595 # Sun C++ 4.2, 5.x and Centerline C++
10596 no_undefined_flag_CXX=' -zdefs'
10597 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10598 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10599 $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'
10601 hardcode_libdir_flag_spec_CXX='-R$libdir'
10602 hardcode_shlibpath_var_CXX=no
10604 solaris2.0-5 | solaris2.0-5.*) ;;
10606 # The C++ compiler is used as linker so we must use $wl
10607 # flag to pass the commands to the underlying system
10609 # Supported since Solaris 2.6 (maybe 2.5.1?)
10610 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10613 link_all_deplibs_CXX=yes
10615 # Commands to make compiler produce verbose output that lists
10616 # what "hidden" libraries, object files and flags are used when
10617 # linking a shared library.
10619 # There doesn't appear to be a way to prevent this compiler from
10620 # explicitly linking system object files so we need to strip them
10621 # from the output so that they don't get included in the library
10623 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'
10625 # Archives containing C++ object files must be created using
10626 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10627 # necessary to make sure instantiated templates are included
10629 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10632 # Green Hills C++ Compiler
10633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10635 # The C++ compiler must be used to create the archive.
10636 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10639 # GNU C++ compiler with Solaris linker
10640 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10641 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10642 if $CC --version | grep -v '^2\.7' > /dev/null; then
10643 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10644 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10645 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10647 # Commands to make compiler produce verbose output that lists
10648 # what "hidden" libraries, object files and flags are used when
10649 # linking a shared library.
10650 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10652 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10654 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10655 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10656 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10658 # Commands to make compiler produce verbose output that lists
10659 # what "hidden" libraries, object files and flags are used when
10660 # linking a shared library.
10661 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10664 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10669 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10670 archive_cmds_need_lc_CXX=no
10673 case $cc_basename in
10675 # NonStop-UX NCC 3.20
10676 # FIXME: insert proper C++ library support
10680 # FIXME: insert proper C++ library support
10686 # FIXME: insert proper C++ library support
10690 # FIXME: insert proper C++ library support
10694 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10695 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10696 test "$ld_shlibs_CXX" = no && can_build_shared=no
10702 ## There is no encapsulation within the following macros, do not change
10703 ## the running order or otherwise move them around unless you know exactly
10704 ## what you are doing...
10706 cat > conftest.$ac_ext <<EOF
10710 Foo (void) { a = 0; }
10716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10717 (eval $ac_compile) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; then
10721 # Parse the compiler output and extract the necessary
10722 # objects, libraries and library flags.
10724 # Sentinel used to keep track of whether or not we are before
10725 # the conftest object file.
10726 pre_test_object_deps_done=no
10728 # The `*' in the case matches for architectures that use `case' in
10729 # $output_verbose_cmd can trigger glob expansion during the loop
10730 # eval without this substitution.
10731 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10733 for p in `eval $output_verbose_link_cmd`; do
10737 # Some compilers place space between "-{L,R}" and the path.
10738 # Remove the space.
10739 if test $p = "-L" \
10740 || test $p = "-R"; then
10747 if test "$pre_test_object_deps_done" = no; then
10750 # Internal compiler library paths should come after those
10751 # provided the user. The postdeps already come after the
10752 # user supplied libs so there is no need to process them.
10753 if test -z "$compiler_lib_search_path_CXX"; then
10754 compiler_lib_search_path_CXX="${prev}${p}"
10756 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10759 # The "-l" case would never come before the object being
10760 # linked, so don't bother handling this case.
10763 if test -z "$postdeps_CXX"; then
10764 postdeps_CXX="${prev}${p}"
10766 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10772 # This assumes that the test object file only shows up
10773 # once in the compiler output.
10774 if test "$p" = "conftest.$objext"; then
10775 pre_test_object_deps_done=yes
10779 if test "$pre_test_object_deps_done" = no; then
10780 if test -z "$predep_objects_CXX"; then
10781 predep_objects_CXX="$p"
10783 predep_objects_CXX="$predep_objects_CXX $p"
10786 if test -z "$postdep_objects_CXX"; then
10787 postdep_objects_CXX="$p"
10789 postdep_objects_CXX="$postdep_objects_CXX $p"
10794 *) ;; # Ignore the rest.
10802 echo "libtool.m4: error: problem compiling CXX test program"
10805 $rm -f confest.$objext
10807 case " $postdeps_CXX " in
10808 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10811 lt_prog_compiler_wl_CXX=
10812 lt_prog_compiler_pic_CXX=
10813 lt_prog_compiler_static_CXX=
10815 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10816 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10818 # C++ specific cases for pic, static, wl, etc.
10819 if test "$GXX" = yes; then
10820 lt_prog_compiler_wl_CXX='-Wl,'
10821 lt_prog_compiler_static_CXX='-static'
10825 # All AIX code is PIC.
10826 if test "$host_cpu" = ia64; then
10827 # AIX 5 now supports IA64 processor
10828 lt_prog_compiler_static_CXX='-Bstatic'
10832 # FIXME: we need at least 68020 code to build shared libraries, but
10833 # adding the `-m68020' flag to GCC prevents building anything better,
10835 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10837 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10838 # PIC is the default for these OSes.
10840 mingw* | os2* | pw32*)
10841 # This hack is so that the source file can tell whether it is being
10842 # built for inclusion in a dll (and should export symbols for example).
10843 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10845 darwin* | rhapsody*)
10846 # PIC is the default on this platform
10847 # Common symbols not allowed in MH_DYLIB files
10848 lt_prog_compiler_pic_CXX='-fno-common'
10851 # DJGPP does not support shared libraries at all
10852 lt_prog_compiler_pic_CXX=
10855 if test -d /usr/nec; then
10856 lt_prog_compiler_pic_CXX=-Kconform_pic
10860 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10861 # not for PA HP-UX.
10862 case "$host_cpu" in
10866 lt_prog_compiler_pic_CXX='-fPIC'
10871 lt_prog_compiler_pic_CXX='-fPIC'
10877 # All AIX code is PIC.
10878 if test "$host_cpu" = ia64; then
10879 # AIX 5 now supports IA64 processor
10880 lt_prog_compiler_static_CXX='-Bstatic'
10882 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10886 case $cc_basename in
10888 # Green Hills C++ Compiler
10889 # _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"
10894 case $cc_basename in
10896 lt_prog_compiler_pic_CXX='-KPIC'
10899 # Green Hills C++ Compiler
10900 lt_prog_compiler_pic_CXX='-pic'
10906 freebsd* | kfreebsd*-gnu)
10907 # FreeBSD uses GNU C++
10909 hpux9* | hpux10* | hpux11*)
10910 case $cc_basename in
10912 lt_prog_compiler_wl_CXX='-Wl,'
10913 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10914 if test "$host_cpu" != ia64; then
10915 lt_prog_compiler_pic_CXX='+Z'
10919 lt_prog_compiler_wl_CXX='-Wl,'
10920 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10921 case "$host_cpu" in
10926 lt_prog_compiler_pic_CXX='+Z'
10934 irix5* | irix6* | nonstopux*)
10935 case $cc_basename in
10937 lt_prog_compiler_wl_CXX='-Wl,'
10938 lt_prog_compiler_static_CXX='-non_shared'
10939 # CC pic flag -KPIC is the default.
10946 case $cc_basename in
10949 lt_prog_compiler_wl_CXX='--backend -Wl,'
10950 lt_prog_compiler_pic_CXX='-fPIC'
10954 lt_prog_compiler_wl_CXX='-Wl,'
10955 lt_prog_compiler_pic_CXX='-KPIC'
10956 lt_prog_compiler_static_CXX='-static'
10960 # Make sure the PIC flag is empty. It appears that all Alpha
10961 # Linux and Compaq Tru64 Unix objects are PIC.
10962 lt_prog_compiler_pic_CXX=
10963 lt_prog_compiler_static_CXX='-non_shared'
10974 case $cc_basename in
10976 lt_prog_compiler_pic_CXX='-W c,exportall'
10982 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10984 osf3* | osf4* | osf5*)
10985 case $cc_basename in
10987 lt_prog_compiler_wl_CXX='--backend -Wl,'
10990 # Rational C++ 2.4.1
10991 lt_prog_compiler_pic_CXX='-pic'
10994 # Digital/Compaq C++
10995 lt_prog_compiler_wl_CXX='-Wl,'
10996 # Make sure the PIC flag is empty. It appears that all Alpha
10997 # Linux and Compaq Tru64 Unix objects are PIC.
10998 lt_prog_compiler_pic_CXX=
10999 lt_prog_compiler_static_CXX='-non_shared'
11008 case $cc_basename in
11010 lt_prog_compiler_pic_CXX='-fPIC'
11017 case $cc_basename in
11019 # Sun C++ 4.2, 5.x and Centerline C++
11020 lt_prog_compiler_pic_CXX='-KPIC'
11021 lt_prog_compiler_static_CXX='-Bstatic'
11022 lt_prog_compiler_wl_CXX='-Qoption ld '
11025 # Green Hills C++ Compiler
11026 lt_prog_compiler_pic_CXX='-PIC'
11033 case $cc_basename in
11036 lt_prog_compiler_pic_CXX='-pic'
11037 lt_prog_compiler_static_CXX='-Bstatic'
11041 lt_prog_compiler_pic_CXX='-pic'
11048 case $cc_basename in
11050 # NonStop-UX NCC 3.20
11051 lt_prog_compiler_pic_CXX='-KPIC'
11062 lt_prog_compiler_can_build_shared_CXX=no
11067 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11068 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11071 # Check to make sure the PIC flag actually works.
11073 if test -n "$lt_prog_compiler_pic_CXX"; then
11075 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11076 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11077 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 lt_prog_compiler_pic_works_CXX=no
11081 ac_outfile=conftest.$ac_objext
11082 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11083 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11084 # Insert the option either (1) after the last *FLAGS variable, or
11085 # (2) before a word containing "conftest.", or (3) at the end.
11086 # Note that $ac_compile itself does not contain backslashes and begins
11087 # with a dollar sign (not a hyphen), so the echo should work correctly.
11088 # The option is referenced via a variable to avoid confusing sed.
11089 lt_compile=`echo "$ac_compile" | $SED \
11090 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11092 -e 's:$: $lt_compiler_flag:'`
11093 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11094 (eval "$lt_compile" 2>conftest.err)
11096 cat conftest.err >&5
11097 echo "$as_me:__oline__: \$? = $ac_status" >&5
11098 if (exit $ac_status) && test -s "$ac_outfile"; then
11099 # The compiler can only warn and ignore the option if not recognized
11100 # So say no if there are warnings
11101 if test ! -s conftest.err; then
11102 lt_prog_compiler_pic_works_CXX=yes
11108 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11109 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11111 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11112 case $lt_prog_compiler_pic_CXX in
11114 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11117 lt_prog_compiler_pic_CXX=
11118 lt_prog_compiler_can_build_shared_CXX=no
11123 # For platforms which do not support PIC, -DPIC is meaningless:
11125 lt_prog_compiler_pic_CXX=
11128 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11132 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11133 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11134 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 lt_cv_prog_compiler_c_o_CXX=no
11138 $rm -r conftest 2>/dev/null
11142 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11144 lt_compiler_flag="-o out/conftest2.$ac_objext"
11145 # Insert the option either (1) after the last *FLAGS variable, or
11146 # (2) before a word containing "conftest.", or (3) at the end.
11147 # Note that $ac_compile itself does not contain backslashes and begins
11148 # with a dollar sign (not a hyphen), so the echo should work correctly.
11149 lt_compile=`echo "$ac_compile" | $SED \
11150 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11152 -e 's:$: $lt_compiler_flag:'`
11153 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11154 (eval "$lt_compile" 2>out/conftest.err)
11156 cat out/conftest.err >&5
11157 echo "$as_me:__oline__: \$? = $ac_status" >&5
11158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11160 # The compiler can only warn and ignore the option if not recognized
11161 # So say no if there are warnings
11162 if test ! -s out/conftest.err; then
11163 lt_cv_prog_compiler_c_o_CXX=yes
11168 # SGI C++ compiler will create directory out/ii_files/ for
11169 # template instantiation
11170 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11171 $rm out/* && rmdir out
11177 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11178 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11181 hard_links="nottested"
11182 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11183 # do not overwrite the value of need_locks provided by the user
11184 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11185 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11190 ln conftest.a conftest.b 2>&5 || hard_links=no
11191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11192 echo "$as_me:$LINENO: result: $hard_links" >&5
11193 echo "${ECHO_T}$hard_links" >&6
11194 if test "$hard_links" = no; then
11195 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11196 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11203 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11204 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11206 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11209 # If we're using GNU nm, then we don't want the "-C" option.
11210 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11211 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11212 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'
11214 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'
11218 export_symbols_cmds_CXX="$ltdll_cmds"
11221 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11224 link_all_deplibs_CXX=no
11227 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11231 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11232 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11233 test "$ld_shlibs_CXX" = no && can_build_shared=no
11235 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11236 if test "$GCC" = yes; then
11237 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11241 # Do we need to explicitly link libc?
11243 case "x$archive_cmds_need_lc_CXX" in
11245 # Assume -lc should be added
11246 archive_cmds_need_lc_CXX=yes
11248 if test "$enable_shared" = yes && test "$GCC" = yes; then
11249 case $archive_cmds_CXX in
11251 # FIXME: we may have to deal with multi-command sequences.
11254 # Test whether the compiler implicitly links with -lc since on some
11255 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11256 # to ld, don't add -lc before -lgcc.
11257 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11258 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11263 (eval $ac_compile) 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } 2>conftest.err; then
11269 libobjs=conftest.$ac_objext
11271 wl=$lt_prog_compiler_wl_CXX
11277 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11278 allow_undefined_flag_CXX=
11279 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11280 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }
11285 archive_cmds_need_lc_CXX=no
11287 archive_cmds_need_lc_CXX=yes
11289 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11291 cat conftest.err 1>&5
11294 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11295 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11302 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11304 library_names_spec=
11305 libname_spec='lib$name'
11309 postuninstall_cmds=
11313 shlibpath_overrides_runpath=unknown
11315 dynamic_linker="$host_os ld.so"
11316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11317 if test "$GCC" = yes; then
11318 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11319 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11320 # if the path contains ";" then we assume it to be the separator
11321 # otherwise default to the standard path separator (i.e. ":") - it is
11322 # assumed that no part of a normal pathname contains ";" but that should
11323 # okay in the real world where ";" in dirpaths is itself problematic.
11324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11331 need_lib_prefix=unknown
11332 hardcode_into_libs=no
11334 # when you set need_version to no, make sure it does not cause -set_version
11335 # flags to be left without arguments
11336 need_version=unknown
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11342 shlibpath_var=LIBPATH
11344 # AIX 3 has no versioning support, so we append a major version to the name.
11345 soname_spec='${libname}${release}${shared_ext}$major'
11352 hardcode_into_libs=yes
11353 if test "$host_cpu" = ia64; then
11354 # AIX 5 supports IA64
11355 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11356 shlibpath_var=LD_LIBRARY_PATH
11358 # With GCC up to 2.95.x, collect2 would create an import file
11359 # for dependence libraries. The import file would start with
11360 # the line `#! .'. This would cause the generated library to
11361 # depend on `.', always an invalid library. This was fixed in
11362 # development snapshots of GCC prior to 3.0.
11364 aix4 | aix4.[01] | aix4.[01].*)
11365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11367 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11370 can_build_shared=no
11374 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11375 # soname into executable. Probably we can add versioning support to
11376 # collect2, so additional links can be useful in future.
11377 if test "$aix_use_runtimelinking" = yes; then
11378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11379 # instead of lib<name>.a to let people know that these are not
11380 # typical AIX shared libraries.
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 # We preserve .a as extension for shared libraries through AIX4.2
11384 # and later when we are not doing run time linking.
11385 library_names_spec='${libname}${release}.a $libname.a'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11388 shlibpath_var=LIBPATH
11393 library_names_spec='$libname.ixlibrary $libname.a'
11394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11395 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'
11399 library_names_spec='${libname}${shared_ext}'
11400 dynamic_linker="$host_os ld.so"
11401 shlibpath_var=LIBRARY_PATH
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11410 shlibpath_var=LD_LIBRARY_PATH
11411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11413 # the default ld.so.conf also contains /usr/contrib/lib and
11414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11415 # libtool to hard-code these into programs
11418 cygwin* | mingw* | pw32*)
11419 version_type=windows
11424 case $GCC,$host_os in
11425 yes,cygwin* | yes,mingw* | yes,pw32*)
11426 library_names_spec='$libname.dll.a'
11427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11428 postinstall_cmds='base_file=`basename \${file}`~
11429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11430 dldir=$destdir/`dirname \$dlpath`~
11431 test -d \$dldir || mkdir -p \$dldir~
11432 $install_prog $dir/$dlname \$dldir/$dlname'
11433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11434 dlpath=$dir/\$dldll~
11436 shlibpath_overrides_runpath=yes
11440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11442 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11445 # MinGW DLLs use traditional 'lib' prefix
11446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11448 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11449 # It is most probably a Windows format PATH printed by
11450 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11451 # path with ; separators, and with drive letters. We can handle the
11452 # drive letters (cygwin fileutils understands them), so leave them,
11453 # especially as we might pass files found there to a mingw objdump,
11454 # which wouldn't understand a cygwinified path. Ahh.
11455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11461 # pw32 DLLs use 'pw' prefix rather than 'lib'
11462 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11471 dynamic_linker='Win32 ld.exe'
11472 # FIXME: first we should search . and the directory the executable is in
11476 darwin* | rhapsody*)
11477 dynamic_linker="$host_os dyld"
11478 version_type=darwin
11481 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11482 soname_spec='${libname}${release}${major}$shared_ext'
11483 shlibpath_overrides_runpath=yes
11484 shlibpath_var=DYLD_LIBRARY_PATH
11485 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11486 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11487 if test "$GCC" = yes; then
11488 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"`
11490 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 shlibpath_var=LD_LIBRARY_PATH
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=no
11516 hardcode_into_libs=yes
11517 dynamic_linker='GNU ld.so'
11521 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11522 version_type=freebsd-$objformat
11523 case $version_type in
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11534 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=yes
11539 freebsd3.01* | freebsdelf3.01*)
11540 shlibpath_overrides_runpath=yes
11541 hardcode_into_libs=yes
11544 shlibpath_overrides_runpath=no
11545 hardcode_into_libs=yes
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 hardcode_into_libs=yes
11560 hpux9* | hpux10* | hpux11*)
11561 # Give a soname corresponding to the major version so that dld.sl refuses to
11562 # link against other versions.
11566 case "$host_cpu" in
11569 hardcode_into_libs=yes
11570 dynamic_linker="$host_os dld.so"
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 if test "X$HPUX_IA64_MODE" = X32; then
11576 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11578 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11584 hardcode_into_libs=yes
11585 dynamic_linker="$host_os dld.sl"
11586 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11595 dynamic_linker="$host_os dld.sl"
11596 shlibpath_var=SHLIB_PATH
11597 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11602 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11603 postinstall_cmds='chmod 555 $lib'
11606 irix5* | irix6* | nonstopux*)
11608 nonstopux*) version_type=nonstopux ;;
11610 if test "$lt_cv_prog_gnu_ld" = yes; then
11618 soname_spec='${libname}${release}${shared_ext}$major'
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11621 irix5* | nonstopux*)
11622 libsuff= shlibsuff=
11625 case $LD in # libtool.m4 will add one of these switches to LD
11626 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11627 libsuff= shlibsuff= libmagic=32-bit;;
11628 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11629 libsuff=32 shlibsuff=N32 libmagic=N32;;
11630 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11631 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11632 *) libsuff= shlibsuff= libmagic=never-match;;
11636 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11637 shlibpath_overrides_runpath=no
11638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11640 hardcode_into_libs=yes
11643 # No shared lib support for Linux oldld, aout, or coff.
11644 linux*oldld* | linux*aout* | linux*coff*)
11648 # This must be Linux ELF.
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 shlibpath_overrides_runpath=no
11658 # This implies no fast_install, which is unacceptable.
11659 # Some rework will be needed to allow for fast_install
11660 # before this can be enabled.
11661 hardcode_into_libs=yes
11663 # Append ld.so.conf contents to the search path
11664 if test -f /etc/ld.so.conf; then
11665 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11666 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11669 # We used to test for /lib/ld.so.1 and disable shared libraries on
11670 # powerpc, because MkLinux only supported shared libraries with the
11671 # GNU dynamic linker. Since this was broken with cross compilers,
11672 # most powerpc-linux boxes support dynamic linking these days and
11673 # people can always --disable-shared, the test was removed, and we
11674 # assume the GNU/Linux dynamic linker is in use.
11675 dynamic_linker='GNU/Linux ld.so'
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11683 soname_spec='${libname}${release}${shared_ext}$major'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 shlibpath_overrides_runpath=no
11686 hardcode_into_libs=yes
11687 dynamic_linker='NetBSD ld.elf_so'
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11695 soname_spec='${libname}${release}${shared_ext}$major'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=no
11698 hardcode_into_libs=yes
11699 dynamic_linker='GNU ld.so'
11706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11709 dynamic_linker='NetBSD (a.out) ld.so'
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11712 soname_spec='${libname}${release}${shared_ext}$major'
11713 dynamic_linker='NetBSD ld.elf_so'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=yes
11717 hardcode_into_libs=yes
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 shlibpath_var=LD_LIBRARY_PATH
11724 shlibpath_overrides_runpath=yes
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732 soname_spec='${libname}${release}${shared_ext}$major'
11733 shlibpath_var=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath=yes
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11746 openbsd2.[89] | openbsd2.[89].*)
11747 shlibpath_overrides_runpath=no
11750 shlibpath_overrides_runpath=yes
11754 shlibpath_overrides_runpath=yes
11759 libname_spec='$name'
11762 library_names_spec='$libname${shared_ext} $libname.a'
11763 dynamic_linker='OS/2 ld.exe'
11764 shlibpath_var=LIBPATH
11767 osf3* | osf4* | osf5*)
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11775 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11780 soname_spec='${libname}${release}${shared_ext}$major'
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782 shlibpath_var=LD_LIBRARY_PATH
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 shlibpath_overrides_runpath=yes
11793 hardcode_into_libs=yes
11794 # ldd complains unless libraries are executable
11795 postinstall_cmds='chmod +x $lib'
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=yes
11804 if test "$with_gnu_ld" = yes; then
11810 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 case $host_vendor in
11817 shlibpath_overrides_runpath=no
11819 export_dynamic_flag_spec='${wl}-Blargedynsym'
11820 runpath_var=LD_RUN_PATH
11828 shlibpath_overrides_runpath=no
11829 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11835 if test -d /usr/nec ;then
11837 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11838 soname_spec='$libname${shared_ext}.$major'
11839 shlibpath_var=LD_LIBRARY_PATH
11845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11846 soname_spec='${libname}${release}${shared_ext}$major'
11847 shlibpath_var=LD_LIBRARY_PATH
11854 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11855 echo "${ECHO_T}$dynamic_linker" >&6
11856 test "$dynamic_linker" = no && can_build_shared=no
11858 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11859 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11860 hardcode_action_CXX=
11861 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11862 test -n "$runpath_var CXX" || \
11863 test "X$hardcode_automatic_CXX"="Xyes" ; then
11865 # We can hardcode non-existant directories.
11866 if test "$hardcode_direct_CXX" != no &&
11867 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11868 # have to relink, otherwise we might link with an installed library
11869 # when we should be linking with a yet-to-be-installed one
11870 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11871 test "$hardcode_minus_L_CXX" != no; then
11872 # Linking always hardcodes the temporary library directory.
11873 hardcode_action_CXX=relink
11875 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11876 hardcode_action_CXX=immediate
11879 # We cannot hardcode anything, or else we can only hardcode existing
11881 hardcode_action_CXX=unsupported
11883 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11884 echo "${ECHO_T}$hardcode_action_CXX" >&6
11886 if test "$hardcode_action_CXX" = relink; then
11887 # Fast installation is not supported
11888 enable_fast_install=no
11889 elif test "$shlibpath_overrides_runpath" = yes ||
11890 test "$enable_shared" = no; then
11891 # Fast installation is not necessary
11892 enable_fast_install=needless
11897 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11898 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11899 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11900 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11901 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11902 echo "$as_me:$LINENO: result: yes" >&5
11903 echo "${ECHO_T}yes" >&6
11905 # FIXME - insert some real tests, host_os isn't really good enough
11908 if test -n "$STRIP" ; then
11909 striplib="$STRIP -x"
11910 echo "$as_me:$LINENO: result: yes" >&5
11911 echo "${ECHO_T}yes" >&6
11913 echo "$as_me:$LINENO: result: no" >&5
11914 echo "${ECHO_T}no" >&6
11918 echo "$as_me:$LINENO: result: no" >&5
11919 echo "${ECHO_T}no" >&6
11924 if test "x$enable_dlopen" != xyes; then
11925 enable_dlopen=unknown
11926 enable_dlopen_self=unknown
11927 enable_dlopen_self_static=unknown
11934 lt_cv_dlopen="load_add_on"
11936 lt_cv_dlopen_self=yes
11940 lt_cv_dlopen="LoadLibrary"
11945 lt_cv_dlopen="dlopen"
11950 # if libdl is installed we need to link against it
11951 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 ac_check_lib_save_LIBS=$LIBS
11958 cat >conftest.$ac_ext <<_ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11965 /* Override any gcc2 internal prototype to avoid an error. */
11969 /* We use char because int might match the return type of a gcc2
11970 builtin and then its argument prototype would still apply. */
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11982 (eval $ac_link) 2>conftest.er1
11984 grep -v '^ *+' conftest.er1 >conftest.err
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest$ac_exeext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_cv_lib_dl_dlopen=yes
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 ac_cv_lib_dl_dlopen=no
12008 rm -f conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12010 LIBS=$ac_check_lib_save_LIBS
12012 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12013 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12014 if test $ac_cv_lib_dl_dlopen = yes; then
12015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12018 lt_cv_dlopen="dyld"
12020 lt_cv_dlopen_self=yes
12027 echo "$as_me:$LINENO: checking for shl_load" >&5
12028 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12029 if test "${ac_cv_func_shl_load+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 cat >conftest.$ac_ext <<_ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12040 #define shl_load innocuous_shl_load
12042 /* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char shl_load (); below.
12044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 <limits.h> exists even on freestanding compilers. */
12048 # include <limits.h>
12050 # include <assert.h>
12055 /* Override any gcc2 internal prototype to avoid an error. */
12060 /* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12063 /* The GNU C library defines this for functions which it implements
12064 to always fail with ENOSYS. Some functions are actually named
12065 something starting with __ and the normal name is an alias. */
12066 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12069 char (*f) () = shl_load;
12078 return f != shl_load;
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>conftest.er1
12087 grep -v '^ *+' conftest.er1 >conftest.err
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest$ac_exeext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_cv_func_shl_load=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_cv_func_shl_load=no
12111 rm -f conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12114 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12115 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12116 if test $ac_cv_func_shl_load = yes; then
12117 lt_cv_dlopen="shl_load"
12119 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12120 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12121 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 ac_check_lib_save_LIBS=$LIBS
12126 cat >conftest.$ac_ext <<_ACEOF
12129 cat confdefs.h >>conftest.$ac_ext
12130 cat >>conftest.$ac_ext <<_ACEOF
12131 /* end confdefs.h. */
12133 /* Override any gcc2 internal prototype to avoid an error. */
12137 /* We use char because int might match the return type of a gcc2
12138 builtin and then its argument prototype would still apply. */
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150 (eval $ac_link) 2>conftest.er1
12152 grep -v '^ *+' conftest.er1 >conftest.err
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } &&
12157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try='test -s conftest$ac_exeext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_cv_lib_dld_shl_load=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_cv_lib_dld_shl_load=no
12176 rm -f conftest.err conftest.$ac_objext \
12177 conftest$ac_exeext conftest.$ac_ext
12178 LIBS=$ac_check_lib_save_LIBS
12180 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12181 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12182 if test $ac_cv_lib_dld_shl_load = yes; then
12183 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12185 echo "$as_me:$LINENO: checking for dlopen" >&5
12186 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12187 if test "${ac_cv_func_dlopen+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12198 #define dlopen innocuous_dlopen
12200 /* System header to define __stub macros and hopefully few prototypes,
12201 which can conflict with char dlopen (); below.
12202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12203 <limits.h> exists even on freestanding compilers. */
12206 # include <limits.h>
12208 # include <assert.h>
12213 /* Override any gcc2 internal prototype to avoid an error. */
12218 /* We use char because int might match the return type of a gcc2
12219 builtin and then its argument prototype would still apply. */
12221 /* The GNU C library defines this for functions which it implements
12222 to always fail with ENOSYS. Some functions are actually named
12223 something starting with __ and the normal name is an alias. */
12224 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12227 char (*f) () = dlopen;
12236 return f != dlopen;
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>conftest.er1
12245 grep -v '^ *+' conftest.er1 >conftest.err
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; } &&
12256 { ac_try='test -s conftest$ac_exeext'
12257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258 (eval $ac_try) 2>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; }; then
12262 ac_cv_func_dlopen=yes
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ac_cv_func_dlopen=no
12269 rm -f conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12272 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12273 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12274 if test $ac_cv_func_dlopen = yes; then
12275 lt_cv_dlopen="dlopen"
12277 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12278 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12279 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 ac_check_lib_save_LIBS=$LIBS
12284 cat >conftest.$ac_ext <<_ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12291 /* Override any gcc2 internal prototype to avoid an error. */
12295 /* We use char because int might match the return type of a gcc2
12296 builtin and then its argument prototype would still apply. */
12306 rm -f conftest.$ac_objext conftest$ac_exeext
12307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12308 (eval $ac_link) 2>conftest.er1
12310 grep -v '^ *+' conftest.er1 >conftest.err
12312 cat conftest.err >&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } &&
12315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; } &&
12321 { ac_try='test -s conftest$ac_exeext'
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 ac_cv_lib_dl_dlopen=yes
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 ac_cv_lib_dl_dlopen=no
12334 rm -f conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
12336 LIBS=$ac_check_lib_save_LIBS
12338 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12339 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12340 if test $ac_cv_lib_dl_dlopen = yes; then
12341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12343 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12344 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12345 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 ac_check_lib_save_LIBS=$LIBS
12349 LIBS="-lsvld $LIBS"
12350 cat >conftest.$ac_ext <<_ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12357 /* Override any gcc2 internal prototype to avoid an error. */
12361 /* We use char because int might match the return type of a gcc2
12362 builtin and then its argument prototype would still apply. */
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374 (eval $ac_link) 2>conftest.er1
12376 grep -v '^ *+' conftest.er1 >conftest.err
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest$ac_exeext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 ac_cv_lib_svld_dlopen=yes
12395 echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12398 ac_cv_lib_svld_dlopen=no
12400 rm -f conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12402 LIBS=$ac_check_lib_save_LIBS
12404 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12405 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12406 if test $ac_cv_lib_svld_dlopen = yes; then
12407 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12409 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12410 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12411 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 ac_check_lib_save_LIBS=$LIBS
12416 cat >conftest.$ac_ext <<_ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12423 /* Override any gcc2 internal prototype to avoid an error. */
12427 /* We use char because int might match the return type of a gcc2
12428 builtin and then its argument prototype would still apply. */
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440 (eval $ac_link) 2>conftest.er1
12442 grep -v '^ *+' conftest.er1 >conftest.err
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try='test -s conftest$ac_exeext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_lib_dld_dld_link=yes
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 ac_cv_lib_dld_dld_link=no
12466 rm -f conftest.err conftest.$ac_objext \
12467 conftest$ac_exeext conftest.$ac_ext
12468 LIBS=$ac_check_lib_save_LIBS
12470 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12471 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12472 if test $ac_cv_lib_dld_dld_link = yes; then
12473 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12494 if test "x$lt_cv_dlopen" != xno; then
12500 case $lt_cv_dlopen in
12502 save_CPPFLAGS="$CPPFLAGS"
12503 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12505 save_LDFLAGS="$LDFLAGS"
12506 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12509 LIBS="$lt_cv_dlopen_libs $LIBS"
12511 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12512 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12513 if test "${lt_cv_dlopen_self+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 if test "$cross_compiling" = yes; then :
12517 lt_cv_dlopen_self=cross
12519 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12520 lt_status=$lt_dlunknown
12521 cat > conftest.$ac_ext <<EOF
12522 #line __oline__ "configure"
12523 #include "confdefs.h"
12532 # define LT_DLGLOBAL RTLD_GLOBAL
12535 # define LT_DLGLOBAL DL_GLOBAL
12537 # define LT_DLGLOBAL 0
12541 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12542 find out it does not work in some platform. */
12543 #ifndef LT_DLLAZY_OR_NOW
12545 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12548 # define LT_DLLAZY_OR_NOW DL_LAZY
12551 # define LT_DLLAZY_OR_NOW RTLD_NOW
12554 # define LT_DLLAZY_OR_NOW DL_NOW
12556 # define LT_DLLAZY_OR_NOW 0
12564 extern "C" void exit (int);
12567 void fnord() { int i=42;}
12570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12571 int status = $lt_dlunknown;
12575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12576 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12577 /* dlclose (self); */
12583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12584 (eval $ac_link) 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12588 (./conftest; exit; ) 2>/dev/null
12590 case x$lt_status in
12591 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12592 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12593 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12596 # compilation failed
12597 lt_cv_dlopen_self=no
12604 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12605 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12607 if test "x$lt_cv_dlopen_self" = xyes; then
12608 LDFLAGS="$LDFLAGS $link_static_flag"
12609 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12610 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12611 if test "${lt_cv_dlopen_self_static+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 if test "$cross_compiling" = yes; then :
12615 lt_cv_dlopen_self_static=cross
12617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12618 lt_status=$lt_dlunknown
12619 cat > conftest.$ac_ext <<EOF
12620 #line __oline__ "configure"
12621 #include "confdefs.h"
12630 # define LT_DLGLOBAL RTLD_GLOBAL
12633 # define LT_DLGLOBAL DL_GLOBAL
12635 # define LT_DLGLOBAL 0
12639 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12640 find out it does not work in some platform. */
12641 #ifndef LT_DLLAZY_OR_NOW
12643 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12646 # define LT_DLLAZY_OR_NOW DL_LAZY
12649 # define LT_DLLAZY_OR_NOW RTLD_NOW
12652 # define LT_DLLAZY_OR_NOW DL_NOW
12654 # define LT_DLLAZY_OR_NOW 0
12662 extern "C" void exit (int);
12665 void fnord() { int i=42;}
12668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12669 int status = $lt_dlunknown;
12673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12674 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12675 /* dlclose (self); */
12681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12682 (eval $ac_link) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12686 (./conftest; exit; ) 2>/dev/null
12688 case x$lt_status in
12689 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12690 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12691 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12694 # compilation failed
12695 lt_cv_dlopen_self_static=no
12702 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12703 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12706 CPPFLAGS="$save_CPPFLAGS"
12707 LDFLAGS="$save_LDFLAGS"
12712 case $lt_cv_dlopen_self in
12713 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12714 *) enable_dlopen_self=unknown ;;
12717 case $lt_cv_dlopen_self_static in
12718 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12719 *) enable_dlopen_self_static=unknown ;;
12724 # The else clause should only fire when bootstrapping the
12725 # libtool distribution, otherwise you forgot to ship ltmain.sh
12726 # with your package, and you will get complaints that there are
12727 # no rules to generate ltmain.sh.
12728 if test -f "$ltmain"; then
12729 # See if we are running on zsh, and set the options which allow our commands through
12730 # without removal of \ escapes.
12731 if test -n "${ZSH_VERSION+set}" ; then
12732 setopt NO_GLOB_SUBST
12734 # Now quote all the things that may contain metacharacters while being
12735 # careful not to overquote the AC_SUBSTed values. We take copies of the
12736 # variables and quote the copies for generation of the libtool script.
12737 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12739 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12740 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12741 deplibs_check_method reload_flag reload_cmds need_locks \
12742 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12743 lt_cv_sys_global_symbol_to_c_name_address \
12744 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12745 old_postinstall_cmds old_postuninstall_cmds \
12749 lt_prog_compiler_wl_CXX \
12750 lt_prog_compiler_pic_CXX \
12751 lt_prog_compiler_static_CXX \
12752 lt_prog_compiler_no_builtin_flag_CXX \
12753 export_dynamic_flag_spec_CXX \
12754 thread_safe_flag_spec_CXX \
12755 whole_archive_flag_spec_CXX \
12756 enable_shared_with_static_runtimes_CXX \
12757 old_archive_cmds_CXX \
12758 old_archive_from_new_cmds_CXX \
12759 predep_objects_CXX \
12760 postdep_objects_CXX \
12763 compiler_lib_search_path_CXX \
12765 archive_expsym_cmds_CXX \
12766 postinstall_cmds_CXX \
12767 postuninstall_cmds_CXX \
12768 old_archive_from_expsyms_cmds_CXX \
12769 allow_undefined_flag_CXX \
12770 no_undefined_flag_CXX \
12771 export_symbols_cmds_CXX \
12772 hardcode_libdir_flag_spec_CXX \
12773 hardcode_libdir_flag_spec_ld_CXX \
12774 hardcode_libdir_separator_CXX \
12775 hardcode_automatic_CXX \
12777 module_expsym_cmds_CXX \
12778 lt_cv_prog_compiler_c_o_CXX \
12779 exclude_expsyms_CXX \
12780 include_expsyms_CXX; do
12783 old_archive_cmds_CXX | \
12784 old_archive_from_new_cmds_CXX | \
12785 archive_cmds_CXX | \
12786 archive_expsym_cmds_CXX | \
12787 module_cmds_CXX | \
12788 module_expsym_cmds_CXX | \
12789 old_archive_from_expsyms_cmds_CXX | \
12790 export_symbols_cmds_CXX | \
12791 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12792 postinstall_cmds | postuninstall_cmds | \
12793 old_postinstall_cmds | old_postuninstall_cmds | \
12794 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12795 # Double-quote double-evaled strings.
12796 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12805 *'\$0 --fallback-echo"')
12806 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12812 cat <<__EOF__ >> "$cfgfile"
12813 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12815 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12817 # Shell to use when invoking shell scripts.
12820 # Whether or not to build shared libraries.
12821 build_libtool_libs=$enable_shared
12823 # Whether or not to build static libraries.
12824 build_old_libs=$enable_static
12826 # Whether or not to add -lc for building shared libraries.
12827 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12829 # Whether or not to disallow shared libs when runtime libs are static
12830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12832 # Whether or not to optimize for fast installation.
12833 fast_install=$enable_fast_install
12836 host_alias=$host_alias
12839 # An echo program that does not interpret backslashes.
12844 AR_FLAGS=$lt_AR_FLAGS
12849 # A language-specific compiler.
12850 CC=$lt_compiler_CXX
12852 # Is the compiler the GNU C compiler?
12858 # The linker used to build libraries.
12861 # Whether we need hard or soft links.
12864 # A BSD-compatible nm program.
12867 # A symbol stripping program
12870 # Used to examine libraries when file_magic_cmd begins "file"
12871 MAGIC_CMD=$MAGIC_CMD
12873 # Used on cygwin: DLL creation program.
12876 # Used on cygwin: object dumper.
12879 # Used on cygwin: assembler.
12882 # The name of the directory that contains temporary libtool files.
12885 # How to create reloadable object files.
12886 reload_flag=$lt_reload_flag
12887 reload_cmds=$lt_reload_cmds
12889 # How to pass a linker flag through the compiler.
12890 wl=$lt_lt_prog_compiler_wl_CXX
12892 # Object file suffix (normally "o").
12893 objext="$ac_objext"
12895 # Old archive suffix (normally "a").
12898 # Shared library suffix (normally ".so").
12899 shrext_cmds='$shrext_cmds'
12901 # Executable file suffix (normally "").
12904 # Additional compiler flags for building library objects.
12905 pic_flag=$lt_lt_prog_compiler_pic_CXX
12908 # What is the maximum length of a command?
12909 max_cmd_len=$lt_cv_sys_max_cmd_len
12911 # Does compiler simultaneously support -c and -o options?
12912 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12914 # Must we lock files when doing compilation ?
12915 need_locks=$lt_need_locks
12917 # Do we need the lib prefix for modules?
12918 need_lib_prefix=$need_lib_prefix
12920 # Do we need a version for libraries?
12921 need_version=$need_version
12923 # Whether dlopen is supported.
12924 dlopen_support=$enable_dlopen
12926 # Whether dlopen of programs is supported.
12927 dlopen_self=$enable_dlopen_self
12929 # Whether dlopen of statically linked programs is supported.
12930 dlopen_self_static=$enable_dlopen_self_static
12932 # Compiler flag to prevent dynamic linking.
12933 link_static_flag=$lt_lt_prog_compiler_static_CXX
12935 # Compiler flag to turn off builtin functions.
12936 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12938 # Compiler flag to allow reflexive dlopens.
12939 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12941 # Compiler flag to generate shared objects directly from archives.
12942 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12944 # Compiler flag to generate thread-safe objects.
12945 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12947 # Library versioning type.
12948 version_type=$version_type
12950 # Format of library name prefix.
12951 libname_spec=$lt_libname_spec
12953 # List of archive names. First name is the real one, the rest are links.
12954 # The last name is the one that the linker finds with -lNAME.
12955 library_names_spec=$lt_library_names_spec
12957 # The coded name of the library, if different from the real name.
12958 soname_spec=$lt_soname_spec
12960 # Commands used to build and install an old-style archive.
12962 old_archive_cmds=$lt_old_archive_cmds_CXX
12963 old_postinstall_cmds=$lt_old_postinstall_cmds
12964 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12966 # Create an old-style archive from a shared archive.
12967 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12969 # Create a temporary old-style archive to link instead of a shared archive.
12970 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12972 # Commands used to build and install a shared archive.
12973 archive_cmds=$lt_archive_cmds_CXX
12974 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12975 postinstall_cmds=$lt_postinstall_cmds
12976 postuninstall_cmds=$lt_postuninstall_cmds
12978 # Commands used to build a loadable module (assumed same as above if empty)
12979 module_cmds=$lt_module_cmds_CXX
12980 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12982 # Commands to strip libraries.
12983 old_striplib=$lt_old_striplib
12984 striplib=$lt_striplib
12986 # Dependencies to place before the objects being linked to create a
12988 predep_objects=$lt_predep_objects_CXX
12990 # Dependencies to place after the objects being linked to create a
12992 postdep_objects=$lt_postdep_objects_CXX
12994 # Dependencies to place before the objects being linked to create a
12996 predeps=$lt_predeps_CXX
12998 # Dependencies to place after the objects being linked to create a
13000 postdeps=$lt_postdeps_CXX
13002 # The library search path used internally by the compiler when linking
13003 # a shared library.
13004 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13006 # Method to check whether dependent libraries are shared objects.
13007 deplibs_check_method=$lt_deplibs_check_method
13009 # Command to use when deplibs_check_method == file_magic.
13010 file_magic_cmd=$lt_file_magic_cmd
13012 # Flag that allows shared libraries with undefined symbols to be built.
13013 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13015 # Flag that forces no undefined symbols.
13016 no_undefined_flag=$lt_no_undefined_flag_CXX
13018 # Commands used to finish a libtool library installation in a directory.
13019 finish_cmds=$lt_finish_cmds
13021 # Same as above, but a single script fragment to be evaled but not shown.
13022 finish_eval=$lt_finish_eval
13024 # Take the output of nm and produce a listing of raw symbols and C names.
13025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13027 # Transform the output of nm in a proper C declaration
13028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13030 # Transform the output of nm in a C name address pair
13031 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13033 # This is the shared library runtime path variable.
13034 runpath_var=$runpath_var
13036 # This is the shared library path variable.
13037 shlibpath_var=$shlibpath_var
13039 # Is shlibpath searched before the hard-coded library search path?
13040 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13042 # How to hardcode a shared library path into an executable.
13043 hardcode_action=$hardcode_action_CXX
13045 # Whether we should hardcode library paths into libraries.
13046 hardcode_into_libs=$hardcode_into_libs
13048 # Flag to hardcode \$libdir into a binary during linking.
13049 # This must work even if \$libdir does not exist.
13050 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13052 # If ld is used when linking, flag to hardcode \$libdir into
13053 # a binary during linking. This must work even if \$libdir does
13055 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13057 # Whether we need a single -rpath flag with a separated argument.
13058 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13060 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13061 # resulting binary.
13062 hardcode_direct=$hardcode_direct_CXX
13064 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13065 # resulting binary.
13066 hardcode_minus_L=$hardcode_minus_L_CXX
13068 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13069 # the resulting binary.
13070 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13072 # Set to yes if building a shared library automatically hardcodes DIR into the library
13073 # and all subsequent libraries and executables linked against it.
13074 hardcode_automatic=$hardcode_automatic_CXX
13076 # Variables whose values should be saved in libtool wrapper scripts and
13077 # restored at relink time.
13078 variables_saved_for_relink="$variables_saved_for_relink"
13080 # Whether libtool must link a program against all its dependency libraries.
13081 link_all_deplibs=$link_all_deplibs_CXX
13083 # Compile-time system search path for libraries
13084 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13086 # Run-time system search path for libraries
13087 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13089 # Fix the shell variable \$srcfile for the compiler.
13090 fix_srcfile_path="$fix_srcfile_path_CXX"
13092 # Set to yes if exported symbols are required.
13093 always_export_symbols=$always_export_symbols_CXX
13095 # The commands to list exported symbols.
13096 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13098 # The commands to extract the exported symbol list from a shared archive.
13099 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13101 # Symbols that should not be listed in the preloaded symbols.
13102 exclude_expsyms=$lt_exclude_expsyms_CXX
13104 # Symbols that must always be exported.
13105 include_expsyms=$lt_include_expsyms_CXX
13107 # ### END LIBTOOL TAG CONFIG: $tagname
13113 # If there is no Makefile yet, we rely on a make rule to execute
13114 # `config.status --recheck' to rerun these tests and create the
13115 # libtool script then.
13116 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13117 if test -f "$ltmain_in"; then
13118 test -f Makefile && make "$ltmain"
13124 ac_cpp='$CPP $CPPFLAGS'
13125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13133 with_gnu_ldcxx=$with_gnu_ld
13134 with_gnu_ld=$lt_save_with_gnu_ld
13135 lt_cv_path_LDCXX=$lt_cv_path_LD
13136 lt_cv_path_LD=$lt_save_path_LD
13137 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13138 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13146 if test -n "$F77" && test "X$F77" != "Xno"; then
13149 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13150 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13151 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13154 archive_cmds_need_lc_F77=no
13155 allow_undefined_flag_F77=
13156 always_export_symbols_F77=no
13157 archive_expsym_cmds_F77=
13158 export_dynamic_flag_spec_F77=
13159 hardcode_direct_F77=no
13160 hardcode_libdir_flag_spec_F77=
13161 hardcode_libdir_flag_spec_ld_F77=
13162 hardcode_libdir_separator_F77=
13163 hardcode_minus_L_F77=no
13164 hardcode_automatic_F77=no
13166 module_expsym_cmds_F77=
13167 link_all_deplibs_F77=unknown
13168 old_archive_cmds_F77=$old_archive_cmds
13169 no_undefined_flag_F77=
13170 whole_archive_flag_spec_F77=
13171 enable_shared_with_static_runtimes_F77=no
13173 # Source file extension for f77 test sources.
13176 # Object file extension for compiled f77 test sources.
13180 # Code to be used in simple compile tests
13181 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13183 # Code to be used in simple link tests
13184 lt_simple_link_test_code=" program t\n end\n"
13186 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13188 # If no C compiler was specified, use CC.
13191 # Allow CC to be a program name with arguments.
13195 # Allow CC to be a program name with arguments.
13200 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13202 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13203 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13204 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13205 echo "${ECHO_T}$can_build_shared" >&6
13207 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13208 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13209 test "$can_build_shared" = "no" && enable_shared=no
13211 # On AIX, shared libraries and static libraries use the same namespace, and
13212 # are all built from PIC.
13215 test "$enable_shared" = yes && enable_static=no
13216 if test -n "$RANLIB"; then
13217 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13218 postinstall_cmds='$RANLIB $lib'
13222 test "$enable_shared" = yes && enable_static=no
13225 echo "$as_me:$LINENO: result: $enable_shared" >&5
13226 echo "${ECHO_T}$enable_shared" >&6
13228 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13229 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13230 # Make sure either enable_shared or enable_static is yes.
13231 test "$enable_shared" = yes || enable_static=yes
13232 echo "$as_me:$LINENO: result: $enable_static" >&5
13233 echo "${ECHO_T}$enable_static" >&6
13235 test "$ld_shlibs_F77" = no && can_build_shared=no
13240 lt_prog_compiler_wl_F77=
13241 lt_prog_compiler_pic_F77=
13242 lt_prog_compiler_static_F77=
13244 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13245 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13247 if test "$GCC" = yes; then
13248 lt_prog_compiler_wl_F77='-Wl,'
13249 lt_prog_compiler_static_F77='-static'
13253 # All AIX code is PIC.
13254 if test "$host_cpu" = ia64; then
13255 # AIX 5 now supports IA64 processor
13256 lt_prog_compiler_static_F77='-Bstatic'
13261 # FIXME: we need at least 68020 code to build shared libraries, but
13262 # adding the `-m68020' flag to GCC prevents building anything better,
13264 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13267 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13268 # PIC is the default for these OSes.
13271 mingw* | pw32* | os2*)
13272 # This hack is so that the source file can tell whether it is being
13273 # built for inclusion in a dll (and should export symbols for example).
13274 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13277 darwin* | rhapsody*)
13278 # PIC is the default on this platform
13279 # Common symbols not allowed in MH_DYLIB files
13280 lt_prog_compiler_pic_F77='-fno-common'
13284 # Just because we use GCC doesn't mean we suddenly get shared libraries
13285 # on systems that don't support them.
13286 lt_prog_compiler_can_build_shared_F77=no
13291 if test -d /usr/nec; then
13292 lt_prog_compiler_pic_F77=-Kconform_pic
13297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13298 # not for PA HP-UX.
13299 case "$host_cpu" in
13304 lt_prog_compiler_pic_F77='-fPIC'
13310 lt_prog_compiler_pic_F77='-fPIC'
13314 # PORTME Check for flag to pass linker flags through the system compiler.
13317 lt_prog_compiler_wl_F77='-Wl,'
13318 if test "$host_cpu" = ia64; then
13319 # AIX 5 now supports IA64 processor
13320 lt_prog_compiler_static_F77='-Bstatic'
13322 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13326 mingw* | pw32* | os2*)
13327 # This hack is so that the source file can tell whether it is being
13328 # built for inclusion in a dll (and should export symbols for example).
13329 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13332 hpux9* | hpux10* | hpux11*)
13333 lt_prog_compiler_wl_F77='-Wl,'
13334 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13335 # not for PA HP-UX.
13336 case "$host_cpu" in
13341 lt_prog_compiler_pic_F77='+Z'
13344 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13345 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13348 irix5* | irix6* | nonstopux*)
13349 lt_prog_compiler_wl_F77='-Wl,'
13350 # PIC (with -KPIC) is the default.
13351 lt_prog_compiler_static_F77='-non_shared'
13355 lt_prog_compiler_pic_F77='-KPIC'
13356 lt_prog_compiler_static_F77='-Bstatic'
13362 lt_prog_compiler_wl_F77='-Wl,'
13363 lt_prog_compiler_pic_F77='-KPIC'
13364 lt_prog_compiler_static_F77='-static'
13367 lt_prog_compiler_wl_F77='-Wl,'
13368 # All Alpha code is PIC.
13369 lt_prog_compiler_static_F77='-non_shared'
13374 osf3* | osf4* | osf5*)
13375 lt_prog_compiler_wl_F77='-Wl,'
13376 # All OSF/1 code is PIC.
13377 lt_prog_compiler_static_F77='-non_shared'
13381 lt_prog_compiler_pic_F77='-Kpic'
13382 lt_prog_compiler_static_F77='-dn'
13386 lt_prog_compiler_wl_F77='-Wl,'
13387 lt_prog_compiler_pic_F77='-KPIC'
13388 lt_prog_compiler_static_F77='-Bstatic'
13392 lt_prog_compiler_wl_F77='-Qoption ld '
13393 lt_prog_compiler_pic_F77='-PIC'
13394 lt_prog_compiler_static_F77='-Bstatic'
13397 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13398 lt_prog_compiler_wl_F77='-Wl,'
13399 lt_prog_compiler_pic_F77='-KPIC'
13400 lt_prog_compiler_static_F77='-Bstatic'
13404 if test -d /usr/nec ;then
13405 lt_prog_compiler_pic_F77='-Kconform_pic'
13406 lt_prog_compiler_static_F77='-Bstatic'
13411 lt_prog_compiler_pic_F77='-pic'
13412 lt_prog_compiler_static_F77='-Bstatic'
13416 lt_prog_compiler_can_build_shared_F77=no
13421 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13422 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13425 # Check to make sure the PIC flag actually works.
13427 if test -n "$lt_prog_compiler_pic_F77"; then
13429 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13430 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13431 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 lt_prog_compiler_pic_works_F77=no
13435 ac_outfile=conftest.$ac_objext
13436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13437 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13438 # Insert the option either (1) after the last *FLAGS variable, or
13439 # (2) before a word containing "conftest.", or (3) at the end.
13440 # Note that $ac_compile itself does not contain backslashes and begins
13441 # with a dollar sign (not a hyphen), so the echo should work correctly.
13442 # The option is referenced via a variable to avoid confusing sed.
13443 lt_compile=`echo "$ac_compile" | $SED \
13444 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13446 -e 's:$: $lt_compiler_flag:'`
13447 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13448 (eval "$lt_compile" 2>conftest.err)
13450 cat conftest.err >&5
13451 echo "$as_me:__oline__: \$? = $ac_status" >&5
13452 if (exit $ac_status) && test -s "$ac_outfile"; then
13453 # The compiler can only warn and ignore the option if not recognized
13454 # So say no if there are warnings
13455 if test ! -s conftest.err; then
13456 lt_prog_compiler_pic_works_F77=yes
13462 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13463 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13465 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13466 case $lt_prog_compiler_pic_F77 in
13468 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13471 lt_prog_compiler_pic_F77=
13472 lt_prog_compiler_can_build_shared_F77=no
13477 # For platforms which do not support PIC, -DPIC is meaningless:
13479 lt_prog_compiler_pic_F77=
13482 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13486 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13487 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13488 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 lt_cv_prog_compiler_c_o_F77=no
13492 $rm -r conftest 2>/dev/null
13496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13498 lt_compiler_flag="-o out/conftest2.$ac_objext"
13499 # Insert the option either (1) after the last *FLAGS variable, or
13500 # (2) before a word containing "conftest.", or (3) at the end.
13501 # Note that $ac_compile itself does not contain backslashes and begins
13502 # with a dollar sign (not a hyphen), so the echo should work correctly.
13503 lt_compile=`echo "$ac_compile" | $SED \
13504 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13506 -e 's:$: $lt_compiler_flag:'`
13507 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13508 (eval "$lt_compile" 2>out/conftest.err)
13510 cat out/conftest.err >&5
13511 echo "$as_me:__oline__: \$? = $ac_status" >&5
13512 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13514 # The compiler can only warn and ignore the option if not recognized
13515 # So say no if there are warnings
13516 if test ! -s out/conftest.err; then
13517 lt_cv_prog_compiler_c_o_F77=yes
13522 # SGI C++ compiler will create directory out/ii_files/ for
13523 # template instantiation
13524 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13525 $rm out/* && rmdir out
13531 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13532 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13535 hard_links="nottested"
13536 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13537 # do not overwrite the value of need_locks provided by the user
13538 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13539 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13544 ln conftest.a conftest.b 2>&5 || hard_links=no
13545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13546 echo "$as_me:$LINENO: result: $hard_links" >&5
13547 echo "${ECHO_T}$hard_links" >&6
13548 if test "$hard_links" = no; then
13549 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13550 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13557 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13558 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13561 allow_undefined_flag_F77=
13562 enable_shared_with_static_runtimes_F77=no
13564 archive_expsym_cmds_F77=
13565 old_archive_From_new_cmds_F77=
13566 old_archive_from_expsyms_cmds_F77=
13567 export_dynamic_flag_spec_F77=
13568 whole_archive_flag_spec_F77=
13569 thread_safe_flag_spec_F77=
13570 hardcode_libdir_flag_spec_F77=
13571 hardcode_libdir_flag_spec_ld_F77=
13572 hardcode_libdir_separator_F77=
13573 hardcode_direct_F77=no
13574 hardcode_minus_L_F77=no
13575 hardcode_shlibpath_var_F77=unsupported
13576 link_all_deplibs_F77=unknown
13577 hardcode_automatic_F77=no
13579 module_expsym_cmds_F77=
13580 always_export_symbols_F77=no
13581 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13582 # include_expsyms should be a list of space-separated symbols to be *always*
13583 # included in the symbol list
13584 include_expsyms_F77=
13585 # exclude_expsyms can be an extended regexp of symbols to exclude
13586 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13587 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13588 # as well as any symbol that contains `d'.
13589 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13591 # platforms (ab)use it in PIC code, but their linkers get confused if
13592 # the symbol is explicitly referenced. Since portable code cannot
13593 # rely on this symbol name, it's probably fine to never include it in
13594 # preloaded symbol tables.
13595 extract_expsyms_cmds=
13598 cygwin* | mingw* | pw32*)
13599 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13600 # When not using gcc, we currently assume that we are using
13601 # Microsoft Visual C++.
13602 if test "$GCC" != yes; then
13612 if test "$with_gnu_ld" = yes; then
13613 # If archive_cmds runs LD, not CC, wlarc should be empty
13616 # See if GNU ld supports shared libraries.
13618 aix3* | aix4* | aix5*)
13619 # On AIX/PPC, the GNU linker is very broken
13620 if test "$host_cpu" != ia64; then
13624 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13625 *** to be unable to reliably create shared libraries on AIX.
13626 *** Therefore, libtool is disabling shared libraries support. If you
13627 *** really care for shared libraries, you may want to modify your PATH
13628 *** so that a non-GNU linker is found, and then restart.
13635 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)'
13636 hardcode_libdir_flag_spec_F77='-L$libdir'
13637 hardcode_minus_L_F77=yes
13639 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13640 # that the semantics of dynamic libraries on AmigaOS, at least up
13641 # to version 4, is to share data among multiple programs linked
13642 # with the same dynamic library. Since this doesn't match the
13643 # behavior of shared libraries on other platforms, we can't use
13649 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13650 allow_undefined_flag_F77=unsupported
13651 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13652 # support --undefined. This deserves some investigation. FIXME
13653 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13659 cygwin* | mingw* | pw32*)
13660 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13661 # as there is no search path for DLLs.
13662 hardcode_libdir_flag_spec_F77='-L$libdir'
13663 allow_undefined_flag_F77=unsupported
13664 always_export_symbols_F77=no
13665 enable_shared_with_static_runtimes_F77=yes
13666 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13668 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13670 # If the export-symbols file already is a .def file (1st line
13671 # is EXPORTS), use it as is; otherwise, prepend...
13672 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13673 cp $export_symbols $output_objdir/$soname.def;
13675 echo EXPORTS > $output_objdir/$soname.def;
13676 cat $export_symbols >> $output_objdir/$soname.def;
13678 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13684 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13685 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13686 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13689 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13690 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13695 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13699 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13700 *** create shared libraries on Solaris systems. Therefore, libtool
13701 *** is disabling shared libraries support. We urge you to upgrade GNU
13702 *** binutils to release 2.9.1 or newer. Another option is to modify
13703 *** your PATH or compiler configuration so that the native linker is
13704 *** used, and then restart.
13707 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13708 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13709 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13716 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13718 hardcode_direct_F77=yes
13719 hardcode_shlibpath_var_F77=no
13723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13724 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725 archive_cmds_F77="$tmp_archive_cmds"
13726 supports_anon_versioning=no
13727 case `$LD -v 2>/dev/null` in
13728 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13729 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13730 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13731 *\ 2.11.*) ;; # other 2.11 versions
13732 *) supports_anon_versioning=yes ;;
13734 if test $supports_anon_versioning = yes; then
13735 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13737 $echo "local: *; };" >> $output_objdir/$libname.ver~
13738 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13740 archive_expsym_cmds_F77="$tmp_archive_cmds"
13742 link_all_deplibs_F77=no
13749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13750 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13751 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13758 if test "$ld_shlibs_F77" = yes; then
13759 runpath_var=LD_RUN_PATH
13760 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13761 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13762 # ancient GNU ld didn't support --whole-archive et. al.
13763 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13764 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13766 whole_archive_flag_spec_F77=
13770 # PORTME fill in a description of your system's linker (not GNU ld)
13773 allow_undefined_flag_F77=unsupported
13774 always_export_symbols_F77=yes
13775 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'
13776 # Note: this linker hardcodes the directories in LIBPATH if there
13777 # are no directories specified by -L.
13778 hardcode_minus_L_F77=yes
13779 if test "$GCC" = yes && test -z "$link_static_flag"; then
13780 # Neither direct hardcoding nor static linking is supported with a
13782 hardcode_direct_F77=unsupported
13787 if test "$host_cpu" = ia64; then
13788 # On IA64, the linker does run time linking by default, so we don't
13789 # have to do anything special.
13790 aix_use_runtimelinking=no
13791 exp_sym_flag='-Bexport'
13794 # If we're using GNU nm, then we don't want the "-C" option.
13795 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13796 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13797 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'
13799 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'
13801 aix_use_runtimelinking=no
13803 # Test if we are trying to use run time linking or normal
13804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13805 # need to do runtime linking.
13806 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13807 for ld_flag in $LDFLAGS; do
13808 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13809 aix_use_runtimelinking=yes
13815 exp_sym_flag='-bexport'
13816 no_entry_flag='-bnoentry'
13819 # When large executables or shared objects are built, AIX ld can
13820 # have problems creating the table of contents. If linking a library
13821 # or program results in "error TOC overflow" add -mminimal-toc to
13822 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13823 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13825 archive_cmds_F77=''
13826 hardcode_direct_F77=yes
13827 hardcode_libdir_separator_F77=':'
13828 link_all_deplibs_F77=yes
13830 if test "$GCC" = yes; then
13831 case $host_os in aix4.012|aix4.012.*)
13832 # We only want to do this on AIX 4.2 and lower, the check
13833 # below for broken collect2 doesn't work under 4.3+
13834 collect2name=`${CC} -print-prog-name=collect2`
13835 if test -f "$collect2name" && \
13836 strings "$collect2name" | grep resolve_lib_name >/dev/null
13838 # We have reworked collect2
13839 hardcode_direct_F77=yes
13841 # We have old collect2
13842 hardcode_direct_F77=unsupported
13843 # It fails to find uninstalled libraries when the uninstalled
13844 # path is not listed in the libpath. Setting hardcode_minus_L
13845 # to unsupported forces relinking
13846 hardcode_minus_L_F77=yes
13847 hardcode_libdir_flag_spec_F77='-L$libdir'
13848 hardcode_libdir_separator_F77=
13851 shared_flag='-shared'
13854 if test "$host_cpu" = ia64; then
13855 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13856 # chokes on -Wl,-G. The following line is correct:
13859 if test "$aix_use_runtimelinking" = yes; then
13860 shared_flag='${wl}-G'
13862 shared_flag='${wl}-bM:SRE'
13867 # It seems that -bexpall does not export symbols beginning with
13868 # underscore (_), so it is better to generate a list of symbols to export.
13869 always_export_symbols_F77=yes
13870 if test "$aix_use_runtimelinking" = yes; then
13871 # Warning - without using the other runtime loading flags (-brtl),
13872 # -berok will link without error, but may produce a broken library.
13873 allow_undefined_flag_F77='-berok'
13874 # Determine the default libpath from the value encoded in an empty executable.
13875 cat >conftest.$ac_ext <<_ACEOF
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13882 (eval $ac_link) 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; } &&
13895 { ac_try='test -s conftest$ac_exeext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13904 # Check for a 64-bit object if we didn't find anything.
13905 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; }
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13912 rm -f conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13916 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13917 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"
13919 if test "$host_cpu" = ia64; then
13920 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13921 allow_undefined_flag_F77="-z nodefs"
13922 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"
13924 # Determine the default libpath from the value encoded in an empty executable.
13925 cat >conftest.$ac_ext <<_ACEOF
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932 (eval $ac_link) 2>conftest.er1
13934 grep -v '^ *+' conftest.er1 >conftest.err
13936 cat conftest.err >&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest$ac_exeext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13954 # Check for a 64-bit object if we didn't find anything.
13955 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; }
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13962 rm -f conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext conftest.$ac_ext
13964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13966 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13967 # Warning - without using the other run time loading flags,
13968 # -berok will link without error, but may produce a broken library.
13969 no_undefined_flag_F77=' ${wl}-bernotok'
13970 allow_undefined_flag_F77=' ${wl}-berok'
13971 # -bexpall does not export symbols beginning with underscore (_)
13972 always_export_symbols_F77=yes
13973 # Exported symbols can be pulled into shared objects from archives
13974 whole_archive_flag_spec_F77=' '
13975 archive_cmds_need_lc_F77=yes
13976 # This is similar to how AIX traditionally builds it's shared libraries.
13977 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'
13983 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)'
13984 hardcode_libdir_flag_spec_F77='-L$libdir'
13985 hardcode_minus_L_F77=yes
13986 # see comment about different semantics on the GNU ld section
13991 export_dynamic_flag_spec_F77=-rdynamic
13994 cygwin* | mingw* | pw32*)
13995 # When not using gcc, we currently assume that we are using
13996 # Microsoft Visual C++.
13997 # hardcode_libdir_flag_spec is actually meaningless, as there is
13998 # no search path for DLLs.
13999 hardcode_libdir_flag_spec_F77=' '
14000 allow_undefined_flag_F77=unsupported
14001 # Tell ltmain to make .lib files, not .a files.
14003 # Tell ltmain to make .dll files, not .so files.
14005 # FIXME: Setting linknames here is a bad hack.
14006 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14007 # The linker will automatically build a .lib file if we build a DLL.
14008 old_archive_From_new_cmds_F77='true'
14009 # FIXME: Should let the user specify the lib program.
14010 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14011 fix_srcfile_path='`cygpath -w "$srcfile"`'
14012 enable_shared_with_static_runtimes_F77=yes
14015 darwin* | rhapsody*)
14016 if test "$GXX" = yes ; then
14017 archive_cmds_need_lc_F77=no
14019 rhapsody* | darwin1.[012])
14020 allow_undefined_flag_F77='-undefined suppress'
14023 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14024 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14026 case ${MACOSX_DEPLOYMENT_TARGET} in
14028 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14031 allow_undefined_flag_F77='-undefined dynamic_lookup'
14037 lt_int_apple_cc_single_mod=no
14038 output_verbose_link_cmd='echo'
14039 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14040 lt_int_apple_cc_single_mod=yes
14042 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14043 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14045 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'
14047 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14048 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14049 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14050 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}'
14052 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}'
14054 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}'
14055 hardcode_direct_F77=no
14056 hardcode_automatic_F77=yes
14057 hardcode_shlibpath_var_F77=unsupported
14058 whole_archive_flag_spec_F77='-all_load $convenience'
14059 link_all_deplibs_F77=yes
14066 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14067 hardcode_libdir_flag_spec_F77='-L$libdir'
14068 hardcode_shlibpath_var_F77=no
14075 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14076 # support. Future versions do this automatically, but an explicit c++rt0.o
14077 # does not break anything, and helps significantly (at the cost of a little
14080 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14081 hardcode_libdir_flag_spec_F77='-R$libdir'
14082 hardcode_direct_F77=yes
14083 hardcode_shlibpath_var_F77=no
14086 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14088 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14089 hardcode_direct_F77=yes
14090 hardcode_minus_L_F77=yes
14091 hardcode_shlibpath_var_F77=no
14094 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14095 freebsd* | kfreebsd*-gnu)
14096 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14097 hardcode_libdir_flag_spec_F77='-R$libdir'
14098 hardcode_direct_F77=yes
14099 hardcode_shlibpath_var_F77=no
14103 if test "$GCC" = yes; then
14104 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'
14106 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'
14108 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14109 hardcode_libdir_separator_F77=:
14110 hardcode_direct_F77=yes
14112 # hardcode_minus_L: Not really in the search PATH,
14113 # but as the default location of the library.
14114 hardcode_minus_L_F77=yes
14115 export_dynamic_flag_spec_F77='${wl}-E'
14119 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14120 case "$host_cpu" in
14122 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14125 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14129 case "$host_cpu" in
14131 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14134 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14138 if test "$with_gnu_ld" = no; then
14139 case "$host_cpu" in
14141 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14142 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14143 hardcode_libdir_separator_F77=:
14144 hardcode_direct_F77=no
14145 hardcode_shlibpath_var_F77=no
14148 hardcode_libdir_flag_spec_F77='-L$libdir'
14149 hardcode_direct_F77=no
14150 hardcode_shlibpath_var_F77=no
14152 # hardcode_minus_L: Not really in the search PATH,
14153 # but as the default location of the library.
14154 hardcode_minus_L_F77=yes
14157 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14158 hardcode_libdir_separator_F77=:
14159 hardcode_direct_F77=yes
14160 export_dynamic_flag_spec_F77='${wl}-E'
14162 # hardcode_minus_L: Not really in the search PATH,
14163 # but as the default location of the library.
14164 hardcode_minus_L_F77=yes
14170 irix5* | irix6* | nonstopux*)
14171 if test "$GCC" = yes; then
14172 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'
14174 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'
14175 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14177 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14178 hardcode_libdir_separator_F77=:
14179 link_all_deplibs_F77=yes
14182 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14184 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14186 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14188 hardcode_libdir_flag_spec_F77='-R$libdir'
14189 hardcode_direct_F77=yes
14190 hardcode_shlibpath_var_F77=no
14194 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14195 hardcode_direct_F77=yes
14196 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14197 hardcode_libdir_separator_F77=:
14198 hardcode_shlibpath_var_F77=no
14202 hardcode_direct_F77=yes
14203 hardcode_shlibpath_var_F77=no
14204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14205 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14206 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14207 export_dynamic_flag_spec_F77='${wl}-E'
14210 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14211 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14212 hardcode_libdir_flag_spec_F77='-R$libdir'
14215 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14216 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14223 hardcode_libdir_flag_spec_F77='-L$libdir'
14224 hardcode_minus_L_F77=yes
14225 allow_undefined_flag_F77=unsupported
14226 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'
14227 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14231 if test "$GCC" = yes; then
14232 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14233 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'
14235 allow_undefined_flag_F77=' -expect_unresolved \*'
14236 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'
14238 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14239 hardcode_libdir_separator_F77=:
14242 osf4* | osf5*) # as osf3* with the addition of -msym flag
14243 if test "$GCC" = yes; then
14244 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14245 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'
14246 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14248 allow_undefined_flag_F77=' -expect_unresolved \*'
14249 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'
14250 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~
14251 $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'
14253 # Both c and cxx compiler support -rpath directly
14254 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14256 hardcode_libdir_separator_F77=:
14260 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14261 hardcode_shlibpath_var_F77=no
14262 export_dynamic_flag_spec_F77='${wl}-Bexport'
14263 runpath_var=LD_RUN_PATH
14264 hardcode_runpath_var=yes
14268 no_undefined_flag_F77=' -z text'
14269 if test "$GCC" = yes; then
14270 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14271 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14272 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14274 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14278 hardcode_libdir_flag_spec_F77='-R$libdir'
14279 hardcode_shlibpath_var_F77=no
14281 solaris2.[0-5] | solaris2.[0-5].*) ;;
14282 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14283 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14285 link_all_deplibs_F77=yes
14289 if test "x$host_vendor" = xsequent; then
14290 # Use $CC to link under sequent, because it throws in some extra .o
14291 # files that make .init and .fini sections work.
14292 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14294 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14296 hardcode_libdir_flag_spec_F77='-L$libdir'
14297 hardcode_direct_F77=yes
14298 hardcode_minus_L_F77=yes
14299 hardcode_shlibpath_var_F77=no
14303 case $host_vendor in
14305 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14306 hardcode_direct_F77=yes # is this really true???
14309 ## LD is ld it makes a PLAMLIB
14310 ## CC just makes a GrossModule.
14311 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14312 reload_cmds_F77='$CC -r -o $output$reload_objs'
14313 hardcode_direct_F77=no
14316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14317 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14320 runpath_var='LD_RUN_PATH'
14321 hardcode_shlibpath_var_F77=no
14325 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14326 hardcode_shlibpath_var_F77=no
14327 export_dynamic_flag_spec_F77='-Bexport'
14331 if test -d /usr/nec; then
14332 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14333 hardcode_shlibpath_var_F77=no
14334 runpath_var=LD_RUN_PATH
14335 hardcode_runpath_var=yes
14341 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14342 hardcode_direct_F77=yes
14343 hardcode_minus_L_F77=no
14344 hardcode_shlibpath_var_F77=no
14345 hardcode_runpath_var=yes
14346 runpath_var=LD_RUN_PATH
14349 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14350 no_undefined_flag_F77='${wl}-z ${wl}text'
14351 if test "$GCC" = yes; then
14352 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14354 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14356 runpath_var='LD_RUN_PATH'
14357 hardcode_shlibpath_var_F77=no
14361 no_undefined_flag_F77=' -z text'
14362 # $CC -shared without GNU ld will not create a library from C++
14363 # object files and a static libstdc++, better avoid it by now
14364 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14365 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14366 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14367 hardcode_libdir_flag_spec_F77=
14368 hardcode_shlibpath_var_F77=no
14369 runpath_var='LD_RUN_PATH'
14373 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14374 hardcode_libdir_flag_spec_F77='-L$libdir'
14375 hardcode_shlibpath_var_F77=no
14384 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14385 echo "${ECHO_T}$ld_shlibs_F77" >&6
14386 test "$ld_shlibs_F77" = no && can_build_shared=no
14388 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14389 if test "$GCC" = yes; then
14390 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14394 # Do we need to explicitly link libc?
14396 case "x$archive_cmds_need_lc_F77" in
14398 # Assume -lc should be added
14399 archive_cmds_need_lc_F77=yes
14401 if test "$enable_shared" = yes && test "$GCC" = yes; then
14402 case $archive_cmds_F77 in
14404 # FIXME: we may have to deal with multi-command sequences.
14407 # Test whether the compiler implicitly links with -lc since on some
14408 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14409 # to ld, don't add -lc before -lgcc.
14410 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14411 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14416 (eval $ac_compile) 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } 2>conftest.err; then
14422 libobjs=conftest.$ac_objext
14424 wl=$lt_prog_compiler_wl_F77
14430 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14431 allow_undefined_flag_F77=
14432 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14433 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }
14438 archive_cmds_need_lc_F77=no
14440 archive_cmds_need_lc_F77=yes
14442 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14444 cat conftest.err 1>&5
14447 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14448 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14455 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14456 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14457 library_names_spec=
14458 libname_spec='lib$name'
14462 postuninstall_cmds=
14466 shlibpath_overrides_runpath=unknown
14468 dynamic_linker="$host_os ld.so"
14469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14470 if test "$GCC" = yes; then
14471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14472 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14473 # if the path contains ";" then we assume it to be the separator
14474 # otherwise default to the standard path separator (i.e. ":") - it is
14475 # assumed that no part of a normal pathname contains ";" but that should
14476 # okay in the real world where ";" in dirpaths is itself problematic.
14477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14484 need_lib_prefix=unknown
14485 hardcode_into_libs=no
14487 # when you set need_version to no, make sure it does not cause -set_version
14488 # flags to be left without arguments
14489 need_version=unknown
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14495 shlibpath_var=LIBPATH
14497 # AIX 3 has no versioning support, so we append a major version to the name.
14498 soname_spec='${libname}${release}${shared_ext}$major'
14505 hardcode_into_libs=yes
14506 if test "$host_cpu" = ia64; then
14507 # AIX 5 supports IA64
14508 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14509 shlibpath_var=LD_LIBRARY_PATH
14511 # With GCC up to 2.95.x, collect2 would create an import file
14512 # for dependence libraries. The import file would start with
14513 # the line `#! .'. This would cause the generated library to
14514 # depend on `.', always an invalid library. This was fixed in
14515 # development snapshots of GCC prior to 3.0.
14517 aix4 | aix4.[01] | aix4.[01].*)
14518 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14520 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14523 can_build_shared=no
14527 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14528 # soname into executable. Probably we can add versioning support to
14529 # collect2, so additional links can be useful in future.
14530 if test "$aix_use_runtimelinking" = yes; then
14531 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14532 # instead of lib<name>.a to let people know that these are not
14533 # typical AIX shared libraries.
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536 # We preserve .a as extension for shared libraries through AIX4.2
14537 # and later when we are not doing run time linking.
14538 library_names_spec='${libname}${release}.a $libname.a'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14541 shlibpath_var=LIBPATH
14546 library_names_spec='$libname.ixlibrary $libname.a'
14547 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14548 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'
14552 library_names_spec='${libname}${shared_ext}'
14553 dynamic_linker="$host_os ld.so"
14554 shlibpath_var=LIBRARY_PATH
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561 soname_spec='${libname}${release}${shared_ext}$major'
14562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14563 shlibpath_var=LD_LIBRARY_PATH
14564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14566 # the default ld.so.conf also contains /usr/contrib/lib and
14567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14568 # libtool to hard-code these into programs
14571 cygwin* | mingw* | pw32*)
14572 version_type=windows
14577 case $GCC,$host_os in
14578 yes,cygwin* | yes,mingw* | yes,pw32*)
14579 library_names_spec='$libname.dll.a'
14580 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14581 postinstall_cmds='base_file=`basename \${file}`~
14582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14583 dldir=$destdir/`dirname \$dlpath`~
14584 test -d \$dldir || mkdir -p \$dldir~
14585 $install_prog $dir/$dlname \$dldir/$dlname'
14586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14587 dlpath=$dir/\$dldll~
14589 shlibpath_overrides_runpath=yes
14593 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14594 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14595 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14598 # MinGW DLLs use traditional 'lib' prefix
14599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14600 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14601 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14602 # It is most probably a Windows format PATH printed by
14603 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14604 # path with ; separators, and with drive letters. We can handle the
14605 # drive letters (cygwin fileutils understands them), so leave them,
14606 # especially as we might pass files found there to a mingw objdump,
14607 # which wouldn't understand a cygwinified path. Ahh.
14608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14614 # pw32 DLLs use 'pw' prefix rather than 'lib'
14615 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14621 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14624 dynamic_linker='Win32 ld.exe'
14625 # FIXME: first we should search . and the directory the executable is in
14629 darwin* | rhapsody*)
14630 dynamic_linker="$host_os dyld"
14631 version_type=darwin
14634 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14635 soname_spec='${libname}${release}${major}$shared_ext'
14636 shlibpath_overrides_runpath=yes
14637 shlibpath_var=DYLD_LIBRARY_PATH
14638 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14639 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14640 if test "$GCC" = yes; then
14641 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"`
14643 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14645 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14653 soname_spec='${libname}${release}${shared_ext}$major'
14654 shlibpath_var=LD_LIBRARY_PATH
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 shlibpath_overrides_runpath=no
14669 hardcode_into_libs=yes
14670 dynamic_linker='GNU ld.so'
14674 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14675 version_type=freebsd-$objformat
14676 case $version_type in
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14687 shlibpath_var=LD_LIBRARY_PATH
14690 shlibpath_overrides_runpath=yes
14692 freebsd3.01* | freebsdelf3.01*)
14693 shlibpath_overrides_runpath=yes
14694 hardcode_into_libs=yes
14697 shlibpath_overrides_runpath=no
14698 hardcode_into_libs=yes
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14708 soname_spec='${libname}${release}${shared_ext}$major'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 hardcode_into_libs=yes
14713 hpux9* | hpux10* | hpux11*)
14714 # Give a soname corresponding to the major version so that dld.sl refuses to
14715 # link against other versions.
14719 case "$host_cpu" in
14722 hardcode_into_libs=yes
14723 dynamic_linker="$host_os dld.so"
14724 shlibpath_var=LD_LIBRARY_PATH
14725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727 soname_spec='${libname}${release}${shared_ext}$major'
14728 if test "X$HPUX_IA64_MODE" = X32; then
14729 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14731 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14737 hardcode_into_libs=yes
14738 dynamic_linker="$host_os dld.sl"
14739 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14742 soname_spec='${libname}${release}${shared_ext}$major'
14743 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14748 dynamic_linker="$host_os dld.sl"
14749 shlibpath_var=SHLIB_PATH
14750 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14752 soname_spec='${libname}${release}${shared_ext}$major'
14755 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14756 postinstall_cmds='chmod 555 $lib'
14759 irix5* | irix6* | nonstopux*)
14761 nonstopux*) version_type=nonstopux ;;
14763 if test "$lt_cv_prog_gnu_ld" = yes; then
14771 soname_spec='${libname}${release}${shared_ext}$major'
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14774 irix5* | nonstopux*)
14775 libsuff= shlibsuff=
14778 case $LD in # libtool.m4 will add one of these switches to LD
14779 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14780 libsuff= shlibsuff= libmagic=32-bit;;
14781 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14782 libsuff=32 shlibsuff=N32 libmagic=N32;;
14783 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14784 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14785 *) libsuff= shlibsuff= libmagic=never-match;;
14789 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14790 shlibpath_overrides_runpath=no
14791 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14792 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14793 hardcode_into_libs=yes
14796 # No shared lib support for Linux oldld, aout, or coff.
14797 linux*oldld* | linux*aout* | linux*coff*)
14801 # This must be Linux ELF.
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14809 shlibpath_var=LD_LIBRARY_PATH
14810 shlibpath_overrides_runpath=no
14811 # This implies no fast_install, which is unacceptable.
14812 # Some rework will be needed to allow for fast_install
14813 # before this can be enabled.
14814 hardcode_into_libs=yes
14816 # Append ld.so.conf contents to the search path
14817 if test -f /etc/ld.so.conf; then
14818 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14822 # We used to test for /lib/ld.so.1 and disable shared libraries on
14823 # powerpc, because MkLinux only supported shared libraries with the
14824 # GNU dynamic linker. Since this was broken with cross compilers,
14825 # most powerpc-linux boxes support dynamic linking these days and
14826 # people can always --disable-shared, the test was removed, and we
14827 # assume the GNU/Linux dynamic linker is in use.
14828 dynamic_linker='GNU/Linux ld.so'
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14836 soname_spec='${libname}${release}${shared_ext}$major'
14837 shlibpath_var=LD_LIBRARY_PATH
14838 shlibpath_overrides_runpath=no
14839 hardcode_into_libs=yes
14840 dynamic_linker='NetBSD ld.elf_so'
14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14848 soname_spec='${libname}${release}${shared_ext}$major'
14849 shlibpath_var=LD_LIBRARY_PATH
14850 shlibpath_overrides_runpath=no
14851 hardcode_into_libs=yes
14852 dynamic_linker='GNU ld.so'
14859 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14862 dynamic_linker='NetBSD (a.out) ld.so'
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 dynamic_linker='NetBSD ld.elf_so'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 shlibpath_overrides_runpath=yes
14870 hardcode_into_libs=yes
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 shlibpath_overrides_runpath=yes
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=yes
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14899 openbsd2.[89] | openbsd2.[89].*)
14900 shlibpath_overrides_runpath=no
14903 shlibpath_overrides_runpath=yes
14907 shlibpath_overrides_runpath=yes
14912 libname_spec='$name'
14915 library_names_spec='$libname${shared_ext} $libname.a'
14916 dynamic_linker='OS/2 ld.exe'
14917 shlibpath_var=LIBPATH
14920 osf3* | osf4* | osf5*)
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14928 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935 shlibpath_var=LD_LIBRARY_PATH
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 shlibpath_overrides_runpath=yes
14946 hardcode_into_libs=yes
14947 # ldd complains unless libraries are executable
14948 postinstall_cmds='chmod +x $lib'
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14954 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14955 shlibpath_var=LD_LIBRARY_PATH
14956 shlibpath_overrides_runpath=yes
14957 if test "$with_gnu_ld" = yes; then
14963 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14966 soname_spec='${libname}${release}${shared_ext}$major'
14967 shlibpath_var=LD_LIBRARY_PATH
14968 case $host_vendor in
14970 shlibpath_overrides_runpath=no
14972 export_dynamic_flag_spec='${wl}-Blargedynsym'
14973 runpath_var=LD_RUN_PATH
14981 shlibpath_overrides_runpath=no
14982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14988 if test -d /usr/nec ;then
14990 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14991 soname_spec='$libname${shared_ext}.$major'
14992 shlibpath_var=LD_LIBRARY_PATH
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14999 soname_spec='${libname}${release}${shared_ext}$major'
15000 shlibpath_var=LD_LIBRARY_PATH
15007 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15008 echo "${ECHO_T}$dynamic_linker" >&6
15009 test "$dynamic_linker" = no && can_build_shared=no
15011 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15012 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15013 hardcode_action_F77=
15014 if test -n "$hardcode_libdir_flag_spec_F77" || \
15015 test -n "$runpath_var F77" || \
15016 test "X$hardcode_automatic_F77"="Xyes" ; then
15018 # We can hardcode non-existant directories.
15019 if test "$hardcode_direct_F77" != no &&
15020 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15021 # have to relink, otherwise we might link with an installed library
15022 # when we should be linking with a yet-to-be-installed one
15023 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15024 test "$hardcode_minus_L_F77" != no; then
15025 # Linking always hardcodes the temporary library directory.
15026 hardcode_action_F77=relink
15028 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15029 hardcode_action_F77=immediate
15032 # We cannot hardcode anything, or else we can only hardcode existing
15034 hardcode_action_F77=unsupported
15036 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15037 echo "${ECHO_T}$hardcode_action_F77" >&6
15039 if test "$hardcode_action_F77" = relink; then
15040 # Fast installation is not supported
15041 enable_fast_install=no
15042 elif test "$shlibpath_overrides_runpath" = yes ||
15043 test "$enable_shared" = no; then
15044 # Fast installation is not necessary
15045 enable_fast_install=needless
15050 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15051 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15052 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15053 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15054 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15055 echo "$as_me:$LINENO: result: yes" >&5
15056 echo "${ECHO_T}yes" >&6
15058 # FIXME - insert some real tests, host_os isn't really good enough
15061 if test -n "$STRIP" ; then
15062 striplib="$STRIP -x"
15063 echo "$as_me:$LINENO: result: yes" >&5
15064 echo "${ECHO_T}yes" >&6
15066 echo "$as_me:$LINENO: result: no" >&5
15067 echo "${ECHO_T}no" >&6
15071 echo "$as_me:$LINENO: result: no" >&5
15072 echo "${ECHO_T}no" >&6
15079 # The else clause should only fire when bootstrapping the
15080 # libtool distribution, otherwise you forgot to ship ltmain.sh
15081 # with your package, and you will get complaints that there are
15082 # no rules to generate ltmain.sh.
15083 if test -f "$ltmain"; then
15084 # See if we are running on zsh, and set the options which allow our commands through
15085 # without removal of \ escapes.
15086 if test -n "${ZSH_VERSION+set}" ; then
15087 setopt NO_GLOB_SUBST
15089 # Now quote all the things that may contain metacharacters while being
15090 # careful not to overquote the AC_SUBSTed values. We take copies of the
15091 # variables and quote the copies for generation of the libtool script.
15092 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15094 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15095 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15096 deplibs_check_method reload_flag reload_cmds need_locks \
15097 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15098 lt_cv_sys_global_symbol_to_c_name_address \
15099 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15100 old_postinstall_cmds old_postuninstall_cmds \
15104 lt_prog_compiler_wl_F77 \
15105 lt_prog_compiler_pic_F77 \
15106 lt_prog_compiler_static_F77 \
15107 lt_prog_compiler_no_builtin_flag_F77 \
15108 export_dynamic_flag_spec_F77 \
15109 thread_safe_flag_spec_F77 \
15110 whole_archive_flag_spec_F77 \
15111 enable_shared_with_static_runtimes_F77 \
15112 old_archive_cmds_F77 \
15113 old_archive_from_new_cmds_F77 \
15114 predep_objects_F77 \
15115 postdep_objects_F77 \
15118 compiler_lib_search_path_F77 \
15120 archive_expsym_cmds_F77 \
15121 postinstall_cmds_F77 \
15122 postuninstall_cmds_F77 \
15123 old_archive_from_expsyms_cmds_F77 \
15124 allow_undefined_flag_F77 \
15125 no_undefined_flag_F77 \
15126 export_symbols_cmds_F77 \
15127 hardcode_libdir_flag_spec_F77 \
15128 hardcode_libdir_flag_spec_ld_F77 \
15129 hardcode_libdir_separator_F77 \
15130 hardcode_automatic_F77 \
15132 module_expsym_cmds_F77 \
15133 lt_cv_prog_compiler_c_o_F77 \
15134 exclude_expsyms_F77 \
15135 include_expsyms_F77; do
15138 old_archive_cmds_F77 | \
15139 old_archive_from_new_cmds_F77 | \
15140 archive_cmds_F77 | \
15141 archive_expsym_cmds_F77 | \
15142 module_cmds_F77 | \
15143 module_expsym_cmds_F77 | \
15144 old_archive_from_expsyms_cmds_F77 | \
15145 export_symbols_cmds_F77 | \
15146 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15147 postinstall_cmds | postuninstall_cmds | \
15148 old_postinstall_cmds | old_postuninstall_cmds | \
15149 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15150 # Double-quote double-evaled strings.
15151 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15154 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15160 *'\$0 --fallback-echo"')
15161 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15167 cat <<__EOF__ >> "$cfgfile"
15168 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15170 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15172 # Shell to use when invoking shell scripts.
15175 # Whether or not to build shared libraries.
15176 build_libtool_libs=$enable_shared
15178 # Whether or not to build static libraries.
15179 build_old_libs=$enable_static
15181 # Whether or not to add -lc for building shared libraries.
15182 build_libtool_need_lc=$archive_cmds_need_lc_F77
15184 # Whether or not to disallow shared libs when runtime libs are static
15185 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15187 # Whether or not to optimize for fast installation.
15188 fast_install=$enable_fast_install
15191 host_alias=$host_alias
15194 # An echo program that does not interpret backslashes.
15199 AR_FLAGS=$lt_AR_FLAGS
15204 # A language-specific compiler.
15205 CC=$lt_compiler_F77
15207 # Is the compiler the GNU C compiler?
15213 # The linker used to build libraries.
15216 # Whether we need hard or soft links.
15219 # A BSD-compatible nm program.
15222 # A symbol stripping program
15225 # Used to examine libraries when file_magic_cmd begins "file"
15226 MAGIC_CMD=$MAGIC_CMD
15228 # Used on cygwin: DLL creation program.
15231 # Used on cygwin: object dumper.
15234 # Used on cygwin: assembler.
15237 # The name of the directory that contains temporary libtool files.
15240 # How to create reloadable object files.
15241 reload_flag=$lt_reload_flag
15242 reload_cmds=$lt_reload_cmds
15244 # How to pass a linker flag through the compiler.
15245 wl=$lt_lt_prog_compiler_wl_F77
15247 # Object file suffix (normally "o").
15248 objext="$ac_objext"
15250 # Old archive suffix (normally "a").
15253 # Shared library suffix (normally ".so").
15254 shrext_cmds='$shrext_cmds'
15256 # Executable file suffix (normally "").
15259 # Additional compiler flags for building library objects.
15260 pic_flag=$lt_lt_prog_compiler_pic_F77
15263 # What is the maximum length of a command?
15264 max_cmd_len=$lt_cv_sys_max_cmd_len
15266 # Does compiler simultaneously support -c and -o options?
15267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15269 # Must we lock files when doing compilation ?
15270 need_locks=$lt_need_locks
15272 # Do we need the lib prefix for modules?
15273 need_lib_prefix=$need_lib_prefix
15275 # Do we need a version for libraries?
15276 need_version=$need_version
15278 # Whether dlopen is supported.
15279 dlopen_support=$enable_dlopen
15281 # Whether dlopen of programs is supported.
15282 dlopen_self=$enable_dlopen_self
15284 # Whether dlopen of statically linked programs is supported.
15285 dlopen_self_static=$enable_dlopen_self_static
15287 # Compiler flag to prevent dynamic linking.
15288 link_static_flag=$lt_lt_prog_compiler_static_F77
15290 # Compiler flag to turn off builtin functions.
15291 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15293 # Compiler flag to allow reflexive dlopens.
15294 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15296 # Compiler flag to generate shared objects directly from archives.
15297 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15299 # Compiler flag to generate thread-safe objects.
15300 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15302 # Library versioning type.
15303 version_type=$version_type
15305 # Format of library name prefix.
15306 libname_spec=$lt_libname_spec
15308 # List of archive names. First name is the real one, the rest are links.
15309 # The last name is the one that the linker finds with -lNAME.
15310 library_names_spec=$lt_library_names_spec
15312 # The coded name of the library, if different from the real name.
15313 soname_spec=$lt_soname_spec
15315 # Commands used to build and install an old-style archive.
15317 old_archive_cmds=$lt_old_archive_cmds_F77
15318 old_postinstall_cmds=$lt_old_postinstall_cmds
15319 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15321 # Create an old-style archive from a shared archive.
15322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15324 # Create a temporary old-style archive to link instead of a shared archive.
15325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15327 # Commands used to build and install a shared archive.
15328 archive_cmds=$lt_archive_cmds_F77
15329 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15330 postinstall_cmds=$lt_postinstall_cmds
15331 postuninstall_cmds=$lt_postuninstall_cmds
15333 # Commands used to build a loadable module (assumed same as above if empty)
15334 module_cmds=$lt_module_cmds_F77
15335 module_expsym_cmds=$lt_module_expsym_cmds_F77
15337 # Commands to strip libraries.
15338 old_striplib=$lt_old_striplib
15339 striplib=$lt_striplib
15341 # Dependencies to place before the objects being linked to create a
15343 predep_objects=$lt_predep_objects_F77
15345 # Dependencies to place after the objects being linked to create a
15347 postdep_objects=$lt_postdep_objects_F77
15349 # Dependencies to place before the objects being linked to create a
15351 predeps=$lt_predeps_F77
15353 # Dependencies to place after the objects being linked to create a
15355 postdeps=$lt_postdeps_F77
15357 # The library search path used internally by the compiler when linking
15358 # a shared library.
15359 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15361 # Method to check whether dependent libraries are shared objects.
15362 deplibs_check_method=$lt_deplibs_check_method
15364 # Command to use when deplibs_check_method == file_magic.
15365 file_magic_cmd=$lt_file_magic_cmd
15367 # Flag that allows shared libraries with undefined symbols to be built.
15368 allow_undefined_flag=$lt_allow_undefined_flag_F77
15370 # Flag that forces no undefined symbols.
15371 no_undefined_flag=$lt_no_undefined_flag_F77
15373 # Commands used to finish a libtool library installation in a directory.
15374 finish_cmds=$lt_finish_cmds
15376 # Same as above, but a single script fragment to be evaled but not shown.
15377 finish_eval=$lt_finish_eval
15379 # Take the output of nm and produce a listing of raw symbols and C names.
15380 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15382 # Transform the output of nm in a proper C declaration
15383 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15385 # Transform the output of nm in a C name address pair
15386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15388 # This is the shared library runtime path variable.
15389 runpath_var=$runpath_var
15391 # This is the shared library path variable.
15392 shlibpath_var=$shlibpath_var
15394 # Is shlibpath searched before the hard-coded library search path?
15395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15397 # How to hardcode a shared library path into an executable.
15398 hardcode_action=$hardcode_action_F77
15400 # Whether we should hardcode library paths into libraries.
15401 hardcode_into_libs=$hardcode_into_libs
15403 # Flag to hardcode \$libdir into a binary during linking.
15404 # This must work even if \$libdir does not exist.
15405 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15407 # If ld is used when linking, flag to hardcode \$libdir into
15408 # a binary during linking. This must work even if \$libdir does
15410 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15412 # Whether we need a single -rpath flag with a separated argument.
15413 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15415 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15416 # resulting binary.
15417 hardcode_direct=$hardcode_direct_F77
15419 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15420 # resulting binary.
15421 hardcode_minus_L=$hardcode_minus_L_F77
15423 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15424 # the resulting binary.
15425 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15427 # Set to yes if building a shared library automatically hardcodes DIR into the library
15428 # and all subsequent libraries and executables linked against it.
15429 hardcode_automatic=$hardcode_automatic_F77
15431 # Variables whose values should be saved in libtool wrapper scripts and
15432 # restored at relink time.
15433 variables_saved_for_relink="$variables_saved_for_relink"
15435 # Whether libtool must link a program against all its dependency libraries.
15436 link_all_deplibs=$link_all_deplibs_F77
15438 # Compile-time system search path for libraries
15439 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15441 # Run-time system search path for libraries
15442 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15444 # Fix the shell variable \$srcfile for the compiler.
15445 fix_srcfile_path="$fix_srcfile_path_F77"
15447 # Set to yes if exported symbols are required.
15448 always_export_symbols=$always_export_symbols_F77
15450 # The commands to list exported symbols.
15451 export_symbols_cmds=$lt_export_symbols_cmds_F77
15453 # The commands to extract the exported symbol list from a shared archive.
15454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15456 # Symbols that should not be listed in the preloaded symbols.
15457 exclude_expsyms=$lt_exclude_expsyms_F77
15459 # Symbols that must always be exported.
15460 include_expsyms=$lt_include_expsyms_F77
15462 # ### END LIBTOOL TAG CONFIG: $tagname
15468 # If there is no Makefile yet, we rely on a make rule to execute
15469 # `config.status --recheck' to rerun these tests and create the
15470 # libtool script then.
15471 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15472 if test -f "$ltmain_in"; then
15473 test -f Makefile && make "$ltmain"
15479 ac_cpp='$CPP $CPPFLAGS'
15480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15492 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15496 # Source file extension for Java test sources.
15499 # Object file extension for compiled Java test sources.
15503 # Code to be used in simple compile tests
15504 lt_simple_compile_test_code="class foo {}\n"
15506 # Code to be used in simple link tests
15507 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15509 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15511 # If no C compiler was specified, use CC.
15514 # Allow CC to be a program name with arguments.
15518 # Allow CC to be a program name with arguments.
15524 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15525 archive_cmds_need_lc_GCJ=no
15528 ## There is no encapsulation within the following macros, do not change
15529 ## the running order or otherwise move them around unless you know exactly
15530 ## what you are doing...
15532 lt_prog_compiler_no_builtin_flag_GCJ=
15534 if test "$GCC" = yes; then
15535 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15538 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15539 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15540 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 lt_cv_prog_compiler_rtti_exceptions=no
15544 ac_outfile=conftest.$ac_objext
15545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15546 lt_compiler_flag="-fno-rtti -fno-exceptions"
15547 # Insert the option either (1) after the last *FLAGS variable, or
15548 # (2) before a word containing "conftest.", or (3) at the end.
15549 # Note that $ac_compile itself does not contain backslashes and begins
15550 # with a dollar sign (not a hyphen), so the echo should work correctly.
15551 # The option is referenced via a variable to avoid confusing sed.
15552 lt_compile=`echo "$ac_compile" | $SED \
15553 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15555 -e 's:$: $lt_compiler_flag:'`
15556 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15557 (eval "$lt_compile" 2>conftest.err)
15559 cat conftest.err >&5
15560 echo "$as_me:__oline__: \$? = $ac_status" >&5
15561 if (exit $ac_status) && test -s "$ac_outfile"; then
15562 # The compiler can only warn and ignore the option if not recognized
15563 # So say no if there are warnings
15564 if test ! -s conftest.err; then
15565 lt_cv_prog_compiler_rtti_exceptions=yes
15571 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15572 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15575 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15582 lt_prog_compiler_wl_GCJ=
15583 lt_prog_compiler_pic_GCJ=
15584 lt_prog_compiler_static_GCJ=
15586 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15587 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15589 if test "$GCC" = yes; then
15590 lt_prog_compiler_wl_GCJ='-Wl,'
15591 lt_prog_compiler_static_GCJ='-static'
15595 # All AIX code is PIC.
15596 if test "$host_cpu" = ia64; then
15597 # AIX 5 now supports IA64 processor
15598 lt_prog_compiler_static_GCJ='-Bstatic'
15603 # FIXME: we need at least 68020 code to build shared libraries, but
15604 # adding the `-m68020' flag to GCC prevents building anything better,
15606 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15609 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15610 # PIC is the default for these OSes.
15613 mingw* | pw32* | os2*)
15614 # This hack is so that the source file can tell whether it is being
15615 # built for inclusion in a dll (and should export symbols for example).
15616 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15619 darwin* | rhapsody*)
15620 # PIC is the default on this platform
15621 # Common symbols not allowed in MH_DYLIB files
15622 lt_prog_compiler_pic_GCJ='-fno-common'
15626 # Just because we use GCC doesn't mean we suddenly get shared libraries
15627 # on systems that don't support them.
15628 lt_prog_compiler_can_build_shared_GCJ=no
15633 if test -d /usr/nec; then
15634 lt_prog_compiler_pic_GCJ=-Kconform_pic
15639 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15640 # not for PA HP-UX.
15641 case "$host_cpu" in
15646 lt_prog_compiler_pic_GCJ='-fPIC'
15652 lt_prog_compiler_pic_GCJ='-fPIC'
15656 # PORTME Check for flag to pass linker flags through the system compiler.
15659 lt_prog_compiler_wl_GCJ='-Wl,'
15660 if test "$host_cpu" = ia64; then
15661 # AIX 5 now supports IA64 processor
15662 lt_prog_compiler_static_GCJ='-Bstatic'
15664 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15668 mingw* | pw32* | os2*)
15669 # This hack is so that the source file can tell whether it is being
15670 # built for inclusion in a dll (and should export symbols for example).
15671 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15674 hpux9* | hpux10* | hpux11*)
15675 lt_prog_compiler_wl_GCJ='-Wl,'
15676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15677 # not for PA HP-UX.
15678 case "$host_cpu" in
15683 lt_prog_compiler_pic_GCJ='+Z'
15686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15687 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15690 irix5* | irix6* | nonstopux*)
15691 lt_prog_compiler_wl_GCJ='-Wl,'
15692 # PIC (with -KPIC) is the default.
15693 lt_prog_compiler_static_GCJ='-non_shared'
15697 lt_prog_compiler_pic_GCJ='-KPIC'
15698 lt_prog_compiler_static_GCJ='-Bstatic'
15704 lt_prog_compiler_wl_GCJ='-Wl,'
15705 lt_prog_compiler_pic_GCJ='-KPIC'
15706 lt_prog_compiler_static_GCJ='-static'
15709 lt_prog_compiler_wl_GCJ='-Wl,'
15710 # All Alpha code is PIC.
15711 lt_prog_compiler_static_GCJ='-non_shared'
15716 osf3* | osf4* | osf5*)
15717 lt_prog_compiler_wl_GCJ='-Wl,'
15718 # All OSF/1 code is PIC.
15719 lt_prog_compiler_static_GCJ='-non_shared'
15723 lt_prog_compiler_pic_GCJ='-Kpic'
15724 lt_prog_compiler_static_GCJ='-dn'
15728 lt_prog_compiler_wl_GCJ='-Wl,'
15729 lt_prog_compiler_pic_GCJ='-KPIC'
15730 lt_prog_compiler_static_GCJ='-Bstatic'
15734 lt_prog_compiler_wl_GCJ='-Qoption ld '
15735 lt_prog_compiler_pic_GCJ='-PIC'
15736 lt_prog_compiler_static_GCJ='-Bstatic'
15739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15740 lt_prog_compiler_wl_GCJ='-Wl,'
15741 lt_prog_compiler_pic_GCJ='-KPIC'
15742 lt_prog_compiler_static_GCJ='-Bstatic'
15746 if test -d /usr/nec ;then
15747 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15748 lt_prog_compiler_static_GCJ='-Bstatic'
15753 lt_prog_compiler_pic_GCJ='-pic'
15754 lt_prog_compiler_static_GCJ='-Bstatic'
15758 lt_prog_compiler_can_build_shared_GCJ=no
15763 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15764 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15767 # Check to make sure the PIC flag actually works.
15769 if test -n "$lt_prog_compiler_pic_GCJ"; then
15771 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15772 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15773 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 lt_prog_compiler_pic_works_GCJ=no
15777 ac_outfile=conftest.$ac_objext
15778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15779 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15780 # Insert the option either (1) after the last *FLAGS variable, or
15781 # (2) before a word containing "conftest.", or (3) at the end.
15782 # Note that $ac_compile itself does not contain backslashes and begins
15783 # with a dollar sign (not a hyphen), so the echo should work correctly.
15784 # The option is referenced via a variable to avoid confusing sed.
15785 lt_compile=`echo "$ac_compile" | $SED \
15786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15788 -e 's:$: $lt_compiler_flag:'`
15789 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15790 (eval "$lt_compile" 2>conftest.err)
15792 cat conftest.err >&5
15793 echo "$as_me:__oline__: \$? = $ac_status" >&5
15794 if (exit $ac_status) && test -s "$ac_outfile"; then
15795 # The compiler can only warn and ignore the option if not recognized
15796 # So say no if there are warnings
15797 if test ! -s conftest.err; then
15798 lt_prog_compiler_pic_works_GCJ=yes
15804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15805 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15807 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15808 case $lt_prog_compiler_pic_GCJ in
15810 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15813 lt_prog_compiler_pic_GCJ=
15814 lt_prog_compiler_can_build_shared_GCJ=no
15819 # For platforms which do not support PIC, -DPIC is meaningless:
15821 lt_prog_compiler_pic_GCJ=
15824 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15828 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15829 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15830 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15831 echo $ECHO_N "(cached) $ECHO_C" >&6
15833 lt_cv_prog_compiler_c_o_GCJ=no
15834 $rm -r conftest 2>/dev/null
15838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15840 lt_compiler_flag="-o out/conftest2.$ac_objext"
15841 # Insert the option either (1) after the last *FLAGS variable, or
15842 # (2) before a word containing "conftest.", or (3) at the end.
15843 # Note that $ac_compile itself does not contain backslashes and begins
15844 # with a dollar sign (not a hyphen), so the echo should work correctly.
15845 lt_compile=`echo "$ac_compile" | $SED \
15846 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15848 -e 's:$: $lt_compiler_flag:'`
15849 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15850 (eval "$lt_compile" 2>out/conftest.err)
15852 cat out/conftest.err >&5
15853 echo "$as_me:__oline__: \$? = $ac_status" >&5
15854 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15856 # The compiler can only warn and ignore the option if not recognized
15857 # So say no if there are warnings
15858 if test ! -s out/conftest.err; then
15859 lt_cv_prog_compiler_c_o_GCJ=yes
15864 # SGI C++ compiler will create directory out/ii_files/ for
15865 # template instantiation
15866 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15867 $rm out/* && rmdir out
15873 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15874 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15877 hard_links="nottested"
15878 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15879 # do not overwrite the value of need_locks provided by the user
15880 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15881 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15886 ln conftest.a conftest.b 2>&5 || hard_links=no
15887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15888 echo "$as_me:$LINENO: result: $hard_links" >&5
15889 echo "${ECHO_T}$hard_links" >&6
15890 if test "$hard_links" = no; then
15891 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15892 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15899 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15900 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15903 allow_undefined_flag_GCJ=
15904 enable_shared_with_static_runtimes_GCJ=no
15906 archive_expsym_cmds_GCJ=
15907 old_archive_From_new_cmds_GCJ=
15908 old_archive_from_expsyms_cmds_GCJ=
15909 export_dynamic_flag_spec_GCJ=
15910 whole_archive_flag_spec_GCJ=
15911 thread_safe_flag_spec_GCJ=
15912 hardcode_libdir_flag_spec_GCJ=
15913 hardcode_libdir_flag_spec_ld_GCJ=
15914 hardcode_libdir_separator_GCJ=
15915 hardcode_direct_GCJ=no
15916 hardcode_minus_L_GCJ=no
15917 hardcode_shlibpath_var_GCJ=unsupported
15918 link_all_deplibs_GCJ=unknown
15919 hardcode_automatic_GCJ=no
15921 module_expsym_cmds_GCJ=
15922 always_export_symbols_GCJ=no
15923 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15924 # include_expsyms should be a list of space-separated symbols to be *always*
15925 # included in the symbol list
15926 include_expsyms_GCJ=
15927 # exclude_expsyms can be an extended regexp of symbols to exclude
15928 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15929 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15930 # as well as any symbol that contains `d'.
15931 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15932 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15933 # platforms (ab)use it in PIC code, but their linkers get confused if
15934 # the symbol is explicitly referenced. Since portable code cannot
15935 # rely on this symbol name, it's probably fine to never include it in
15936 # preloaded symbol tables.
15937 extract_expsyms_cmds=
15940 cygwin* | mingw* | pw32*)
15941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15942 # When not using gcc, we currently assume that we are using
15943 # Microsoft Visual C++.
15944 if test "$GCC" != yes; then
15954 if test "$with_gnu_ld" = yes; then
15955 # If archive_cmds runs LD, not CC, wlarc should be empty
15958 # See if GNU ld supports shared libraries.
15960 aix3* | aix4* | aix5*)
15961 # On AIX/PPC, the GNU linker is very broken
15962 if test "$host_cpu" != ia64; then
15966 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15967 *** to be unable to reliably create shared libraries on AIX.
15968 *** Therefore, libtool is disabling shared libraries support. If you
15969 *** really care for shared libraries, you may want to modify your PATH
15970 *** so that a non-GNU linker is found, and then restart.
15977 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)'
15978 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15979 hardcode_minus_L_GCJ=yes
15981 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15982 # that the semantics of dynamic libraries on AmigaOS, at least up
15983 # to version 4, is to share data among multiple programs linked
15984 # with the same dynamic library. Since this doesn't match the
15985 # behavior of shared libraries on other platforms, we can't use
15991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15992 allow_undefined_flag_GCJ=unsupported
15993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15994 # support --undefined. This deserves some investigation. FIXME
15995 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 cygwin* | mingw* | pw32*)
16002 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16003 # as there is no search path for DLLs.
16004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16005 allow_undefined_flag_GCJ=unsupported
16006 always_export_symbols_GCJ=no
16007 enable_shared_with_static_runtimes_GCJ=yes
16008 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16010 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16011 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16012 # If the export-symbols file already is a .def file (1st line
16013 # is EXPORTS), use it as is; otherwise, prepend...
16014 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16015 cp $export_symbols $output_objdir/$soname.def;
16017 echo EXPORTS > $output_objdir/$soname.def;
16018 cat $export_symbols >> $output_objdir/$soname.def;
16020 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16026 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16028 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16031 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16032 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16037 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16041 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16042 *** create shared libraries on Solaris systems. Therefore, libtool
16043 *** is disabling shared libraries support. We urge you to upgrade GNU
16044 *** binutils to release 2.9.1 or newer. Another option is to modify
16045 *** your PATH or compiler configuration so that the native linker is
16046 *** used, and then restart.
16049 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16050 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16051 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16058 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_direct_GCJ=yes
16061 hardcode_shlibpath_var_GCJ=no
16065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_cmds_GCJ="$tmp_archive_cmds"
16068 supports_anon_versioning=no
16069 case `$LD -v 2>/dev/null` in
16070 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16073 *\ 2.11.*) ;; # other 2.11 versions
16074 *) supports_anon_versioning=yes ;;
16076 if test $supports_anon_versioning = yes; then
16077 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16079 $echo "local: *; };" >> $output_objdir/$libname.ver~
16080 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16082 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16084 link_all_deplibs_GCJ=no
16091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16092 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16093 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16100 if test "$ld_shlibs_GCJ" = yes; then
16101 runpath_var=LD_RUN_PATH
16102 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16103 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16104 # ancient GNU ld didn't support --whole-archive et. al.
16105 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16106 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16108 whole_archive_flag_spec_GCJ=
16112 # PORTME fill in a description of your system's linker (not GNU ld)
16115 allow_undefined_flag_GCJ=unsupported
16116 always_export_symbols_GCJ=yes
16117 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'
16118 # Note: this linker hardcodes the directories in LIBPATH if there
16119 # are no directories specified by -L.
16120 hardcode_minus_L_GCJ=yes
16121 if test "$GCC" = yes && test -z "$link_static_flag"; then
16122 # Neither direct hardcoding nor static linking is supported with a
16124 hardcode_direct_GCJ=unsupported
16129 if test "$host_cpu" = ia64; then
16130 # On IA64, the linker does run time linking by default, so we don't
16131 # have to do anything special.
16132 aix_use_runtimelinking=no
16133 exp_sym_flag='-Bexport'
16136 # If we're using GNU nm, then we don't want the "-C" option.
16137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16138 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16139 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'
16141 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'
16143 aix_use_runtimelinking=no
16145 # Test if we are trying to use run time linking or normal
16146 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16147 # need to do runtime linking.
16148 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16149 for ld_flag in $LDFLAGS; do
16150 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16151 aix_use_runtimelinking=yes
16157 exp_sym_flag='-bexport'
16158 no_entry_flag='-bnoentry'
16161 # When large executables or shared objects are built, AIX ld can
16162 # have problems creating the table of contents. If linking a library
16163 # or program results in "error TOC overflow" add -mminimal-toc to
16164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16167 archive_cmds_GCJ=''
16168 hardcode_direct_GCJ=yes
16169 hardcode_libdir_separator_GCJ=':'
16170 link_all_deplibs_GCJ=yes
16172 if test "$GCC" = yes; then
16173 case $host_os in aix4.012|aix4.012.*)
16174 # We only want to do this on AIX 4.2 and lower, the check
16175 # below for broken collect2 doesn't work under 4.3+
16176 collect2name=`${CC} -print-prog-name=collect2`
16177 if test -f "$collect2name" && \
16178 strings "$collect2name" | grep resolve_lib_name >/dev/null
16180 # We have reworked collect2
16181 hardcode_direct_GCJ=yes
16183 # We have old collect2
16184 hardcode_direct_GCJ=unsupported
16185 # It fails to find uninstalled libraries when the uninstalled
16186 # path is not listed in the libpath. Setting hardcode_minus_L
16187 # to unsupported forces relinking
16188 hardcode_minus_L_GCJ=yes
16189 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16190 hardcode_libdir_separator_GCJ=
16193 shared_flag='-shared'
16196 if test "$host_cpu" = ia64; then
16197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16198 # chokes on -Wl,-G. The following line is correct:
16201 if test "$aix_use_runtimelinking" = yes; then
16202 shared_flag='${wl}-G'
16204 shared_flag='${wl}-bM:SRE'
16209 # It seems that -bexpall does not export symbols beginning with
16210 # underscore (_), so it is better to generate a list of symbols to export.
16211 always_export_symbols_GCJ=yes
16212 if test "$aix_use_runtimelinking" = yes; then
16213 # Warning - without using the other runtime loading flags (-brtl),
16214 # -berok will link without error, but may produce a broken library.
16215 allow_undefined_flag_GCJ='-berok'
16216 # Determine the default libpath from the value encoded in an empty executable.
16217 cat >conftest.$ac_ext <<_ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16232 rm -f conftest.$ac_objext conftest$ac_exeext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16234 (eval $ac_link) 2>conftest.er1
16236 grep -v '^ *+' conftest.er1 >conftest.err
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; } &&
16247 { ac_try='test -s conftest$ac_exeext'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
16254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16256 # Check for a 64-bit object if we didn't find anything.
16257 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; }
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16264 rm -f conftest.err conftest.$ac_objext \
16265 conftest$ac_exeext conftest.$ac_ext
16266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16268 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16269 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"
16271 if test "$host_cpu" = ia64; then
16272 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16273 allow_undefined_flag_GCJ="-z nodefs"
16274 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"
16276 # Determine the default libpath from the value encoded in an empty executable.
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16292 rm -f conftest.$ac_objext conftest$ac_exeext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16294 (eval $ac_link) 2>conftest.er1
16296 grep -v '^ *+' conftest.er1 >conftest.err
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try='test -s conftest$ac_exeext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16314 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16316 # Check for a 64-bit object if we didn't find anything.
16317 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; }
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16324 rm -f conftest.err conftest.$ac_objext \
16325 conftest$ac_exeext conftest.$ac_ext
16326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16328 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16329 # Warning - without using the other run time loading flags,
16330 # -berok will link without error, but may produce a broken library.
16331 no_undefined_flag_GCJ=' ${wl}-bernotok'
16332 allow_undefined_flag_GCJ=' ${wl}-berok'
16333 # -bexpall does not export symbols beginning with underscore (_)
16334 always_export_symbols_GCJ=yes
16335 # Exported symbols can be pulled into shared objects from archives
16336 whole_archive_flag_spec_GCJ=' '
16337 archive_cmds_need_lc_GCJ=yes
16338 # This is similar to how AIX traditionally builds it's shared libraries.
16339 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'
16345 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)'
16346 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16347 hardcode_minus_L_GCJ=yes
16348 # see comment about different semantics on the GNU ld section
16353 export_dynamic_flag_spec_GCJ=-rdynamic
16356 cygwin* | mingw* | pw32*)
16357 # When not using gcc, we currently assume that we are using
16358 # Microsoft Visual C++.
16359 # hardcode_libdir_flag_spec is actually meaningless, as there is
16360 # no search path for DLLs.
16361 hardcode_libdir_flag_spec_GCJ=' '
16362 allow_undefined_flag_GCJ=unsupported
16363 # Tell ltmain to make .lib files, not .a files.
16365 # Tell ltmain to make .dll files, not .so files.
16367 # FIXME: Setting linknames here is a bad hack.
16368 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16369 # The linker will automatically build a .lib file if we build a DLL.
16370 old_archive_From_new_cmds_GCJ='true'
16371 # FIXME: Should let the user specify the lib program.
16372 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16373 fix_srcfile_path='`cygpath -w "$srcfile"`'
16374 enable_shared_with_static_runtimes_GCJ=yes
16377 darwin* | rhapsody*)
16378 if test "$GXX" = yes ; then
16379 archive_cmds_need_lc_GCJ=no
16381 rhapsody* | darwin1.[012])
16382 allow_undefined_flag_GCJ='-undefined suppress'
16385 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16386 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16388 case ${MACOSX_DEPLOYMENT_TARGET} in
16390 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16393 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16399 lt_int_apple_cc_single_mod=no
16400 output_verbose_link_cmd='echo'
16401 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16402 lt_int_apple_cc_single_mod=yes
16404 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16405 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16407 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'
16409 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16410 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16411 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16412 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}'
16414 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}'
16416 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}'
16417 hardcode_direct_GCJ=no
16418 hardcode_automatic_GCJ=yes
16419 hardcode_shlibpath_var_GCJ=unsupported
16420 whole_archive_flag_spec_GCJ='-all_load $convenience'
16421 link_all_deplibs_GCJ=yes
16428 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16429 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16430 hardcode_shlibpath_var_GCJ=no
16437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16438 # support. Future versions do this automatically, but an explicit c++rt0.o
16439 # does not break anything, and helps significantly (at the cost of a little
16442 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16443 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16444 hardcode_direct_GCJ=yes
16445 hardcode_shlibpath_var_GCJ=no
16448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16450 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16451 hardcode_direct_GCJ=yes
16452 hardcode_minus_L_GCJ=yes
16453 hardcode_shlibpath_var_GCJ=no
16456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16457 freebsd* | kfreebsd*-gnu)
16458 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16459 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16460 hardcode_direct_GCJ=yes
16461 hardcode_shlibpath_var_GCJ=no
16465 if test "$GCC" = yes; then
16466 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'
16468 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'
16470 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16471 hardcode_libdir_separator_GCJ=:
16472 hardcode_direct_GCJ=yes
16474 # hardcode_minus_L: Not really in the search PATH,
16475 # but as the default location of the library.
16476 hardcode_minus_L_GCJ=yes
16477 export_dynamic_flag_spec_GCJ='${wl}-E'
16481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16482 case "$host_cpu" in
16484 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16487 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16491 case "$host_cpu" in
16493 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16496 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16500 if test "$with_gnu_ld" = no; then
16501 case "$host_cpu" in
16503 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16504 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16505 hardcode_libdir_separator_GCJ=:
16506 hardcode_direct_GCJ=no
16507 hardcode_shlibpath_var_GCJ=no
16510 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16511 hardcode_direct_GCJ=no
16512 hardcode_shlibpath_var_GCJ=no
16514 # hardcode_minus_L: Not really in the search PATH,
16515 # but as the default location of the library.
16516 hardcode_minus_L_GCJ=yes
16519 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16520 hardcode_libdir_separator_GCJ=:
16521 hardcode_direct_GCJ=yes
16522 export_dynamic_flag_spec_GCJ='${wl}-E'
16524 # hardcode_minus_L: Not really in the search PATH,
16525 # but as the default location of the library.
16526 hardcode_minus_L_GCJ=yes
16532 irix5* | irix6* | nonstopux*)
16533 if test "$GCC" = yes; then
16534 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'
16536 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'
16537 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16539 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16540 hardcode_libdir_separator_GCJ=:
16541 link_all_deplibs_GCJ=yes
16544 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16546 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16548 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16550 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16551 hardcode_direct_GCJ=yes
16552 hardcode_shlibpath_var_GCJ=no
16556 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_direct_GCJ=yes
16558 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16559 hardcode_libdir_separator_GCJ=:
16560 hardcode_shlibpath_var_GCJ=no
16564 hardcode_direct_GCJ=yes
16565 hardcode_shlibpath_var_GCJ=no
16566 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16567 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16568 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16569 export_dynamic_flag_spec_GCJ='${wl}-E'
16572 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16573 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16574 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16577 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16578 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16585 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16586 hardcode_minus_L_GCJ=yes
16587 allow_undefined_flag_GCJ=unsupported
16588 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'
16589 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16593 if test "$GCC" = yes; then
16594 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16595 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'
16597 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16598 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'
16600 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16601 hardcode_libdir_separator_GCJ=:
16604 osf4* | osf5*) # as osf3* with the addition of -msym flag
16605 if test "$GCC" = yes; then
16606 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16607 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'
16608 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16610 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16611 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'
16612 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~
16613 $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'
16615 # Both c and cxx compiler support -rpath directly
16616 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16618 hardcode_libdir_separator_GCJ=:
16622 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16623 hardcode_shlibpath_var_GCJ=no
16624 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16625 runpath_var=LD_RUN_PATH
16626 hardcode_runpath_var=yes
16630 no_undefined_flag_GCJ=' -z text'
16631 if test "$GCC" = yes; then
16632 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16633 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16634 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16636 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16637 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16640 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16641 hardcode_shlibpath_var_GCJ=no
16643 solaris2.[0-5] | solaris2.[0-5].*) ;;
16644 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16645 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16647 link_all_deplibs_GCJ=yes
16651 if test "x$host_vendor" = xsequent; then
16652 # Use $CC to link under sequent, because it throws in some extra .o
16653 # files that make .init and .fini sections work.
16654 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16656 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16658 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16659 hardcode_direct_GCJ=yes
16660 hardcode_minus_L_GCJ=yes
16661 hardcode_shlibpath_var_GCJ=no
16665 case $host_vendor in
16667 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668 hardcode_direct_GCJ=yes # is this really true???
16671 ## LD is ld it makes a PLAMLIB
16672 ## CC just makes a GrossModule.
16673 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16674 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16675 hardcode_direct_GCJ=no
16678 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16682 runpath_var='LD_RUN_PATH'
16683 hardcode_shlibpath_var_GCJ=no
16687 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688 hardcode_shlibpath_var_GCJ=no
16689 export_dynamic_flag_spec_GCJ='-Bexport'
16693 if test -d /usr/nec; then
16694 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16695 hardcode_shlibpath_var_GCJ=no
16696 runpath_var=LD_RUN_PATH
16697 hardcode_runpath_var=yes
16703 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16704 hardcode_direct_GCJ=yes
16705 hardcode_minus_L_GCJ=no
16706 hardcode_shlibpath_var_GCJ=no
16707 hardcode_runpath_var=yes
16708 runpath_var=LD_RUN_PATH
16711 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16712 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16713 if test "$GCC" = yes; then
16714 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16716 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16718 runpath_var='LD_RUN_PATH'
16719 hardcode_shlibpath_var_GCJ=no
16723 no_undefined_flag_GCJ=' -z text'
16724 # $CC -shared without GNU ld will not create a library from C++
16725 # object files and a static libstdc++, better avoid it by now
16726 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16729 hardcode_libdir_flag_spec_GCJ=
16730 hardcode_shlibpath_var_GCJ=no
16731 runpath_var='LD_RUN_PATH'
16735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16737 hardcode_shlibpath_var_GCJ=no
16746 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16747 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16748 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16750 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16751 if test "$GCC" = yes; then
16752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16756 # Do we need to explicitly link libc?
16758 case "x$archive_cmds_need_lc_GCJ" in
16760 # Assume -lc should be added
16761 archive_cmds_need_lc_GCJ=yes
16763 if test "$enable_shared" = yes && test "$GCC" = yes; then
16764 case $archive_cmds_GCJ in
16766 # FIXME: we may have to deal with multi-command sequences.
16769 # Test whether the compiler implicitly links with -lc since on some
16770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16771 # to ld, don't add -lc before -lgcc.
16772 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16773 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } 2>conftest.err; then
16784 libobjs=conftest.$ac_objext
16786 wl=$lt_prog_compiler_wl_GCJ
16792 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16793 allow_undefined_flag_GCJ=
16794 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16795 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }
16800 archive_cmds_need_lc_GCJ=no
16802 archive_cmds_need_lc_GCJ=yes
16804 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16806 cat conftest.err 1>&5
16809 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16810 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16817 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16818 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16819 library_names_spec=
16820 libname_spec='lib$name'
16824 postuninstall_cmds=
16828 shlibpath_overrides_runpath=unknown
16830 dynamic_linker="$host_os ld.so"
16831 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16832 if test "$GCC" = yes; then
16833 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16834 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16835 # if the path contains ";" then we assume it to be the separator
16836 # otherwise default to the standard path separator (i.e. ":") - it is
16837 # assumed that no part of a normal pathname contains ";" but that should
16838 # okay in the real world where ";" in dirpaths is itself problematic.
16839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16844 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16846 need_lib_prefix=unknown
16847 hardcode_into_libs=no
16849 # when you set need_version to no, make sure it does not cause -set_version
16850 # flags to be left without arguments
16851 need_version=unknown
16856 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16857 shlibpath_var=LIBPATH
16859 # AIX 3 has no versioning support, so we append a major version to the name.
16860 soname_spec='${libname}${release}${shared_ext}$major'
16867 hardcode_into_libs=yes
16868 if test "$host_cpu" = ia64; then
16869 # AIX 5 supports IA64
16870 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16871 shlibpath_var=LD_LIBRARY_PATH
16873 # With GCC up to 2.95.x, collect2 would create an import file
16874 # for dependence libraries. The import file would start with
16875 # the line `#! .'. This would cause the generated library to
16876 # depend on `.', always an invalid library. This was fixed in
16877 # development snapshots of GCC prior to 3.0.
16879 aix4 | aix4.[01] | aix4.[01].*)
16880 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16882 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16885 can_build_shared=no
16889 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16890 # soname into executable. Probably we can add versioning support to
16891 # collect2, so additional links can be useful in future.
16892 if test "$aix_use_runtimelinking" = yes; then
16893 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16894 # instead of lib<name>.a to let people know that these are not
16895 # typical AIX shared libraries.
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898 # We preserve .a as extension for shared libraries through AIX4.2
16899 # and later when we are not doing run time linking.
16900 library_names_spec='${libname}${release}.a $libname.a'
16901 soname_spec='${libname}${release}${shared_ext}$major'
16903 shlibpath_var=LIBPATH
16908 library_names_spec='$libname.ixlibrary $libname.a'
16909 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16910 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'
16914 library_names_spec='${libname}${shared_ext}'
16915 dynamic_linker="$host_os ld.so"
16916 shlibpath_var=LIBRARY_PATH
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16925 shlibpath_var=LD_LIBRARY_PATH
16926 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16927 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16928 # the default ld.so.conf also contains /usr/contrib/lib and
16929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16930 # libtool to hard-code these into programs
16933 cygwin* | mingw* | pw32*)
16934 version_type=windows
16939 case $GCC,$host_os in
16940 yes,cygwin* | yes,mingw* | yes,pw32*)
16941 library_names_spec='$libname.dll.a'
16942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16943 postinstall_cmds='base_file=`basename \${file}`~
16944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16945 dldir=$destdir/`dirname \$dlpath`~
16946 test -d \$dldir || mkdir -p \$dldir~
16947 $install_prog $dir/$dlname \$dldir/$dlname'
16948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16949 dlpath=$dir/\$dldll~
16951 shlibpath_overrides_runpath=yes
16955 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16956 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16957 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16960 # MinGW DLLs use traditional 'lib' prefix
16961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16963 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16964 # It is most probably a Windows format PATH printed by
16965 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16966 # path with ; separators, and with drive letters. We can handle the
16967 # drive letters (cygwin fileutils understands them), so leave them,
16968 # especially as we might pass files found there to a mingw objdump,
16969 # which wouldn't understand a cygwinified path. Ahh.
16970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16976 # pw32 DLLs use 'pw' prefix rather than 'lib'
16977 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16983 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16986 dynamic_linker='Win32 ld.exe'
16987 # FIXME: first we should search . and the directory the executable is in
16991 darwin* | rhapsody*)
16992 dynamic_linker="$host_os dyld"
16993 version_type=darwin
16996 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16997 soname_spec='${libname}${release}${major}$shared_ext'
16998 shlibpath_overrides_runpath=yes
16999 shlibpath_var=DYLD_LIBRARY_PATH
17000 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17001 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17002 if test "$GCC" = yes; then
17003 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"`
17005 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 shlibpath_var=LD_LIBRARY_PATH
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17028 soname_spec='${libname}${release}${shared_ext}$major'
17029 shlibpath_var=LD_LIBRARY_PATH
17030 shlibpath_overrides_runpath=no
17031 hardcode_into_libs=yes
17032 dynamic_linker='GNU ld.so'
17036 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17037 version_type=freebsd-$objformat
17038 case $version_type in
17040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17049 shlibpath_var=LD_LIBRARY_PATH
17052 shlibpath_overrides_runpath=yes
17054 freebsd3.01* | freebsdelf3.01*)
17055 shlibpath_overrides_runpath=yes
17056 hardcode_into_libs=yes
17059 shlibpath_overrides_runpath=no
17060 hardcode_into_libs=yes
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17070 soname_spec='${libname}${release}${shared_ext}$major'
17071 shlibpath_var=LD_LIBRARY_PATH
17072 hardcode_into_libs=yes
17075 hpux9* | hpux10* | hpux11*)
17076 # Give a soname corresponding to the major version so that dld.sl refuses to
17077 # link against other versions.
17081 case "$host_cpu" in
17084 hardcode_into_libs=yes
17085 dynamic_linker="$host_os dld.so"
17086 shlibpath_var=LD_LIBRARY_PATH
17087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089 soname_spec='${libname}${release}${shared_ext}$major'
17090 if test "X$HPUX_IA64_MODE" = X32; then
17091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17099 hardcode_into_libs=yes
17100 dynamic_linker="$host_os dld.sl"
17101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17104 soname_spec='${libname}${release}${shared_ext}$major'
17105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17110 dynamic_linker="$host_os dld.sl"
17111 shlibpath_var=SHLIB_PATH
17112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17114 soname_spec='${libname}${release}${shared_ext}$major'
17117 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17118 postinstall_cmds='chmod 555 $lib'
17121 irix5* | irix6* | nonstopux*)
17123 nonstopux*) version_type=nonstopux ;;
17125 if test "$lt_cv_prog_gnu_ld" = yes; then
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17136 irix5* | nonstopux*)
17137 libsuff= shlibsuff=
17140 case $LD in # libtool.m4 will add one of these switches to LD
17141 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17142 libsuff= shlibsuff= libmagic=32-bit;;
17143 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17144 libsuff=32 shlibsuff=N32 libmagic=N32;;
17145 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17146 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17147 *) libsuff= shlibsuff= libmagic=never-match;;
17151 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17152 shlibpath_overrides_runpath=no
17153 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17154 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17155 hardcode_into_libs=yes
17158 # No shared lib support for Linux oldld, aout, or coff.
17159 linux*oldld* | linux*aout* | linux*coff*)
17163 # This must be Linux ELF.
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169 soname_spec='${libname}${release}${shared_ext}$major'
17170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17171 shlibpath_var=LD_LIBRARY_PATH
17172 shlibpath_overrides_runpath=no
17173 # This implies no fast_install, which is unacceptable.
17174 # Some rework will be needed to allow for fast_install
17175 # before this can be enabled.
17176 hardcode_into_libs=yes
17178 # Append ld.so.conf contents to the search path
17179 if test -f /etc/ld.so.conf; then
17180 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17181 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17184 # We used to test for /lib/ld.so.1 and disable shared libraries on
17185 # powerpc, because MkLinux only supported shared libraries with the
17186 # GNU dynamic linker. Since this was broken with cross compilers,
17187 # most powerpc-linux boxes support dynamic linking these days and
17188 # people can always --disable-shared, the test was removed, and we
17189 # assume the GNU/Linux dynamic linker is in use.
17190 dynamic_linker='GNU/Linux ld.so'
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 shlibpath_var=LD_LIBRARY_PATH
17200 shlibpath_overrides_runpath=no
17201 hardcode_into_libs=yes
17202 dynamic_linker='NetBSD ld.elf_so'
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=no
17213 hardcode_into_libs=yes
17214 dynamic_linker='GNU ld.so'
17221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17224 dynamic_linker='NetBSD (a.out) ld.so'
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17228 dynamic_linker='NetBSD ld.elf_so'
17230 shlibpath_var=LD_LIBRARY_PATH
17231 shlibpath_overrides_runpath=yes
17232 hardcode_into_libs=yes
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=yes
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 soname_spec='${libname}${release}${shared_ext}$major'
17248 shlibpath_var=LD_LIBRARY_PATH
17249 shlibpath_overrides_runpath=yes
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17258 shlibpath_var=LD_LIBRARY_PATH
17259 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17261 openbsd2.[89] | openbsd2.[89].*)
17262 shlibpath_overrides_runpath=no
17265 shlibpath_overrides_runpath=yes
17269 shlibpath_overrides_runpath=yes
17274 libname_spec='$name'
17277 library_names_spec='$libname${shared_ext} $libname.a'
17278 dynamic_linker='OS/2 ld.exe'
17279 shlibpath_var=LIBPATH
17282 osf3* | osf4* | osf5*)
17286 soname_spec='${libname}${release}${shared_ext}$major'
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17290 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297 shlibpath_var=LD_LIBRARY_PATH
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 soname_spec='${libname}${release}${shared_ext}$major'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 shlibpath_overrides_runpath=yes
17308 hardcode_into_libs=yes
17309 # ldd complains unless libraries are executable
17310 postinstall_cmds='chmod +x $lib'
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath=yes
17319 if test "$with_gnu_ld" = yes; then
17325 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328 soname_spec='${libname}${release}${shared_ext}$major'
17329 shlibpath_var=LD_LIBRARY_PATH
17330 case $host_vendor in
17332 shlibpath_overrides_runpath=no
17334 export_dynamic_flag_spec='${wl}-Blargedynsym'
17335 runpath_var=LD_RUN_PATH
17343 shlibpath_overrides_runpath=no
17344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17350 if test -d /usr/nec ;then
17352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17353 soname_spec='$libname${shared_ext}.$major'
17354 shlibpath_var=LD_LIBRARY_PATH
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17361 soname_spec='${libname}${release}${shared_ext}$major'
17362 shlibpath_var=LD_LIBRARY_PATH
17369 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17370 echo "${ECHO_T}$dynamic_linker" >&6
17371 test "$dynamic_linker" = no && can_build_shared=no
17373 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17374 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17375 hardcode_action_GCJ=
17376 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17377 test -n "$runpath_var GCJ" || \
17378 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17380 # We can hardcode non-existant directories.
17381 if test "$hardcode_direct_GCJ" != no &&
17382 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17383 # have to relink, otherwise we might link with an installed library
17384 # when we should be linking with a yet-to-be-installed one
17385 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17386 test "$hardcode_minus_L_GCJ" != no; then
17387 # Linking always hardcodes the temporary library directory.
17388 hardcode_action_GCJ=relink
17390 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17391 hardcode_action_GCJ=immediate
17394 # We cannot hardcode anything, or else we can only hardcode existing
17396 hardcode_action_GCJ=unsupported
17398 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17399 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17401 if test "$hardcode_action_GCJ" = relink; then
17402 # Fast installation is not supported
17403 enable_fast_install=no
17404 elif test "$shlibpath_overrides_runpath" = yes ||
17405 test "$enable_shared" = no; then
17406 # Fast installation is not necessary
17407 enable_fast_install=needless
17412 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17413 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17414 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17415 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17416 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17417 echo "$as_me:$LINENO: result: yes" >&5
17418 echo "${ECHO_T}yes" >&6
17420 # FIXME - insert some real tests, host_os isn't really good enough
17423 if test -n "$STRIP" ; then
17424 striplib="$STRIP -x"
17425 echo "$as_me:$LINENO: result: yes" >&5
17426 echo "${ECHO_T}yes" >&6
17428 echo "$as_me:$LINENO: result: no" >&5
17429 echo "${ECHO_T}no" >&6
17433 echo "$as_me:$LINENO: result: no" >&5
17434 echo "${ECHO_T}no" >&6
17439 if test "x$enable_dlopen" != xyes; then
17440 enable_dlopen=unknown
17441 enable_dlopen_self=unknown
17442 enable_dlopen_self_static=unknown
17449 lt_cv_dlopen="load_add_on"
17451 lt_cv_dlopen_self=yes
17455 lt_cv_dlopen="LoadLibrary"
17460 lt_cv_dlopen="dlopen"
17465 # if libdl is installed we need to link against it
17466 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17467 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17468 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 ac_check_lib_save_LIBS=$LIBS
17473 cat >conftest.$ac_ext <<_ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17480 /* Override any gcc2 internal prototype to avoid an error. */
17484 /* We use char because int might match the return type of a gcc2
17485 builtin and then its argument prototype would still apply. */
17495 rm -f conftest.$ac_objext conftest$ac_exeext
17496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17497 (eval $ac_link) 2>conftest.er1
17499 grep -v '^ *+' conftest.er1 >conftest.err
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; } &&
17510 { ac_try='test -s conftest$ac_exeext'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 ac_cv_lib_dl_dlopen=yes
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17521 ac_cv_lib_dl_dlopen=no
17523 rm -f conftest.err conftest.$ac_objext \
17524 conftest$ac_exeext conftest.$ac_ext
17525 LIBS=$ac_check_lib_save_LIBS
17527 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17528 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17529 if test $ac_cv_lib_dl_dlopen = yes; then
17530 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17533 lt_cv_dlopen="dyld"
17535 lt_cv_dlopen_self=yes
17542 echo "$as_me:$LINENO: checking for shl_load" >&5
17543 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17544 if test "${ac_cv_func_shl_load+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 cat >conftest.$ac_ext <<_ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17555 #define shl_load innocuous_shl_load
17557 /* System header to define __stub macros and hopefully few prototypes,
17558 which can conflict with char shl_load (); below.
17559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17560 <limits.h> exists even on freestanding compilers. */
17563 # include <limits.h>
17565 # include <assert.h>
17570 /* Override any gcc2 internal prototype to avoid an error. */
17575 /* We use char because int might match the return type of a gcc2
17576 builtin and then its argument prototype would still apply. */
17578 /* The GNU C library defines this for functions which it implements
17579 to always fail with ENOSYS. Some functions are actually named
17580 something starting with __ and the normal name is an alias. */
17581 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17584 char (*f) () = shl_load;
17593 return f != shl_load;
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17600 (eval $ac_link) 2>conftest.er1
17602 grep -v '^ *+' conftest.er1 >conftest.err
17604 cat conftest.err >&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } &&
17607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest$ac_exeext'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17619 ac_cv_func_shl_load=yes
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17624 ac_cv_func_shl_load=no
17626 rm -f conftest.err conftest.$ac_objext \
17627 conftest$ac_exeext conftest.$ac_ext
17629 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17630 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17631 if test $ac_cv_func_shl_load = yes; then
17632 lt_cv_dlopen="shl_load"
17634 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17635 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17636 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 ac_check_lib_save_LIBS=$LIBS
17641 cat >conftest.$ac_ext <<_ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17648 /* Override any gcc2 internal prototype to avoid an error. */
17652 /* We use char because int might match the return type of a gcc2
17653 builtin and then its argument prototype would still apply. */
17663 rm -f conftest.$ac_objext conftest$ac_exeext
17664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17665 (eval $ac_link) 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } &&
17672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; } &&
17678 { ac_try='test -s conftest$ac_exeext'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 ac_cv_lib_dld_shl_load=yes
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 ac_cv_lib_dld_shl_load=no
17691 rm -f conftest.err conftest.$ac_objext \
17692 conftest$ac_exeext conftest.$ac_ext
17693 LIBS=$ac_check_lib_save_LIBS
17695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17696 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17697 if test $ac_cv_lib_dld_shl_load = yes; then
17698 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17700 echo "$as_me:$LINENO: checking for dlopen" >&5
17701 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17702 if test "${ac_cv_func_dlopen+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 cat >conftest.$ac_ext <<_ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17713 #define dlopen innocuous_dlopen
17715 /* System header to define __stub macros and hopefully few prototypes,
17716 which can conflict with char dlopen (); below.
17717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718 <limits.h> exists even on freestanding compilers. */
17721 # include <limits.h>
17723 # include <assert.h>
17728 /* Override any gcc2 internal prototype to avoid an error. */
17733 /* We use char because int might match the return type of a gcc2
17734 builtin and then its argument prototype would still apply. */
17736 /* The GNU C library defines this for functions which it implements
17737 to always fail with ENOSYS. Some functions are actually named
17738 something starting with __ and the normal name is an alias. */
17739 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17742 char (*f) () = dlopen;
17751 return f != dlopen;
17756 rm -f conftest.$ac_objext conftest$ac_exeext
17757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17758 (eval $ac_link) 2>conftest.er1
17760 grep -v '^ *+' conftest.er1 >conftest.err
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; } &&
17771 { ac_try='test -s conftest$ac_exeext'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_cv_func_dlopen=yes
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 ac_cv_func_dlopen=no
17784 rm -f conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17787 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17788 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17789 if test $ac_cv_func_dlopen = yes; then
17790 lt_cv_dlopen="dlopen"
17792 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17793 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17794 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 ac_check_lib_save_LIBS=$LIBS
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17806 /* Override any gcc2 internal prototype to avoid an error. */
17810 /* We use char because int might match the return type of a gcc2
17811 builtin and then its argument prototype would still apply. */
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823 (eval $ac_link) 2>conftest.er1
17825 grep -v '^ *+' conftest.er1 >conftest.err
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest$ac_exeext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_lib_dl_dlopen=yes
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_cv_lib_dl_dlopen=no
17849 rm -f conftest.err conftest.$ac_objext \
17850 conftest$ac_exeext conftest.$ac_ext
17851 LIBS=$ac_check_lib_save_LIBS
17853 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17855 if test $ac_cv_lib_dl_dlopen = yes; then
17856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17858 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17859 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17860 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 ac_check_lib_save_LIBS=$LIBS
17864 LIBS="-lsvld $LIBS"
17865 cat >conftest.$ac_ext <<_ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17872 /* Override any gcc2 internal prototype to avoid an error. */
17876 /* We use char because int might match the return type of a gcc2
17877 builtin and then its argument prototype would still apply. */
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest$ac_exeext'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 ac_cv_lib_svld_dlopen=yes
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_cv_lib_svld_dlopen=no
17915 rm -f conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917 LIBS=$ac_check_lib_save_LIBS
17919 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17920 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17921 if test $ac_cv_lib_svld_dlopen = yes; then
17922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17924 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17925 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17926 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 ac_check_lib_save_LIBS=$LIBS
17931 cat >conftest.$ac_ext <<_ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17938 /* Override any gcc2 internal prototype to avoid an error. */
17942 /* We use char because int might match the return type of a gcc2
17943 builtin and then its argument prototype would still apply. */
17953 rm -f conftest.$ac_objext conftest$ac_exeext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17955 (eval $ac_link) 2>conftest.er1
17957 grep -v '^ *+' conftest.er1 >conftest.err
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest$ac_exeext'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17974 ac_cv_lib_dld_dld_link=yes
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 ac_cv_lib_dld_dld_link=no
17981 rm -f conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17983 LIBS=$ac_check_lib_save_LIBS
17985 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17986 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17987 if test $ac_cv_lib_dld_dld_link = yes; then
17988 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18009 if test "x$lt_cv_dlopen" != xno; then
18015 case $lt_cv_dlopen in
18017 save_CPPFLAGS="$CPPFLAGS"
18018 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18020 save_LDFLAGS="$LDFLAGS"
18021 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18024 LIBS="$lt_cv_dlopen_libs $LIBS"
18026 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18027 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18028 if test "${lt_cv_dlopen_self+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 if test "$cross_compiling" = yes; then :
18032 lt_cv_dlopen_self=cross
18034 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18035 lt_status=$lt_dlunknown
18036 cat > conftest.$ac_ext <<EOF
18037 #line __oline__ "configure"
18038 #include "confdefs.h"
18047 # define LT_DLGLOBAL RTLD_GLOBAL
18050 # define LT_DLGLOBAL DL_GLOBAL
18052 # define LT_DLGLOBAL 0
18056 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18057 find out it does not work in some platform. */
18058 #ifndef LT_DLLAZY_OR_NOW
18060 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18063 # define LT_DLLAZY_OR_NOW DL_LAZY
18066 # define LT_DLLAZY_OR_NOW RTLD_NOW
18069 # define LT_DLLAZY_OR_NOW DL_NOW
18071 # define LT_DLLAZY_OR_NOW 0
18079 extern "C" void exit (int);
18082 void fnord() { int i=42;}
18085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18086 int status = $lt_dlunknown;
18090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18091 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18092 /* dlclose (self); */
18098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18099 (eval $ac_link) 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18103 (./conftest; exit; ) 2>/dev/null
18105 case x$lt_status in
18106 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18107 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18108 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18111 # compilation failed
18112 lt_cv_dlopen_self=no
18119 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18120 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18122 if test "x$lt_cv_dlopen_self" = xyes; then
18123 LDFLAGS="$LDFLAGS $link_static_flag"
18124 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18125 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18126 if test "${lt_cv_dlopen_self_static+set}" = set; then
18127 echo $ECHO_N "(cached) $ECHO_C" >&6
18129 if test "$cross_compiling" = yes; then :
18130 lt_cv_dlopen_self_static=cross
18132 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18133 lt_status=$lt_dlunknown
18134 cat > conftest.$ac_ext <<EOF
18135 #line __oline__ "configure"
18136 #include "confdefs.h"
18145 # define LT_DLGLOBAL RTLD_GLOBAL
18148 # define LT_DLGLOBAL DL_GLOBAL
18150 # define LT_DLGLOBAL 0
18154 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18155 find out it does not work in some platform. */
18156 #ifndef LT_DLLAZY_OR_NOW
18158 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18161 # define LT_DLLAZY_OR_NOW DL_LAZY
18164 # define LT_DLLAZY_OR_NOW RTLD_NOW
18167 # define LT_DLLAZY_OR_NOW DL_NOW
18169 # define LT_DLLAZY_OR_NOW 0
18177 extern "C" void exit (int);
18180 void fnord() { int i=42;}
18183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18184 int status = $lt_dlunknown;
18188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18189 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18190 /* dlclose (self); */
18196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18197 (eval $ac_link) 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18201 (./conftest; exit; ) 2>/dev/null
18203 case x$lt_status in
18204 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18205 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18206 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18209 # compilation failed
18210 lt_cv_dlopen_self_static=no
18217 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18218 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18221 CPPFLAGS="$save_CPPFLAGS"
18222 LDFLAGS="$save_LDFLAGS"
18227 case $lt_cv_dlopen_self in
18228 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18229 *) enable_dlopen_self=unknown ;;
18232 case $lt_cv_dlopen_self_static in
18233 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18234 *) enable_dlopen_self_static=unknown ;;
18239 # The else clause should only fire when bootstrapping the
18240 # libtool distribution, otherwise you forgot to ship ltmain.sh
18241 # with your package, and you will get complaints that there are
18242 # no rules to generate ltmain.sh.
18243 if test -f "$ltmain"; then
18244 # See if we are running on zsh, and set the options which allow our commands through
18245 # without removal of \ escapes.
18246 if test -n "${ZSH_VERSION+set}" ; then
18247 setopt NO_GLOB_SUBST
18249 # Now quote all the things that may contain metacharacters while being
18250 # careful not to overquote the AC_SUBSTed values. We take copies of the
18251 # variables and quote the copies for generation of the libtool script.
18252 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18254 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18255 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18256 deplibs_check_method reload_flag reload_cmds need_locks \
18257 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18258 lt_cv_sys_global_symbol_to_c_name_address \
18259 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18260 old_postinstall_cmds old_postuninstall_cmds \
18264 lt_prog_compiler_wl_GCJ \
18265 lt_prog_compiler_pic_GCJ \
18266 lt_prog_compiler_static_GCJ \
18267 lt_prog_compiler_no_builtin_flag_GCJ \
18268 export_dynamic_flag_spec_GCJ \
18269 thread_safe_flag_spec_GCJ \
18270 whole_archive_flag_spec_GCJ \
18271 enable_shared_with_static_runtimes_GCJ \
18272 old_archive_cmds_GCJ \
18273 old_archive_from_new_cmds_GCJ \
18274 predep_objects_GCJ \
18275 postdep_objects_GCJ \
18278 compiler_lib_search_path_GCJ \
18280 archive_expsym_cmds_GCJ \
18281 postinstall_cmds_GCJ \
18282 postuninstall_cmds_GCJ \
18283 old_archive_from_expsyms_cmds_GCJ \
18284 allow_undefined_flag_GCJ \
18285 no_undefined_flag_GCJ \
18286 export_symbols_cmds_GCJ \
18287 hardcode_libdir_flag_spec_GCJ \
18288 hardcode_libdir_flag_spec_ld_GCJ \
18289 hardcode_libdir_separator_GCJ \
18290 hardcode_automatic_GCJ \
18292 module_expsym_cmds_GCJ \
18293 lt_cv_prog_compiler_c_o_GCJ \
18294 exclude_expsyms_GCJ \
18295 include_expsyms_GCJ; do
18298 old_archive_cmds_GCJ | \
18299 old_archive_from_new_cmds_GCJ | \
18300 archive_cmds_GCJ | \
18301 archive_expsym_cmds_GCJ | \
18302 module_cmds_GCJ | \
18303 module_expsym_cmds_GCJ | \
18304 old_archive_from_expsyms_cmds_GCJ | \
18305 export_symbols_cmds_GCJ | \
18306 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18307 postinstall_cmds | postuninstall_cmds | \
18308 old_postinstall_cmds | old_postuninstall_cmds | \
18309 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18310 # Double-quote double-evaled strings.
18311 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18314 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18320 *'\$0 --fallback-echo"')
18321 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18327 cat <<__EOF__ >> "$cfgfile"
18328 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18330 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18332 # Shell to use when invoking shell scripts.
18335 # Whether or not to build shared libraries.
18336 build_libtool_libs=$enable_shared
18338 # Whether or not to build static libraries.
18339 build_old_libs=$enable_static
18341 # Whether or not to add -lc for building shared libraries.
18342 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18344 # Whether or not to disallow shared libs when runtime libs are static
18345 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18347 # Whether or not to optimize for fast installation.
18348 fast_install=$enable_fast_install
18351 host_alias=$host_alias
18354 # An echo program that does not interpret backslashes.
18359 AR_FLAGS=$lt_AR_FLAGS
18364 # A language-specific compiler.
18365 CC=$lt_compiler_GCJ
18367 # Is the compiler the GNU C compiler?
18373 # The linker used to build libraries.
18376 # Whether we need hard or soft links.
18379 # A BSD-compatible nm program.
18382 # A symbol stripping program
18385 # Used to examine libraries when file_magic_cmd begins "file"
18386 MAGIC_CMD=$MAGIC_CMD
18388 # Used on cygwin: DLL creation program.
18391 # Used on cygwin: object dumper.
18394 # Used on cygwin: assembler.
18397 # The name of the directory that contains temporary libtool files.
18400 # How to create reloadable object files.
18401 reload_flag=$lt_reload_flag
18402 reload_cmds=$lt_reload_cmds
18404 # How to pass a linker flag through the compiler.
18405 wl=$lt_lt_prog_compiler_wl_GCJ
18407 # Object file suffix (normally "o").
18408 objext="$ac_objext"
18410 # Old archive suffix (normally "a").
18413 # Shared library suffix (normally ".so").
18414 shrext_cmds='$shrext_cmds'
18416 # Executable file suffix (normally "").
18419 # Additional compiler flags for building library objects.
18420 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18423 # What is the maximum length of a command?
18424 max_cmd_len=$lt_cv_sys_max_cmd_len
18426 # Does compiler simultaneously support -c and -o options?
18427 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18429 # Must we lock files when doing compilation ?
18430 need_locks=$lt_need_locks
18432 # Do we need the lib prefix for modules?
18433 need_lib_prefix=$need_lib_prefix
18435 # Do we need a version for libraries?
18436 need_version=$need_version
18438 # Whether dlopen is supported.
18439 dlopen_support=$enable_dlopen
18441 # Whether dlopen of programs is supported.
18442 dlopen_self=$enable_dlopen_self
18444 # Whether dlopen of statically linked programs is supported.
18445 dlopen_self_static=$enable_dlopen_self_static
18447 # Compiler flag to prevent dynamic linking.
18448 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18450 # Compiler flag to turn off builtin functions.
18451 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18453 # Compiler flag to allow reflexive dlopens.
18454 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18456 # Compiler flag to generate shared objects directly from archives.
18457 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18459 # Compiler flag to generate thread-safe objects.
18460 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18462 # Library versioning type.
18463 version_type=$version_type
18465 # Format of library name prefix.
18466 libname_spec=$lt_libname_spec
18468 # List of archive names. First name is the real one, the rest are links.
18469 # The last name is the one that the linker finds with -lNAME.
18470 library_names_spec=$lt_library_names_spec
18472 # The coded name of the library, if different from the real name.
18473 soname_spec=$lt_soname_spec
18475 # Commands used to build and install an old-style archive.
18477 old_archive_cmds=$lt_old_archive_cmds_GCJ
18478 old_postinstall_cmds=$lt_old_postinstall_cmds
18479 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18481 # Create an old-style archive from a shared archive.
18482 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18484 # Create a temporary old-style archive to link instead of a shared archive.
18485 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18487 # Commands used to build and install a shared archive.
18488 archive_cmds=$lt_archive_cmds_GCJ
18489 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18490 postinstall_cmds=$lt_postinstall_cmds
18491 postuninstall_cmds=$lt_postuninstall_cmds
18493 # Commands used to build a loadable module (assumed same as above if empty)
18494 module_cmds=$lt_module_cmds_GCJ
18495 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18497 # Commands to strip libraries.
18498 old_striplib=$lt_old_striplib
18499 striplib=$lt_striplib
18501 # Dependencies to place before the objects being linked to create a
18503 predep_objects=$lt_predep_objects_GCJ
18505 # Dependencies to place after the objects being linked to create a
18507 postdep_objects=$lt_postdep_objects_GCJ
18509 # Dependencies to place before the objects being linked to create a
18511 predeps=$lt_predeps_GCJ
18513 # Dependencies to place after the objects being linked to create a
18515 postdeps=$lt_postdeps_GCJ
18517 # The library search path used internally by the compiler when linking
18518 # a shared library.
18519 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18521 # Method to check whether dependent libraries are shared objects.
18522 deplibs_check_method=$lt_deplibs_check_method
18524 # Command to use when deplibs_check_method == file_magic.
18525 file_magic_cmd=$lt_file_magic_cmd
18527 # Flag that allows shared libraries with undefined symbols to be built.
18528 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18530 # Flag that forces no undefined symbols.
18531 no_undefined_flag=$lt_no_undefined_flag_GCJ
18533 # Commands used to finish a libtool library installation in a directory.
18534 finish_cmds=$lt_finish_cmds
18536 # Same as above, but a single script fragment to be evaled but not shown.
18537 finish_eval=$lt_finish_eval
18539 # Take the output of nm and produce a listing of raw symbols and C names.
18540 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18542 # Transform the output of nm in a proper C declaration
18543 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18545 # Transform the output of nm in a C name address pair
18546 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18548 # This is the shared library runtime path variable.
18549 runpath_var=$runpath_var
18551 # This is the shared library path variable.
18552 shlibpath_var=$shlibpath_var
18554 # Is shlibpath searched before the hard-coded library search path?
18555 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18557 # How to hardcode a shared library path into an executable.
18558 hardcode_action=$hardcode_action_GCJ
18560 # Whether we should hardcode library paths into libraries.
18561 hardcode_into_libs=$hardcode_into_libs
18563 # Flag to hardcode \$libdir into a binary during linking.
18564 # This must work even if \$libdir does not exist.
18565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18567 # If ld is used when linking, flag to hardcode \$libdir into
18568 # a binary during linking. This must work even if \$libdir does
18570 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18572 # Whether we need a single -rpath flag with a separated argument.
18573 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18575 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18576 # resulting binary.
18577 hardcode_direct=$hardcode_direct_GCJ
18579 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18580 # resulting binary.
18581 hardcode_minus_L=$hardcode_minus_L_GCJ
18583 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18584 # the resulting binary.
18585 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18587 # Set to yes if building a shared library automatically hardcodes DIR into the library
18588 # and all subsequent libraries and executables linked against it.
18589 hardcode_automatic=$hardcode_automatic_GCJ
18591 # Variables whose values should be saved in libtool wrapper scripts and
18592 # restored at relink time.
18593 variables_saved_for_relink="$variables_saved_for_relink"
18595 # Whether libtool must link a program against all its dependency libraries.
18596 link_all_deplibs=$link_all_deplibs_GCJ
18598 # Compile-time system search path for libraries
18599 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18601 # Run-time system search path for libraries
18602 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18604 # Fix the shell variable \$srcfile for the compiler.
18605 fix_srcfile_path="$fix_srcfile_path_GCJ"
18607 # Set to yes if exported symbols are required.
18608 always_export_symbols=$always_export_symbols_GCJ
18610 # The commands to list exported symbols.
18611 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18613 # The commands to extract the exported symbol list from a shared archive.
18614 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18616 # Symbols that should not be listed in the preloaded symbols.
18617 exclude_expsyms=$lt_exclude_expsyms_GCJ
18619 # Symbols that must always be exported.
18620 include_expsyms=$lt_include_expsyms_GCJ
18622 # ### END LIBTOOL TAG CONFIG: $tagname
18628 # If there is no Makefile yet, we rely on a make rule to execute
18629 # `config.status --recheck' to rerun these tests and create the
18630 # libtool script then.
18631 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18632 if test -f "$ltmain_in"; then
18633 test -f Makefile && make "$ltmain"
18639 ac_cpp='$CPP $CPPFLAGS'
18640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18655 # Source file extension for RC test sources.
18658 # Object file extension for compiled RC test sources.
18662 # Code to be used in simple compile tests
18663 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18665 # Code to be used in simple link tests
18666 lt_simple_link_test_code="$lt_simple_compile_test_code"
18668 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18670 # If no C compiler was specified, use CC.
18673 # Allow CC to be a program name with arguments.
18677 # Allow CC to be a program name with arguments.
18682 lt_cv_prog_compiler_c_o_RC=yes
18684 # The else clause should only fire when bootstrapping the
18685 # libtool distribution, otherwise you forgot to ship ltmain.sh
18686 # with your package, and you will get complaints that there are
18687 # no rules to generate ltmain.sh.
18688 if test -f "$ltmain"; then
18689 # See if we are running on zsh, and set the options which allow our commands through
18690 # without removal of \ escapes.
18691 if test -n "${ZSH_VERSION+set}" ; then
18692 setopt NO_GLOB_SUBST
18694 # Now quote all the things that may contain metacharacters while being
18695 # careful not to overquote the AC_SUBSTed values. We take copies of the
18696 # variables and quote the copies for generation of the libtool script.
18697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18701 deplibs_check_method reload_flag reload_cmds need_locks \
18702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18703 lt_cv_sys_global_symbol_to_c_name_address \
18704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18705 old_postinstall_cmds old_postuninstall_cmds \
18709 lt_prog_compiler_wl_RC \
18710 lt_prog_compiler_pic_RC \
18711 lt_prog_compiler_static_RC \
18712 lt_prog_compiler_no_builtin_flag_RC \
18713 export_dynamic_flag_spec_RC \
18714 thread_safe_flag_spec_RC \
18715 whole_archive_flag_spec_RC \
18716 enable_shared_with_static_runtimes_RC \
18717 old_archive_cmds_RC \
18718 old_archive_from_new_cmds_RC \
18719 predep_objects_RC \
18720 postdep_objects_RC \
18723 compiler_lib_search_path_RC \
18725 archive_expsym_cmds_RC \
18726 postinstall_cmds_RC \
18727 postuninstall_cmds_RC \
18728 old_archive_from_expsyms_cmds_RC \
18729 allow_undefined_flag_RC \
18730 no_undefined_flag_RC \
18731 export_symbols_cmds_RC \
18732 hardcode_libdir_flag_spec_RC \
18733 hardcode_libdir_flag_spec_ld_RC \
18734 hardcode_libdir_separator_RC \
18735 hardcode_automatic_RC \
18737 module_expsym_cmds_RC \
18738 lt_cv_prog_compiler_c_o_RC \
18739 exclude_expsyms_RC \
18740 include_expsyms_RC; do
18743 old_archive_cmds_RC | \
18744 old_archive_from_new_cmds_RC | \
18745 archive_cmds_RC | \
18746 archive_expsym_cmds_RC | \
18748 module_expsym_cmds_RC | \
18749 old_archive_from_expsyms_cmds_RC | \
18750 export_symbols_cmds_RC | \
18751 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18752 postinstall_cmds | postuninstall_cmds | \
18753 old_postinstall_cmds | old_postuninstall_cmds | \
18754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18755 # Double-quote double-evaled strings.
18756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18765 *'\$0 --fallback-echo"')
18766 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18772 cat <<__EOF__ >> "$cfgfile"
18773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18777 # Shell to use when invoking shell scripts.
18780 # Whether or not to build shared libraries.
18781 build_libtool_libs=$enable_shared
18783 # Whether or not to build static libraries.
18784 build_old_libs=$enable_static
18786 # Whether or not to add -lc for building shared libraries.
18787 build_libtool_need_lc=$archive_cmds_need_lc_RC
18789 # Whether or not to disallow shared libs when runtime libs are static
18790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18792 # Whether or not to optimize for fast installation.
18793 fast_install=$enable_fast_install
18796 host_alias=$host_alias
18799 # An echo program that does not interpret backslashes.
18804 AR_FLAGS=$lt_AR_FLAGS
18809 # A language-specific compiler.
18812 # Is the compiler the GNU C compiler?
18818 # The linker used to build libraries.
18821 # Whether we need hard or soft links.
18824 # A BSD-compatible nm program.
18827 # A symbol stripping program
18830 # Used to examine libraries when file_magic_cmd begins "file"
18831 MAGIC_CMD=$MAGIC_CMD
18833 # Used on cygwin: DLL creation program.
18836 # Used on cygwin: object dumper.
18839 # Used on cygwin: assembler.
18842 # The name of the directory that contains temporary libtool files.
18845 # How to create reloadable object files.
18846 reload_flag=$lt_reload_flag
18847 reload_cmds=$lt_reload_cmds
18849 # How to pass a linker flag through the compiler.
18850 wl=$lt_lt_prog_compiler_wl_RC
18852 # Object file suffix (normally "o").
18853 objext="$ac_objext"
18855 # Old archive suffix (normally "a").
18858 # Shared library suffix (normally ".so").
18859 shrext_cmds='$shrext_cmds'
18861 # Executable file suffix (normally "").
18864 # Additional compiler flags for building library objects.
18865 pic_flag=$lt_lt_prog_compiler_pic_RC
18868 # What is the maximum length of a command?
18869 max_cmd_len=$lt_cv_sys_max_cmd_len
18871 # Does compiler simultaneously support -c and -o options?
18872 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18874 # Must we lock files when doing compilation ?
18875 need_locks=$lt_need_locks
18877 # Do we need the lib prefix for modules?
18878 need_lib_prefix=$need_lib_prefix
18880 # Do we need a version for libraries?
18881 need_version=$need_version
18883 # Whether dlopen is supported.
18884 dlopen_support=$enable_dlopen
18886 # Whether dlopen of programs is supported.
18887 dlopen_self=$enable_dlopen_self
18889 # Whether dlopen of statically linked programs is supported.
18890 dlopen_self_static=$enable_dlopen_self_static
18892 # Compiler flag to prevent dynamic linking.
18893 link_static_flag=$lt_lt_prog_compiler_static_RC
18895 # Compiler flag to turn off builtin functions.
18896 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18898 # Compiler flag to allow reflexive dlopens.
18899 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18901 # Compiler flag to generate shared objects directly from archives.
18902 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18904 # Compiler flag to generate thread-safe objects.
18905 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18907 # Library versioning type.
18908 version_type=$version_type
18910 # Format of library name prefix.
18911 libname_spec=$lt_libname_spec
18913 # List of archive names. First name is the real one, the rest are links.
18914 # The last name is the one that the linker finds with -lNAME.
18915 library_names_spec=$lt_library_names_spec
18917 # The coded name of the library, if different from the real name.
18918 soname_spec=$lt_soname_spec
18920 # Commands used to build and install an old-style archive.
18922 old_archive_cmds=$lt_old_archive_cmds_RC
18923 old_postinstall_cmds=$lt_old_postinstall_cmds
18924 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18926 # Create an old-style archive from a shared archive.
18927 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18929 # Create a temporary old-style archive to link instead of a shared archive.
18930 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18932 # Commands used to build and install a shared archive.
18933 archive_cmds=$lt_archive_cmds_RC
18934 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18935 postinstall_cmds=$lt_postinstall_cmds
18936 postuninstall_cmds=$lt_postuninstall_cmds
18938 # Commands used to build a loadable module (assumed same as above if empty)
18939 module_cmds=$lt_module_cmds_RC
18940 module_expsym_cmds=$lt_module_expsym_cmds_RC
18942 # Commands to strip libraries.
18943 old_striplib=$lt_old_striplib
18944 striplib=$lt_striplib
18946 # Dependencies to place before the objects being linked to create a
18948 predep_objects=$lt_predep_objects_RC
18950 # Dependencies to place after the objects being linked to create a
18952 postdep_objects=$lt_postdep_objects_RC
18954 # Dependencies to place before the objects being linked to create a
18956 predeps=$lt_predeps_RC
18958 # Dependencies to place after the objects being linked to create a
18960 postdeps=$lt_postdeps_RC
18962 # The library search path used internally by the compiler when linking
18963 # a shared library.
18964 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18966 # Method to check whether dependent libraries are shared objects.
18967 deplibs_check_method=$lt_deplibs_check_method
18969 # Command to use when deplibs_check_method == file_magic.
18970 file_magic_cmd=$lt_file_magic_cmd
18972 # Flag that allows shared libraries with undefined symbols to be built.
18973 allow_undefined_flag=$lt_allow_undefined_flag_RC
18975 # Flag that forces no undefined symbols.
18976 no_undefined_flag=$lt_no_undefined_flag_RC
18978 # Commands used to finish a libtool library installation in a directory.
18979 finish_cmds=$lt_finish_cmds
18981 # Same as above, but a single script fragment to be evaled but not shown.
18982 finish_eval=$lt_finish_eval
18984 # Take the output of nm and produce a listing of raw symbols and C names.
18985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18987 # Transform the output of nm in a proper C declaration
18988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18990 # Transform the output of nm in a C name address pair
18991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18993 # This is the shared library runtime path variable.
18994 runpath_var=$runpath_var
18996 # This is the shared library path variable.
18997 shlibpath_var=$shlibpath_var
18999 # Is shlibpath searched before the hard-coded library search path?
19000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19002 # How to hardcode a shared library path into an executable.
19003 hardcode_action=$hardcode_action_RC
19005 # Whether we should hardcode library paths into libraries.
19006 hardcode_into_libs=$hardcode_into_libs
19008 # Flag to hardcode \$libdir into a binary during linking.
19009 # This must work even if \$libdir does not exist.
19010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19012 # If ld is used when linking, flag to hardcode \$libdir into
19013 # a binary during linking. This must work even if \$libdir does
19015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19017 # Whether we need a single -rpath flag with a separated argument.
19018 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19020 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19021 # resulting binary.
19022 hardcode_direct=$hardcode_direct_RC
19024 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19025 # resulting binary.
19026 hardcode_minus_L=$hardcode_minus_L_RC
19028 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19029 # the resulting binary.
19030 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19032 # Set to yes if building a shared library automatically hardcodes DIR into the library
19033 # and all subsequent libraries and executables linked against it.
19034 hardcode_automatic=$hardcode_automatic_RC
19036 # Variables whose values should be saved in libtool wrapper scripts and
19037 # restored at relink time.
19038 variables_saved_for_relink="$variables_saved_for_relink"
19040 # Whether libtool must link a program against all its dependency libraries.
19041 link_all_deplibs=$link_all_deplibs_RC
19043 # Compile-time system search path for libraries
19044 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19046 # Run-time system search path for libraries
19047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19049 # Fix the shell variable \$srcfile for the compiler.
19050 fix_srcfile_path="$fix_srcfile_path_RC"
19052 # Set to yes if exported symbols are required.
19053 always_export_symbols=$always_export_symbols_RC
19055 # The commands to list exported symbols.
19056 export_symbols_cmds=$lt_export_symbols_cmds_RC
19058 # The commands to extract the exported symbol list from a shared archive.
19059 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19061 # Symbols that should not be listed in the preloaded symbols.
19062 exclude_expsyms=$lt_exclude_expsyms_RC
19064 # Symbols that must always be exported.
19065 include_expsyms=$lt_include_expsyms_RC
19067 # ### END LIBTOOL TAG CONFIG: $tagname
19073 # If there is no Makefile yet, we rely on a make rule to execute
19074 # `config.status --recheck' to rerun these tests and create the
19075 # libtool script then.
19076 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19077 if test -f "$ltmain_in"; then
19078 test -f Makefile && make "$ltmain"
19084 ac_cpp='$CPP $CPPFLAGS'
19085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19094 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19095 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19096 { (exit 1); exit 1; }; }
19100 # Append the new tag name to the list of available tags.
19101 if test -n "$tagname" ; then
19102 available_tags="$available_tags $tagname"
19108 # Now substitute the updated list of available tags.
19109 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19110 mv "${ofile}T" "$ofile"
19114 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19115 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19116 { (exit 1); exit 1; }; }
19122 # This can be used to rebuild libtool when needed
19123 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19125 # Always use our own libtool.
19126 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19128 # Prevent multiple expansion
19150 ACLOCAL_AMFLAGS="-I m4"
19153 # Extract the first word of "doxygen", so it can be a program name with args.
19154 set dummy doxygen; ac_word=$2
19155 echo "$as_me:$LINENO: checking for $ac_word" >&5
19156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19157 if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 if test -n "$HAVE_DOXYGEN"; then
19161 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
19163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19164 for as_dir in $PATH
19167 test -z "$as_dir" && as_dir=.
19168 for ac_exec_ext in '' $ac_executable_extensions; do
19169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19170 ac_cv_prog_HAVE_DOXYGEN="true"
19171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19177 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
19180 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
19181 if test -n "$HAVE_DOXYGEN"; then
19182 echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5
19183 echo "${ECHO_T}$HAVE_DOXYGEN" >&6
19185 echo "$as_me:$LINENO: result: no" >&5
19186 echo "${ECHO_T}no" >&6
19191 if $HAVE_DOXYGEN; then
19193 HAVE_DOXYGEN_FALSE='#'
19195 HAVE_DOXYGEN_TRUE='#'
19196 HAVE_DOXYGEN_FALSE=
19199 if test $HAVE_DOXYGEN = "false"; then
19200 { echo "$as_me:$LINENO: WARNING: *** doxygen not found, API documentation will not be built" >&5
19201 echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;}
19204 # Extract the first word of "python", so it can be a program name with args.
19205 set dummy python; ac_word=$2
19206 echo "$as_me:$LINENO: checking for $ac_word" >&5
19207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19208 if test "${ac_cv_prog_HAVE_PYTHON+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 if test -n "$HAVE_PYTHON"; then
19212 ac_cv_prog_HAVE_PYTHON="$HAVE_PYTHON" # Let the user override the test.
19214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19215 for as_dir in $PATH
19218 test -z "$as_dir" && as_dir=.
19219 for ac_exec_ext in '' $ac_executable_extensions; do
19220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19221 ac_cv_prog_HAVE_PYTHON="true"
19222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19228 test -z "$ac_cv_prog_HAVE_PYTHON" && ac_cv_prog_HAVE_PYTHON="false"
19231 HAVE_PYTHON=$ac_cv_prog_HAVE_PYTHON
19232 if test -n "$HAVE_PYTHON"; then
19233 echo "$as_me:$LINENO: result: $HAVE_PYTHON" >&5
19234 echo "${ECHO_T}$HAVE_PYTHON" >&6
19236 echo "$as_me:$LINENO: result: no" >&5
19237 echo "${ECHO_T}no" >&6
19242 if $HAVE_PYTHON; then
19244 HAVE_PYTHON_FALSE='#'
19246 HAVE_PYTHON_TRUE='#'
19251 VALGRIND_ENVIRONMENT=""
19252 ac_enable_valgrind=no
19253 # Check whether --enable-valgrind-testing or --disable-valgrind-testing was given.
19254 if test "${enable_valgrind_testing+set}" = set; then
19255 enableval="$enable_valgrind_testing"
19256 ac_enable_valgrind=yes
19258 ac_enable_valgrind=no
19261 if test "x${ac_enable_valgrind}" = xyes ; then
19262 if test "x${enable_shared}" = xyes ; then
19263 VALGRIND_ENVIRONMENT="libtool --mode=execute "
19266 # Extract the first word of "valgrind", so it can be a program name with args.
19267 set dummy valgrind; ac_word=$2
19268 echo "$as_me:$LINENO: checking for $ac_word" >&5
19269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19270 if test "${ac_cv_prog_HAVE_VALGRIND+set}" = set; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 if test -n "$HAVE_VALGRIND"; then
19274 ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
19276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19277 for as_dir in $PATH
19280 test -z "$as_dir" && as_dir=.
19281 for ac_exec_ext in '' $ac_executable_extensions; do
19282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19283 ac_cv_prog_HAVE_VALGRIND="yes"
19284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19290 test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
19293 HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
19294 if test -n "$HAVE_VALGRIND"; then
19295 echo "$as_me:$LINENO: result: $HAVE_VALGRIND" >&5
19296 echo "${ECHO_T}$HAVE_VALGRIND" >&6
19298 echo "$as_me:$LINENO: result: no" >&5
19299 echo "${ECHO_T}no" >&6
19302 if test "x$HAVE_VALGRIND" = xyes ; then
19303 VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100"
19305 TESTS_INFO="Type 'make check' to run test suite. Tests will be run under:
19306 ${VALGRIND_ENVIRONMENT}"
19308 TESTS_INFO="Type 'make check' to run test suite (Valgrind not found)"
19311 TESTS_INFO="Type 'make check' to run test suite (Valgrind testing not enabled)"
19316 cflags_save="$CFLAGS"
19317 if test -z "$GCC"; then
19322 PROFILE="-g -p -DDEBUG" ;;
19328 DEBUG="-g -Wall -DDEBUG -D__NO_MATH_INLINES"
19329 CFLAGS="-Wall -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
19330 PROFILE="-Wall -pg -g -O3 -fno-inline-functions -DDEBUG";;
19333 CFLAGS="$CFLAGS $cflags_save"
19337 # Check whether --enable-asm or --disable-asm was given.
19338 if test "${enable_asm+set}" = set; then
19339 enableval="$enable_asm"
19340 ac_enable_asm=$enableval
19345 if test "x${ac_enable_asm}" = xyes; then
19346 cpu_optimization="no optimization for your platform, please send a patch"
19347 case $target_cpu in
19349 if test ! "x$target_vendor" = "xapple"; then
19351 cpu_optimization="32 bit x86"
19356 cpu_optimization="64 bit x86"
19360 cpu_optimization="disabled"
19364 if test x$cpu_x86_64 = xyes; then
19366 CPU_x86_64_FALSE='#'
19368 CPU_x86_64_TRUE='#'
19374 if test x$cpu_x86_32 = xyes; then
19376 CPU_x86_32_FALSE='#'
19378 CPU_x86_32_TRUE='#'
19383 # Test whenever ld supports -version-script
19385 # Check whether --with-gnu-ld or --without-gnu-ld was given.
19386 if test "${with_gnu_ld+set}" = set; then
19387 withval="$with_gnu_ld"
19388 test "$withval" = no || with_gnu_ld=yes
19393 if test "$GCC" = yes; then
19394 # Check if gcc -print-prog-name=ld gives a path.
19395 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
19396 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
19399 # gcc leaves a trailing carriage return which upsets mingw
19400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19405 # Accept absolute paths.
19407 re_direlt='/[^/][^/]*/\.\./'
19408 # Canonicalize the pathname of ld
19409 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
19410 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19411 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
19413 test -z "$LD" && LD="$ac_prog"
19416 # If it fails, then pretend we aren't using GCC.
19420 # If it is relative, then search for the first ld in PATH.
19421 with_gnu_ld=unknown
19424 elif test "$with_gnu_ld" = yes; then
19425 echo "$as_me:$LINENO: checking for GNU ld" >&5
19426 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
19428 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19429 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
19431 if test "${lt_cv_path_LD+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 if test -z "$LD"; then
19435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19436 for ac_dir in $PATH; do
19438 test -z "$ac_dir" && ac_dir=.
19439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19440 lt_cv_path_LD="$ac_dir/$ac_prog"
19441 # Check to see if the program is GNU ld. I'd rather use --version,
19442 # but apparently some GNU ld's only accept -v.
19443 # Break only if it was the GNU/non-GNU ld that we prefer.
19444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19445 *GNU* | *'with BFD'*)
19446 test "$with_gnu_ld" != no && break
19449 test "$with_gnu_ld" != yes && break
19456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19460 LD="$lt_cv_path_LD"
19461 if test -n "$LD"; then
19462 echo "$as_me:$LINENO: result: $LD" >&5
19463 echo "${ECHO_T}$LD" >&6
19465 echo "$as_me:$LINENO: result: no" >&5
19466 echo "${ECHO_T}no" >&6
19468 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19469 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19470 { (exit 1); exit 1; }; }
19471 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19472 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
19473 if test "${lt_cv_prog_gnu_ld+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19477 case `$LD -v 2>&1 </dev/null` in
19478 *GNU* | *'with BFD'*)
19479 lt_cv_prog_gnu_ld=yes
19482 lt_cv_prog_gnu_ld=no
19486 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
19487 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
19488 with_gnu_ld=$lt_cv_prog_gnu_ld
19491 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19492 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
19493 if test "${lt_cv_prog_gnu_ld+set}" = set; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19496 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19497 case `$LD -v 2>&1 </dev/null` in
19498 *GNU* | *'with BFD'*)
19499 lt_cv_prog_gnu_ld=yes
19502 lt_cv_prog_gnu_ld=no
19506 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
19507 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
19508 with_gnu_ld=$lt_cv_prog_gnu_ld
19510 if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
19511 SHLIB_VERSION_ARG="Wl,--version-script=Version_script"
19513 case "$target_os" in
19514 linux* | solaris* )
19515 SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
19528 # Extract the first word of "pkg-config", so it can be a program name with args.
19529 set dummy pkg-config; ac_word=$2
19530 echo "$as_me:$LINENO: checking for $ac_word" >&5
19531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19532 if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19535 if test -n "$HAVE_PKG_CONFIG"; then
19536 ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
19538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19539 for as_dir in $PATH
19542 test -z "$as_dir" && as_dir=.
19543 for ac_exec_ext in '' $ac_executable_extensions; do
19544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19545 ac_cv_prog_HAVE_PKG_CONFIG="yes"
19546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19554 HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
19555 if test -n "$HAVE_PKG_CONFIG"; then
19556 echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
19557 echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6
19559 echo "$as_me:$LINENO: result: no" >&5
19560 echo "${ECHO_T}no" >&6
19563 if test "x$HAVE_PKG_CONFIG" = "xyes"
19568 if test -z "$PKG_CONFIG"; then
19569 # Extract the first word of "pkg-config", so it can be a program name with args.
19570 set dummy pkg-config; ac_word=$2
19571 echo "$as_me:$LINENO: checking for $ac_word" >&5
19572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19573 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 case $PKG_CONFIG in
19578 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19582 for as_dir in $PATH
19585 test -z "$as_dir" && as_dir=.
19586 for ac_exec_ext in '' $ac_executable_extensions; do
19587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19588 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19595 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19599 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19601 if test -n "$PKG_CONFIG"; then
19602 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19603 echo "${ECHO_T}$PKG_CONFIG" >&6
19605 echo "$as_me:$LINENO: result: no" >&5
19606 echo "${ECHO_T}no" >&6
19611 if test "$PKG_CONFIG" = "no" ; then
19612 echo "*** The pkg-config script could not be found. Make sure it is"
19613 echo "*** in your path, or set the PKG_CONFIG environment variable"
19614 echo "*** to the full path to pkg-config."
19615 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19617 PKG_CONFIG_MIN_VERSION=0.9.0
19618 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19619 echo "$as_me:$LINENO: checking for ogg >= 1.1" >&5
19620 echo $ECHO_N "checking for ogg >= 1.1... $ECHO_C" >&6
19622 if $PKG_CONFIG --exists "ogg >= 1.1" ; then
19623 echo "$as_me:$LINENO: result: yes" >&5
19624 echo "${ECHO_T}yes" >&6
19627 echo "$as_me:$LINENO: checking OGG_CFLAGS" >&5
19628 echo $ECHO_N "checking OGG_CFLAGS... $ECHO_C" >&6
19629 OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.1"`
19630 echo "$as_me:$LINENO: result: $OGG_CFLAGS" >&5
19631 echo "${ECHO_T}$OGG_CFLAGS" >&6
19633 echo "$as_me:$LINENO: checking OGG_LIBS" >&5
19634 echo $ECHO_N "checking OGG_LIBS... $ECHO_C" >&6
19635 OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.1"`
19636 echo "$as_me:$LINENO: result: $OGG_LIBS" >&5
19637 echo "${ECHO_T}$OGG_LIBS" >&6
19641 ## If we have a custom action on failure, don't print errors, but
19642 ## do set a variable so people can do so.
19643 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.1"`
19650 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19651 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19655 if test $succeeded = yes; then
19662 if test "x$HAVE_OGG" = "xno"
19665 # Check whether --with-ogg or --without-ogg was given.
19666 if test "${with_ogg+set}" = set; then
19667 withval="$with_ogg"
19668 ogg_prefix="$withval"
19673 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
19674 if test "${with_ogg_libraries+set}" = set; then
19675 withval="$with_ogg_libraries"
19676 ogg_libraries="$withval"
19681 # Check whether --with-ogg-includes or --without-ogg-includes was given.
19682 if test "${with_ogg_includes+set}" = set; then
19683 withval="$with_ogg_includes"
19684 ogg_includes="$withval"
19688 # Check whether --enable-oggtest or --disable-oggtest was given.
19689 if test "${enable_oggtest+set}" = set; then
19690 enableval="$enable_oggtest"
19696 if test "x$ogg_libraries" != "x" ; then
19697 OGG_LIBS="-L$ogg_libraries"
19698 elif test "x$ogg_prefix" != "x" ; then
19699 OGG_LIBS="-L$ogg_prefix/lib"
19700 elif test "x$prefix" != "xNONE" ; then
19701 OGG_LIBS="-L$libdir"
19704 OGG_LIBS="$OGG_LIBS -logg"
19706 if test "x$ogg_includes" != "x" ; then
19707 OGG_CFLAGS="-I$ogg_includes"
19708 elif test "x$ogg_prefix" != "x" ; then
19709 OGG_CFLAGS="-I$ogg_prefix/include"
19710 elif test "x$prefix" != "xNONE"; then
19714 echo "$as_me:$LINENO: checking for Ogg" >&5
19715 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
19719 if test "x$enable_oggtest" = "xyes" ; then
19720 ac_save_CFLAGS="$CFLAGS"
19721 ac_save_LIBS="$LIBS"
19722 CFLAGS="$CFLAGS $OGG_CFLAGS"
19723 LIBS="$LIBS $OGG_LIBS"
19725 if test "$cross_compiling" = yes; then
19726 echo $ac_n "cross compiling; assumed OK... $ac_c"
19728 cat >conftest.$ac_ext <<_ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19736 #include <stdlib.h>
19737 #include <string.h>
19738 #include <ogg/ogg.h>
19742 system("touch conf.oggtest");
19748 rm -f conftest$ac_exeext
19749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19750 (eval $ac_link) 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19761 echo "$as_me: program exited with status $ac_status" >&5
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ( exit $ac_status )
19768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19770 CFLAGS="$ac_save_CFLAGS"
19771 LIBS="$ac_save_LIBS"
19774 if test "x$no_ogg" = "x" ; then
19775 echo "$as_me:$LINENO: result: yes" >&5
19776 echo "${ECHO_T}yes" >&6
19779 echo "$as_me:$LINENO: result: no" >&5
19780 echo "${ECHO_T}no" >&6
19781 if test -f conf.oggtest ; then
19784 echo "*** Could not run Ogg test program, checking why..."
19785 CFLAGS="$CFLAGS $OGG_CFLAGS"
19786 LIBS="$LIBS $OGG_LIBS"
19787 cat >conftest.$ac_ext <<_ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19795 #include <ogg/ogg.h>
19805 rm -f conftest.$ac_objext conftest$ac_exeext
19806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19807 (eval $ac_link) 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; } &&
19820 { ac_try='test -s conftest$ac_exeext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 echo "*** The test program compiled, but did not run. This usually means"
19827 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
19828 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
19829 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19830 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19831 echo "*** is required on your system"
19833 echo "*** If you have an old version installed, it is best to remove it, although"
19834 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 echo "*** The test program failed to compile or link. See the file config.log for the"
19840 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
19841 echo "*** or that you have moved Ogg since it was installed."
19843 rm -f conftest.err conftest.$ac_objext \
19844 conftest$ac_exeext conftest.$ac_ext
19845 CFLAGS="$ac_save_CFLAGS"
19846 LIBS="$ac_save_LIBS"
19850 { { echo "$as_me:$LINENO: error:
19851 libogg is required to build this package!
19852 please see http://www.xiph.org/ for how to
19855 echo "$as_me: error:
19856 libogg is required to build this package!
19857 please see http://www.xiph.org/ for how to
19860 { (exit 1); exit 1; }; }
19866 cflags_save=$CFLAGS
19868 CFLAGS="$CFLAGS $OGG_CFLAGS"
19869 LIBS="$LIBS $OGG_LIBS"
19870 echo "$as_me:$LINENO: checking for oggpackB_read" >&5
19871 echo $ECHO_N "checking for oggpackB_read... $ECHO_C" >&6
19872 if test "${ac_cv_func_oggpackB_read+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 cat >conftest.$ac_ext <<_ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19881 /* Define oggpackB_read to an innocuous variant, in case <limits.h> declares oggpackB_read.
19882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19883 #define oggpackB_read innocuous_oggpackB_read
19885 /* System header to define __stub macros and hopefully few prototypes,
19886 which can conflict with char oggpackB_read (); below.
19887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19888 <limits.h> exists even on freestanding compilers. */
19891 # include <limits.h>
19893 # include <assert.h>
19896 #undef oggpackB_read
19898 /* Override any gcc2 internal prototype to avoid an error. */
19903 /* We use char because int might match the return type of a gcc2
19904 builtin and then its argument prototype would still apply. */
19905 char oggpackB_read ();
19906 /* The GNU C library defines this for functions which it implements
19907 to always fail with ENOSYS. Some functions are actually named
19908 something starting with __ and the normal name is an alias. */
19909 #if defined (__stub_oggpackB_read) || defined (__stub___oggpackB_read)
19912 char (*f) () = oggpackB_read;
19921 return f != oggpackB_read;
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19928 (eval $ac_link) 2>conftest.er1
19930 grep -v '^ *+' conftest.er1 >conftest.err
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; } &&
19941 { ac_try='test -s conftest$ac_exeext'
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; }; then
19947 ac_cv_func_oggpackB_read=yes
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 ac_cv_func_oggpackB_read=no
19954 rm -f conftest.err conftest.$ac_objext \
19955 conftest$ac_exeext conftest.$ac_ext
19957 echo "$as_me:$LINENO: result: $ac_cv_func_oggpackB_read" >&5
19958 echo "${ECHO_T}$ac_cv_func_oggpackB_read" >&6
19959 if test $ac_cv_func_oggpackB_read = yes; then
19963 { { echo "$as_me:$LINENO: error: newer libogg version (1.1 or later) required" >&5
19964 echo "$as_me: error: newer libogg version (1.1 or later) required" >&2;}
19965 { (exit 1); exit 1; }; }
19969 CFLAGS=$cflags_save
19977 if test "x$HAVE_PKG_CONFIG" = "xyes"
19982 if test -z "$PKG_CONFIG"; then
19983 # Extract the first word of "pkg-config", so it can be a program name with args.
19984 set dummy pkg-config; ac_word=$2
19985 echo "$as_me:$LINENO: checking for $ac_word" >&5
19986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19987 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19988 echo $ECHO_N "(cached) $ECHO_C" >&6
19990 case $PKG_CONFIG in
19992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19996 for as_dir in $PATH
19999 test -z "$as_dir" && as_dir=.
20000 for ac_exec_ext in '' $ac_executable_extensions; do
20001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20009 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20013 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20015 if test -n "$PKG_CONFIG"; then
20016 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20017 echo "${ECHO_T}$PKG_CONFIG" >&6
20019 echo "$as_me:$LINENO: result: no" >&5
20020 echo "${ECHO_T}no" >&6
20025 if test "$PKG_CONFIG" = "no" ; then
20026 echo "*** The pkg-config script could not be found. Make sure it is"
20027 echo "*** in your path, or set the PKG_CONFIG environment variable"
20028 echo "*** to the full path to pkg-config."
20029 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20031 PKG_CONFIG_MIN_VERSION=0.9.0
20032 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20033 echo "$as_me:$LINENO: checking for vorbis >= 1.0.1" >&5
20034 echo $ECHO_N "checking for vorbis >= 1.0.1... $ECHO_C" >&6
20036 if $PKG_CONFIG --exists "vorbis >= 1.0.1" ; then
20037 echo "$as_me:$LINENO: result: yes" >&5
20038 echo "${ECHO_T}yes" >&6
20041 echo "$as_me:$LINENO: checking VORBIS_CFLAGS" >&5
20042 echo $ECHO_N "checking VORBIS_CFLAGS... $ECHO_C" >&6
20043 VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.0.1"`
20044 echo "$as_me:$LINENO: result: $VORBIS_CFLAGS" >&5
20045 echo "${ECHO_T}$VORBIS_CFLAGS" >&6
20047 echo "$as_me:$LINENO: checking VORBIS_LIBS" >&5
20048 echo $ECHO_N "checking VORBIS_LIBS... $ECHO_C" >&6
20049 VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.0.1"`
20050 echo "$as_me:$LINENO: result: $VORBIS_LIBS" >&5
20051 echo "${ECHO_T}$VORBIS_LIBS" >&6
20055 ## If we have a custom action on failure, don't print errors, but
20056 ## do set a variable so people can do so.
20057 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.0.1"`
20064 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20065 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20069 if test $succeeded = yes; then
20075 VORBISENC_LIBS="-lvorbisenc"
20078 if test "x$HAVE_VORBIS" = "xno"
20081 # Check whether --with-vorbis or --without-vorbis was given.
20082 if test "${with_vorbis+set}" = set; then
20083 withval="$with_vorbis"
20084 vorbis_prefix="$withval"
20089 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
20090 if test "${with_vorbis_libraries+set}" = set; then
20091 withval="$with_vorbis_libraries"
20092 vorbis_libraries="$withval"
20094 vorbis_libraries=""
20097 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
20098 if test "${with_vorbis_includes+set}" = set; then
20099 withval="$with_vorbis_includes"
20100 vorbis_includes="$withval"
20104 # Check whether --enable-vorbistest or --disable-vorbistest was given.
20105 if test "${enable_vorbistest+set}" = set; then
20106 enableval="$enable_vorbistest"
20109 enable_vorbistest=yes
20112 if test "x$vorbis_libraries" != "x" ; then
20113 VORBIS_LIBS="-L$vorbis_libraries"
20114 elif test "x$vorbis_prefix" != "x" ; then
20115 VORBIS_LIBS="-L$vorbis_prefix/lib"
20116 elif test "x$prefix" != "xNONE"; then
20117 VORBIS_LIBS="-L$libdir"
20120 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
20121 VORBISFILE_LIBS="-lvorbisfile"
20122 VORBISENC_LIBS="-lvorbisenc"
20124 if test "x$vorbis_includes" != "x" ; then
20125 VORBIS_CFLAGS="-I$vorbis_includes"
20126 elif test "x$vorbis_prefix" != "x" ; then
20127 VORBIS_CFLAGS="-I$vorbis_prefix/include"
20128 elif test "x$prefix" != "xNONE"; then
20133 echo "$as_me:$LINENO: checking for Vorbis" >&5
20134 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
20138 if test "x$enable_vorbistest" = "xyes" ; then
20139 ac_save_CFLAGS="$CFLAGS"
20140 ac_save_LIBS="$LIBS"
20141 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
20142 LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
20143 rm -f conf.vorbistest
20144 if test "$cross_compiling" = yes; then
20145 echo $ac_n "cross compiling; assumed OK... $ac_c"
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20155 #include <stdlib.h>
20156 #include <string.h>
20157 #include <vorbis/codec.h>
20158 #include <vorbis/vorbisenc.h>
20163 vorbis_dsp_state vd;
20166 vorbis_info_init (&vi);
20167 vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
20168 vorbis_analysis_init (&vd, &vi);
20169 vorbis_block_init (&vd, &vb);
20170 /* this function was added in 1.0rc3, so this is what we're testing for */
20171 vorbis_bitrate_addblock (&vb);
20173 system("touch conf.vorbistest");
20179 rm -f conftest$ac_exeext
20180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20181 (eval $ac_link) 2>&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20192 echo "$as_me: program exited with status $ac_status" >&5
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 ( exit $ac_status )
20199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20201 CFLAGS="$ac_save_CFLAGS"
20202 LIBS="$ac_save_LIBS"
20205 if test "x$no_vorbis" = "x" ; then
20206 echo "$as_me:$LINENO: result: yes" >&5
20207 echo "${ECHO_T}yes" >&6
20210 echo "$as_me:$LINENO: result: no" >&5
20211 echo "${ECHO_T}no" >&6
20212 if test -f conf.vorbistest ; then
20215 echo "*** Could not run Vorbis test program, checking why..."
20216 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
20217 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20226 #include <vorbis/codec.h>
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20238 (eval $ac_link) 2>conftest.er1
20240 grep -v '^ *+' conftest.er1 >conftest.err
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; } &&
20251 { ac_try='test -s conftest$ac_exeext'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20257 echo "*** The test program compiled, but did not run. This usually means"
20258 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
20259 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
20260 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20261 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20262 echo "*** is required on your system"
20264 echo "*** If you have an old version installed, it is best to remove it, although"
20265 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 echo "*** The test program failed to compile or link. See the file config.log for the"
20271 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
20272 echo "*** or that you have moved Vorbis since it was installed."
20274 rm -f conftest.err conftest.$ac_objext \
20275 conftest$ac_exeext conftest.$ac_ext
20276 CFLAGS="$ac_save_CFLAGS"
20277 LIBS="$ac_save_LIBS"
20289 rm -f conf.vorbistest
20296 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
20297 if test "${with_sdl_prefix+set}" = set; then
20298 withval="$with_sdl_prefix"
20299 sdl_prefix="$withval"
20304 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
20305 if test "${with_sdl_exec_prefix+set}" = set; then
20306 withval="$with_sdl_exec_prefix"
20307 sdl_exec_prefix="$withval"
20311 # Check whether --enable-sdltest or --disable-sdltest was given.
20312 if test "${enable_sdltest+set}" = set; then
20313 enableval="$enable_sdltest"
20319 if test x$sdl_exec_prefix != x ; then
20320 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
20321 if test x${SDL_CONFIG+set} != xset ; then
20322 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
20325 if test x$sdl_prefix != x ; then
20326 sdl_args="$sdl_args --prefix=$sdl_prefix"
20327 if test x${SDL_CONFIG+set} != xset ; then
20328 SDL_CONFIG=$sdl_prefix/bin/sdl-config
20333 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
20334 # Extract the first word of "sdl-config", so it can be a program name with args.
20335 set dummy sdl-config; ac_word=$2
20336 echo "$as_me:$LINENO: checking for $ac_word" >&5
20337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20338 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 case $SDL_CONFIG in
20343 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
20346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20347 for as_dir in $PATH
20350 test -z "$as_dir" && as_dir=.
20351 for ac_exec_ext in '' $ac_executable_extensions; do
20352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20353 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20360 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
20364 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
20366 if test -n "$SDL_CONFIG"; then
20367 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
20368 echo "${ECHO_T}$SDL_CONFIG" >&6
20370 echo "$as_me:$LINENO: result: no" >&5
20371 echo "${ECHO_T}no" >&6
20374 min_sdl_version=0.11.0
20375 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
20376 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
20378 if test "$SDL_CONFIG" = "no" ; then
20381 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
20382 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
20384 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
20385 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20386 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
20387 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20388 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
20389 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20390 if test "x$enable_sdltest" = "xyes" ; then
20391 ac_save_CFLAGS="$CFLAGS"
20392 ac_save_CXXFLAGS="$CXXFLAGS"
20393 ac_save_LIBS="$LIBS"
20394 CFLAGS="$CFLAGS $SDL_CFLAGS"
20395 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
20396 LIBS="$LIBS $SDL_LIBS"
20398 if test "$cross_compiling" = yes; then
20399 echo $ac_n "cross compiling; assumed OK... $ac_c"
20401 cat >conftest.$ac_ext <<_ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20409 #include <stdlib.h>
20410 #include <string.h>
20414 my_strdup (char *str)
20420 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
20421 strcpy (new_str, str);
20429 int main (int argc, char *argv[])
20431 int major, minor, micro;
20434 /* This hangs on some systems (?)
20435 system ("touch conf.sdltest");
20437 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
20439 /* HP/UX 9 (%@#!) writes to sscanf strings */
20440 tmp_version = my_strdup("$min_sdl_version");
20441 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
20442 printf("%s, bad version string\n", "$min_sdl_version");
20446 if (($sdl_major_version > major) ||
20447 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
20448 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
20454 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
20455 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
20456 printf("*** best to upgrade to the required version.\n");
20457 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
20458 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
20459 printf("*** config.cache before re-running configure\n");
20466 rm -f conftest$ac_exeext
20467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20468 (eval $ac_link) 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20479 echo "$as_me: program exited with status $ac_status" >&5
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ( exit $ac_status )
20486 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20488 CFLAGS="$ac_save_CFLAGS"
20489 CXXFLAGS="$ac_save_CXXFLAGS"
20490 LIBS="$ac_save_LIBS"
20493 if test "x$no_sdl" = x ; then
20494 echo "$as_me:$LINENO: result: yes" >&5
20495 echo "${ECHO_T}yes" >&6
20498 SDL_LIBS=`$SDL_CONFIG --libs`
20501 echo "$as_me:$LINENO: result: no" >&5
20502 echo "${ECHO_T}no" >&6
20503 if test "$SDL_CONFIG" = "no" ; then
20504 echo "*** The sdl-config script installed by SDL could not be found"
20505 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
20506 echo "*** your path, or set the SDL_CONFIG environment variable to the"
20507 echo "*** full path to sdl-config."
20509 if test -f conf.sdltest ; then
20512 echo "*** Could not run SDL test program, checking why..."
20513 CFLAGS="$CFLAGS $SDL_CFLAGS"
20514 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
20515 LIBS="$LIBS $SDL_LIBS"
20516 cat >conftest.$ac_ext <<_ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20526 int main(int argc, char *argv[])
20529 #define main K_and_R_C_main
20539 rm -f conftest.$ac_objext conftest$ac_exeext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541 (eval $ac_link) 2>conftest.er1
20543 grep -v '^ *+' conftest.er1 >conftest.err
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest$ac_exeext'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 echo "*** The test program compiled, but did not run. This usually means"
20561 echo "*** that the run-time linker is not finding SDL or finding the wrong"
20562 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
20563 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20564 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20565 echo "*** is required on your system"
20567 echo "*** If you have an old version installed, it is best to remove it, although"
20568 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 echo "*** The test program failed to compile or link. See the file config.log for the"
20574 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
20575 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
20576 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
20578 rm -f conftest.err conftest.$ac_objext \
20579 conftest$ac_exeext conftest.$ac_ext
20580 CFLAGS="$ac_save_CFLAGS"
20581 CXXFLAGS="$ac_save_CXXFLAGS"
20582 LIBS="$ac_save_LIBS"
20587 { echo "$as_me:$LINENO: WARNING: *** Unable to find SDL -- Not compiling example players ***" >&5
20588 echo "$as_me: WARNING: *** Unable to find SDL -- Not compiling example players ***" >&2;}
20600 for ac_header in sys/soundcard.h soundcard.h machine/soundcard.h
20602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20604 echo "$as_me:$LINENO: checking for $ac_header" >&5
20605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20612 # Is the header compilable?
20613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 $ac_includes_default
20622 @%:@include <$ac_header>
20624 rm -f conftest.$ac_objext
20625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20626 (eval $ac_compile) 2>conftest.er1
20628 grep -v '^ *+' conftest.er1 >conftest.err
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; } &&
20639 { ac_try='test -s conftest.$ac_objext'
20640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
20645 ac_header_compiler=yes
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ac_header_compiler=no
20652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20654 echo "${ECHO_T}$ac_header_compiler" >&6
20656 # Is the header present?
20657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20659 cat >conftest.$ac_ext <<_ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20665 @%:@include <$ac_header>
20667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20670 grep -v '^ *+' conftest.er1 >conftest.err
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } >/dev/null; then
20675 if test -s conftest.err; then
20676 ac_cpp_err=$ac_c_preproc_warn_flag
20677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20684 if test -z "$ac_cpp_err"; then
20685 ac_header_preproc=yes
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_header_preproc=no
20692 rm -f conftest.err conftest.$ac_ext
20693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20694 echo "${ECHO_T}$ac_header_preproc" >&6
20696 # So? What about this header?
20697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20703 ac_header_preproc=yes
20706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20720 @%:@@%:@ ------------------------------------ @%:@@%:@
20721 @%:@@%:@ Report this to the libtheora lists. @%:@@%:@
20722 @%:@@%:@ ------------------------------------ @%:@@%:@
20725 sed "s/^/$as_me: WARNING: /" >&2
20728 echo "$as_me:$LINENO: checking for $ac_header" >&5
20729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 eval "$as_ac_Header=\$ac_header_preproc"
20735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20740 cat >>confdefs.h <<_ACEOF
20741 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20751 if test x$HAVE_OSS != xyes; then
20752 { echo "$as_me:$LINENO: WARNING: OSS audio support not found -- not compiling player_example" >&5
20753 echo "$as_me: WARNING: OSS audio support not found -- not compiling player_example" >&2;}
20758 ac_enable_float=yes
20759 # Check whether --enable-float or --disable-float was given.
20760 if test "${enable_float+set}" = set; then
20761 enableval="$enable_float"
20762 ac_enable_float=$enableval
20764 ac_enable_float=yes
20767 if test "x${ac_enable_float}" != xyes ; then
20769 cat >>confdefs.h <<\_ACEOF
20770 @%:@define THEORA_DISABLE_FLOAT
20776 if test "x${ac_enable_float}" != xyes; then
20777 THEORA_DISABLE_FLOAT_TRUE=
20778 THEORA_DISABLE_FLOAT_FALSE='#'
20780 THEORA_DISABLE_FLOAT_TRUE='#'
20781 THEORA_DISABLE_FLOAT_FALSE=
20786 ac_enable_encode=yes
20787 # Check whether --enable-encode or --disable-encode was given.
20788 if test "${enable_encode+set}" = set; then
20789 enableval="$enable_encode"
20790 ac_enable_encode=$enableval
20792 ac_enable_encode=yes
20795 if test "x${ac_enable_encode}" != xyes ; then
20797 cat >>confdefs.h <<\_ACEOF
20798 @%:@define THEORA_DISABLE_ENCODE
20802 if test x$HAVE_VORBIS = xyes; then
20803 BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES encoder_example\$(EXEEXT)"
20805 { echo "$as_me:$LINENO: Vorbis missing, cannot build example encoder" >&5
20806 echo "$as_me: Vorbis missing, cannot build example encoder" >&6;}
20811 if test "x${ac_enable_encode}" != xyes; then
20812 THEORA_DISABLE_ENCODE_TRUE=
20813 THEORA_DISABLE_ENCODE_FALSE='#'
20815 THEORA_DISABLE_ENCODE_TRUE='#'
20816 THEORA_DISABLE_ENCODE_FALSE=
20825 echo "$as_me:$LINENO: checking for getopt_long" >&5
20826 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
20827 if test "${ac_cv_func_getopt_long+set}" = set; then
20828 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
20837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20838 #define getopt_long innocuous_getopt_long
20840 /* System header to define __stub macros and hopefully few prototypes,
20841 which can conflict with char getopt_long (); below.
20842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20843 <limits.h> exists even on freestanding compilers. */
20846 # include <limits.h>
20848 # include <assert.h>
20853 /* Override any gcc2 internal prototype to avoid an error. */
20858 /* We use char because int might match the return type of a gcc2
20859 builtin and then its argument prototype would still apply. */
20860 char getopt_long ();
20861 /* The GNU C library defines this for functions which it implements
20862 to always fail with ENOSYS. Some functions are actually named
20863 something starting with __ and the normal name is an alias. */
20864 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
20867 char (*f) () = getopt_long;
20876 return f != getopt_long;
20881 rm -f conftest.$ac_objext conftest$ac_exeext
20882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20883 (eval $ac_link) 2>conftest.er1
20885 grep -v '^ *+' conftest.er1 >conftest.err
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
20890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; } &&
20896 { ac_try='test -s conftest$ac_exeext'
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; }; then
20902 ac_cv_func_getopt_long=yes
20904 echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_cv_func_getopt_long=no
20909 rm -f conftest.err conftest.$ac_objext \
20910 conftest$ac_exeext conftest.$ac_ext
20912 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
20913 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
20914 if test $ac_cv_func_getopt_long = yes; then
20917 GETOPT_OBJS='getopt.$(OBJEXT) getopt1.$(OBJEXT)'
20922 if test x$HAVE_SDL = xyes -a x$HAVE_OSS = xyes -a x$HAVE_VORBIS = xyes; then
20923 BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES player_example"
20931 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile include/theora/Makefile examples/Makefile doc/Makefile doc/Doxyfile tests/Makefile lib/Version_script m4/Makefile libtheora.spec theora.pc theora-uninstalled.pc"
20932 cat >confcache <<\_ACEOF
20933 # This file is a shell script that caches the results of configure
20934 # tests run on this system so they can be shared between configure
20935 # scripts and configure runs, see configure's option --config-cache.
20936 # It is not useful on other systems. If it contains results you don't
20937 # want to keep, you may remove or edit it.
20939 # config.status only pays attention to the cache file if you give it
20940 # the --recheck option to rerun configure.
20942 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20944 # following values.
20948 # The following way of writing the cache mishandles newlines in values,
20949 # but we know of no workaround that is simple, portable, and efficient.
20950 # So, don't put newlines in cache variables' values.
20951 # Ultrix sh set writes to stderr and can't be redirected directly,
20952 # and sets the high bit in the cache file unless we assign to the vars.
20955 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20957 # `set' does not quote correctly, so add quotes (double-quote
20958 # substitution turns \\\\ into \\, and sed turns \\ into \).
20961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20964 # `set' quotes correctly as required by POSIX, so do not add quotes.
20966 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20975 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20977 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20978 if test -w $cache_file; then
20979 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20980 cat confcache >$cache_file
20982 echo "not updating unwritable cache $cache_file"
20987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20988 # Let make expand exec_prefix.
20989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20991 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20992 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20993 # trailing colons and then remove the whole line if VPATH becomes empty
20994 # (actually we leave an empty line to preserve line numbers).
20995 if test "x$srcdir" = x.; then
20996 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20997 s/:*\$(srcdir):*/:/;
20998 s/:*\${srcdir}:*/:/;
21000 s/^\([^=]*=[ ]*\):*/\1/;
21006 DEFS=-DHAVE_CONFIG_H
21010 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21011 # 1. Remove the extension, and $U if already installed.
21012 ac_i=`echo "$ac_i" |
21013 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21015 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21016 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21018 LIB@&t@OBJS=$ac_libobjs
21020 LTLIBOBJS=$ac_ltlibobjs
21023 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21024 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21025 Usually this means the macro was only invoked conditionally." >&5
21026 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21027 Usually this means the macro was only invoked conditionally." >&2;}
21028 { (exit 1); exit 1; }; }
21030 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21031 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21032 Usually this means the macro was only invoked conditionally." >&5
21033 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21034 Usually this means the macro was only invoked conditionally." >&2;}
21035 { (exit 1); exit 1; }; }
21037 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21038 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21039 Usually this means the macro was only invoked conditionally." >&5
21040 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21041 Usually this means the macro was only invoked conditionally." >&2;}
21042 { (exit 1); exit 1; }; }
21044 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21045 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21046 Usually this means the macro was only invoked conditionally." >&5
21047 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21048 Usually this means the macro was only invoked conditionally." >&2;}
21049 { (exit 1); exit 1; }; }
21051 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
21052 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
21053 Usually this means the macro was only invoked conditionally." >&5
21054 echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
21055 Usually this means the macro was only invoked conditionally." >&2;}
21056 { (exit 1); exit 1; }; }
21058 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
21059 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON\" was never defined.
21060 Usually this means the macro was only invoked conditionally." >&5
21061 echo "$as_me: error: conditional \"HAVE_PYTHON\" was never defined.
21062 Usually this means the macro was only invoked conditionally." >&2;}
21063 { (exit 1); exit 1; }; }
21065 if test -z "${CPU_x86_64_TRUE}" && test -z "${CPU_x86_64_FALSE}"; then
21066 { { echo "$as_me:$LINENO: error: conditional \"CPU_x86_64\" was never defined.
21067 Usually this means the macro was only invoked conditionally." >&5
21068 echo "$as_me: error: conditional \"CPU_x86_64\" was never defined.
21069 Usually this means the macro was only invoked conditionally." >&2;}
21070 { (exit 1); exit 1; }; }
21072 if test -z "${CPU_x86_32_TRUE}" && test -z "${CPU_x86_32_FALSE}"; then
21073 { { echo "$as_me:$LINENO: error: conditional \"CPU_x86_32\" was never defined.
21074 Usually this means the macro was only invoked conditionally." >&5
21075 echo "$as_me: error: conditional \"CPU_x86_32\" was never defined.
21076 Usually this means the macro was only invoked conditionally." >&2;}
21077 { (exit 1); exit 1; }; }
21079 if test -z "${THEORA_DISABLE_FLOAT_TRUE}" && test -z "${THEORA_DISABLE_FLOAT_FALSE}"; then
21080 { { echo "$as_me:$LINENO: error: conditional \"THEORA_DISABLE_FLOAT\" was never defined.
21081 Usually this means the macro was only invoked conditionally." >&5
21082 echo "$as_me: error: conditional \"THEORA_DISABLE_FLOAT\" was never defined.
21083 Usually this means the macro was only invoked conditionally." >&2;}
21084 { (exit 1); exit 1; }; }
21086 if test -z "${THEORA_DISABLE_ENCODE_TRUE}" && test -z "${THEORA_DISABLE_ENCODE_FALSE}"; then
21087 { { echo "$as_me:$LINENO: error: conditional \"THEORA_DISABLE_ENCODE\" was never defined.
21088 Usually this means the macro was only invoked conditionally." >&5
21089 echo "$as_me: error: conditional \"THEORA_DISABLE_ENCODE\" was never defined.
21090 Usually this means the macro was only invoked conditionally." >&2;}
21091 { (exit 1); exit 1; }; }
21094 : ${CONFIG_STATUS=./config.status}
21095 ac_clean_files_save=$ac_clean_files
21096 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21097 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21098 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21099 cat >$CONFIG_STATUS <<_ACEOF
21101 # Generated by $as_me.
21102 # Run this file to recreate the current configuration.
21103 # Compiler output produced by configure, useful for debugging
21104 # configure, is in config.log if it exists.
21107 ac_cs_recheck=false
21109 SHELL=\${CONFIG_SHELL-$SHELL}
21112 cat >>$CONFIG_STATUS <<\_ACEOF
21113 ## --------------------- ##
21114 ## M4sh Initialization. ##
21115 ## --------------------- ##
21117 # Be Bourne compatible
21118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21121 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21122 # is contrary to our usage. Disable this feature.
21123 alias -g '${1+"$@"}'='"$@"'
21124 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21127 DUALCASE=1; export DUALCASE # for MKS sh
21129 # Support unset when possible.
21130 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21137 # Work around bugs in pre-3.0 UWIN ksh.
21138 $as_unset ENV MAIL MAILPATH
21145 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21146 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21147 LC_TELEPHONE LC_TIME
21149 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21150 eval $as_var=C; export $as_var
21156 # Required to use basename.
21157 if expr a : '\(a\)' >/dev/null 2>&1; then
21163 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21164 as_basename=basename
21170 # Name of the executable.
21171 as_me=`$as_basename "$0" ||
21172 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21173 X"$0" : 'X\(//\)$' \| \
21174 X"$0" : 'X\(/\)$' \| \
21175 . : '\(.\)' 2>/dev/null ||
21177 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21178 /^X\/\(\/\/\)$/{ s//\1/; q; }
21179 /^X\/\(\/\).*/{ s//\1/; q; }
21183 # PATH needs CR, and LINENO needs CR and PATH.
21184 # Avoid depending upon Character Ranges.
21185 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21186 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21187 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21188 as_cr_digits='0123456789'
21189 as_cr_alnum=$as_cr_Letters$as_cr_digits
21191 # The user is always right.
21192 if test "${PATH_SEPARATOR+set}" != set; then
21193 echo "#! /bin/sh" >conf$$.sh
21194 echo "exit 0" >>conf$$.sh
21196 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21205 as_lineno_1=$LINENO
21206 as_lineno_2=$LINENO
21207 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21208 test "x$as_lineno_1" != "x$as_lineno_2" &&
21209 test "x$as_lineno_3" = "x$as_lineno_2" || {
21210 # Find who we are. Look in the path if we contain no path at all
21213 *[\\/]* ) as_myself=$0 ;;
21214 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21215 for as_dir in $PATH
21218 test -z "$as_dir" && as_dir=.
21219 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21224 # We did not find ourselves, most probably we were run as `sh COMMAND'
21225 # in which case we are not to be found in the path.
21226 if test "x$as_myself" = x; then
21229 if test ! -f "$as_myself"; then
21230 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21231 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21232 { (exit 1); exit 1; }; }
21234 case $CONFIG_SHELL in
21236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21237 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21240 test -z "$as_dir" && as_dir=.
21241 for as_base in sh bash ksh sh5; do
21244 if ("$as_dir/$as_base" -c '
21245 as_lineno_1=$LINENO
21246 as_lineno_2=$LINENO
21247 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21248 test "x$as_lineno_1" != "x$as_lineno_2" &&
21249 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21250 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21251 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21252 CONFIG_SHELL=$as_dir/$as_base
21253 export CONFIG_SHELL
21254 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21262 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21263 # uniformly replaced by the line number. The first 'sed' inserts a
21264 # line-number line before each line; the second 'sed' does the real
21265 # work. The second script uses 'N' to pair each line-number line
21266 # with the numbered line, and appends trailing '-' during
21267 # substitution so that $LINENO is not a special case at line end.
21268 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21269 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21270 sed '=' <$as_myself |
21275 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21278 s,^['$as_cr_digits']*\n,,
21279 ' >$as_me.lineno &&
21280 chmod +x $as_me.lineno ||
21281 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21282 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21283 { (exit 1); exit 1; }; }
21285 # Don't try to exec as it changes $[0], causing all sort of problems
21286 # (the dirname of $[0] is not the place where we might find the
21287 # original and so on. Autoconf is especially sensible to this).
21289 # Exit status is that of the last command.
21294 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21295 *c*,-n*) ECHO_N= ECHO_C='
21297 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21298 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21301 if expr a : '\(a\)' >/dev/null 2>&1; then
21307 rm -f conf$$ conf$$.exe conf$$.file
21309 if ln -s conf$$.file conf$$ 2>/dev/null; then
21310 # We could just check for DJGPP; but this test a) works b) is more generic
21311 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21312 if test -f conf$$.exe; then
21313 # Don't use ln at all; we don't have any links
21318 elif ln conf$$.file conf$$ 2>/dev/null; then
21323 rm -f conf$$ conf$$.exe conf$$.file
21325 if mkdir -p . 2>/dev/null; then
21328 test -d ./-p && rmdir ./-p
21332 as_executable_p="test -f"
21334 # Sed expression to map a string onto a valid CPP name.
21335 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21337 # Sed expression to map a string onto a valid variable name.
21338 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21342 # We need space, tab and new line, in precisely that order.
21352 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21353 # report actual input values of CONFIG_FILES etc. instead of their
21354 # values after options handling. Logging --version etc. is OK.
21358 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21359 @%:@@%:@ Running $as_me. @%:@@%:@
21364 This file was extended by libtheora $as_me 1.0alpha6, which was
21365 generated by GNU Autoconf 2.59. Invocation command line was
21367 CONFIG_FILES = $CONFIG_FILES
21368 CONFIG_HEADERS = $CONFIG_HEADERS
21369 CONFIG_LINKS = $CONFIG_LINKS
21370 CONFIG_COMMANDS = $CONFIG_COMMANDS
21374 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21378 # Files that config.status was made for.
21379 if test -n "$ac_config_files"; then
21380 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21383 if test -n "$ac_config_headers"; then
21384 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21387 if test -n "$ac_config_links"; then
21388 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21391 if test -n "$ac_config_commands"; then
21392 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21395 cat >>$CONFIG_STATUS <<\_ACEOF
21398 \`$as_me' instantiates files from templates according to the
21399 current configuration.
21401 Usage: $0 [OPTIONS] [FILE]...
21403 -h, --help print this help, then exit
21404 -V, --version print version number, then exit
21405 -q, --quiet do not print progress messages
21406 -d, --debug don't remove temporary files
21407 --recheck update $as_me by reconfiguring in the same conditions
21408 --file=FILE[:TEMPLATE]
21409 instantiate the configuration file FILE
21410 --header=FILE[:TEMPLATE]
21411 instantiate the configuration header FILE
21413 Configuration files:
21416 Configuration headers:
21419 Configuration commands:
21422 Report bugs to <bug-autoconf@gnu.org>."
21425 cat >>$CONFIG_STATUS <<_ACEOF
21427 libtheora config.status 1.0alpha6
21428 configured by $0, generated by GNU Autoconf 2.59,
21429 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21431 Copyright (C) 2003 Free Software Foundation, Inc.
21432 This config.status script is free software; the Free Software Foundation
21433 gives unlimited permission to copy, distribute and modify it."
21438 cat >>$CONFIG_STATUS <<\_ACEOF
21439 # If no file are specified by the user, then we need to provide default
21440 # value. By we need to know if files were specified by the user.
21446 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21447 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21455 *) # This is not an option, so the user has probably given explicit
21458 ac_need_defaults=false;;
21462 # Handling of the options.
21464 cat >>$CONFIG_STATUS <<\_ACEOF
21465 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21467 --version | --vers* | -V )
21468 echo "$ac_cs_version"; exit 0 ;;
21470 # Conflict between --help and --header
21471 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21472 Try \`$0 --help' for more information." >&5
21473 echo "$as_me: error: ambiguous option: $1
21474 Try \`$0 --help' for more information." >&2;}
21475 { (exit 1); exit 1; }; };;
21476 --help | --hel | -h )
21477 echo "$ac_cs_usage"; exit 0 ;;
21478 --debug | --d* | -d )
21480 --file | --fil | --fi | --f )
21482 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21483 ac_need_defaults=false;;
21484 --header | --heade | --head | --hea )
21486 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21487 ac_need_defaults=false;;
21488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21489 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21492 # This is an error.
21493 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21494 Try \`$0 --help' for more information." >&5
21495 echo "$as_me: error: unrecognized option: $1
21496 Try \`$0 --help' for more information." >&2;}
21497 { (exit 1); exit 1; }; } ;;
21499 *) ac_config_targets="$ac_config_targets $1" ;;
21505 ac_configure_extra_args=
21507 if $ac_cs_silent; then
21509 ac_configure_extra_args="$ac_configure_extra_args --silent"
21513 cat >>$CONFIG_STATUS <<_ACEOF
21514 if \$ac_cs_recheck; then
21515 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21516 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21521 cat >>$CONFIG_STATUS <<_ACEOF
21523 # INIT-COMMANDS section.
21526 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21532 cat >>$CONFIG_STATUS <<\_ACEOF
21533 for ac_config_target in $ac_config_targets
21535 case "$ac_config_target" in
21536 # Handling of arguments.
21537 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21538 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21539 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21540 "include/theora/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/theora/Makefile" ;;
21541 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21542 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21543 "doc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
21544 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21545 "lib/Version_script" ) CONFIG_FILES="$CONFIG_FILES lib/Version_script" ;;
21546 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
21547 "libtheora.spec" ) CONFIG_FILES="$CONFIG_FILES libtheora.spec" ;;
21548 "theora.pc" ) CONFIG_FILES="$CONFIG_FILES theora.pc" ;;
21549 "theora-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES theora-uninstalled.pc" ;;
21550 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21551 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21552 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21553 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21554 { (exit 1); exit 1; }; };;
21558 # If the user did not use the arguments to specify the items to instantiate,
21559 # then the envvar interface is used. Set only those that are not.
21560 # We use the long form for the default assignment because of an extremely
21561 # bizarre bug on SunOS 4.1.3.
21562 if $ac_need_defaults; then
21563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21565 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21568 # Have a temporary directory for convenience. Make it in the build tree
21569 # simply because there is no reason to put it here, and in addition,
21570 # creating and moving files from /tmp can sometimes cause problems.
21571 # Create a temporary directory, and hook for its removal unless debugging.
21574 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21575 trap '{ (exit 1); exit 1; }' 1 2 13 15
21578 # Create a (secure) tmp directory for tmp files.
21581 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21582 test -n "$tmp" && test -d "$tmp"
21585 tmp=./confstat$$-$RANDOM
21586 (umask 077 && mkdir $tmp)
21589 echo "$me: cannot create a temporary directory in ." >&2
21590 { (exit 1); exit 1; }
21595 cat >>$CONFIG_STATUS <<_ACEOF
21598 # CONFIG_FILES section.
21601 # No need to generate the scripts if there are no CONFIG_FILES.
21602 # This happens for instance when ./config.status config.h
21603 if test -n "\$CONFIG_FILES"; then
21604 # Protect against being on the right side of a sed subst in config.status.
21605 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21606 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21607 s,@SHELL@,$SHELL,;t t
21608 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21609 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21610 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21611 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21612 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21613 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21614 s,@exec_prefix@,$exec_prefix,;t t
21615 s,@prefix@,$prefix,;t t
21616 s,@program_transform_name@,$program_transform_name,;t t
21617 s,@bindir@,$bindir,;t t
21618 s,@sbindir@,$sbindir,;t t
21619 s,@libexecdir@,$libexecdir,;t t
21620 s,@datadir@,$datadir,;t t
21621 s,@sysconfdir@,$sysconfdir,;t t
21622 s,@sharedstatedir@,$sharedstatedir,;t t
21623 s,@localstatedir@,$localstatedir,;t t
21624 s,@libdir@,$libdir,;t t
21625 s,@includedir@,$includedir,;t t
21626 s,@oldincludedir@,$oldincludedir,;t t
21627 s,@infodir@,$infodir,;t t
21628 s,@mandir@,$mandir,;t t
21629 s,@build_alias@,$build_alias,;t t
21630 s,@host_alias@,$host_alias,;t t
21631 s,@target_alias@,$target_alias,;t t
21632 s,@DEFS@,$DEFS,;t t
21633 s,@ECHO_C@,$ECHO_C,;t t
21634 s,@ECHO_N@,$ECHO_N,;t t
21635 s,@ECHO_T@,$ECHO_T,;t t
21636 s,@LIBS@,$LIBS,;t t
21637 s,@build@,$build,;t t
21638 s,@build_cpu@,$build_cpu,;t t
21639 s,@build_vendor@,$build_vendor,;t t
21640 s,@build_os@,$build_os,;t t
21641 s,@host@,$host,;t t
21642 s,@host_cpu@,$host_cpu,;t t
21643 s,@host_vendor@,$host_vendor,;t t
21644 s,@host_os@,$host_os,;t t
21645 s,@target@,$target,;t t
21646 s,@target_cpu@,$target_cpu,;t t
21647 s,@target_vendor@,$target_vendor,;t t
21648 s,@target_os@,$target_os,;t t
21649 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21650 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21651 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21652 s,@CYGPATH_W@,$CYGPATH_W,;t t
21653 s,@PACKAGE@,$PACKAGE,;t t
21654 s,@VERSION@,$VERSION,;t t
21655 s,@ACLOCAL@,$ACLOCAL,;t t
21656 s,@AUTOCONF@,$AUTOCONF,;t t
21657 s,@AUTOMAKE@,$AUTOMAKE,;t t
21658 s,@AUTOHEADER@,$AUTOHEADER,;t t
21659 s,@MAKEINFO@,$MAKEINFO,;t t
21660 s,@install_sh@,$install_sh,;t t
21661 s,@STRIP@,$STRIP,;t t
21662 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21663 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21664 s,@mkdir_p@,$mkdir_p,;t t
21666 s,@SET_MAKE@,$SET_MAKE,;t t
21667 s,@am__leading_dot@,$am__leading_dot,;t t
21668 s,@AMTAR@,$AMTAR,;t t
21669 s,@am__tar@,$am__tar,;t t
21670 s,@am__untar@,$am__untar,;t t
21671 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21672 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21673 s,@MAINT@,$MAINT,;t t
21674 s,@V_LIB_CURRENT@,$V_LIB_CURRENT,;t t
21675 s,@V_LIB_REVISION@,$V_LIB_REVISION,;t t
21676 s,@V_LIB_AGE@,$V_LIB_AGE,;t t
21678 s,@CFLAGS@,$CFLAGS,;t t
21679 s,@LDFLAGS@,$LDFLAGS,;t t
21680 s,@CPPFLAGS@,$CPPFLAGS,;t t
21681 s,@ac_ct_CC@,$ac_ct_CC,;t t
21682 s,@EXEEXT@,$EXEEXT,;t t
21683 s,@OBJEXT@,$OBJEXT,;t t
21684 s,@DEPDIR@,$DEPDIR,;t t
21685 s,@am__include@,$am__include,;t t
21686 s,@am__quote@,$am__quote,;t t
21687 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21688 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21689 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21690 s,@CCDEPMODE@,$CCDEPMODE,;t t
21691 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21692 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21694 s,@EGREP@,$EGREP,;t t
21695 s,@LN_S@,$LN_S,;t t
21696 s,@ECHO@,$ECHO,;t t
21698 s,@ac_ct_AR@,$ac_ct_AR,;t t
21699 s,@RANLIB@,$RANLIB,;t t
21700 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21702 s,@CXXFLAGS@,$CXXFLAGS,;t t
21703 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21704 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21705 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21706 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21707 s,@CXXCPP@,$CXXCPP,;t t
21709 s,@FFLAGS@,$FFLAGS,;t t
21710 s,@ac_ct_F77@,$ac_ct_F77,;t t
21711 s,@LIBTOOL@,$LIBTOOL,;t t
21712 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
21713 s,@HAVE_DOXYGEN@,$HAVE_DOXYGEN,;t t
21714 s,@HAVE_DOXYGEN_TRUE@,$HAVE_DOXYGEN_TRUE,;t t
21715 s,@HAVE_DOXYGEN_FALSE@,$HAVE_DOXYGEN_FALSE,;t t
21716 s,@HAVE_PYTHON@,$HAVE_PYTHON,;t t
21717 s,@HAVE_PYTHON_TRUE@,$HAVE_PYTHON_TRUE,;t t
21718 s,@HAVE_PYTHON_FALSE@,$HAVE_PYTHON_FALSE,;t t
21719 s,@HAVE_VALGRIND@,$HAVE_VALGRIND,;t t
21720 s,@VALGRIND_ENVIRONMENT@,$VALGRIND_ENVIRONMENT,;t t
21721 s,@CPU_x86_64_TRUE@,$CPU_x86_64_TRUE,;t t
21722 s,@CPU_x86_64_FALSE@,$CPU_x86_64_FALSE,;t t
21723 s,@CPU_x86_32_TRUE@,$CPU_x86_32_TRUE,;t t
21724 s,@CPU_x86_32_FALSE@,$CPU_x86_32_FALSE,;t t
21725 s,@SHLIB_VERSION_ARG@,$SHLIB_VERSION_ARG,;t t
21726 s,@HAVE_PKG_CONFIG@,$HAVE_PKG_CONFIG,;t t
21727 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21728 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
21729 s,@OGG_LIBS@,$OGG_LIBS,;t t
21730 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
21731 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
21732 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
21733 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
21734 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
21735 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
21736 s,@SDL_LIBS@,$SDL_LIBS,;t t
21737 s,@THEORA_DISABLE_FLOAT_TRUE@,$THEORA_DISABLE_FLOAT_TRUE,;t t
21738 s,@THEORA_DISABLE_FLOAT_FALSE@,$THEORA_DISABLE_FLOAT_FALSE,;t t
21739 s,@THEORA_DISABLE_ENCODE_TRUE@,$THEORA_DISABLE_ENCODE_TRUE,;t t
21740 s,@THEORA_DISABLE_ENCODE_FALSE@,$THEORA_DISABLE_ENCODE_FALSE,;t t
21741 s,@GETOPT_OBJS@,$GETOPT_OBJS,;t t
21742 s,@BUILDABLE_EXAMPLES@,$BUILDABLE_EXAMPLES,;t t
21743 s,@DEBUG@,$DEBUG,;t t
21744 s,@PROFILE@,$PROFILE,;t t
21745 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
21746 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21751 cat >>$CONFIG_STATUS <<\_ACEOF
21752 # Split the substitutions into bite-sized pieces for seds with
21753 # small command number limits, like on Digital OSF/1 and HP-UX.
21754 ac_max_sed_lines=48
21755 ac_sed_frag=1 # Number of current file.
21756 ac_beg=1 # First line for current file.
21757 ac_end=$ac_max_sed_lines # Line after last line for current file.
21760 while $ac_more_lines; do
21761 if test $ac_beg -gt 1; then
21762 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21764 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21766 if test ! -s $tmp/subs.frag; then
21767 ac_more_lines=false
21769 # The purpose of the label and of the branching condition is to
21770 # speed up the sed processing (if there are no `@' at all, there
21771 # is no need to browse any of the substitutions).
21772 # These are the two extra sed commands mentioned above.
21774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21775 if test -z "$ac_sed_cmds"; then
21776 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21778 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21780 ac_sed_frag=`expr $ac_sed_frag + 1`
21782 ac_end=`expr $ac_end + $ac_max_sed_lines`
21785 if test -z "$ac_sed_cmds"; then
21788 fi # test -n "$CONFIG_FILES"
21791 cat >>$CONFIG_STATUS <<\_ACEOF
21792 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21793 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21795 - | *:- | *:-:* ) # input from stdin
21797 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21798 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21799 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21800 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21801 * ) ac_file_in=$ac_file.in ;;
21804 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21805 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21806 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21807 X"$ac_file" : 'X\(//\)[^/]' \| \
21808 X"$ac_file" : 'X\(//\)$' \| \
21809 X"$ac_file" : 'X\(/\)' \| \
21810 . : '\(.\)' 2>/dev/null ||
21812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21814 /^X\(\/\/\)$/{ s//\1/; q; }
21815 /^X\(\/\).*/{ s//\1/; q; }
21817 { if $as_mkdir_p; then
21822 while test ! -d "$as_dir"; do
21823 as_dirs="$as_dir $as_dirs"
21824 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21826 X"$as_dir" : 'X\(//\)[^/]' \| \
21827 X"$as_dir" : 'X\(//\)$' \| \
21828 X"$as_dir" : 'X\(/\)' \| \
21829 . : '\(.\)' 2>/dev/null ||
21831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21833 /^X\(\/\/\)$/{ s//\1/; q; }
21834 /^X\(\/\).*/{ s//\1/; q; }
21837 test ! -n "$as_dirs" || mkdir $as_dirs
21838 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21839 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21840 { (exit 1); exit 1; }; }; }
21844 if test "$ac_dir" != .; then
21845 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21846 # A "../" for each directory in $ac_dir_suffix.
21847 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21849 ac_dir_suffix= ac_top_builddir=
21853 .) # No --srcdir option. We are building in place.
21855 if test -z "$ac_top_builddir"; then
21858 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21860 [\\/]* | ?:[\\/]* ) # Absolute path.
21861 ac_srcdir=$srcdir$ac_dir_suffix;
21862 ac_top_srcdir=$srcdir ;;
21863 *) # Relative path.
21864 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21865 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21868 # Do not use `cd foo && pwd` to compute absolute paths, because
21869 # the directories may not exist.
21871 .) ac_abs_builddir="$ac_dir";;
21874 .) ac_abs_builddir=`pwd`;;
21875 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21876 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21879 case $ac_abs_builddir in
21880 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21882 case ${ac_top_builddir}. in
21883 .) ac_abs_top_builddir=$ac_abs_builddir;;
21884 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21885 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21888 case $ac_abs_builddir in
21889 .) ac_abs_srcdir=$ac_srcdir;;
21892 .) ac_abs_srcdir=$ac_abs_builddir;;
21893 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21894 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21897 case $ac_abs_builddir in
21898 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21900 case $ac_top_srcdir in
21901 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21902 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21903 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21909 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21910 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21913 # Let's still pretend it is `configure' which instantiates (i.e., don't
21914 # use $as_me), people would be surprised to read:
21915 # /* config.h. Generated by config.status. */
21916 if test x"$ac_file" = x-; then
21919 configure_input="$ac_file. "
21921 configure_input=$configure_input"Generated from `echo $ac_file_in |
21922 sed 's,.*/,,'` by configure."
21924 # First look for the input files in the build tree, otherwise in the
21926 ac_file_inputs=`IFS=:
21927 for f in $ac_file_in; do
21929 -) echo $tmp/stdin ;;
21931 # Absolute (can't be DOS-style, as IFS=:)
21932 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21933 echo "$as_me: error: cannot find input file: $f" >&2;}
21934 { (exit 1); exit 1; }; }
21937 if test -f "$f"; then
21940 elif test -f "$srcdir/$f"; then
21945 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21946 echo "$as_me: error: cannot find input file: $f" >&2;}
21947 { (exit 1); exit 1; }; }
21950 done` || { (exit 1); exit 1; }
21952 if test x"$ac_file" != x-; then
21953 { echo "$as_me:$LINENO: creating $ac_file" >&5
21954 echo "$as_me: creating $ac_file" >&6;}
21958 cat >>$CONFIG_STATUS <<_ACEOF
21962 cat >>$CONFIG_STATUS <<\_ACEOF
21964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21965 s,@configure_input@,$configure_input,;t t
21966 s,@srcdir@,$ac_srcdir,;t t
21967 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21968 s,@top_srcdir@,$ac_top_srcdir,;t t
21969 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21970 s,@builddir@,$ac_builddir,;t t
21971 s,@abs_builddir@,$ac_abs_builddir,;t t
21972 s,@top_builddir@,$ac_top_builddir,;t t
21973 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21974 s,@INSTALL@,$ac_INSTALL,;t t
21975 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21977 if test x"$ac_file" != x-; then
21978 mv $tmp/out $ac_file
21986 cat >>$CONFIG_STATUS <<\_ACEOF
21989 # CONFIG_HEADER section.
21992 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21993 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21995 # ac_d sets the value in "#define NAME VALUE" lines.
21996 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21997 ac_dB='[ ].*$,\1#\2'
22000 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22001 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22002 ac_uB='$,\1#\2define\3'
22006 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22007 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22009 - | *:- | *:-:* ) # input from stdin
22011 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22012 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22013 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22014 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22015 * ) ac_file_in=$ac_file.in ;;
22018 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22019 echo "$as_me: creating $ac_file" >&6;}
22021 # First look for the input files in the build tree, otherwise in the
22023 ac_file_inputs=`IFS=:
22024 for f in $ac_file_in; do
22026 -) echo $tmp/stdin ;;
22028 # Absolute (can't be DOS-style, as IFS=:)
22029 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22030 echo "$as_me: error: cannot find input file: $f" >&2;}
22031 { (exit 1); exit 1; }; }
22032 # Do quote $f, to prevent DOS paths from being IFS'd.
22035 if test -f "$f"; then
22038 elif test -f "$srcdir/$f"; then
22043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22044 echo "$as_me: error: cannot find input file: $f" >&2;}
22045 { (exit 1); exit 1; }; }
22048 done` || { (exit 1); exit 1; }
22049 # Remove the trailing spaces.
22050 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22054 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22055 # `conftest.undefs', that substitutes the proper values into
22056 # config.h.in to produce config.h. The first handles `#define'
22057 # templates, and the second `#undef' templates.
22058 # And first: Protect against being on the right side of a sed subst in
22059 # config.status. Protect against being in an unquoted here document
22060 # in config.status.
22061 rm -f conftest.defines conftest.undefs
22062 # Using a here document instead of a string reduces the quoting nightmare.
22063 # Putting comments in sed scripts is not portable.
22065 # `end' is used to avoid that the second main sed command (meant for
22066 # 0-ary CPP macros) applies to n-ary macro definitions.
22067 # See the Autoconf documentation for `clear'.
22068 cat >confdef2sed.sed <<\_ACEOF
22073 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22075 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22078 # If some macros were called several times there might be several times
22079 # the same #defines, which is useless. Nevertheless, we may not want to
22080 # sort them, since we want the *last* AC-DEFINE to be honored.
22081 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22082 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22083 rm -f confdef2sed.sed
22085 # This sed command replaces #undef with comments. This is necessary, for
22086 # example, in the case of _POSIX_SOURCE, which is predefined and required
22087 # on some systems where configure will not decide to define it.
22088 cat >>conftest.undefs <<\_ACEOF
22089 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22092 # Break up conftest.defines because some shells have a limit on the size
22093 # of here documents, and old seds have small limits too (100 cmds).
22094 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22095 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22096 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22097 echo ' :' >>$CONFIG_STATUS
22098 rm -f conftest.tail
22099 while grep . conftest.defines >/dev/null
22101 # Write a limited-size here document to $tmp/defines.sed.
22102 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22103 # Speed up: don't consider the non `#define' lines.
22104 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22105 # Work around the forget-to-reset-the-flag bug.
22106 echo 't clr' >>$CONFIG_STATUS
22107 echo ': clr' >>$CONFIG_STATUS
22108 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22110 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22112 mv $tmp/out $tmp/in
22114 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22115 rm -f conftest.defines
22116 mv conftest.tail conftest.defines
22118 rm -f conftest.defines
22119 echo ' fi # grep' >>$CONFIG_STATUS
22120 echo >>$CONFIG_STATUS
22122 # Break up conftest.undefs because some shells have a limit on the size
22123 # of here documents, and old seds have small limits too (100 cmds).
22124 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22125 rm -f conftest.tail
22126 while grep . conftest.undefs >/dev/null
22128 # Write a limited-size here document to $tmp/undefs.sed.
22129 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22130 # Speed up: don't consider the non `#undef'
22131 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22132 # Work around the forget-to-reset-the-flag bug.
22133 echo 't clr' >>$CONFIG_STATUS
22134 echo ': clr' >>$CONFIG_STATUS
22135 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22137 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22139 mv $tmp/out $tmp/in
22141 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22142 rm -f conftest.undefs
22143 mv conftest.tail conftest.undefs
22145 rm -f conftest.undefs
22147 cat >>$CONFIG_STATUS <<\_ACEOF
22148 # Let's still pretend it is `configure' which instantiates (i.e., don't
22149 # use $as_me), people would be surprised to read:
22150 # /* config.h. Generated by config.status. */
22151 if test x"$ac_file" = x-; then
22152 echo "/* Generated by configure. */" >$tmp/config.h
22154 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22156 cat $tmp/in >>$tmp/config.h
22158 if test x"$ac_file" != x-; then
22159 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22160 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22161 echo "$as_me: $ac_file is unchanged" >&6;}
22163 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22165 X"$ac_file" : 'X\(//\)[^/]' \| \
22166 X"$ac_file" : 'X\(//\)$' \| \
22167 X"$ac_file" : 'X\(/\)' \| \
22168 . : '\(.\)' 2>/dev/null ||
22170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22172 /^X\(\/\/\)$/{ s//\1/; q; }
22173 /^X\(\/\).*/{ s//\1/; q; }
22175 { if $as_mkdir_p; then
22180 while test ! -d "$as_dir"; do
22181 as_dirs="$as_dir $as_dirs"
22182 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22184 X"$as_dir" : 'X\(//\)[^/]' \| \
22185 X"$as_dir" : 'X\(//\)$' \| \
22186 X"$as_dir" : 'X\(/\)' \| \
22187 . : '\(.\)' 2>/dev/null ||
22189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22191 /^X\(\/\/\)$/{ s//\1/; q; }
22192 /^X\(\/\).*/{ s//\1/; q; }
22195 test ! -n "$as_dirs" || mkdir $as_dirs
22196 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22197 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22198 { (exit 1); exit 1; }; }; }
22201 mv $tmp/config.h $ac_file
22205 rm -f $tmp/config.h
22207 # Compute $ac_file's index in $config_headers.
22209 for _am_header in $config_headers :; do
22210 case $_am_header in
22211 $ac_file | $ac_file:* )
22214 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22217 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22218 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22219 X$ac_file : 'X\(//\)[^/]' \| \
22220 X$ac_file : 'X\(//\)$' \| \
22221 X$ac_file : 'X\(/\)' \| \
22222 . : '\(.\)' 2>/dev/null ||
22224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22226 /^X\(\/\/\)$/{ s//\1/; q; }
22227 /^X\(\/\).*/{ s//\1/; q; }
22228 s/.*/./; q'`/stamp-h$_am_stamp_count
22231 cat >>$CONFIG_STATUS <<\_ACEOF
22234 # CONFIG_COMMANDS section.
22236 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22237 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22238 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22239 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22240 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22241 X"$ac_dest" : 'X\(//\)[^/]' \| \
22242 X"$ac_dest" : 'X\(//\)$' \| \
22243 X"$ac_dest" : 'X\(/\)' \| \
22244 . : '\(.\)' 2>/dev/null ||
22246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22248 /^X\(\/\/\)$/{ s//\1/; q; }
22249 /^X\(\/\).*/{ s//\1/; q; }
22251 { if $as_mkdir_p; then
22256 while test ! -d "$as_dir"; do
22257 as_dirs="$as_dir $as_dirs"
22258 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22260 X"$as_dir" : 'X\(//\)[^/]' \| \
22261 X"$as_dir" : 'X\(//\)$' \| \
22262 X"$as_dir" : 'X\(/\)' \| \
22263 . : '\(.\)' 2>/dev/null ||
22265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22267 /^X\(\/\/\)$/{ s//\1/; q; }
22268 /^X\(\/\).*/{ s//\1/; q; }
22271 test ! -n "$as_dirs" || mkdir $as_dirs
22272 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22273 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22274 { (exit 1); exit 1; }; }; }
22278 if test "$ac_dir" != .; then
22279 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22280 # A "../" for each directory in $ac_dir_suffix.
22281 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22283 ac_dir_suffix= ac_top_builddir=
22287 .) # No --srcdir option. We are building in place.
22289 if test -z "$ac_top_builddir"; then
22292 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22294 [\\/]* | ?:[\\/]* ) # Absolute path.
22295 ac_srcdir=$srcdir$ac_dir_suffix;
22296 ac_top_srcdir=$srcdir ;;
22297 *) # Relative path.
22298 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22299 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22302 # Do not use `cd foo && pwd` to compute absolute paths, because
22303 # the directories may not exist.
22305 .) ac_abs_builddir="$ac_dir";;
22308 .) ac_abs_builddir=`pwd`;;
22309 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22310 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22313 case $ac_abs_builddir in
22314 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22316 case ${ac_top_builddir}. in
22317 .) ac_abs_top_builddir=$ac_abs_builddir;;
22318 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22319 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22322 case $ac_abs_builddir in
22323 .) ac_abs_srcdir=$ac_srcdir;;
22326 .) ac_abs_srcdir=$ac_abs_builddir;;
22327 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22328 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22331 case $ac_abs_builddir in
22332 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22334 case $ac_top_srcdir in
22335 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22336 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22337 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22342 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22343 echo "$as_me: executing $ac_dest commands" >&6;}
22345 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22346 # Strip MF so we end up with the name of the file.
22347 mf=`echo "$mf" | sed -e 's/:.*$//'`
22348 # Check whether this is an Automake generated Makefile or not.
22349 # We used to match only the files named `Makefile.in', but
22350 # some people rename them; so instead we look at the file content.
22351 # Grep'ing the first line is not enough: some people post-process
22352 # each Makefile.in and add a new line on top of each file to say so.
22353 # So let's grep whole file.
22354 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22355 dirpart=`(dirname "$mf") 2>/dev/null ||
22356 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22357 X"$mf" : 'X\(//\)[^/]' \| \
22358 X"$mf" : 'X\(//\)$' \| \
22359 X"$mf" : 'X\(/\)' \| \
22360 . : '\(.\)' 2>/dev/null ||
22362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22364 /^X\(\/\/\)$/{ s//\1/; q; }
22365 /^X\(\/\).*/{ s//\1/; q; }
22370 # Extract the definition of DEPDIR, am__include, and am__quote
22371 # from the Makefile without running `make'.
22372 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22373 test -z "$DEPDIR" && continue
22374 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22375 test -z "am__include" && continue
22376 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22377 # When using ansi2knr, U may be empty or an underscore; expand it
22378 U=`sed -n 's/^U = //p' < "$mf"`
22379 # Find all dependency output files, they are included files with
22380 # $(DEPDIR) in their names. We invoke sed twice because it is the
22381 # simplest approach to changing $(DEPDIR) to its actual value in the
22383 for file in `sed -n "
22384 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22385 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22386 # Make sure the directory exists.
22387 test -f "$dirpart/$file" && continue
22388 fdir=`(dirname "$file") 2>/dev/null ||
22389 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22390 X"$file" : 'X\(//\)[^/]' \| \
22391 X"$file" : 'X\(//\)$' \| \
22392 X"$file" : 'X\(/\)' \| \
22393 . : '\(.\)' 2>/dev/null ||
22395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22397 /^X\(\/\/\)$/{ s//\1/; q; }
22398 /^X\(\/\).*/{ s//\1/; q; }
22400 { if $as_mkdir_p; then
22401 mkdir -p $dirpart/$fdir
22403 as_dir=$dirpart/$fdir
22405 while test ! -d "$as_dir"; do
22406 as_dirs="$as_dir $as_dirs"
22407 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22409 X"$as_dir" : 'X\(//\)[^/]' \| \
22410 X"$as_dir" : 'X\(//\)$' \| \
22411 X"$as_dir" : 'X\(/\)' \| \
22412 . : '\(.\)' 2>/dev/null ||
22414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22416 /^X\(\/\/\)$/{ s//\1/; q; }
22417 /^X\(\/\).*/{ s//\1/; q; }
22420 test ! -n "$as_dirs" || mkdir $as_dirs
22421 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22422 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22423 { (exit 1); exit 1; }; }; }
22425 # echo "creating $dirpart/$file"
22426 echo '# dummy' > "$dirpart/$file"
22434 cat >>$CONFIG_STATUS <<\_ACEOF
22436 { (exit 0); exit 0; }
22438 chmod +x $CONFIG_STATUS
22439 ac_clean_files=$ac_clean_files_save
22442 # configure is writing to config.log, and then calls config.status.
22443 # config.status does its own redirection, appending to config.log.
22444 # Unfortunately, on DOS this fails, as config.log is still kept open
22445 # by configure, so config.status won't be able to write to it; its
22446 # output is simply discarded. So we exec the FD to /dev/null,
22447 # effectively closing config.log, so it can be properly (re)opened and
22448 # appended to by config.status. When coming back to configure, we
22449 # need to make the FD available again.
22450 if test "$no_create" != yes; then
22452 ac_config_status_args=
22453 test "$silent" = yes &&
22454 ac_config_status_args="$ac_config_status_args --quiet"
22456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22459 # would make configure fail if this is the last instruction.
22460 $ac_cs_success || { (exit 1); exit 1; }
22468 prefix_save=$prefix
22469 exec_prefix_save=$exec_prefix
22471 if test "x$prefix" = "xNONE"; then
22472 prefix="$ac_default_prefix"
22474 if test "x$exec_prefix" = "xNONE"; then
22475 exec_prefix=$prefix
22478 full_var="$FROM_VAR"
22480 new_full_var="`eval echo $full_var`"
22481 if test "x$new_full_var" = "x$full_var"; then break; fi
22482 full_var=$new_full_var
22485 full_var=$new_full_var
22489 prefix=$prefix_save
22490 exec_prefix=$exec_prefix_save
22494 FROM_VAR=${includedir}
22496 prefix_save=$prefix
22497 exec_prefix_save=$exec_prefix
22499 if test "x$prefix" = "xNONE"; then
22500 prefix="$ac_default_prefix"
22502 if test "x$exec_prefix" = "xNONE"; then
22503 exec_prefix=$prefix
22506 full_var="$FROM_VAR"
22508 new_full_var="`eval echo $full_var`"
22509 if test "x$new_full_var" = "x$full_var"; then break; fi
22510 full_var=$new_full_var
22513 full_var=$new_full_var
22514 INCLUDEDIR="$full_var"
22517 prefix=$prefix_save
22518 exec_prefix=$exec_prefix_save
22524 prefix_save=$prefix
22525 exec_prefix_save=$exec_prefix
22527 if test "x$prefix" = "xNONE"; then
22528 prefix="$ac_default_prefix"
22530 if test "x$exec_prefix" = "xNONE"; then
22531 exec_prefix=$prefix
22534 full_var="$FROM_VAR"
22536 new_full_var="`eval echo $full_var`"
22537 if test "x$new_full_var" = "x$full_var"; then break; fi
22538 full_var=$new_full_var
22541 full_var=$new_full_var
22545 prefix=$prefix_save
22546 exec_prefix=$exec_prefix_save
22550 FROM_VAR=${datadir}/doc
22552 prefix_save=$prefix
22553 exec_prefix_save=$exec_prefix
22555 if test "x$prefix" = "xNONE"; then
22556 prefix="$ac_default_prefix"
22558 if test "x$exec_prefix" = "xNONE"; then
22559 exec_prefix=$prefix
22562 full_var="$FROM_VAR"
22564 new_full_var="`eval echo $full_var`"
22565 if test "x$new_full_var" = "x$full_var"; then break; fi
22566 full_var=$new_full_var
22569 full_var=$new_full_var
22573 prefix=$prefix_save
22574 exec_prefix=$exec_prefix_save
22577 echo "$as_me:$LINENO: result:
22578 ------------------------------------------------------------------------
22579 $PACKAGE $VERSION: Automatic configuration OK.
22581 General configuration:
22583 Encoding support: ........... ${ac_enable_encode}
22584 Floating point support: ..... ${ac_enable_float}
22585 Assembly optimization: ...... ${cpu_optimization}
22587 Installation paths:
22589 libtheora: ................... ${LIBDIR}
22590 C header files: .............. ${INCLUDEDIR}/theora
22591 Documentation: ............... ${DOCDIR}/$PACKAGE
22595 Type 'make' to compile $PACKAGE.
22597 Type 'make install' to install $PACKAGE.
22601 Example programs will be built but not installed.
22602 ------------------------------------------------------------------------
22605 ------------------------------------------------------------------------
22606 $PACKAGE $VERSION: Automatic configuration OK.
22608 General configuration:
22610 Encoding support: ........... ${ac_enable_encode}
22611 Floating point support: ..... ${ac_enable_float}
22612 Assembly optimization: ...... ${cpu_optimization}
22614 Installation paths:
22616 libtheora: ................... ${LIBDIR}
22617 C header files: .............. ${INCLUDEDIR}/theora
22618 Documentation: ............... ${DOCDIR}/$PACKAGE
22622 Type 'make' to compile $PACKAGE.
22624 Type 'make install' to install $PACKAGE.
22628 Example programs will be built but not installed.
22629 ------------------------------------------------------------------------