2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="src/"
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 SHARED CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S EGREP ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL UNCOMPRESS AREXT SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG VIDEO_LIBS VIDEO_CFLAGS USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
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_CXX_set=${CXX+set}
924 ac_env_CXX_value=$CXX
925 ac_cv_env_CXX_set=${CXX+set}
926 ac_cv_env_CXX_value=$CXX
927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_env_CXXFLAGS_value=$CXXFLAGS
929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
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 this package 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
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-checkmem turn on ccmalloc debugging
1028 --enable-debug turn on debugging
1029 --enable-profiling turn on profiling
1030 --enable-warnings turn on compiler warnings
1031 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1032 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
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)
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1048 include additional configurations [automatic]
1050 Some influential environment variables:
1051 CC C compiler command
1052 CFLAGS C compiler flags
1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054 nonstandard directory <lib dir>
1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056 headers in a nonstandard directory <include dir>
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1060 CXXCPP C++ preprocessor
1061 F77 Fortran 77 compiler command
1062 FFLAGS Fortran 77 compiler flags
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1070 if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1077 if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 ac_dir_suffix= ac_top_builddir=
1086 .) # No --srcdir option. We are building in place.
1088 if test -z "$ac_top_builddir"; then
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 # Do not use `cd foo && pwd` to compute absolute paths, because
1102 # the directories may not exist.
1104 .) ac_abs_builddir="$ac_dir";;
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121 case $ac_abs_builddir in
1122 .) ac_abs_srcdir=$ac_srcdir;;
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
1149 test -f $ac_srcdir/configure.in; then
1151 $ac_configure --help
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159 test -n "$ac_init_help" && exit 0
1160 if $ac_init_version; then
1163 Copyright (C) 2003 Free Software Foundation, Inc.
1164 This configure script is free software; the Free Software Foundation
1165 gives unlimited permission to copy, distribute and modify it.
1171 This file contains any messages produced by compilers while
1172 running configure, to aid debugging if configure makes a mistake.
1174 It was created by $as_me, which was
1175 generated by GNU Autoconf 2.59. Invocation command line was
1186 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1187 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1188 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1189 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1190 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1193 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1195 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1196 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1197 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1198 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1199 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1200 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1201 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 test -z "$as_dir" && as_dir=.
1210 echo "PATH: $as_dir"
1225 # Keep a trace of the command line.
1226 # Strip out --no-create and --no-recursion so they do not pile up.
1227 # Strip out --silent because we don't want to record it for future runs.
1228 # Also quote any args containing shell meta-characters.
1229 # Make two passes to allow for proper duplicate-argument suppression.
1234 ac_must_keep_next=false
1240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1244 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1251 if test $ac_must_keep_next = true; then
1252 ac_must_keep_next=false # Got value, back to normal.
1255 *=* | --config-cache | -C | -disable-* | --disable-* \
1256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1258 | -with-* | --with-* | -without-* | --without-* | --x)
1259 case "$ac_configure_args0 " in
1260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263 -* ) ac_must_keep_next=true ;;
1266 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1267 # Get rid of the leading space.
1273 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1274 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276 # When interrupted or exit'd, cleanup temporary files, and complete
1277 # config.log. We remove comments because anyway the quotes in there
1278 # would cause problems or look ugly.
1279 # WARNING: Be sure not to use single quotes in there, as some shells,
1280 # such as our DU 5.0 friend, will then `close' the trap.
1281 trap 'exit_status=$?
1282 # Save into config.log some information that might help in debugging.
1287 ## ---------------- ##
1288 ## Cache variables. ##
1289 ## ---------------- ##
1292 # The following way of writing the cache mishandles newlines in values,
1295 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 ## ----------------- ##
1311 ## Output variables. ##
1312 ## ----------------- ##
1315 for ac_var in $ac_subst_vars
1317 eval ac_val=$`echo $ac_var`
1318 echo "$ac_var='"'"'$ac_val'"'"'"
1322 if test -n "$ac_subst_files"; then
1329 for ac_var in $ac_subst_files
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1337 if test -s confdefs.h; then
1344 sed "/^$/d" confdefs.h | sort
1347 test "$ac_signal" != 0 &&
1348 echo "$as_me: caught signal $ac_signal"
1349 echo "$as_me: exit $exit_status"
1351 rm -f core *.core &&
1352 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355 for ac_signal in 1 2 13 15; do
1356 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1361 rm -rf conftest* confdefs.h
1362 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365 # Predefined preprocessor variables.
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_NAME "$PACKAGE_NAME"
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_STRING "$PACKAGE_STRING"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392 # Let the site file select an alternate cache file if it wants to.
1393 # Prefer explicitly selected file to automatically selected ones.
1394 if test -z "$CONFIG_SITE"; then
1395 if test "x$prefix" != xNONE; then
1396 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401 for ac_site_file in $CONFIG_SITE; do
1402 if test -r "$ac_site_file"; then
1403 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1404 echo "$as_me: loading site script $ac_site_file" >&6;}
1405 sed 's/^/| /' "$ac_site_file" >&5
1410 if test -r "$cache_file"; then
1411 # Some versions of bash will fail to source /dev/null (special
1412 # files actually), so we avoid doing that.
1413 if test -f "$cache_file"; then
1414 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1415 echo "$as_me: loading cache $cache_file" >&6;}
1417 [\\/]* | ?:[\\/]* ) . $cache_file;;
1418 *) . ./$cache_file;;
1422 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1423 echo "$as_me: creating cache $cache_file" >&6;}
1427 # Check that the precious variables saved in the cache have kept the same
1429 ac_cache_corrupted=false
1430 for ac_var in `(set) 2>&1 |
1431 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1433 eval ac_new_set=\$ac_env_${ac_var}_set
1434 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1435 eval ac_new_val="\$ac_env_${ac_var}_value"
1436 case $ac_old_set,$ac_new_set in
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1447 if test "x$ac_old_val" != "x$ac_new_val"; then
1448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1449 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1450 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1451 echo "$as_me: former value: $ac_old_val" >&2;}
1452 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1453 echo "$as_me: current value: $ac_new_val" >&2;}
1454 ac_cache_corrupted=:
1457 # Pass precious variables to config.status.
1458 if test "$ac_new_set" = set; then
1460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1462 *) ac_arg=$ac_var=$ac_new_val ;;
1464 case " $ac_configure_args " in
1465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1466 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470 if $ac_cache_corrupted; then
1471 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1472 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1473 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1474 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1475 { (exit 1); exit 1; }; }
1479 ac_cpp='$CPP $CPPFLAGS'
1480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504 # Check whether --enable-checkmem or --disable-checkmem was given.
1505 if test "${enable_checkmem+set}" = set; then
1506 enableval="$enable_checkmem"
1509 # Check whether --enable-debug or --disable-debug was given.
1510 if test "${enable_debug+set}" = set; then
1511 enableval="$enable_debug"
1514 # Check whether --enable-profiling or --disable-profiling was given.
1515 if test "${enable_profiling+set}" = set; then
1516 enableval="$enable_profiling"
1519 # Check whether --enable-warnings or --disable-warnings was given.
1520 if test "${enable_warnings+set}" = set; then
1521 enableval="$enable_warnings"
1522 ENABLE_WARNINGS=true
1524 # Check whether --enable-optimizations or --disable-optimizations was given.
1525 if test "${enable_optimizations+set}" = set; then
1526 enableval="$enable_optimizations"
1529 # Check whether --enable-lame or --disable-lame was given.
1530 if test "${enable_lame+set}" = set; then
1531 enableval="$enable_lame"
1536 VERSION=2004-11-23-2234
1539 # ------------------------------------------------------------------
1541 if test "x${srcdir}" != "x."; then
1542 echo "--srcdir is not supported"
1546 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1547 if test "x$ENABLE_WARNINGS" '!=' "x";then
1548 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1551 if test "x$CHECKMEM" '!=' "x";then
1554 if test "x$PROFILING" '!=' "x";then
1557 if test "x$DEBUG" '!=' "x";then
1558 if test "x$PROFILING" = "x";then
1559 CFLAGS="$WARNINGS -g $CFLAGS"
1560 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1562 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1563 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1564 LDFLAGS="-g -pg $LIBS"
1566 else if test "x$OPTIMIZE" '!=' "x"; then
1567 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1568 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1570 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1571 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1575 #if test "x$OLDGCC" '!=' "x";then
1576 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1577 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1578 # CFLAGS="$CFLAGS -ansi -pendantic"
1579 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1582 export PACKAGE VERSION CFLAGS CXXFLAGS
1586 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1587 if test -f $ac_dir/install-sh; then
1589 ac_install_sh="$ac_aux_dir/install-sh -c"
1591 elif test -f $ac_dir/install.sh; then
1593 ac_install_sh="$ac_aux_dir/install.sh -c"
1595 elif test -f $ac_dir/shtool; then
1597 ac_install_sh="$ac_aux_dir/shtool install -c"
1601 if test -z "$ac_aux_dir"; then
1602 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1603 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1604 { (exit 1); exit 1; }; }
1606 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1607 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1608 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1610 # Make sure we can run config.sub.
1611 $ac_config_sub sun4 >/dev/null 2>&1 ||
1612 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1613 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1614 { (exit 1); exit 1; }; }
1616 echo "$as_me:$LINENO: checking build system type" >&5
1617 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1618 if test "${ac_cv_build+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_build_alias=$build_alias
1622 test -z "$ac_cv_build_alias" &&
1623 ac_cv_build_alias=`$ac_config_guess`
1624 test -z "$ac_cv_build_alias" &&
1625 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1627 { (exit 1); exit 1; }; }
1628 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1631 { (exit 1); exit 1; }; }
1634 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1635 echo "${ECHO_T}$ac_cv_build" >&6
1637 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642 echo "$as_me:$LINENO: checking host system type" >&5
1643 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1644 if test "${ac_cv_host+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 ac_cv_host_alias=$host_alias
1648 test -z "$ac_cv_host_alias" &&
1649 ac_cv_host_alias=$ac_cv_build_alias
1650 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1653 { (exit 1); exit 1; }; }
1656 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1657 echo "${ECHO_T}$ac_cv_host" >&6
1659 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 CFLAGS="$CFLAGS -fno-rtti"
1671 CXXFLAGS="$CXXFLAGS -fno-rtti"
1679 ac_cpp='$CPP $CPPFLAGS'
1680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1683 if test -n "$ac_tool_prefix"; then
1684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711 if test -n "$CC"; then
1712 echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1720 if test -z "$ac_cv_prog_CC"; then
1722 # Extract the first word of "gcc", so it can be a program name with args.
1723 set dummy gcc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC="gcc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1762 if test -z "$CC"; then
1763 if test -n "$ac_tool_prefix"; then
1764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1765 set dummy ${ac_tool_prefix}cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_CC="${ac_tool_prefix}cc"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 if test -n "$CC"; then
1792 echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1795 echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1800 if test -z "$ac_cv_prog_CC"; then
1802 # Extract the first word of "cc", so it can be a program name with args.
1803 set dummy cc; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 if test -n "$ac_ct_CC"; then
1810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_ac_ct_CC="cc"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1829 if test -n "$ac_ct_CC"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1831 echo "${ECHO_T}$ac_ct_CC" >&6
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1843 if test -z "$CC"; then
1844 # Extract the first word of "cc", so it can be a program name with args.
1845 set dummy cc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1863 ac_prog_rejected=yes
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 if test $ac_prog_rejected = yes; then
1874 # We found a bogon in the path, so make sure we never use it.
1875 set dummy $ac_cv_prog_CC
1877 if test $# != 0; then
1878 # We chose a different compiler from the bogus one.
1879 # However, it has the same basename, so the bogon will be chosen
1880 # first if we set CC to just the basename; use the full file name.
1882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1888 if test -n "$CC"; then
1889 echo "$as_me:$LINENO: result: $CC" >&5
1890 echo "${ECHO_T}$CC" >&6
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1897 if test -z "$CC"; then
1898 if test -n "$ac_tool_prefix"; then
1901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_CC+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 if test -n "$CC"; then
1929 echo "$as_me:$LINENO: result: $CC" >&5
1930 echo "${ECHO_T}$CC" >&6
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1936 test -n "$CC" && break
1939 if test -z "$CC"; then
1943 # Extract the first word of "$ac_prog", so it can be a program name with args.
1944 set dummy $ac_prog; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="$ac_prog"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1978 test -n "$ac_ct_CC" && break
1987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: no acceptable C compiler found in \$PATH
1990 See \`config.log' for more details." >&2;}
1991 { (exit 1); exit 1; }; }
1993 # Provide some information about the compiler.
1994 echo "$as_me:$LINENO:" \
1995 "checking for C compiler version" >&5
1996 ac_compiler=`set X $ac_compile; echo $2`
1997 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1998 (eval $ac_compiler --version </dev/null >&5) 2>&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2003 (eval $ac_compiler -v </dev/null >&5) 2>&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }
2007 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2008 (eval $ac_compiler -V </dev/null >&5) 2>&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }
2013 cat >conftest.$ac_ext <<_ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2028 ac_clean_files_save=$ac_clean_files
2029 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2030 # Try to create an executable without -o first, disregard a.out.
2031 # It will help us diagnose broken compilers, and finding out an intuition
2033 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2034 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2035 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2036 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2037 (eval $ac_link_default) 2>&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; then
2041 # Find the output, starting from the most likely. This scheme is
2042 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2045 # Be careful to initialize this variable, since it used to be cached.
2046 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2048 # b.out is created by i960 compilers.
2049 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2051 test -f "$ac_file" || continue
2053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2056 # This is the source file.
2059 # We found the default executable, but exeext='' is most
2063 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2064 # FIXME: I believe we export ac_cv_exeext for Libtool,
2065 # but it would be cool to find out if it's true. Does anybody
2066 # maintain Libtool? --akim.
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2077 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: C compiler cannot create executables
2080 See \`config.log' for more details." >&2;}
2081 { (exit 77); exit 77; }; }
2084 ac_exeext=$ac_cv_exeext
2085 echo "$as_me:$LINENO: result: $ac_file" >&5
2086 echo "${ECHO_T}$ac_file" >&6
2088 # Check the compiler produces executables we can run. If not, either
2089 # the compiler is broken, or we cross compile.
2090 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2091 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2092 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2093 # If not cross compiling, check that we can run a simple program.
2094 if test "$cross_compiling" != yes; then
2095 if { ac_try='./$ac_file'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; }; then
2103 if test "$cross_compiling" = maybe; then
2106 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2107 If you meant to cross compile, use \`--host'.
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: cannot run C compiled programs.
2110 If you meant to cross compile, use \`--host'.
2111 See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2116 echo "$as_me:$LINENO: result: yes" >&5
2117 echo "${ECHO_T}yes" >&6
2119 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2120 ac_clean_files=$ac_clean_files_save
2121 # Check the compiler produces executables we can run. If not, either
2122 # the compiler is broken, or we cross compile.
2123 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2124 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2125 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2126 echo "${ECHO_T}$cross_compiling" >&6
2128 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2129 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2131 (eval $ac_link) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; then
2135 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2136 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2137 # work properly (i.e., refer to `conftest.exe'), while it won't with
2139 for ac_file in conftest.exe conftest conftest.*; do
2140 test -f "$ac_file" || continue
2142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2143 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2153 See \`config.log' for more details." >&2;}
2154 { (exit 1); exit 1; }; }
2157 rm -f conftest$ac_cv_exeext
2158 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2159 echo "${ECHO_T}$ac_cv_exeext" >&6
2161 rm -f conftest.$ac_ext
2162 EXEEXT=$ac_cv_exeext
2164 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2165 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2166 if test "${ac_cv_objext+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 cat >conftest.$ac_ext <<_ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2184 rm -f conftest.o conftest.obj
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; then
2190 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2193 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2210 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2211 echo "${ECHO_T}$ac_cv_objext" >&6
2212 OBJEXT=$ac_cv_objext
2214 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2215 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2216 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 cat >conftest.$ac_ext <<_ACEOF
2222 cat confdefs.h >>conftest.$ac_ext
2223 cat >>conftest.$ac_ext <<_ACEOF
2224 /* end confdefs.h. */
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2241 grep -v '^ *+' conftest.er1 >conftest.err
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2270 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2271 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2272 GCC=`test $ac_compiler_gnu = yes && echo yes`
2273 ac_test_CFLAGS=${CFLAGS+set}
2274 ac_save_CFLAGS=$CFLAGS
2276 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cc_g+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 cat >conftest.$ac_ext <<_ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2300 grep -v '^ *+' conftest.er1 >conftest.err
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2327 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2329 if test "$ac_test_CFLAGS" = set; then
2330 CFLAGS=$ac_save_CFLAGS
2331 elif test $ac_cv_prog_cc_g = yes; then
2332 if test "$GCC" = yes; then
2338 if test "$GCC" = yes; then
2344 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2345 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2346 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 ac_cv_prog_cc_stdc=no
2351 cat >conftest.$ac_ext <<_ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2359 #include <sys/types.h>
2360 #include <sys/stat.h>
2361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2362 struct buf { int x; };
2363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2364 static char *e (p, i)
2370 static char *f (char * (*g) (char **, int), char **p, ...)
2375 s = g (p, va_arg (v,int));
2380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2381 function prototypes and stuff, but not '\xHH' hex character constants.
2382 These don't provoke an error unfortunately, instead are silently treated
2383 as 'x'. The following induces an error, until -std1 is added to get
2384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2385 array size at least. It's necessary to write '\x00'==0 to get something
2386 that's true only with -std1. */
2387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2389 int test (int i, double x);
2390 struct s1 {int (*f) (int a);};
2391 struct s2 {int (*f) (double a);};
2392 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2398 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2403 # Don't try gcc -ansi; that turns off useful extensions and
2404 # breaks some systems' header files.
2405 # AIX -qlanglvl=ansi
2406 # Ultrix and OSF/1 -std1
2407 # HP-UX 10.20 and later -Ae
2408 # HP-UX older versions -Aa -D_HPUX_SOURCE
2409 # SVR4 -Xc -D__EXTENSIONS__
2410 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2412 CC="$ac_save_CC $ac_arg"
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 ac_cv_prog_cc_stdc=$ac_arg
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext
2444 rm -f conftest.$ac_ext conftest.$ac_objext
2449 case "x$ac_cv_prog_cc_stdc" in
2451 echo "$as_me:$LINENO: result: none needed" >&5
2452 echo "${ECHO_T}none needed" >&6 ;;
2454 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2455 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2456 CC="$CC $ac_cv_prog_cc_stdc" ;;
2459 # Some people use a C++ compiler to compile C. Since we use `exit',
2460 # in C++ we need to declare it. In case someone uses the same compiler
2461 # for both compiling C and C++ we need to have the C++ compiler decide
2462 # the declaration of exit, since it's the most demanding environment.
2463 cat >conftest.$ac_ext <<_ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>conftest.er1
2472 grep -v '^ *+' conftest.er1 >conftest.err
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag"
2478 || test ! -s conftest.err'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 for ac_declaration in \
2492 'extern "C" void std::exit (int) throw (); using std::exit;' \
2493 'extern "C" void std::exit (int); using std::exit;' \
2494 'extern "C" void exit (int) throw ();' \
2495 'extern "C" void exit (int);' \
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>conftest.er1
2518 grep -v '^ *+' conftest.er1 >conftest.err
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_c_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2563 grep -v '^ *+' conftest.er1 >conftest.err
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 if test -n "$ac_declaration"; then
2591 echo '#ifdef __cplusplus' >>confdefs.h
2592 echo $ac_declaration >>confdefs.h
2593 echo '#endif' >>confdefs.h
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 ac_cpp='$CXXCPP $CPPFLAGS'
2610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618 echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${ac_cv_prog_CXX+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 if test -n "$CXX"; then
2624 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 if test -n "$CXX"; then
2644 echo "$as_me:$LINENO: result: $CXX" >&5
2645 echo "${ECHO_T}$CXX" >&6
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2651 test -n "$CXX" && break
2654 if test -z "$CXX"; then
2656 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 if test -n "$ac_ct_CXX"; then
2666 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_CXX="$ac_prog"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2685 if test -n "$ac_ct_CXX"; then
2686 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2687 echo "${ECHO_T}$ac_ct_CXX" >&6
2689 echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2693 test -n "$ac_ct_CXX" && break
2695 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2701 # Provide some information about the compiler.
2702 echo "$as_me:$LINENO:" \
2703 "checking for C++ compiler version" >&5
2704 ac_compiler=`set X $ac_compile; echo $2`
2705 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2706 (eval $ac_compiler --version </dev/null >&5) 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2711 (eval $ac_compiler -v </dev/null >&5) 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2716 (eval $ac_compiler -V </dev/null >&5) 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2721 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2723 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 cat >conftest.$ac_ext <<_ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_cxx_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2777 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2779 GXX=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CXXFLAGS=${CXXFLAGS+set}
2781 ac_save_CXXFLAGS=$CXXFLAGS
2783 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2784 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cxx_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2807 grep -v '^ *+' conftest.er1 >conftest.err
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_cxx_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_prog_cxx_g=yes
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2836 if test "$ac_test_CXXFLAGS" = set; then
2837 CXXFLAGS=$ac_save_CXXFLAGS
2838 elif test $ac_cv_prog_cxx_g = yes; then
2839 if test "$GXX" = yes; then
2845 if test "$GXX" = yes; then
2851 for ac_declaration in \
2853 'extern "C" void std::exit (int) throw (); using std::exit;' \
2854 'extern "C" void std::exit (int); using std::exit;' \
2855 'extern "C" void exit (int) throw ();' \
2856 'extern "C" void exit (int);' \
2859 cat >conftest.$ac_ext <<_ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
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_cxx_werror_flag"
2885 || test ! -s conftest.err'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 cat >conftest.$ac_ext <<_ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.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_cxx_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951 if test -n "$ac_declaration"; then
2952 echo '#ifdef __cplusplus' >>confdefs.h
2953 echo $ac_declaration >>confdefs.h
2954 echo '#endif' >>confdefs.h
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964 if test "x$CHECKMEM" '!=' "x";then
2968 #unset ac_cv_prog_CC
2969 #unset ac_cv_prog_CXX
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2979 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2980 # On Suns, sometimes $CPP names a directory.
2981 if test -n "$CPP" && test -d "$CPP"; then
2984 if test -z "$CPP"; then
2985 if test "${ac_cv_prog_CPP+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 # Double quotes because CPP needs to be expanded
2989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2992 for ac_c_preproc_warn_flag in '' yes
2994 # Use a header file that comes with gcc, so configuring glibc
2995 # with a fresh cross-compiler works.
2996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997 # <limits.h> exists even on freestanding compilers.
2998 # On the NeXT, cc -E runs the code through the compiler's parser,
2999 # not just through cpp. "Syntax error" is here to catch this case.
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3007 # include <limits.h>
3009 # include <assert.h>
3013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016 grep -v '^ *+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } >/dev/null; then
3021 if test -s conftest.err; then
3022 ac_cpp_err=$ac_c_preproc_warn_flag
3023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030 if test -z "$ac_cpp_err"; then
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 # Broken: fails on valid input.
3039 rm -f conftest.err conftest.$ac_ext
3041 # OK, works on sane cases. Now check whether non-existent headers
3042 # can be detected and how.
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3049 #include <ac_nonexistent.h>
3051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } >/dev/null; then
3059 if test -s conftest.err; then
3060 ac_cpp_err=$ac_c_preproc_warn_flag
3061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068 if test -z "$ac_cpp_err"; then
3069 # Broken: success on invalid input.
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 # Passes both tests.
3079 rm -f conftest.err conftest.$ac_ext
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then
3096 echo "$as_me:$LINENO: result: $CPP" >&5
3097 echo "${ECHO_T}$CPP" >&6
3099 for ac_c_preproc_warn_flag in '' yes
3101 # Use a header file that comes with gcc, so configuring glibc
3102 # with a fresh cross-compiler works.
3103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3104 # <limits.h> exists even on freestanding compilers.
3105 # On the NeXT, cc -E runs the code through the compiler's parser,
3106 # not just through cpp. "Syntax error" is here to catch this case.
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3114 # include <limits.h>
3116 # include <assert.h>
3120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123 grep -v '^ *+' conftest.er1 >conftest.err
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } >/dev/null; then
3128 if test -s conftest.err; then
3129 ac_cpp_err=$ac_c_preproc_warn_flag
3130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3137 if test -z "$ac_cpp_err"; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 # Broken: fails on valid input.
3146 rm -f conftest.err conftest.$ac_ext
3148 # OK, works on sane cases. Now check whether non-existent headers
3149 # can be detected and how.
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156 #include <ac_nonexistent.h>
3158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3161 grep -v '^ *+' conftest.er1 >conftest.err
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } >/dev/null; then
3166 if test -s conftest.err; then
3167 ac_cpp_err=$ac_c_preproc_warn_flag
3168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3175 if test -z "$ac_cpp_err"; then
3176 # Broken: success on invalid input.
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3182 # Passes both tests.
3186 rm -f conftest.err conftest.$ac_ext
3189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3190 rm -f conftest.err conftest.$ac_ext
3191 if $ac_preproc_ok; then
3194 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3197 See \`config.log' for more details." >&2;}
3198 { (exit 1); exit 1; }; }
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3211 echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213 if test "${ac_cv_prog_RANLIB+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 if test -n "$RANLIB"; then
3217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 RANLIB=$ac_cv_prog_RANLIB
3236 if test -n "$RANLIB"; then
3237 echo "$as_me:$LINENO: result: $RANLIB" >&5
3238 echo "${ECHO_T}$RANLIB" >&6
3240 echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3245 if test -z "$ac_cv_prog_RANLIB"; then
3246 ac_ct_RANLIB=$RANLIB
3247 # Extract the first word of "ranlib", so it can be a program name with args.
3248 set dummy ranlib; ac_word=$2
3249 echo "$as_me:$LINENO: checking for $ac_word" >&5
3250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3251 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 if test -n "$ac_ct_RANLIB"; then
3255 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264 ac_cv_prog_ac_ct_RANLIB="ranlib"
3265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3274 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3275 if test -n "$ac_ct_RANLIB"; then
3276 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3277 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3279 echo "$as_me:$LINENO: result: no" >&5
3280 echo "${ECHO_T}no" >&6
3283 RANLIB=$ac_ct_RANLIB
3285 RANLIB="$ac_cv_prog_RANLIB"
3288 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3289 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3290 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3291 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 cat >conftest.make <<\_ACEOF
3296 @echo 'ac_maketemp="$(MAKE)"'
3298 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3299 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3300 if test -n "$ac_maketemp"; then
3301 eval ac_cv_prog_make_${ac_make}_set=yes
3303 eval ac_cv_prog_make_${ac_make}_set=no
3307 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3308 echo "$as_me:$LINENO: result: yes" >&5
3309 echo "${ECHO_T}yes" >&6
3312 echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314 SET_MAKE="MAKE=${MAKE-make}"
3317 # Find a good install program. We prefer a C program (faster),
3318 # so one script is as good as another. But avoid the broken or
3319 # incompatible versions:
3320 # SysV /etc/install, /usr/sbin/install
3321 # SunOS /usr/etc/install
3322 # IRIX /sbin/install
3324 # AmigaOS /C/install, which installs bootblocks on floppy discs
3325 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3326 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3327 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3328 # OS/2's system install, which has a completely different semantic
3329 # ./install, which can be erroneously created by make from ./install.sh.
3330 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3331 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3332 if test -z "$INSTALL"; then
3333 if test "${ac_cv_path_install+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir=.
3341 # Account for people who put trailing slashes in PATH elements.
3343 ./ | .// | /cC/* | \
3344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3345 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3348 # OSF1 and SCO ODT 3.0 have their own names for install.
3349 # Don't use installbsd from OSF since it installs stuff as root
3351 for ac_prog in ginstall scoinst install; do
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3354 if test $ac_prog = install &&
3355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3356 # AIX install. It has an incompatible calling convention.
3358 elif test $ac_prog = install &&
3359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3360 # program-specific install script used by HP pwplus--don't use.
3363 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3375 if test "${ac_cv_path_install+set}" = set; then
3376 INSTALL=$ac_cv_path_install
3378 # As a last resort, use the slow shell script. We don't cache a
3379 # path for INSTALL within a source directory, because that will
3380 # break other packages using the cache if that directory is
3381 # removed, or if the path is relative.
3382 INSTALL=$ac_install_sh
3385 echo "$as_me:$LINENO: result: $INSTALL" >&5
3386 echo "${ECHO_T}$INSTALL" >&6
3388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3389 # It thinks the first close brace ends the variable substitution.
3390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3396 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3397 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3399 if test "$LN_S" = "ln -s"; then
3400 echo "$as_me:$LINENO: result: yes" >&5
3401 echo "${ECHO_T}yes" >&6
3403 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3404 echo "${ECHO_T}no, using $LN_S" >&6
3407 # Check whether --enable-shared or --disable-shared was given.
3408 if test "${enable_shared+set}" = set; then
3409 enableval="$enable_shared"
3410 p=${PACKAGE-default}
3412 yes) enable_shared=yes ;;
3413 no) enable_shared=no ;;
3416 # Look at the argument we got. We use all the common list separators.
3417 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3418 for pkg in $enableval; do
3420 if test "X$pkg" = "X$p"; then
3431 # Check whether --enable-static or --disable-static was given.
3432 if test "${enable_static+set}" = set; then
3433 enableval="$enable_static"
3434 p=${PACKAGE-default}
3436 yes) enable_static=yes ;;
3437 no) enable_static=no ;;
3440 # Look at the argument we got. We use all the common list separators.
3441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3442 for pkg in $enableval; do
3444 if test "X$pkg" = "X$p"; then
3455 # Check whether --enable-fast-install or --disable-fast-install was given.
3456 if test "${enable_fast_install+set}" = set; then
3457 enableval="$enable_fast_install"
3458 p=${PACKAGE-default}
3460 yes) enable_fast_install=yes ;;
3461 no) enable_fast_install=no ;;
3463 enable_fast_install=no
3464 # Look at the argument we got. We use all the common list separators.
3465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3466 for pkg in $enableval; do
3468 if test "X$pkg" = "X$p"; then
3469 enable_fast_install=yes
3476 enable_fast_install=yes
3479 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3480 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3481 if test "${lt_cv_path_SED+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 # Loop through the user's path and test for sed and gsed.
3485 # Then use that list of sed's as ones to test for truncation.
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 test -z "$as_dir" && as_dir=.
3491 for lt_ac_prog in sed gsed; do
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3494 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3501 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3502 # along with /bin/sed that truncates output.
3503 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3504 test ! -f $lt_ac_sed && break
3505 cat /dev/null > conftest.in
3507 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3508 # Check for GNU sed and select it if it is found.
3509 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3510 lt_cv_path_SED=$lt_ac_sed
3514 cat conftest.in conftest.in >conftest.tmp
3515 mv conftest.tmp conftest.in
3516 cp conftest.in conftest.nl
3518 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3519 cmp -s conftest.out conftest.nl || break
3520 # 10000 chars as input seems more than enough
3521 test $lt_ac_count -gt 10 && break
3522 lt_ac_count=`expr $lt_ac_count + 1`
3523 if test $lt_ac_count -gt $lt_ac_max; then
3524 lt_ac_max=$lt_ac_count
3525 lt_cv_path_SED=$lt_ac_sed
3533 echo "$as_me:$LINENO: result: $SED" >&5
3534 echo "${ECHO_T}$SED" >&6
3536 echo "$as_me:$LINENO: checking for egrep" >&5
3537 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3538 if test "${ac_cv_prog_egrep+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3542 then ac_cv_prog_egrep='grep -E'
3543 else ac_cv_prog_egrep='egrep'
3546 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3547 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3548 EGREP=$ac_cv_prog_egrep
3552 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3553 if test "${with_gnu_ld+set}" = set; then
3554 withval="$with_gnu_ld"
3555 test "$withval" = no || with_gnu_ld=yes
3560 if test "$GCC" = yes; then
3561 # Check if gcc -print-prog-name=ld gives a path.
3562 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3563 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3566 # gcc leaves a trailing carriage return which upsets mingw
3567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3572 # Accept absolute paths.
3574 re_direlt='/[^/][^/]*/\.\./'
3575 # Canonicalize the pathname of ld
3576 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3577 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3578 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3580 test -z "$LD" && LD="$ac_prog"
3583 # If it fails, then pretend we aren't using GCC.
3587 # If it is relative, then search for the first ld in PATH.
3591 elif test "$with_gnu_ld" = yes; then
3592 echo "$as_me:$LINENO: checking for GNU ld" >&5
3593 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3595 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3596 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3598 if test "${lt_cv_path_LD+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 if test -z "$LD"; then
3602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3603 for ac_dir in $PATH; do
3605 test -z "$ac_dir" && ac_dir=.
3606 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3607 lt_cv_path_LD="$ac_dir/$ac_prog"
3608 # Check to see if the program is GNU ld. I'd rather use --version,
3609 # but apparently some GNU ld's only accept -v.
3610 # Break only if it was the GNU/non-GNU ld that we prefer.
3611 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3612 *GNU* | *'with BFD'*)
3613 test "$with_gnu_ld" != no && break
3616 test "$with_gnu_ld" != yes && break
3623 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3628 if test -n "$LD"; then
3629 echo "$as_me:$LINENO: result: $LD" >&5
3630 echo "${ECHO_T}$LD" >&6
3632 echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3635 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3636 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3637 { (exit 1); exit 1; }; }
3638 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3639 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3640 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3644 case `$LD -v 2>&1 </dev/null` in
3645 *GNU* | *'with BFD'*)
3646 lt_cv_prog_gnu_ld=yes
3649 lt_cv_prog_gnu_ld=no
3653 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3654 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3655 with_gnu_ld=$lt_cv_prog_gnu_ld
3658 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3659 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3660 if test "${lt_cv_ld_reload_flag+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 lt_cv_ld_reload_flag='-r'
3665 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3666 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3667 reload_flag=$lt_cv_ld_reload_flag
3668 case $reload_flag in
3670 *) reload_flag=" $reload_flag" ;;
3672 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3674 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3675 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3676 if test "${lt_cv_path_NM+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 if test -n "$NM"; then
3680 # Let the user override the test.
3683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3684 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3686 test -z "$ac_dir" && ac_dir=.
3687 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3689 # Check to see if the nm accepts a BSD-compat flag.
3690 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3691 # nm: unknown option "B" ignored
3692 # Tru64's nm complains that /dev/null is an invalid object file
3693 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3694 */dev/null* | *'Invalid file or object type'*)
3695 lt_cv_path_NM="$tmp_nm -B"
3699 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3701 lt_cv_path_NM="$tmp_nm -p"
3705 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3706 continue # so that we can try to find one that supports BSD flags
3713 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3716 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3717 echo "${ECHO_T}$lt_cv_path_NM" >&6
3720 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3721 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3722 if test "${lt_cv_deplibs_check_method+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 lt_cv_file_magic_cmd='$MAGIC_CMD'
3726 lt_cv_file_magic_test_file=
3727 lt_cv_deplibs_check_method='unknown'
3728 # Need to set the preceding variable on all platforms that support
3729 # interlibrary dependencies.
3730 # 'none' -- dependencies not supported.
3731 # `unknown' -- same as none, but documents that we really don't know.
3732 # 'pass_all' -- all dependencies passed with no checks.
3733 # 'test_compile' -- check by making test program.
3734 # 'file_magic [[regex]]' -- check by looking for files in library path
3735 # which responds to the $file_magic_cmd with a given extended regex.
3736 # If you have `file' or equivalent on your system and you're not sure
3737 # whether `pass_all' will *always* work, you probably want this one.
3741 lt_cv_deplibs_check_method=pass_all
3745 lt_cv_deplibs_check_method=pass_all
3749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3750 lt_cv_file_magic_cmd='/usr/bin/file -L'
3751 lt_cv_file_magic_test_file=/shlib/libc.so
3755 # win32_libid is a shell function defined in ltmain.sh
3756 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3757 lt_cv_file_magic_cmd='win32_libid'
3761 # Base MSYS/MinGW do not provide the 'file' command needed by
3762 # win32_libid shell function, so use a weaker test based on 'objdump'.
3763 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3764 lt_cv_file_magic_cmd='$OBJDUMP -f'
3767 darwin* | rhapsody*)
3768 lt_cv_deplibs_check_method=pass_all
3771 freebsd* | kfreebsd*-gnu)
3772 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3775 # Not sure whether the presence of OpenBSD here was a mistake.
3776 # Let's accept both of them until this is cleared up.
3777 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3778 lt_cv_file_magic_cmd=/usr/bin/file
3779 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3783 lt_cv_deplibs_check_method=pass_all
3788 lt_cv_deplibs_check_method=pass_all
3791 hpux10.20* | hpux11*)
3792 lt_cv_file_magic_cmd=/usr/bin/file
3795 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3796 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3799 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]'
3800 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3803 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3804 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3809 irix5* | irix6* | nonstopux*)
3811 *-32|*"-32 ") libmagic=32-bit;;
3812 *-n32|*"-n32 ") libmagic=N32;;
3813 *-64|*"-64 ") libmagic=64-bit;;
3814 *) libmagic=never-match;;
3816 lt_cv_deplibs_check_method=pass_all
3819 # This must be Linux ELF.
3822 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3823 lt_cv_deplibs_check_method=pass_all ;;
3825 # glibc up to 2.1.1 does not perform some relocations on ARM
3826 # this will be overridden with pass_all, but let us keep it just in case
3827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3829 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3830 lt_cv_deplibs_check_method=pass_all
3834 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3843 lt_cv_file_magic_cmd=/usr/bin/file
3844 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3848 lt_cv_deplibs_check_method=unknown
3852 lt_cv_file_magic_cmd=/usr/bin/file
3853 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3857 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3861 osf3* | osf4* | osf5*)
3862 lt_cv_deplibs_check_method=pass_all
3866 lt_cv_deplibs_check_method=pass_all
3870 lt_cv_deplibs_check_method=pass_all
3873 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3874 case $host_vendor in
3876 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]'
3877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3880 lt_cv_deplibs_check_method=pass_all
3883 lt_cv_file_magic_cmd='/bin/file'
3884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3887 lt_cv_file_magic_cmd='/bin/file'
3888 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3889 lt_cv_file_magic_test_file=/lib/libc.so
3892 lt_cv_deplibs_check_method=pass_all
3897 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3898 lt_cv_deplibs_check_method=pass_all
3903 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3904 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3905 file_magic_cmd=$lt_cv_file_magic_cmd
3906 deplibs_check_method=$lt_cv_deplibs_check_method
3907 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3912 # If no C compiler was specified, use CC.
3915 # Allow CC to be a program name with arguments.
3919 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3920 if test "${enable_libtool_lock+set}" = set; then
3921 enableval="$enable_libtool_lock"
3924 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3926 # Some flags need to be propagated to the compiler or linker for good
3930 # Find out which ABI we are using.
3931 echo 'int i;' > conftest.$ac_ext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933 (eval $ac_compile) 2>&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; then
3937 case `/usr/bin/file conftest.$ac_objext` in
3949 # Find out which ABI we are using.
3950 echo '#line 3950 "configure"' > conftest.$ac_ext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; then
3956 if test "$lt_cv_prog_gnu_ld" = yes; then
3957 case `/usr/bin/file conftest.$ac_objext` in
3959 LD="${LD-ld} -melf32bsmip"
3962 LD="${LD-ld} -melf32bmipn32"
3965 LD="${LD-ld} -melf64bmip"
3969 case `/usr/bin/file conftest.$ac_objext` in
3985 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3986 # Find out which ABI we are using.
3987 echo 'int i;' > conftest.$ac_ext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; then
3993 case "`/usr/bin/file conftest.o`" in
3997 LD="${LD-ld} -m elf_i386"
3999 ppc64-*linux*|powerpc64-*linux*)
4000 LD="${LD-ld} -m elf32ppclinux"
4003 LD="${LD-ld} -m elf_s390"
4006 LD="${LD-ld} -m elf32_sparc"
4013 LD="${LD-ld} -m elf_x86_64"
4015 ppc*-*linux*|powerpc*-*linux*)
4016 LD="${LD-ld} -m elf64ppc"
4019 LD="${LD-ld} -m elf64_s390"
4022 LD="${LD-ld} -m elf64_sparc"
4032 # Test if the compiler is 64bit
4033 echo 'int i;' > conftest.$ac_ext
4034 lt_cv_cc_64bit_output=no
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; then
4040 case `/usr/bin/file conftest.$ac_objext` in
4042 lt_cv_cc_64bit_output=yes
4050 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4051 SAVE_CFLAGS="$CFLAGS"
4052 CFLAGS="$CFLAGS -belf"
4053 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4054 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4055 if test "${lt_cv_cc_needs_belf+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4079 rm -f conftest.$ac_objext conftest$ac_exeext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4081 (eval $ac_link) 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try='test -z "$ac_c_werror_flag"
4089 || test ! -s conftest.err'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest$ac_exeext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 lt_cv_cc_needs_belf=yes
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 lt_cv_cc_needs_belf=no
4108 rm -f conftest.err conftest.$ac_objext \
4109 conftest$ac_exeext conftest.$ac_ext
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4118 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4119 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4120 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4121 CFLAGS="$SAVE_CFLAGS"
4127 need_locks="$enable_libtool_lock"
4131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4133 if test "${ac_cv_header_stdc+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag"
4165 || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_header_stdc=yes
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_cv_header_stdc=no
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 if test $ac_cv_header_stdc = yes; then
4187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 $EGREP "memchr" >/dev/null 2>&1; then
4201 ac_cv_header_stdc=no
4207 if test $ac_cv_header_stdc = yes; then
4208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219 $EGREP "free" >/dev/null 2>&1; then
4222 ac_cv_header_stdc=no
4228 if test $ac_cv_header_stdc = yes; then
4229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4230 if test "$cross_compiling" = yes; then
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4240 #if ((' ' & 0x0FF) == 0x020)
4241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4244 # define ISLOWER(c) \
4245 (('a' <= (c) && (c) <= 'i') \
4246 || ('j' <= (c) && (c) <= 'r') \
4247 || ('s' <= (c) && (c) <= 'z'))
4248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256 for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i))
4258 || toupper (i) != TOUPPER (i))
4263 rm -f conftest$ac_exeext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4265 (eval $ac_link) 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4276 echo "$as_me: program exited with status $ac_status" >&5
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4281 ac_cv_header_stdc=no
4283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4289 if test $ac_cv_header_stdc = yes; then
4291 cat >>confdefs.h <<\_ACEOF
4292 #define STDC_HEADERS 1
4297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4308 inttypes.h stdint.h unistd.h
4310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4311 echo "$as_me:$LINENO: checking for $ac_header" >&5
4312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4324 #include <$ac_header>
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 eval "$as_ac_Header=yes"
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 eval "$as_ac_Header=no"
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4360 cat >>confdefs.h <<_ACEOF
4361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4370 for ac_header in dlfcn.h
4372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374 echo "$as_me:$LINENO: checking for $ac_header" >&5
4375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4382 # Is the header compilable?
4383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4385 cat >conftest.$ac_ext <<_ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4391 $ac_includes_default
4392 #include <$ac_header>
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>conftest.er1
4398 grep -v '^ *+' conftest.er1 >conftest.err
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } &&
4403 { ac_try='test -z "$ac_c_werror_flag"
4404 || test ! -s conftest.err'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; } &&
4410 { ac_try='test -s conftest.$ac_objext'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; }; then
4416 ac_header_compiler=yes
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_header_compiler=no
4423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4425 echo "${ECHO_T}$ac_header_compiler" >&6
4427 # Is the header present?
4428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 #include <$ac_header>
4438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4441 grep -v '^ *+' conftest.er1 >conftest.err
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } >/dev/null; then
4446 if test -s conftest.err; then
4447 ac_cpp_err=$ac_c_preproc_warn_flag
4448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4455 if test -z "$ac_cpp_err"; then
4456 ac_header_preproc=yes
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4461 ac_header_preproc=no
4463 rm -f conftest.err conftest.$ac_ext
4464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4465 echo "${ECHO_T}$ac_header_preproc" >&6
4467 # So? What about this header?
4468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4474 ac_header_preproc=yes
4477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4491 ## ------------------------------------------ ##
4492 ## Report this to the AC_PACKAGE_NAME lists. ##
4493 ## ------------------------------------------ ##
4496 sed "s/^/$as_me: WARNING: /" >&2
4499 echo "$as_me:$LINENO: checking for $ac_header" >&5
4500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 eval "$as_ac_Header=\$ac_header_preproc"
4506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4511 cat >>confdefs.h <<_ACEOF
4512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4520 ac_cpp='$CXXCPP $CPPFLAGS'
4521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4524 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4525 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4526 if test -z "$CXXCPP"; then
4527 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 # Double quotes because CXXCPP needs to be expanded
4531 for CXXCPP in "$CXX -E" "/lib/cpp"
4534 for ac_cxx_preproc_warn_flag in '' yes
4536 # Use a header file that comes with gcc, so configuring glibc
4537 # with a fresh cross-compiler works.
4538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4539 # <limits.h> exists even on freestanding compilers.
4540 # On the NeXT, cc -E runs the code through the compiler's parser,
4541 # not just through cpp. "Syntax error" is here to catch this case.
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 # include <limits.h>
4551 # include <assert.h>
4555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4558 grep -v '^ *+' conftest.er1 >conftest.err
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } >/dev/null; then
4563 if test -s conftest.err; then
4564 ac_cpp_err=$ac_cxx_preproc_warn_flag
4565 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4572 if test -z "$ac_cpp_err"; then
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 # Broken: fails on valid input.
4581 rm -f conftest.err conftest.$ac_ext
4583 # OK, works on sane cases. Now check whether non-existent headers
4584 # can be detected and how.
4585 cat >conftest.$ac_ext <<_ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 #include <ac_nonexistent.h>
4593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4596 grep -v '^ *+' conftest.er1 >conftest.err
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } >/dev/null; then
4601 if test -s conftest.err; then
4602 ac_cpp_err=$ac_cxx_preproc_warn_flag
4603 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4610 if test -z "$ac_cpp_err"; then
4611 # Broken: success on invalid input.
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 # Passes both tests.
4621 rm -f conftest.err conftest.$ac_ext
4624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4625 rm -f conftest.err conftest.$ac_ext
4626 if $ac_preproc_ok; then
4631 ac_cv_prog_CXXCPP=$CXXCPP
4634 CXXCPP=$ac_cv_prog_CXXCPP
4636 ac_cv_prog_CXXCPP=$CXXCPP
4638 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4639 echo "${ECHO_T}$CXXCPP" >&6
4641 for ac_cxx_preproc_warn_flag in '' yes
4643 # Use a header file that comes with gcc, so configuring glibc
4644 # with a fresh cross-compiler works.
4645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4646 # <limits.h> exists even on freestanding compilers.
4647 # On the NeXT, cc -E runs the code through the compiler's parser,
4648 # not just through cpp. "Syntax error" is here to catch this case.
4649 cat >conftest.$ac_ext <<_ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4656 # include <limits.h>
4658 # include <assert.h>
4662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } >/dev/null; then
4670 if test -s conftest.err; then
4671 ac_cpp_err=$ac_cxx_preproc_warn_flag
4672 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4679 if test -z "$ac_cpp_err"; then
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685 # Broken: fails on valid input.
4688 rm -f conftest.err conftest.$ac_ext
4690 # OK, works on sane cases. Now check whether non-existent headers
4691 # can be detected and how.
4692 cat >conftest.$ac_ext <<_ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 #include <ac_nonexistent.h>
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4703 grep -v '^ *+' conftest.er1 >conftest.err
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev/null; then
4708 if test -s conftest.err; then
4709 ac_cpp_err=$ac_cxx_preproc_warn_flag
4710 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4717 if test -z "$ac_cpp_err"; then
4718 # Broken: success on invalid input.
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4724 # Passes both tests.
4728 rm -f conftest.err conftest.$ac_ext
4731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4732 rm -f conftest.err conftest.$ac_ext
4733 if $ac_preproc_ok; then
4736 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4739 See \`config.log' for more details." >&2;}
4740 { (exit 1); exit 1; }; }
4744 ac_cpp='$CXXCPP $CPPFLAGS'
4745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4751 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4752 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4754 if test -n "$ac_tool_prefix"; then
4755 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4759 echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4761 if test "${ac_cv_prog_F77+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 if test -n "$F77"; then
4765 ac_cv_prog_F77="$F77" # Let the user override the test.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 if test -n "$F77"; then
4785 echo "$as_me:$LINENO: result: $F77" >&5
4786 echo "${ECHO_T}$F77" >&6
4788 echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4792 test -n "$F77" && break
4795 if test -z "$F77"; then
4797 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4799 # Extract the first word of "$ac_prog", so it can be a program name with args.
4800 set dummy $ac_prog; ac_word=$2
4801 echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 if test -n "$ac_ct_F77"; then
4807 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_ac_ct_F77="$ac_prog"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4826 if test -n "$ac_ct_F77"; then
4827 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4828 echo "${ECHO_T}$ac_ct_F77" >&6
4830 echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4834 test -n "$ac_ct_F77" && break
4841 # Provide some information about the compiler.
4842 echo "$as_me:4842:" \
4843 "checking for Fortran 77 compiler version" >&5
4844 ac_compiler=`set X $ac_compile; echo $2`
4845 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4846 (eval $ac_compiler --version </dev/null >&5) 2>&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }
4850 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4851 (eval $ac_compiler -v </dev/null >&5) 2>&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }
4855 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4856 (eval $ac_compiler -V </dev/null >&5) 2>&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }
4862 # If we don't use `.F' as extension, the preprocessor is not run on the
4863 # input file. (Note that this only needs to work for GNU compilers.)
4866 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4867 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4868 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 cat >conftest.$ac_ext <<_ACEOF
4879 rm -f conftest.$ac_objext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>conftest.er1
4883 grep -v '^ *+' conftest.er1 >conftest.err
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_f77_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4909 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4912 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4913 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4915 ac_test_FFLAGS=${FFLAGS+set}
4916 ac_save_FFLAGS=$FFLAGS
4918 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4919 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4920 if test "${ac_cv_prog_f77_g+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 cat >conftest.$ac_ext <<_ACEOF
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931 (eval $ac_compile) 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -z "$ac_f77_werror_flag"
4939 || test ! -s conftest.err'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; } &&
4945 { ac_try='test -s conftest.$ac_objext'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4951 ac_cv_prog_f77_g=yes
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4962 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4963 if test "$ac_test_FFLAGS" = set; then
4964 FFLAGS=$ac_save_FFLAGS
4965 elif test $ac_cv_prog_f77_g = yes; then
4966 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4972 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4979 G77=`test $ac_compiler_gnu = yes && echo yes`
4981 ac_cpp='$CPP $CPPFLAGS'
4982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4990 # find the maximum length of command line arguments
4991 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4992 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4993 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 # On DJGPP, this test can blow up pretty badly due to problems in libc
5002 # (any single argument exceeding 2000 bytes causes a buffer overrun
5003 # during glob expansion). Even if it were fixed, the result of this
5004 # check would be larger than it should be.
5005 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5009 # Under GNU Hurd, this test is not required because there is
5010 # no limit to the length of command line arguments.
5011 # Libtool will interpret -1 as no limit whatsoever
5012 lt_cv_sys_max_cmd_len=-1;
5016 # On Win9x/ME, this test blows up -- it succeeds, but takes
5017 # about 5 minutes as the teststring grows exponentially.
5018 # Worse, since 9x/ME are not pre-emptively multitasking,
5019 # you end up with a "frozen" computer, even though with patience
5020 # the test eventually succeeds (with a max line length of 256k).
5021 # Instead, let's just punt: use the minimum linelength reported by
5022 # all of the supported platforms: 8192 (on NT/2K/XP).
5023 lt_cv_sys_max_cmd_len=8192;
5027 # On AmigaOS with pdksh, this test takes hours, literally.
5028 # So we just punt and use a minimum line length of 8192.
5029 lt_cv_sys_max_cmd_len=8192;
5033 # If test is not a shell built-in, we'll probably end up computing a
5034 # maximum length that is only half of the actual maximum length, but
5036 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5037 = "XX$testring") >/dev/null 2>&1 &&
5038 new_result=`expr "X$testring" : ".*" 2>&1` &&
5039 lt_cv_sys_max_cmd_len=$new_result &&
5040 test $i != 17 # 1/2 MB should be enough
5043 testring=$testring$testring
5046 # Add a significant safety factor because C++ compilers can tack on massive
5047 # amounts of additional arguments before passing them to the linker.
5048 # It appears as though 1/2 is a usable value.
5049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5055 if test -n $lt_cv_sys_max_cmd_len ; then
5056 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5057 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5059 echo "$as_me:$LINENO: result: none" >&5
5060 echo "${ECHO_T}none" >&6
5066 # Check for command to grab the raw symbol name followed by C symbol from nm.
5067 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5068 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5069 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 # These are sane defaults that work on at least a few old systems.
5074 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5076 # Character class describing NM global symbol codes.
5077 symcode='[BCDEGRST]'
5079 # Regexp to match symbols that can be accessed directly from C.
5080 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5082 # Transform the above into a raw symbol and a C symbol.
5083 symxfrm='\1 \2\3 \3'
5085 # Transform an extracted symbol line into a proper C declaration
5086 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5088 # Transform an extracted symbol line into symbol name and symbol address
5089 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'"
5091 # Define system-specific variables.
5096 cygwin* | mingw* | pw32*)
5097 symcode='[ABCDGISTW]'
5099 hpux*) # Its linker distinguishes data from code symbols
5100 if test "$host_cpu" = ia64; then
5101 symcode='[ABCDEGRST]'
5103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5104 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'"
5107 symcode='[BCDEGRST]'
5110 symcode='[BCDEGQRST]'
5120 # Handle CRLF in mingw tool chain
5124 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5128 # If we're using GNU nm, then use its standard symbol codes.
5129 case `$NM -V 2>&1` in
5130 *GNU* | *'with BFD'*)
5131 symcode='[ABCDGIRSTW]' ;;
5134 # Try without a prefix undercore, then with it.
5135 for ac_symprfx in "" "_"; do
5137 # Write the raw and C identifiers.
5138 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5140 # Check to see that the pipe works correctly.
5144 cat > conftest.$ac_ext <<EOF
5149 void nm_test_func(){}
5153 int main(){nm_test_var='a';nm_test_func();return(0);}
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; then
5161 # Now try to grab the symbols.
5163 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5164 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } && test -s "$nlist"; then
5168 # Try sorting and uniquifying the output.
5169 if sort "$nlist" | uniq > "$nlist"T; then
5170 mv -f "$nlist"T "$nlist"
5175 # Make sure that we snagged all the symbols we need.
5176 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5177 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5178 cat <<EOF > conftest.$ac_ext
5184 # Now generate the symbol file.
5185 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5187 cat <<EOF >> conftest.$ac_ext
5188 #if defined (__STDC__) && __STDC__
5189 # define lt_ptr_t void *
5191 # define lt_ptr_t char *
5195 /* The mapping between symbol names and symbols. */
5200 lt_preloaded_symbols[] =
5203 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5204 cat <<\EOF >> conftest.$ac_ext
5212 # Now try linking the two files.
5213 mv conftest.$ac_objext conftstm.$ac_objext
5214 lt_save_LIBS="$LIBS"
5215 lt_save_CFLAGS="$CFLAGS"
5216 LIBS="conftstm.$ac_objext"
5217 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5219 (eval $ac_link) 2>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5225 LIBS="$lt_save_LIBS"
5226 CFLAGS="$lt_save_CFLAGS"
5228 echo "cannot find nm_test_func in $nlist" >&5
5231 echo "cannot find nm_test_var in $nlist" >&5
5234 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5237 echo "$progname: failed program was:" >&5
5238 cat conftest.$ac_ext >&5
5240 rm -f conftest* conftst*
5242 # Do not use the global_symbol_pipe unless it works.
5243 if test "$pipe_works" = yes; then
5246 lt_cv_sys_global_symbol_pipe=
5252 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5253 lt_cv_sys_global_symbol_to_cdecl=
5255 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5256 echo "$as_me:$LINENO: result: failed" >&5
5257 echo "${ECHO_T}failed" >&6
5259 echo "$as_me:$LINENO: result: ok" >&5
5260 echo "${ECHO_T}ok" >&6
5263 echo "$as_me:$LINENO: checking for objdir" >&5
5264 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5265 if test "${lt_cv_objdir+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 rm -f .libs 2>/dev/null
5269 mkdir .libs 2>/dev/null
5270 if test -d .libs; then
5273 # MS-DOS does not allow filenames that begin with a dot.
5276 rmdir .libs 2>/dev/null
5278 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5279 echo "${ECHO_T}$lt_cv_objdir" >&6
5280 objdir=$lt_cv_objdir
5288 # AIX sometimes has problems with the GCC collect2 program. For some
5289 # reason, if we set the COLLECT_NAMES environment variable, the problems
5290 # vanish in a puff of smoke.
5291 if test "X${COLLECT_NAMES+set}" != Xset; then
5293 export COLLECT_NAMES
5298 # Sed substitution that helps us do robust quoting. It backslashifies
5299 # metacharacters that are still active within double-quoted strings.
5300 Xsed='sed -e s/^X//'
5301 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5303 # Same as above, but do not quote variable references.
5304 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5306 # Sed substitution to delay expansion of an escaped shell variable in a
5307 # double_quote_subst'ed string.
5308 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5310 # Sed substitution to avoid accidental globbing in evaled expressions
5311 no_glob_subst='s/\*/\\\*/g'
5317 default_ofile=libtool
5318 can_build_shared=yes
5320 # All known linkers require a `.a' archive for static linking (except M$VC,
5321 # which needs '.lib').
5323 ltmain="$ac_aux_dir/ltmain.sh"
5324 ofile="$default_ofile"
5325 with_gnu_ld="$lt_cv_prog_gnu_ld"
5327 if test -n "$ac_tool_prefix"; then
5328 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5329 set dummy ${ac_tool_prefix}ar; ac_word=$2
5330 echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5332 if test "${ac_cv_prog_AR+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 if test -n "$AR"; then
5336 ac_cv_prog_AR="$AR" # Let the user override the test.
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_AR="${ac_tool_prefix}ar"
5346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 if test -n "$AR"; then
5356 echo "$as_me:$LINENO: result: $AR" >&5
5357 echo "${ECHO_T}$AR" >&6
5359 echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6
5364 if test -z "$ac_cv_prog_AR"; then
5366 # Extract the first word of "ar", so it can be a program name with args.
5367 set dummy ar; ac_word=$2
5368 echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 if test -n "$ac_ct_AR"; then
5374 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_prog_ac_ct_AR="ar"
5384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5393 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5394 if test -n "$ac_ct_AR"; then
5395 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5396 echo "${ECHO_T}$ac_ct_AR" >&6
5398 echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5407 if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5410 echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5412 if test "${ac_cv_prog_RANLIB+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 if test -n "$RANLIB"; then
5416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 RANLIB=$ac_cv_prog_RANLIB
5435 if test -n "$RANLIB"; then
5436 echo "$as_me:$LINENO: result: $RANLIB" >&5
5437 echo "${ECHO_T}$RANLIB" >&6
5439 echo "$as_me:$LINENO: result: no" >&5
5440 echo "${ECHO_T}no" >&6
5444 if test -z "$ac_cv_prog_RANLIB"; then
5445 ac_ct_RANLIB=$RANLIB
5446 # Extract the first word of "ranlib", so it can be a program name with args.
5447 set dummy ranlib; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 if test -n "$ac_ct_RANLIB"; then
5454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_ac_ct_RANLIB="ranlib"
5464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5474 if test -n "$ac_ct_RANLIB"; then
5475 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5476 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5478 echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5482 RANLIB=$ac_ct_RANLIB
5484 RANLIB="$ac_cv_prog_RANLIB"
5487 if test -n "$ac_tool_prefix"; then
5488 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5489 set dummy ${ac_tool_prefix}strip; ac_word=$2
5490 echo "$as_me:$LINENO: checking for $ac_word" >&5
5491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5492 if test "${ac_cv_prog_STRIP+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 if test -n "$STRIP"; then
5496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 STRIP=$ac_cv_prog_STRIP
5515 if test -n "$STRIP"; then
5516 echo "$as_me:$LINENO: result: $STRIP" >&5
5517 echo "${ECHO_T}$STRIP" >&6
5519 echo "$as_me:$LINENO: result: no" >&5
5520 echo "${ECHO_T}no" >&6
5524 if test -z "$ac_cv_prog_STRIP"; then
5526 # Extract the first word of "strip", so it can be a program name with args.
5527 set dummy strip; ac_word=$2
5528 echo "$as_me:$LINENO: checking for $ac_word" >&5
5529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 if test -n "$ac_ct_STRIP"; then
5534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_ac_ct_STRIP="strip"
5544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5554 if test -n "$ac_ct_STRIP"; then
5555 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5556 echo "${ECHO_T}$ac_ct_STRIP" >&6
5558 echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6
5564 STRIP="$ac_cv_prog_STRIP"
5569 old_CFLAGS="$CFLAGS"
5571 # Set sane defaults for various variables
5572 test -z "$AR" && AR=ar
5573 test -z "$AR_FLAGS" && AR_FLAGS=cru
5574 test -z "$AS" && AS=as
5575 test -z "$CC" && CC=cc
5576 test -z "$LTCC" && LTCC=$CC
5577 test -z "$DLLTOOL" && DLLTOOL=dlltool
5578 test -z "$LD" && LD=ld
5579 test -z "$LN_S" && LN_S="ln -s"
5580 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5581 test -z "$NM" && NM=nm
5582 test -z "$SED" && SED=sed
5583 test -z "$OBJDUMP" && OBJDUMP=objdump
5584 test -z "$RANLIB" && RANLIB=:
5585 test -z "$STRIP" && STRIP=:
5586 test -z "$ac_objext" && ac_objext=o
5588 # Determine commands to create old-style static archives.
5589 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5590 old_postinstall_cmds='chmod 644 $oldlib'
5591 old_postuninstall_cmds=
5593 if test -n "$RANLIB"; then
5596 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5599 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5602 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5605 # Only perform the check for file, if the check method requires it
5606 case $deplibs_check_method in
5608 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5609 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5610 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5611 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5619 lt_save_MAGIC_CMD="$MAGIC_CMD"
5620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5622 for ac_dir in $ac_dummy; do
5624 test -z "$ac_dir" && ac_dir=.
5625 if test -f $ac_dir/${ac_tool_prefix}file; then
5626 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5627 if test -n "$file_magic_test_file"; then
5628 case $deplibs_check_method in
5630 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5633 $EGREP "$file_magic_regex" > /dev/null; then
5638 *** Warning: the command libtool uses to detect shared libraries,
5639 *** $file_magic_cmd, produces output that libtool cannot recognize.
5640 *** The result is that libtool may fail to recognize shared libraries
5641 *** as such. This will affect the creation of libtool libraries that
5642 *** depend on shared libraries, but programs linked with such libtool
5643 *** libraries will work regardless of this problem. Nevertheless, you
5644 *** may want to report the problem to your system manager and/or to
5645 *** bug-libtool@gnu.org
5655 MAGIC_CMD="$lt_save_MAGIC_CMD"
5660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5661 if test -n "$MAGIC_CMD"; then
5662 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5663 echo "${ECHO_T}$MAGIC_CMD" >&6
5665 echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6
5669 if test -z "$lt_cv_path_MAGIC_CMD"; then
5670 if test -n "$ac_tool_prefix"; then
5671 echo "$as_me:$LINENO: checking for file" >&5
5672 echo $ECHO_N "checking for file... $ECHO_C" >&6
5673 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5681 lt_save_MAGIC_CMD="$MAGIC_CMD"
5682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5683 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5684 for ac_dir in $ac_dummy; do
5686 test -z "$ac_dir" && ac_dir=.
5687 if test -f $ac_dir/file; then
5688 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5689 if test -n "$file_magic_test_file"; then
5690 case $deplibs_check_method in
5692 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5694 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5695 $EGREP "$file_magic_regex" > /dev/null; then
5700 *** Warning: the command libtool uses to detect shared libraries,
5701 *** $file_magic_cmd, produces output that libtool cannot recognize.
5702 *** The result is that libtool may fail to recognize shared libraries
5703 *** as such. This will affect the creation of libtool libraries that
5704 *** depend on shared libraries, but programs linked with such libtool
5705 *** libraries will work regardless of this problem. Nevertheless, you
5706 *** may want to report the problem to your system manager and/or to
5707 *** bug-libtool@gnu.org
5717 MAGIC_CMD="$lt_save_MAGIC_CMD"
5722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5723 if test -n "$MAGIC_CMD"; then
5724 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5725 echo "${ECHO_T}$MAGIC_CMD" >&6
5727 echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5743 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5744 if test "${enable_libtool_lock+set}" = set; then
5745 enableval="$enable_libtool_lock"
5748 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5751 # Check whether --with-pic or --without-pic was given.
5752 if test "${with_pic+set}" = set; then
5758 test -z "$pic_mode" && pic_mode=default
5760 # Use C for the default configuration in the libtool script
5764 ac_cpp='$CPP $CPPFLAGS'
5765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5770 # Source file extension for C test sources.
5773 # Object file extension for compiled C test sources.
5777 # Code to be used in simple compile tests
5778 lt_simple_compile_test_code="int some_variable = 0;\n"
5780 # Code to be used in simple link tests
5781 lt_simple_link_test_code='int main(){return(0);}\n'
5784 # If no C compiler was specified, use CC.
5787 # Allow CC to be a program name with arguments.
5792 # Check for any special shared library compilation flags.
5795 if test "$GCC" = no; then
5798 lt_prog_cc_shlib='-belf'
5802 if test -n "$lt_prog_cc_shlib"; then
5803 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5804 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5805 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5807 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5808 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5809 lt_cv_prog_cc_can_build_shared=no
5815 # Check to make sure the static flag actually works.
5817 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5818 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5819 if test "${lt_prog_compiler_static_works+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 lt_prog_compiler_static_works=no
5823 save_LDFLAGS="$LDFLAGS"
5824 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5825 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5827 # The compiler can only warn and ignore the option if not recognized
5828 # So say no if there are warnings
5829 if test -s conftest.err; then
5830 # Append any errors to the config.log.
5831 cat conftest.err 1>&5
5833 lt_prog_compiler_static_works=yes
5837 LDFLAGS="$save_LDFLAGS"
5840 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5841 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5843 if test x"$lt_prog_compiler_static_works" = xyes; then
5846 lt_prog_compiler_static=
5852 lt_prog_compiler_no_builtin_flag=
5854 if test "$GCC" = yes; then
5855 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5858 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5859 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5860 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 lt_cv_prog_compiler_rtti_exceptions=no
5864 ac_outfile=conftest.$ac_objext
5865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5866 lt_compiler_flag="-fno-rtti -fno-exceptions"
5867 # Insert the option either (1) after the last *FLAGS variable, or
5868 # (2) before a word containing "conftest.", or (3) at the end.
5869 # Note that $ac_compile itself does not contain backslashes and begins
5870 # with a dollar sign (not a hyphen), so the echo should work correctly.
5871 # The option is referenced via a variable to avoid confusing sed.
5872 lt_compile=`echo "$ac_compile" | $SED \
5873 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5875 -e 's:$: $lt_compiler_flag:'`
5876 (eval echo "\"\$as_me:5876: $lt_compile\"" >&5)
5877 (eval "$lt_compile" 2>conftest.err)
5879 cat conftest.err >&5
5880 echo "$as_me:5880: \$? = $ac_status" >&5
5881 if (exit $ac_status) && test -s "$ac_outfile"; then
5882 # The compiler can only warn and ignore the option if not recognized
5883 # So say no if there are warnings
5884 if test ! -s conftest.err; then
5885 lt_cv_prog_compiler_rtti_exceptions=yes
5891 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5892 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5894 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5895 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5902 lt_prog_compiler_wl=
5903 lt_prog_compiler_pic=
5904 lt_prog_compiler_static=
5906 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5907 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5909 if test "$GCC" = yes; then
5910 lt_prog_compiler_wl='-Wl,'
5911 lt_prog_compiler_static='-static'
5915 # All AIX code is PIC.
5916 if test "$host_cpu" = ia64; then
5917 # AIX 5 now supports IA64 processor
5918 lt_prog_compiler_static='-Bstatic'
5923 # FIXME: we need at least 68020 code to build shared libraries, but
5924 # adding the `-m68020' flag to GCC prevents building anything better,
5926 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5929 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5930 # PIC is the default for these OSes.
5933 mingw* | pw32* | os2*)
5934 # This hack is so that the source file can tell whether it is being
5935 # built for inclusion in a dll (and should export symbols for example).
5936 lt_prog_compiler_pic='-DDLL_EXPORT'
5939 darwin* | rhapsody*)
5940 # PIC is the default on this platform
5941 # Common symbols not allowed in MH_DYLIB files
5942 lt_prog_compiler_pic='-fno-common'
5946 # Just because we use GCC doesn't mean we suddenly get shared libraries
5947 # on systems that don't support them.
5948 lt_prog_compiler_can_build_shared=no
5953 if test -d /usr/nec; then
5954 lt_prog_compiler_pic=-Kconform_pic
5959 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5966 lt_prog_compiler_pic='-fPIC'
5972 lt_prog_compiler_pic='-fPIC'
5976 # PORTME Check for flag to pass linker flags through the system compiler.
5979 lt_prog_compiler_wl='-Wl,'
5980 if test "$host_cpu" = ia64; then
5981 # AIX 5 now supports IA64 processor
5982 lt_prog_compiler_static='-Bstatic'
5984 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5988 mingw* | pw32* | os2*)
5989 # This hack is so that the source file can tell whether it is being
5990 # built for inclusion in a dll (and should export symbols for example).
5991 lt_prog_compiler_pic='-DDLL_EXPORT'
5994 hpux9* | hpux10* | hpux11*)
5995 lt_prog_compiler_wl='-Wl,'
5996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6003 lt_prog_compiler_pic='+Z'
6006 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6007 lt_prog_compiler_static='${wl}-a ${wl}archive'
6010 irix5* | irix6* | nonstopux*)
6011 lt_prog_compiler_wl='-Wl,'
6012 # PIC (with -KPIC) is the default.
6013 lt_prog_compiler_static='-non_shared'
6017 lt_prog_compiler_pic='-KPIC'
6018 lt_prog_compiler_static='-Bstatic'
6024 lt_prog_compiler_wl='-Wl,'
6025 lt_prog_compiler_pic='-KPIC'
6026 lt_prog_compiler_static='-static'
6029 lt_prog_compiler_wl='-Wl,'
6030 # All Alpha code is PIC.
6031 lt_prog_compiler_static='-non_shared'
6036 osf3* | osf4* | osf5*)
6037 lt_prog_compiler_wl='-Wl,'
6038 # All OSF/1 code is PIC.
6039 lt_prog_compiler_static='-non_shared'
6043 lt_prog_compiler_pic='-Kpic'
6044 lt_prog_compiler_static='-dn'
6048 lt_prog_compiler_wl='-Wl,'
6049 lt_prog_compiler_pic='-KPIC'
6050 lt_prog_compiler_static='-Bstatic'
6054 lt_prog_compiler_wl='-Qoption ld '
6055 lt_prog_compiler_pic='-PIC'
6056 lt_prog_compiler_static='-Bstatic'
6059 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6060 lt_prog_compiler_wl='-Wl,'
6061 lt_prog_compiler_pic='-KPIC'
6062 lt_prog_compiler_static='-Bstatic'
6066 if test -d /usr/nec ;then
6067 lt_prog_compiler_pic='-Kconform_pic'
6068 lt_prog_compiler_static='-Bstatic'
6073 lt_prog_compiler_pic='-pic'
6074 lt_prog_compiler_static='-Bstatic'
6078 lt_prog_compiler_can_build_shared=no
6083 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6084 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6087 # Check to make sure the PIC flag actually works.
6089 if test -n "$lt_prog_compiler_pic"; then
6091 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6092 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6093 if test "${lt_prog_compiler_pic_works+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 lt_prog_compiler_pic_works=no
6097 ac_outfile=conftest.$ac_objext
6098 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6099 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6100 # Insert the option either (1) after the last *FLAGS variable, or
6101 # (2) before a word containing "conftest.", or (3) at the end.
6102 # Note that $ac_compile itself does not contain backslashes and begins
6103 # with a dollar sign (not a hyphen), so the echo should work correctly.
6104 # The option is referenced via a variable to avoid confusing sed.
6105 lt_compile=`echo "$ac_compile" | $SED \
6106 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6108 -e 's:$: $lt_compiler_flag:'`
6109 (eval echo "\"\$as_me:6109: $lt_compile\"" >&5)
6110 (eval "$lt_compile" 2>conftest.err)
6112 cat conftest.err >&5
6113 echo "$as_me:6113: \$? = $ac_status" >&5
6114 if (exit $ac_status) && test -s "$ac_outfile"; then
6115 # The compiler can only warn and ignore the option if not recognized
6116 # So say no if there are warnings
6117 if test ! -s conftest.err; then
6118 lt_prog_compiler_pic_works=yes
6124 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6125 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6127 if test x"$lt_prog_compiler_pic_works" = xyes; then
6128 case $lt_prog_compiler_pic in
6130 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6133 lt_prog_compiler_pic=
6134 lt_prog_compiler_can_build_shared=no
6139 # For platforms which do not support PIC, -DPIC is meaningless:
6141 lt_prog_compiler_pic=
6144 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6148 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6149 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6150 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 lt_cv_prog_compiler_c_o=no
6154 $rm -r conftest 2>/dev/null
6158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6160 lt_compiler_flag="-o out/conftest2.$ac_objext"
6161 # Insert the option either (1) after the last *FLAGS variable, or
6162 # (2) before a word containing "conftest.", or (3) at the end.
6163 # Note that $ac_compile itself does not contain backslashes and begins
6164 # with a dollar sign (not a hyphen), so the echo should work correctly.
6165 lt_compile=`echo "$ac_compile" | $SED \
6166 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6168 -e 's:$: $lt_compiler_flag:'`
6169 (eval echo "\"\$as_me:6169: $lt_compile\"" >&5)
6170 (eval "$lt_compile" 2>out/conftest.err)
6172 cat out/conftest.err >&5
6173 echo "$as_me:6173: \$? = $ac_status" >&5
6174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6176 # The compiler can only warn and ignore the option if not recognized
6177 # So say no if there are warnings
6178 if test ! -s out/conftest.err; then
6179 lt_cv_prog_compiler_c_o=yes
6184 # SGI C++ compiler will create directory out/ii_files/ for
6185 # template instantiation
6186 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6187 $rm out/* && rmdir out
6193 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6194 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6197 hard_links="nottested"
6198 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6199 # do not overwrite the value of need_locks provided by the user
6200 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6206 ln conftest.a conftest.b 2>&5 || hard_links=no
6207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6208 echo "$as_me:$LINENO: result: $hard_links" >&5
6209 echo "${ECHO_T}$hard_links" >&6
6210 if test "$hard_links" = no; then
6211 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6219 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6223 allow_undefined_flag=
6224 enable_shared_with_static_runtimes=no
6226 archive_expsym_cmds=
6227 old_archive_From_new_cmds=
6228 old_archive_from_expsyms_cmds=
6229 export_dynamic_flag_spec=
6230 whole_archive_flag_spec=
6231 thread_safe_flag_spec=
6232 hardcode_libdir_flag_spec=
6233 hardcode_libdir_flag_spec_ld=
6234 hardcode_libdir_separator=
6237 hardcode_shlibpath_var=unsupported
6238 link_all_deplibs=unknown
6239 hardcode_automatic=no
6242 always_export_symbols=no
6243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6244 # include_expsyms should be a list of space-separated symbols to be *always*
6245 # included in the symbol list
6247 # exclude_expsyms can be an extended regexp of symbols to exclude
6248 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6249 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6250 # as well as any symbol that contains `d'.
6251 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6252 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6253 # platforms (ab)use it in PIC code, but their linkers get confused if
6254 # the symbol is explicitly referenced. Since portable code cannot
6255 # rely on this symbol name, it's probably fine to never include it in
6256 # preloaded symbol tables.
6257 extract_expsyms_cmds=
6260 cygwin* | mingw* | pw32*)
6261 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6262 # When not using gcc, we currently assume that we are using
6263 # Microsoft Visual C++.
6264 if test "$GCC" != yes; then
6274 if test "$with_gnu_ld" = yes; then
6275 # If archive_cmds runs LD, not CC, wlarc should be empty
6278 # See if GNU ld supports shared libraries.
6280 aix3* | aix4* | aix5*)
6281 # On AIX/PPC, the GNU linker is very broken
6282 if test "$host_cpu" != ia64; then
6286 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6287 *** to be unable to reliably create shared libraries on AIX.
6288 *** Therefore, libtool is disabling shared libraries support. If you
6289 *** really care for shared libraries, you may want to modify your PATH
6290 *** so that a non-GNU linker is found, and then restart.
6297 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)'
6298 hardcode_libdir_flag_spec='-L$libdir'
6299 hardcode_minus_L=yes
6301 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6302 # that the semantics of dynamic libraries on AmigaOS, at least up
6303 # to version 4, is to share data among multiple programs linked
6304 # with the same dynamic library. Since this doesn't match the
6305 # behavior of shared libraries on other platforms, we can't use
6311 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6312 allow_undefined_flag=unsupported
6313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6314 # support --undefined. This deserves some investigation. FIXME
6315 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6321 cygwin* | mingw* | pw32*)
6322 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6323 # as there is no search path for DLLs.
6324 hardcode_libdir_flag_spec='-L$libdir'
6325 allow_undefined_flag=unsupported
6326 always_export_symbols=no
6327 enable_shared_with_static_runtimes=yes
6328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6330 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6332 # If the export-symbols file already is a .def file (1st line
6333 # is EXPORTS), use it as is; otherwise, prepend...
6334 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6335 cp $export_symbols $output_objdir/$soname.def;
6337 echo EXPORTS > $output_objdir/$soname.def;
6338 cat $export_symbols >> $output_objdir/$soname.def;
6340 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6348 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6357 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6362 *** create shared libraries on Solaris systems. Therefore, libtool
6363 *** is disabling shared libraries support. We urge you to upgrade GNU
6364 *** binutils to release 2.9.1 or newer. Another option is to modify
6365 *** your PATH or compiler configuration so that the native linker is
6366 *** used, and then restart.
6369 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6378 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6381 hardcode_shlibpath_var=no
6385 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6386 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6387 archive_cmds="$tmp_archive_cmds"
6388 supports_anon_versioning=no
6389 case `$LD -v 2>/dev/null` in
6390 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6391 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6392 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6393 *\ 2.11.*) ;; # other 2.11 versions
6394 *) supports_anon_versioning=yes ;;
6396 if test $supports_anon_versioning = yes; then
6397 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6398 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6399 $echo "local: *; };" >> $output_objdir/$libname.ver~
6400 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6402 archive_expsym_cmds="$tmp_archive_cmds"
6410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6419 if test "$ld_shlibs" = yes; then
6420 runpath_var=LD_RUN_PATH
6421 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6422 export_dynamic_flag_spec='${wl}--export-dynamic'
6423 # ancient GNU ld didn't support --whole-archive et. al.
6424 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6425 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6427 whole_archive_flag_spec=
6431 # PORTME fill in a description of your system's linker (not GNU ld)
6434 allow_undefined_flag=unsupported
6435 always_export_symbols=yes
6436 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'
6437 # Note: this linker hardcodes the directories in LIBPATH if there
6438 # are no directories specified by -L.
6439 hardcode_minus_L=yes
6440 if test "$GCC" = yes && test -z "$link_static_flag"; then
6441 # Neither direct hardcoding nor static linking is supported with a
6443 hardcode_direct=unsupported
6448 if test "$host_cpu" = ia64; then
6449 # On IA64, the linker does run time linking by default, so we don't
6450 # have to do anything special.
6451 aix_use_runtimelinking=no
6452 exp_sym_flag='-Bexport'
6455 # If we're using GNU nm, then we don't want the "-C" option.
6456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6457 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6458 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'
6460 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'
6462 aix_use_runtimelinking=no
6464 # Test if we are trying to use run time linking or normal
6465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6466 # need to do runtime linking.
6467 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6468 for ld_flag in $LDFLAGS; do
6469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6470 aix_use_runtimelinking=yes
6476 exp_sym_flag='-bexport'
6477 no_entry_flag='-bnoentry'
6480 # When large executables or shared objects are built, AIX ld can
6481 # have problems creating the table of contents. If linking a library
6482 # or program results in "error TOC overflow" add -mminimal-toc to
6483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6488 hardcode_libdir_separator=':'
6489 link_all_deplibs=yes
6491 if test "$GCC" = yes; then
6492 case $host_os in aix4.012|aix4.012.*)
6493 # We only want to do this on AIX 4.2 and lower, the check
6494 # below for broken collect2 doesn't work under 4.3+
6495 collect2name=`${CC} -print-prog-name=collect2`
6496 if test -f "$collect2name" && \
6497 strings "$collect2name" | grep resolve_lib_name >/dev/null
6499 # We have reworked collect2
6502 # We have old collect2
6503 hardcode_direct=unsupported
6504 # It fails to find uninstalled libraries when the uninstalled
6505 # path is not listed in the libpath. Setting hardcode_minus_L
6506 # to unsupported forces relinking
6507 hardcode_minus_L=yes
6508 hardcode_libdir_flag_spec='-L$libdir'
6509 hardcode_libdir_separator=
6512 shared_flag='-shared'
6515 if test "$host_cpu" = ia64; then
6516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6517 # chokes on -Wl,-G. The following line is correct:
6520 if test "$aix_use_runtimelinking" = yes; then
6521 shared_flag='${wl}-G'
6523 shared_flag='${wl}-bM:SRE'
6528 # It seems that -bexpall does not export symbols beginning with
6529 # underscore (_), so it is better to generate a list of symbols to export.
6530 always_export_symbols=yes
6531 if test "$aix_use_runtimelinking" = yes; then
6532 # Warning - without using the other runtime loading flags (-brtl),
6533 # -berok will link without error, but may produce a broken library.
6534 allow_undefined_flag='-berok'
6535 # Determine the default libpath from the value encoded in an empty executable.
6536 cat >conftest.$ac_ext <<_ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>conftest.er1
6555 grep -v '^ *+' conftest.er1 >conftest.err
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -z "$ac_c_werror_flag"
6561 || test ! -s conftest.err'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6576 # Check for a 64-bit object if we didn't find anything.
6577 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; }
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6584 rm -f conftest.err conftest.$ac_objext \
6585 conftest$ac_exeext conftest.$ac_ext
6586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6589 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"
6591 if test "$host_cpu" = ia64; then
6592 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6593 allow_undefined_flag="-z nodefs"
6594 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"
6596 # Determine the default libpath from the value encoded in an empty executable.
6597 cat >conftest.$ac_ext <<_ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6612 rm -f conftest.$ac_objext conftest$ac_exeext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614 (eval $ac_link) 2>conftest.er1
6616 grep -v '^ *+' conftest.er1 >conftest.err
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try='test -z "$ac_c_werror_flag"
6622 || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6637 # Check for a 64-bit object if we didn't find anything.
6638 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; }
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6645 rm -f conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6649 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6650 # Warning - without using the other run time loading flags,
6651 # -berok will link without error, but may produce a broken library.
6652 no_undefined_flag=' ${wl}-bernotok'
6653 allow_undefined_flag=' ${wl}-berok'
6654 # -bexpall does not export symbols beginning with underscore (_)
6655 always_export_symbols=yes
6656 # Exported symbols can be pulled into shared objects from archives
6657 whole_archive_flag_spec=' '
6658 archive_cmds_need_lc=yes
6659 # This is similar to how AIX traditionally builds it's shared libraries.
6660 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'
6666 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)'
6667 hardcode_libdir_flag_spec='-L$libdir'
6668 hardcode_minus_L=yes
6669 # see comment about different semantics on the GNU ld section
6674 export_dynamic_flag_spec=-rdynamic
6677 cygwin* | mingw* | pw32*)
6678 # When not using gcc, we currently assume that we are using
6679 # Microsoft Visual C++.
6680 # hardcode_libdir_flag_spec is actually meaningless, as there is
6681 # no search path for DLLs.
6682 hardcode_libdir_flag_spec=' '
6683 allow_undefined_flag=unsupported
6684 # Tell ltmain to make .lib files, not .a files.
6686 # Tell ltmain to make .dll files, not .so files.
6688 # FIXME: Setting linknames here is a bad hack.
6689 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6690 # The linker will automatically build a .lib file if we build a DLL.
6691 old_archive_From_new_cmds='true'
6692 # FIXME: Should let the user specify the lib program.
6693 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6694 fix_srcfile_path='`cygpath -w "$srcfile"`'
6695 enable_shared_with_static_runtimes=yes
6698 darwin* | rhapsody*)
6699 if test "$GXX" = yes ; then
6700 archive_cmds_need_lc=no
6702 rhapsody* | darwin1.[012])
6703 allow_undefined_flag='-undefined suppress'
6706 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6707 allow_undefined_flag='-flat_namespace -undefined suppress'
6709 case ${MACOSX_DEPLOYMENT_TARGET} in
6711 allow_undefined_flag='-flat_namespace -undefined suppress'
6714 allow_undefined_flag='-undefined dynamic_lookup'
6720 lt_int_apple_cc_single_mod=no
6721 output_verbose_link_cmd='echo'
6722 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6723 lt_int_apple_cc_single_mod=yes
6725 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6726 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6728 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'
6730 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6732 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6733 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}'
6735 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}'
6737 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}'
6739 hardcode_automatic=yes
6740 hardcode_shlibpath_var=unsupported
6741 whole_archive_flag_spec='-all_load $convenience'
6742 link_all_deplibs=yes
6749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6750 hardcode_libdir_flag_spec='-L$libdir'
6751 hardcode_shlibpath_var=no
6758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6759 # support. Future versions do this automatically, but an explicit c++rt0.o
6760 # does not break anything, and helps significantly (at the cost of a little
6763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6764 hardcode_libdir_flag_spec='-R$libdir'
6766 hardcode_shlibpath_var=no
6769 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6773 hardcode_minus_L=yes
6774 hardcode_shlibpath_var=no
6777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6778 freebsd* | kfreebsd*-gnu)
6779 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6780 hardcode_libdir_flag_spec='-R$libdir'
6782 hardcode_shlibpath_var=no
6786 if test "$GCC" = yes; then
6787 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'
6789 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'
6791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6792 hardcode_libdir_separator=:
6795 # hardcode_minus_L: Not really in the search PATH,
6796 # but as the default location of the library.
6797 hardcode_minus_L=yes
6798 export_dynamic_flag_spec='${wl}-E'
6802 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6805 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6808 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6814 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6821 if test "$with_gnu_ld" = no; then
6824 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6825 hardcode_libdir_flag_spec_ld='+b $libdir'
6826 hardcode_libdir_separator=:
6828 hardcode_shlibpath_var=no
6831 hardcode_libdir_flag_spec='-L$libdir'
6833 hardcode_shlibpath_var=no
6835 # hardcode_minus_L: Not really in the search PATH,
6836 # but as the default location of the library.
6837 hardcode_minus_L=yes
6840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6841 hardcode_libdir_separator=:
6843 export_dynamic_flag_spec='${wl}-E'
6845 # hardcode_minus_L: Not really in the search PATH,
6846 # but as the default location of the library.
6847 hardcode_minus_L=yes
6853 irix5* | irix6* | nonstopux*)
6854 if test "$GCC" = yes; then
6855 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'
6857 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'
6858 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6861 hardcode_libdir_separator=:
6862 link_all_deplibs=yes
6866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6869 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6871 hardcode_libdir_flag_spec='-R$libdir'
6873 hardcode_shlibpath_var=no
6877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6880 hardcode_libdir_separator=:
6881 hardcode_shlibpath_var=no
6886 hardcode_shlibpath_var=no
6887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6890 export_dynamic_flag_spec='${wl}-E'
6893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6895 hardcode_libdir_flag_spec='-R$libdir'
6898 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6906 hardcode_libdir_flag_spec='-L$libdir'
6907 hardcode_minus_L=yes
6908 allow_undefined_flag=unsupported
6909 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'
6910 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6914 if test "$GCC" = yes; then
6915 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6916 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'
6918 allow_undefined_flag=' -expect_unresolved \*'
6919 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'
6921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6922 hardcode_libdir_separator=:
6925 osf4* | osf5*) # as osf3* with the addition of -msym flag
6926 if test "$GCC" = yes; then
6927 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6928 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'
6929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6931 allow_undefined_flag=' -expect_unresolved \*'
6932 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'
6933 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6934 $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'
6936 # Both c and cxx compiler support -rpath directly
6937 hardcode_libdir_flag_spec='-rpath $libdir'
6939 hardcode_libdir_separator=:
6943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6944 hardcode_shlibpath_var=no
6945 export_dynamic_flag_spec='${wl}-Bexport'
6946 runpath_var=LD_RUN_PATH
6947 hardcode_runpath_var=yes
6951 no_undefined_flag=' -z text'
6952 if test "$GCC" = yes; then
6953 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6954 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6955 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6957 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6958 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6961 hardcode_libdir_flag_spec='-R$libdir'
6962 hardcode_shlibpath_var=no
6964 solaris2.[0-5] | solaris2.[0-5].*) ;;
6965 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6966 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6968 link_all_deplibs=yes
6972 if test "x$host_vendor" = xsequent; then
6973 # Use $CC to link under sequent, because it throws in some extra .o
6974 # files that make .init and .fini sections work.
6975 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6977 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6979 hardcode_libdir_flag_spec='-L$libdir'
6981 hardcode_minus_L=yes
6982 hardcode_shlibpath_var=no
6986 case $host_vendor in
6988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6989 hardcode_direct=yes # is this really true???
6992 ## LD is ld it makes a PLAMLIB
6993 ## CC just makes a GrossModule.
6994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6995 reload_cmds='$CC -r -o $output$reload_objs'
6999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7000 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7003 runpath_var='LD_RUN_PATH'
7004 hardcode_shlibpath_var=no
7008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7009 hardcode_shlibpath_var=no
7010 export_dynamic_flag_spec='-Bexport'
7014 if test -d /usr/nec; then
7015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7016 hardcode_shlibpath_var=no
7017 runpath_var=LD_RUN_PATH
7018 hardcode_runpath_var=yes
7024 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7027 hardcode_shlibpath_var=no
7028 hardcode_runpath_var=yes
7029 runpath_var=LD_RUN_PATH
7032 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7033 no_undefined_flag='${wl}-z ${wl}text'
7034 if test "$GCC" = yes; then
7035 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7037 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7039 runpath_var='LD_RUN_PATH'
7040 hardcode_shlibpath_var=no
7044 no_undefined_flag=' -z text'
7045 # $CC -shared without GNU ld will not create a library from C++
7046 # object files and a static libstdc++, better avoid it by now
7047 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7048 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7049 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7050 hardcode_libdir_flag_spec=
7051 hardcode_shlibpath_var=no
7052 runpath_var='LD_RUN_PATH'
7056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7057 hardcode_libdir_flag_spec='-L$libdir'
7058 hardcode_shlibpath_var=no
7067 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7068 echo "${ECHO_T}$ld_shlibs" >&6
7069 test "$ld_shlibs" = no && can_build_shared=no
7071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7072 if test "$GCC" = yes; then
7073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7077 # Do we need to explicitly link libc?
7079 case "x$archive_cmds_need_lc" in
7081 # Assume -lc should be added
7082 archive_cmds_need_lc=yes
7084 if test "$enable_shared" = yes && test "$GCC" = yes; then
7085 case $archive_cmds in
7087 # FIXME: we may have to deal with multi-command sequences.
7090 # Test whether the compiler implicitly links with -lc since on some
7091 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7092 # to ld, don't add -lc before -lgcc.
7093 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7094 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099 (eval $ac_compile) 2>&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } 2>conftest.err; then
7105 libobjs=conftest.$ac_objext
7107 wl=$lt_prog_compiler_wl
7113 lt_save_allow_undefined_flag=$allow_undefined_flag
7114 allow_undefined_flag=
7115 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7116 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }
7121 archive_cmds_need_lc=no
7123 archive_cmds_need_lc=yes
7125 allow_undefined_flag=$lt_save_allow_undefined_flag
7127 cat conftest.err 1>&5
7130 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7131 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7138 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7139 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7141 libname_spec='lib$name'
7149 shlibpath_overrides_runpath=unknown
7151 dynamic_linker="$host_os ld.so"
7152 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7153 if test "$GCC" = yes; then
7154 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7155 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7156 # if the path contains ";" then we assume it to be the separator
7157 # otherwise default to the standard path separator (i.e. ":") - it is
7158 # assumed that no part of a normal pathname contains ";" but that should
7159 # okay in the real world where ";" in dirpaths is itself problematic.
7160 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7165 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7167 need_lib_prefix=unknown
7168 hardcode_into_libs=no
7170 # when you set need_version to no, make sure it does not cause -set_version
7171 # flags to be left without arguments
7172 need_version=unknown
7177 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7178 shlibpath_var=LIBPATH
7180 # AIX 3 has no versioning support, so we append a major version to the name.
7181 soname_spec='${libname}${release}${shared_ext}$major'
7188 hardcode_into_libs=yes
7189 if test "$host_cpu" = ia64; then
7190 # AIX 5 supports IA64
7191 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7192 shlibpath_var=LD_LIBRARY_PATH
7194 # With GCC up to 2.95.x, collect2 would create an import file
7195 # for dependence libraries. The import file would start with
7196 # the line `#! .'. This would cause the generated library to
7197 # depend on `.', always an invalid library. This was fixed in
7198 # development snapshots of GCC prior to 3.0.
7200 aix4 | aix4.[01] | aix4.[01].*)
7201 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7203 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7210 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7211 # soname into executable. Probably we can add versioning support to
7212 # collect2, so additional links can be useful in future.
7213 if test "$aix_use_runtimelinking" = yes; then
7214 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7215 # instead of lib<name>.a to let people know that these are not
7216 # typical AIX shared libraries.
7217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7219 # We preserve .a as extension for shared libraries through AIX4.2
7220 # and later when we are not doing run time linking.
7221 library_names_spec='${libname}${release}.a $libname.a'
7222 soname_spec='${libname}${release}${shared_ext}$major'
7224 shlibpath_var=LIBPATH
7229 library_names_spec='$libname.ixlibrary $libname.a'
7230 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7231 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'
7235 library_names_spec='${libname}${shared_ext}'
7236 dynamic_linker="$host_os ld.so"
7237 shlibpath_var=LIBRARY_PATH
7243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7244 soname_spec='${libname}${release}${shared_ext}$major'
7245 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7246 shlibpath_var=LD_LIBRARY_PATH
7247 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7248 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7249 # the default ld.so.conf also contains /usr/contrib/lib and
7250 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7251 # libtool to hard-code these into programs
7254 cygwin* | mingw* | pw32*)
7255 version_type=windows
7260 case $GCC,$host_os in
7261 yes,cygwin* | yes,mingw* | yes,pw32*)
7262 library_names_spec='$libname.dll.a'
7263 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7264 postinstall_cmds='base_file=`basename \${file}`~
7265 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7266 dldir=$destdir/`dirname \$dlpath`~
7267 test -d \$dldir || mkdir -p \$dldir~
7268 $install_prog $dir/$dlname \$dldir/$dlname'
7269 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7270 dlpath=$dir/\$dldll~
7272 shlibpath_overrides_runpath=yes
7276 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7277 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7278 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7281 # MinGW DLLs use traditional 'lib' prefix
7282 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7283 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7284 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7285 # It is most probably a Windows format PATH printed by
7286 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7287 # path with ; separators, and with drive letters. We can handle the
7288 # drive letters (cygwin fileutils understands them), so leave them,
7289 # especially as we might pass files found there to a mingw objdump,
7290 # which wouldn't understand a cygwinified path. Ahh.
7291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7293 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7297 # pw32 DLLs use 'pw' prefix rather than 'lib'
7298 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7304 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7306 supports_anon_versioning=no
7307 case `$LD -v 2>/dev/null` in
7308 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7311 *\ 2.11.*) ;; # other 2.11 versions
7312 *) supports_anon_versioning=yes ;;
7314 if test $supports_anon_versioning = yes; then
7315 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7317 $echo "local: *; };" >> $output_objdir/$libname.ver~
7318 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7320 $archive_expsym_cmds="$archive_cmds"
7328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7331 dynamic_linker='Win32 ld.exe'
7332 # FIXME: first we should search . and the directory the executable is in
7336 darwin* | rhapsody*)
7337 dynamic_linker="$host_os dyld"
7341 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7342 soname_spec='${libname}${release}${major}$shared_ext'
7343 shlibpath_overrides_runpath=yes
7344 shlibpath_var=DYLD_LIBRARY_PATH
7345 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7346 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7347 if test "$GCC" = yes; then
7348 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"`
7350 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7352 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7360 soname_spec='${libname}${release}${shared_ext}$major'
7361 shlibpath_var=LD_LIBRARY_PATH
7372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7373 soname_spec='${libname}${release}${shared_ext}$major'
7374 shlibpath_var=LD_LIBRARY_PATH
7375 shlibpath_overrides_runpath=no
7376 hardcode_into_libs=yes
7377 dynamic_linker='GNU ld.so'
7381 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7382 version_type=freebsd-$objformat
7383 case $version_type in
7385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7394 shlibpath_var=LD_LIBRARY_PATH
7397 shlibpath_overrides_runpath=yes
7399 freebsd3.01* | freebsdelf3.01*)
7400 shlibpath_overrides_runpath=yes
7401 hardcode_into_libs=yes
7404 shlibpath_overrides_runpath=no
7405 hardcode_into_libs=yes
7414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7415 soname_spec='${libname}${release}${shared_ext}$major'
7416 shlibpath_var=LD_LIBRARY_PATH
7417 hardcode_into_libs=yes
7420 hpux9* | hpux10* | hpux11*)
7421 # Give a soname corresponding to the major version so that dld.sl refuses to
7422 # link against other versions.
7429 hardcode_into_libs=yes
7430 dynamic_linker="$host_os dld.so"
7431 shlibpath_var=LD_LIBRARY_PATH
7432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7434 soname_spec='${libname}${release}${shared_ext}$major'
7435 if test "X$HPUX_IA64_MODE" = X32; then
7436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7444 hardcode_into_libs=yes
7445 dynamic_linker="$host_os dld.sl"
7446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7449 soname_spec='${libname}${release}${shared_ext}$major'
7450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7455 dynamic_linker="$host_os dld.sl"
7456 shlibpath_var=SHLIB_PATH
7457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7459 soname_spec='${libname}${release}${shared_ext}$major'
7462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7463 postinstall_cmds='chmod 555 $lib'
7466 irix5* | irix6* | nonstopux*)
7468 nonstopux*) version_type=nonstopux ;;
7470 if test "$lt_cv_prog_gnu_ld" = yes; then
7478 soname_spec='${libname}${release}${shared_ext}$major'
7479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7481 irix5* | nonstopux*)
7485 case $LD in # libtool.m4 will add one of these switches to LD
7486 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7487 libsuff= shlibsuff= libmagic=32-bit;;
7488 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7489 libsuff=32 shlibsuff=N32 libmagic=N32;;
7490 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7491 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7492 *) libsuff= shlibsuff= libmagic=never-match;;
7496 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7497 shlibpath_overrides_runpath=no
7498 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7499 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7500 hardcode_into_libs=yes
7503 # No shared lib support for Linux oldld, aout, or coff.
7504 linux*oldld* | linux*aout* | linux*coff*)
7508 # This must be Linux ELF.
7513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7514 soname_spec='${libname}${release}${shared_ext}$major'
7515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7516 shlibpath_var=LD_LIBRARY_PATH
7517 shlibpath_overrides_runpath=no
7518 # This implies no fast_install, which is unacceptable.
7519 # Some rework will be needed to allow for fast_install
7520 # before this can be enabled.
7521 hardcode_into_libs=yes
7523 # Append ld.so.conf contents to the search path
7524 if test -f /etc/ld.so.conf; then
7525 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7526 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7529 case $host_cpu:$lt_cv_cc_64bit_output in
7530 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7531 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7532 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7536 # We used to test for /lib/ld.so.1 and disable shared libraries on
7537 # powerpc, because MkLinux only supported shared libraries with the
7538 # GNU dynamic linker. Since this was broken with cross compilers,
7539 # most powerpc-linux boxes support dynamic linking these days and
7540 # people can always --disable-shared, the test was removed, and we
7541 # assume the GNU/Linux dynamic linker is in use.
7542 dynamic_linker='GNU/Linux ld.so'
7544 # Find out which ABI we are using (multilib Linux x86_64 hack).
7548 echo '#line 7548 "configure"' > conftest.$ac_ext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550 (eval $ac_compile) 2>&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; then
7554 case `/usr/bin/file conftest.$ac_objext` in
7565 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7566 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7574 soname_spec='${libname}${release}${shared_ext}$major'
7575 shlibpath_var=LD_LIBRARY_PATH
7576 shlibpath_overrides_runpath=no
7577 hardcode_into_libs=yes
7578 dynamic_linker='GNU ld.so'
7585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7588 dynamic_linker='NetBSD (a.out) ld.so'
7590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7591 soname_spec='${libname}${release}${shared_ext}$major'
7592 dynamic_linker='NetBSD ld.elf_so'
7594 shlibpath_var=LD_LIBRARY_PATH
7595 shlibpath_overrides_runpath=yes
7596 hardcode_into_libs=yes
7601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7602 shlibpath_var=LD_LIBRARY_PATH
7603 shlibpath_overrides_runpath=yes
7610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7611 soname_spec='${libname}${release}${shared_ext}$major'
7612 shlibpath_var=LD_LIBRARY_PATH
7613 shlibpath_overrides_runpath=yes
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7622 shlibpath_var=LD_LIBRARY_PATH
7623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7625 openbsd2.[89] | openbsd2.[89].*)
7626 shlibpath_overrides_runpath=no
7629 shlibpath_overrides_runpath=yes
7633 shlibpath_overrides_runpath=yes
7638 libname_spec='$name'
7641 library_names_spec='$libname${shared_ext} $libname.a'
7642 dynamic_linker='OS/2 ld.exe'
7643 shlibpath_var=LIBPATH
7646 osf3* | osf4* | osf5*)
7650 soname_spec='${libname}${release}${shared_ext}$major'
7651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7652 shlibpath_var=LD_LIBRARY_PATH
7653 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7654 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7659 soname_spec='${libname}${release}${shared_ext}$major'
7660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7661 shlibpath_var=LD_LIBRARY_PATH
7668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
7670 shlibpath_var=LD_LIBRARY_PATH
7671 shlibpath_overrides_runpath=yes
7672 hardcode_into_libs=yes
7673 # ldd complains unless libraries are executable
7674 postinstall_cmds='chmod +x $lib'
7679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7681 shlibpath_var=LD_LIBRARY_PATH
7682 shlibpath_overrides_runpath=yes
7683 if test "$with_gnu_ld" = yes; then
7689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7692 soname_spec='${libname}${release}${shared_ext}$major'
7693 shlibpath_var=LD_LIBRARY_PATH
7694 case $host_vendor in
7696 shlibpath_overrides_runpath=no
7698 export_dynamic_flag_spec='${wl}-Blargedynsym'
7699 runpath_var=LD_RUN_PATH
7707 shlibpath_overrides_runpath=no
7708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7714 if test -d /usr/nec ;then
7716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7717 soname_spec='$libname${shared_ext}.$major'
7718 shlibpath_var=LD_LIBRARY_PATH
7724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7725 soname_spec='${libname}${release}${shared_ext}$major'
7726 shlibpath_var=LD_LIBRARY_PATH
7733 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7734 echo "${ECHO_T}$dynamic_linker" >&6
7735 test "$dynamic_linker" = no && can_build_shared=no
7737 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7738 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7740 if test -n "$hardcode_libdir_flag_spec" || \
7741 test -n "$runpath_var " || \
7742 test "X$hardcode_automatic"="Xyes" ; then
7744 # We can hardcode non-existant directories.
7745 if test "$hardcode_direct" != no &&
7746 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7747 # have to relink, otherwise we might link with an installed library
7748 # when we should be linking with a yet-to-be-installed one
7749 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7750 test "$hardcode_minus_L" != no; then
7751 # Linking always hardcodes the temporary library directory.
7752 hardcode_action=relink
7754 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7755 hardcode_action=immediate
7758 # We cannot hardcode anything, or else we can only hardcode existing
7760 hardcode_action=unsupported
7762 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7763 echo "${ECHO_T}$hardcode_action" >&6
7765 if test "$hardcode_action" = relink; then
7766 # Fast installation is not supported
7767 enable_fast_install=no
7768 elif test "$shlibpath_overrides_runpath" = yes ||
7769 test "$enable_shared" = no; then
7770 # Fast installation is not necessary
7771 enable_fast_install=needless
7776 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7777 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7778 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7779 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7780 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7781 echo "$as_me:$LINENO: result: yes" >&5
7782 echo "${ECHO_T}yes" >&6
7784 # FIXME - insert some real tests, host_os isn't really good enough
7787 if test -n "$STRIP" ; then
7788 striplib="$STRIP -x"
7789 echo "$as_me:$LINENO: result: yes" >&5
7790 echo "${ECHO_T}yes" >&6
7792 echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6
7797 echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6
7803 if test "x$enable_dlopen" != xyes; then
7804 enable_dlopen=unknown
7805 enable_dlopen_self=unknown
7806 enable_dlopen_self_static=unknown
7813 lt_cv_dlopen="load_add_on"
7815 lt_cv_dlopen_self=yes
7819 lt_cv_dlopen="LoadLibrary"
7824 lt_cv_dlopen="dlopen"
7829 # if libdl is installed we need to link against it
7830 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_check_lib_save_LIBS=$LIBS
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7844 /* Override any gcc2 internal prototype to avoid an error. */
7848 /* We use char because int might match the return type of a gcc2
7849 builtin and then its argument prototype would still apply. */
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7861 (eval $ac_link) 2>conftest.er1
7863 grep -v '^ *+' conftest.er1 >conftest.err
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_c_werror_flag"
7869 || test ! -s conftest.err'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 ac_cv_lib_dl_dlopen=yes
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 ac_cv_lib_dl_dlopen=no
7888 rm -f conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890 LIBS=$ac_check_lib_save_LIBS
7892 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7893 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7894 if test $ac_cv_lib_dl_dlopen = yes; then
7895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7900 lt_cv_dlopen_self=yes
7907 echo "$as_me:$LINENO: checking for shl_load" >&5
7908 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7909 if test "${ac_cv_func_shl_load+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 cat >conftest.$ac_ext <<_ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7918 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7920 #define shl_load innocuous_shl_load
7922 /* System header to define __stub macros and hopefully few prototypes,
7923 which can conflict with char shl_load (); below.
7924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7925 <limits.h> exists even on freestanding compilers. */
7928 # include <limits.h>
7930 # include <assert.h>
7935 /* Override any gcc2 internal prototype to avoid an error. */
7940 /* We use char because int might match the return type of a gcc2
7941 builtin and then its argument prototype would still apply. */
7943 /* The GNU C library defines this for functions which it implements
7944 to always fail with ENOSYS. Some functions are actually named
7945 something starting with __ and the normal name is an alias. */
7946 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7949 char (*f) () = shl_load;
7958 return f != shl_load;
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965 (eval $ac_link) 2>conftest.er1
7967 grep -v '^ *+' conftest.er1 >conftest.err
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -z "$ac_c_werror_flag"
7973 || test ! -s conftest.err'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_func_shl_load=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 ac_cv_func_shl_load=no
7992 rm -f conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7996 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7997 if test $ac_cv_func_shl_load = yes; then
7998 lt_cv_dlopen="shl_load"
8000 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8001 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8002 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 ac_check_lib_save_LIBS=$LIBS
8007 cat >conftest.$ac_ext <<_ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8014 /* Override any gcc2 internal prototype to avoid an error. */
8018 /* We use char because int might match the return type of a gcc2
8019 builtin and then its argument prototype would still apply. */
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8031 (eval $ac_link) 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -z "$ac_c_werror_flag"
8039 || test ! -s conftest.err'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_cv_lib_dld_shl_load=yes
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 ac_cv_lib_dld_shl_load=no
8058 rm -f conftest.err conftest.$ac_objext \
8059 conftest$ac_exeext conftest.$ac_ext
8060 LIBS=$ac_check_lib_save_LIBS
8062 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8063 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8064 if test $ac_cv_lib_dld_shl_load = yes; then
8065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8067 echo "$as_me:$LINENO: checking for dlopen" >&5
8068 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8069 if test "${ac_cv_func_dlopen+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8080 #define dlopen innocuous_dlopen
8082 /* System header to define __stub macros and hopefully few prototypes,
8083 which can conflict with char dlopen (); below.
8084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8085 <limits.h> exists even on freestanding compilers. */
8088 # include <limits.h>
8090 # include <assert.h>
8095 /* Override any gcc2 internal prototype to avoid an error. */
8100 /* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8103 /* The GNU C library defines this for functions which it implements
8104 to always fail with ENOSYS. Some functions are actually named
8105 something starting with __ and the normal name is an alias. */
8106 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8109 char (*f) () = dlopen;
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>conftest.er1
8127 grep -v '^ *+' conftest.er1 >conftest.err
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag"
8133 || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest$ac_exeext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 ac_cv_func_dlopen=yes
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 ac_cv_func_dlopen=no
8152 rm -f conftest.err conftest.$ac_objext \
8153 conftest$ac_exeext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8156 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8157 if test $ac_cv_func_dlopen = yes; then
8158 lt_cv_dlopen="dlopen"
8160 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8161 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8162 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 ac_check_lib_save_LIBS=$LIBS
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8174 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191 (eval $ac_link) 2>conftest.er1
8193 grep -v '^ *+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -z "$ac_c_werror_flag"
8199 || test ! -s conftest.err'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_lib_dl_dlopen=yes
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 ac_cv_lib_dl_dlopen=no
8218 rm -f conftest.err conftest.$ac_objext \
8219 conftest$ac_exeext conftest.$ac_ext
8220 LIBS=$ac_check_lib_save_LIBS
8222 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8223 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8224 if test $ac_cv_lib_dl_dlopen = yes; then
8225 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8227 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8228 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8229 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 ac_check_lib_save_LIBS=$LIBS
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8241 /* Override any gcc2 internal prototype to avoid an error. */
8245 /* We use char because int might match the return type of a gcc2
8246 builtin and then its argument prototype would still apply. */
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258 (eval $ac_link) 2>conftest.er1
8260 grep -v '^ *+' conftest.er1 >conftest.err
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -z "$ac_c_werror_flag"
8266 || test ! -s conftest.err'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try='test -s conftest$ac_exeext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_lib_svld_dlopen=yes
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 ac_cv_lib_svld_dlopen=no
8285 rm -f conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
8287 LIBS=$ac_check_lib_save_LIBS
8289 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8290 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8291 if test $ac_cv_lib_svld_dlopen = yes; then
8292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8294 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8295 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8296 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 ac_check_lib_save_LIBS=$LIBS
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8308 /* Override any gcc2 internal prototype to avoid an error. */
8312 /* We use char because int might match the return type of a gcc2
8313 builtin and then its argument prototype would still apply. */
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>conftest.er1
8327 grep -v '^ *+' conftest.er1 >conftest.err
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try='test -z "$ac_c_werror_flag"
8333 || test ! -s conftest.err'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try='test -s conftest$ac_exeext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 ac_cv_lib_dld_dld_link=yes
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8350 ac_cv_lib_dld_dld_link=no
8352 rm -f conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8354 LIBS=$ac_check_lib_save_LIBS
8356 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8357 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8358 if test $ac_cv_lib_dld_dld_link = yes; then
8359 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8380 if test "x$lt_cv_dlopen" != xno; then
8386 case $lt_cv_dlopen in
8388 save_CPPFLAGS="$CPPFLAGS"
8389 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8391 save_LDFLAGS="$LDFLAGS"
8392 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8395 LIBS="$lt_cv_dlopen_libs $LIBS"
8397 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8398 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8399 if test "${lt_cv_dlopen_self+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 if test "$cross_compiling" = yes; then :
8403 lt_cv_dlopen_self=cross
8405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8406 lt_status=$lt_dlunknown
8407 cat > conftest.$ac_ext <<EOF
8408 #line 8408 "configure"
8409 #include "confdefs.h"
8418 # define LT_DLGLOBAL RTLD_GLOBAL
8421 # define LT_DLGLOBAL DL_GLOBAL
8423 # define LT_DLGLOBAL 0
8427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8428 find out it does not work in some platform. */
8429 #ifndef LT_DLLAZY_OR_NOW
8431 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8434 # define LT_DLLAZY_OR_NOW DL_LAZY
8437 # define LT_DLLAZY_OR_NOW RTLD_NOW
8440 # define LT_DLLAZY_OR_NOW DL_NOW
8442 # define LT_DLLAZY_OR_NOW 0
8450 extern "C" void exit (int);
8453 void fnord() { int i=42;}
8456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8457 int status = $lt_dlunknown;
8461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8462 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8463 /* dlclose (self); */
8469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8470 (eval $ac_link) 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8474 (./conftest; exit; ) 2>/dev/null
8477 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8478 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8479 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8482 # compilation failed
8483 lt_cv_dlopen_self=no
8490 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8491 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8493 if test "x$lt_cv_dlopen_self" = xyes; then
8494 LDFLAGS="$LDFLAGS $link_static_flag"
8495 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8496 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8497 if test "${lt_cv_dlopen_self_static+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 if test "$cross_compiling" = yes; then :
8501 lt_cv_dlopen_self_static=cross
8503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8504 lt_status=$lt_dlunknown
8505 cat > conftest.$ac_ext <<EOF
8506 #line 8506 "configure"
8507 #include "confdefs.h"
8516 # define LT_DLGLOBAL RTLD_GLOBAL
8519 # define LT_DLGLOBAL DL_GLOBAL
8521 # define LT_DLGLOBAL 0
8525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8526 find out it does not work in some platform. */
8527 #ifndef LT_DLLAZY_OR_NOW
8529 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8532 # define LT_DLLAZY_OR_NOW DL_LAZY
8535 # define LT_DLLAZY_OR_NOW RTLD_NOW
8538 # define LT_DLLAZY_OR_NOW DL_NOW
8540 # define LT_DLLAZY_OR_NOW 0
8548 extern "C" void exit (int);
8551 void fnord() { int i=42;}
8554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8555 int status = $lt_dlunknown;
8559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8560 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8561 /* dlclose (self); */
8567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568 (eval $ac_link) 2>&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8572 (./conftest; exit; ) 2>/dev/null
8575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8577 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8580 # compilation failed
8581 lt_cv_dlopen_self_static=no
8588 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8589 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8592 CPPFLAGS="$save_CPPFLAGS"
8593 LDFLAGS="$save_LDFLAGS"
8598 case $lt_cv_dlopen_self in
8599 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8600 *) enable_dlopen_self=unknown ;;
8603 case $lt_cv_dlopen_self_static in
8604 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8605 *) enable_dlopen_self_static=unknown ;;
8610 # Report which librarie types wil actually be built
8611 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8612 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8613 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8614 echo "${ECHO_T}$can_build_shared" >&6
8616 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8617 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8618 test "$can_build_shared" = "no" && enable_shared=no
8620 # On AIX, shared libraries and static libraries use the same namespace, and
8621 # are all built from PIC.
8624 test "$enable_shared" = yes && enable_static=no
8625 if test -n "$RANLIB"; then
8626 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8627 postinstall_cmds='$RANLIB $lib'
8632 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8633 test "$enable_shared" = yes && enable_static=no
8636 darwin* | rhapsody*)
8637 if test "$GCC" = yes; then
8638 archive_cmds_need_lc=no
8640 rhapsody* | darwin1.[012])
8641 allow_undefined_flag='-undefined suppress'
8644 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8645 allow_undefined_flag='-flat_namespace -undefined suppress'
8647 case ${MACOSX_DEPLOYMENT_TARGET} in
8649 allow_undefined_flag='-flat_namespace -undefined suppress'
8652 allow_undefined_flag='-undefined dynamic_lookup'
8658 output_verbose_link_cmd='echo'
8659 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8660 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8661 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8662 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}'
8663 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}'
8665 hardcode_automatic=yes
8666 hardcode_shlibpath_var=unsupported
8667 whole_archive_flag_spec='-all_load $convenience'
8668 link_all_deplibs=yes
8674 echo "$as_me:$LINENO: result: $enable_shared" >&5
8675 echo "${ECHO_T}$enable_shared" >&6
8677 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8678 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8679 # Make sure either enable_shared or enable_static is yes.
8680 test "$enable_shared" = yes || enable_static=yes
8681 echo "$as_me:$LINENO: result: $enable_static" >&5
8682 echo "${ECHO_T}$enable_static" >&6
8684 # The else clause should only fire when bootstrapping the
8685 # libtool distribution, otherwise you forgot to ship ltmain.sh
8686 # with your package, and you will get complaints that there are
8687 # no rules to generate ltmain.sh.
8688 if test -f "$ltmain"; then
8689 # See if we are running on zsh, and set the options which allow our commands through
8690 # without removal of \ escapes.
8691 if test -n "${ZSH_VERSION+set}" ; then
8692 setopt NO_GLOB_SUBST
8694 # Now quote all the things that may contain metacharacters while being
8695 # careful not to overquote the AC_SUBSTed values. We take copies of the
8696 # variables and quote the copies for generation of the libtool script.
8697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8701 deplibs_check_method reload_flag reload_cmds need_locks \
8702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8703 lt_cv_sys_global_symbol_to_c_name_address \
8704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8705 old_postinstall_cmds old_postuninstall_cmds \
8709 lt_prog_compiler_wl \
8710 lt_prog_compiler_pic \
8711 lt_prog_compiler_static \
8712 lt_prog_compiler_no_builtin_flag \
8713 export_dynamic_flag_spec \
8714 thread_safe_flag_spec \
8715 whole_archive_flag_spec \
8716 enable_shared_with_static_runtimes \
8718 old_archive_from_new_cmds \
8723 compiler_lib_search_path \
8725 archive_expsym_cmds \
8727 postuninstall_cmds \
8728 old_archive_from_expsyms_cmds \
8729 allow_undefined_flag \
8731 export_symbols_cmds \
8732 hardcode_libdir_flag_spec \
8733 hardcode_libdir_flag_spec_ld \
8734 hardcode_libdir_separator \
8735 hardcode_automatic \
8737 module_expsym_cmds \
8738 lt_cv_prog_compiler_c_o \
8743 old_archive_cmds | \
8744 old_archive_from_new_cmds | \
8746 archive_expsym_cmds | \
8748 module_expsym_cmds | \
8749 old_archive_from_expsyms_cmds | \
8750 export_symbols_cmds | \
8751 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8752 postinstall_cmds | postuninstall_cmds | \
8753 old_postinstall_cmds | old_postuninstall_cmds | \
8754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8755 # Double-quote double-evaled strings.
8756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8765 *'\$0 --fallback-echo"')
8766 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8771 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8773 { echo "$as_me:$LINENO: creating $ofile" >&5
8774 echo "$as_me: creating $ofile" >&6;}
8776 cat <<__EOF__ >> "$cfgfile"
8779 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8780 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8781 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8783 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8784 # Free Software Foundation, Inc.
8786 # This file is part of GNU Libtool:
8787 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8789 # This program is free software; you can redistribute it and/or modify
8790 # it under the terms of the GNU General Public License as published by
8791 # the Free Software Foundation; either version 2 of the License, or
8792 # (at your option) any later version.
8794 # This program is distributed in the hope that it will be useful, but
8795 # WITHOUT ANY WARRANTY; without even the implied warranty of
8796 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8797 # General Public License for more details.
8799 # You should have received a copy of the GNU General Public License
8800 # along with this program; if not, write to the Free Software
8801 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8803 # As a special exception to the GNU General Public License, if you
8804 # distribute this file as part of a program that contains a
8805 # configuration script generated by Autoconf, you may include it under
8806 # the same distribution terms that you use for the rest of that program.
8808 # A sed program that does not truncate output.
8811 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8812 Xsed="$SED -e s/^X//"
8814 # The HP-UX ksh and POSIX shell print the target directory to stdout
8816 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8818 # The names of the tagged configurations supported by this script.
8821 # ### BEGIN LIBTOOL CONFIG
8823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8825 # Shell to use when invoking shell scripts.
8828 # Whether or not to build shared libraries.
8829 build_libtool_libs=$enable_shared
8831 # Whether or not to build static libraries.
8832 build_old_libs=$enable_static
8834 # Whether or not to add -lc for building shared libraries.
8835 build_libtool_need_lc=$archive_cmds_need_lc
8837 # Whether or not to disallow shared libs when runtime libs are static
8838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8840 # Whether or not to optimize for fast installation.
8841 fast_install=$enable_fast_install
8844 host_alias=$host_alias
8847 # An echo program that does not interpret backslashes.
8852 AR_FLAGS=$lt_AR_FLAGS
8857 # A language-specific compiler.
8860 # Is the compiler the GNU C compiler?
8866 # The linker used to build libraries.
8869 # Whether we need hard or soft links.
8872 # A BSD-compatible nm program.
8875 # A symbol stripping program
8878 # Used to examine libraries when file_magic_cmd begins "file"
8879 MAGIC_CMD=$MAGIC_CMD
8881 # Used on cygwin: DLL creation program.
8884 # Used on cygwin: object dumper.
8887 # Used on cygwin: assembler.
8890 # The name of the directory that contains temporary libtool files.
8893 # How to create reloadable object files.
8894 reload_flag=$lt_reload_flag
8895 reload_cmds=$lt_reload_cmds
8897 # How to pass a linker flag through the compiler.
8898 wl=$lt_lt_prog_compiler_wl
8900 # Object file suffix (normally "o").
8903 # Old archive suffix (normally "a").
8906 # Shared library suffix (normally ".so").
8909 # Executable file suffix (normally "").
8912 # Additional compiler flags for building library objects.
8913 pic_flag=$lt_lt_prog_compiler_pic
8916 # What is the maximum length of a command?
8917 max_cmd_len=$lt_cv_sys_max_cmd_len
8919 # Does compiler simultaneously support -c and -o options?
8920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8922 # Must we lock files when doing compilation ?
8923 need_locks=$lt_need_locks
8925 # Do we need the lib prefix for modules?
8926 need_lib_prefix=$need_lib_prefix
8928 # Do we need a version for libraries?
8929 need_version=$need_version
8931 # Whether dlopen is supported.
8932 dlopen_support=$enable_dlopen
8934 # Whether dlopen of programs is supported.
8935 dlopen_self=$enable_dlopen_self
8937 # Whether dlopen of statically linked programs is supported.
8938 dlopen_self_static=$enable_dlopen_self_static
8940 # Compiler flag to prevent dynamic linking.
8941 link_static_flag=$lt_lt_prog_compiler_static
8943 # Compiler flag to turn off builtin functions.
8944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8946 # Compiler flag to allow reflexive dlopens.
8947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8949 # Compiler flag to generate shared objects directly from archives.
8950 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8952 # Compiler flag to generate thread-safe objects.
8953 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8955 # Library versioning type.
8956 version_type=$version_type
8958 # Format of library name prefix.
8959 libname_spec=$lt_libname_spec
8961 # List of archive names. First name is the real one, the rest are links.
8962 # The last name is the one that the linker finds with -lNAME.
8963 library_names_spec=$lt_library_names_spec
8965 # The coded name of the library, if different from the real name.
8966 soname_spec=$lt_soname_spec
8968 # Commands used to build and install an old-style archive.
8970 old_archive_cmds=$lt_old_archive_cmds
8971 old_postinstall_cmds=$lt_old_postinstall_cmds
8972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8974 # Create an old-style archive from a shared archive.
8975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8977 # Create a temporary old-style archive to link instead of a shared archive.
8978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8980 # Commands used to build and install a shared archive.
8981 archive_cmds=$lt_archive_cmds
8982 archive_expsym_cmds=$lt_archive_expsym_cmds
8983 postinstall_cmds=$lt_postinstall_cmds
8984 postuninstall_cmds=$lt_postuninstall_cmds
8986 # Commands used to build a loadable module (assumed same as above if empty)
8987 module_cmds=$lt_module_cmds
8988 module_expsym_cmds=$lt_module_expsym_cmds
8990 # Commands to strip libraries.
8991 old_striplib=$lt_old_striplib
8992 striplib=$lt_striplib
8994 # Dependencies to place before the objects being linked to create a
8996 predep_objects=$lt_predep_objects
8998 # Dependencies to place after the objects being linked to create a
9000 postdep_objects=$lt_postdep_objects
9002 # Dependencies to place before the objects being linked to create a
9006 # Dependencies to place after the objects being linked to create a
9008 postdeps=$lt_postdeps
9010 # The library search path used internally by the compiler when linking
9012 compiler_lib_search_path=$lt_compiler_lib_search_path
9014 # Method to check whether dependent libraries are shared objects.
9015 deplibs_check_method=$lt_deplibs_check_method
9017 # Command to use when deplibs_check_method == file_magic.
9018 file_magic_cmd=$lt_file_magic_cmd
9020 # Flag that allows shared libraries with undefined symbols to be built.
9021 allow_undefined_flag=$lt_allow_undefined_flag
9023 # Flag that forces no undefined symbols.
9024 no_undefined_flag=$lt_no_undefined_flag
9026 # Commands used to finish a libtool library installation in a directory.
9027 finish_cmds=$lt_finish_cmds
9029 # Same as above, but a single script fragment to be evaled but not shown.
9030 finish_eval=$lt_finish_eval
9032 # Take the output of nm and produce a listing of raw symbols and C names.
9033 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9035 # Transform the output of nm in a proper C declaration
9036 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9038 # Transform the output of nm in a C name address pair
9039 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9041 # This is the shared library runtime path variable.
9042 runpath_var=$runpath_var
9044 # This is the shared library path variable.
9045 shlibpath_var=$shlibpath_var
9047 # Is shlibpath searched before the hard-coded library search path?
9048 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9050 # How to hardcode a shared library path into an executable.
9051 hardcode_action=$hardcode_action
9053 # Whether we should hardcode library paths into libraries.
9054 hardcode_into_libs=$hardcode_into_libs
9056 # Flag to hardcode \$libdir into a binary during linking.
9057 # This must work even if \$libdir does not exist.
9058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9060 # If ld is used when linking, flag to hardcode \$libdir into
9061 # a binary during linking. This must work even if \$libdir does
9063 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9065 # Whether we need a single -rpath flag with a separated argument.
9066 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9068 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9070 hardcode_direct=$hardcode_direct
9072 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9074 hardcode_minus_L=$hardcode_minus_L
9076 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9077 # the resulting binary.
9078 hardcode_shlibpath_var=$hardcode_shlibpath_var
9080 # Set to yes if building a shared library automatically hardcodes DIR into the library
9081 # and all subsequent libraries and executables linked against it.
9082 hardcode_automatic=$hardcode_automatic
9084 # Variables whose values should be saved in libtool wrapper scripts and
9085 # restored at relink time.
9086 variables_saved_for_relink="$variables_saved_for_relink"
9088 # Whether libtool must link a program against all its dependency libraries.
9089 link_all_deplibs=$link_all_deplibs
9091 # Compile-time system search path for libraries
9092 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9094 # Run-time system search path for libraries
9095 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9097 # Fix the shell variable \$srcfile for the compiler.
9098 fix_srcfile_path="$fix_srcfile_path"
9100 # Set to yes if exported symbols are required.
9101 always_export_symbols=$always_export_symbols
9103 # The commands to list exported symbols.
9104 export_symbols_cmds=$lt_export_symbols_cmds
9106 # The commands to extract the exported symbol list from a shared archive.
9107 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9109 # Symbols that should not be listed in the preloaded symbols.
9110 exclude_expsyms=$lt_exclude_expsyms
9112 # Symbols that must always be exported.
9113 include_expsyms=$lt_include_expsyms
9115 # ### END LIBTOOL CONFIG
9122 cat <<\EOF >> "$cfgfile"
9124 # AIX sometimes has problems with the GCC collect2 program. For some
9125 # reason, if we set the COLLECT_NAMES environment variable, the problems
9126 # vanish in a puff of smoke.
9127 if test "X${COLLECT_NAMES+set}" != Xset; then
9129 export COLLECT_NAMES
9135 # We use sed instead of cat because bash on DJGPP gets confused if
9136 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9137 # text mode, it properly converts lines to CR/LF. This bash problem
9138 # is reportedly fixed, but why not run on old versions too?
9139 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9141 mv -f "$cfgfile" "$ofile" || \
9142 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9146 # If there is no Makefile yet, we rely on a make rule to execute
9147 # `config.status --recheck' to rerun these tests and create the
9148 # libtool script then.
9149 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9150 if test -f "$ltmain_in"; then
9151 test -f Makefile && make "$ltmain"
9157 ac_cpp='$CPP $CPPFLAGS'
9158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9165 # Check whether --with-tags or --without-tags was given.
9166 if test "${with_tags+set}" = set; then
9167 withval="$with_tags"
9171 if test -f "$ltmain" && test -n "$tagnames"; then
9172 if test ! -f "${ofile}"; then
9173 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9174 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9177 if test -z "$LTCC"; then
9178 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9179 if test -z "$LTCC"; then
9180 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9181 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9184 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9188 # Extract list of available tagged configurations in $ofile.
9189 # Note that this assumes the entire list is on one line.
9190 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9193 for tagname in $tagnames; do
9195 # Check whether tagname contains only valid characters
9196 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9198 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9199 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9200 { (exit 1); exit 1; }; }
9204 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9206 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9207 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9208 { (exit 1); exit 1; }; }
9211 # Update the list of available tags.
9212 if test -n "$tagname"; then
9213 echo appending configuration tag \"$tagname\" to $ofile
9217 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9219 ac_cpp='$CXXCPP $CPPFLAGS'
9220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9227 archive_cmds_need_lc_CXX=no
9228 allow_undefined_flag_CXX=
9229 always_export_symbols_CXX=no
9230 archive_expsym_cmds_CXX=
9231 export_dynamic_flag_spec_CXX=
9232 hardcode_direct_CXX=no
9233 hardcode_libdir_flag_spec_CXX=
9234 hardcode_libdir_flag_spec_ld_CXX=
9235 hardcode_libdir_separator_CXX=
9236 hardcode_minus_L_CXX=no
9237 hardcode_automatic_CXX=no
9239 module_expsym_cmds_CXX=
9240 link_all_deplibs_CXX=unknown
9241 old_archive_cmds_CXX=$old_archive_cmds
9242 no_undefined_flag_CXX=
9243 whole_archive_flag_spec_CXX=
9244 enable_shared_with_static_runtimes_CXX=no
9246 # Dependencies to place before and after the object being linked:
9248 postdep_objects_CXX=
9251 compiler_lib_search_path_CXX=
9253 # Source file extension for C++ test sources.
9256 # Object file extension for compiled C++ test sources.
9260 # Code to be used in simple compile tests
9261 lt_simple_compile_test_code="int some_variable = 0;\n"
9263 # Code to be used in simple link tests
9264 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9266 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9268 # If no C compiler was specified, use CC.
9271 # Allow CC to be a program name with arguments.
9275 # Allow CC to be a program name with arguments.
9280 lt_save_with_gnu_ld=$with_gnu_ld
9281 lt_save_path_LD=$lt_cv_path_LD
9282 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9283 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9285 unset lt_cv_prog_gnu_ld
9287 if test -n "${lt_cv_path_LDCXX+set}"; then
9288 lt_cv_path_LD=$lt_cv_path_LDCXX
9292 test -z "${LDCXX+set}" || LD=$LDCXX
9296 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9298 # We don't want -fno-exception wen compiling C++ code, so set the
9299 # no_builtin_flag separately
9300 if test "$GXX" = yes; then
9301 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9303 lt_prog_compiler_no_builtin_flag_CXX=
9306 if test "$GXX" = yes; then
9307 # Set up default GNU C++ configuration
9310 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9311 if test "${with_gnu_ld+set}" = set; then
9312 withval="$with_gnu_ld"
9313 test "$withval" = no || with_gnu_ld=yes
9318 if test "$GCC" = yes; then
9319 # Check if gcc -print-prog-name=ld gives a path.
9320 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9321 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9324 # gcc leaves a trailing carriage return which upsets mingw
9325 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9327 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9330 # Accept absolute paths.
9332 re_direlt='/[^/][^/]*/\.\./'
9333 # Canonicalize the pathname of ld
9334 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9335 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9336 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9338 test -z "$LD" && LD="$ac_prog"
9341 # If it fails, then pretend we aren't using GCC.
9345 # If it is relative, then search for the first ld in PATH.
9349 elif test "$with_gnu_ld" = yes; then
9350 echo "$as_me:$LINENO: checking for GNU ld" >&5
9351 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9353 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9354 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9356 if test "${lt_cv_path_LD+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 if test -z "$LD"; then
9360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9361 for ac_dir in $PATH; do
9363 test -z "$ac_dir" && ac_dir=.
9364 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9365 lt_cv_path_LD="$ac_dir/$ac_prog"
9366 # Check to see if the program is GNU ld. I'd rather use --version,
9367 # but apparently some GNU ld's only accept -v.
9368 # Break only if it was the GNU/non-GNU ld that we prefer.
9369 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9370 *GNU* | *'with BFD'*)
9371 test "$with_gnu_ld" != no && break
9374 test "$with_gnu_ld" != yes && break
9381 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9386 if test -n "$LD"; then
9387 echo "$as_me:$LINENO: result: $LD" >&5
9388 echo "${ECHO_T}$LD" >&6
9390 echo "$as_me:$LINENO: result: no" >&5
9391 echo "${ECHO_T}no" >&6
9393 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9394 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9395 { (exit 1); exit 1; }; }
9396 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9397 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9398 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9402 case `$LD -v 2>&1 </dev/null` in
9403 *GNU* | *'with BFD'*)
9404 lt_cv_prog_gnu_ld=yes
9407 lt_cv_prog_gnu_ld=no
9411 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9412 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9413 with_gnu_ld=$lt_cv_prog_gnu_ld
9417 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9418 # archiving commands below assume that GNU ld is being used.
9419 if test "$with_gnu_ld" = yes; then
9420 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9421 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'
9423 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9424 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9426 # If archive_cmds runs LD, not CC, wlarc should be empty
9427 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9428 # investigate it a little bit more. (MM)
9431 # ancient GNU ld didn't support --whole-archive et. al.
9432 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9433 grep 'no-whole-archive' > /dev/null; then
9434 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9436 whole_archive_flag_spec_CXX=
9442 # A generic and very simple default shared library creation
9443 # command for GNU C++ for the case where it uses the native
9444 # linker, instead of GNU ld. If possible, this setting should
9445 # overridden to take advantage of the native linker features on
9446 # the platform it is being used on.
9447 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9450 # Commands to make compiler produce verbose output that lists
9451 # what "hidden" libraries, object files and flags are used when
9452 # linking a shared library.
9453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9461 # PORTME: fill in a description of your system's C++ link characteristics
9462 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9463 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9467 # FIXME: insert proper C++ library support
9471 if test "$host_cpu" = ia64; then
9472 # On IA64, the linker does run time linking by default, so we don't
9473 # have to do anything special.
9474 aix_use_runtimelinking=no
9475 exp_sym_flag='-Bexport'
9478 aix_use_runtimelinking=no
9480 # Test if we are trying to use run time linking or normal
9481 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9482 # need to do runtime linking.
9483 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9484 for ld_flag in $LDFLAGS; do
9487 aix_use_runtimelinking=yes
9494 exp_sym_flag='-bexport'
9495 no_entry_flag='-bnoentry'
9498 # When large executables or shared objects are built, AIX ld can
9499 # have problems creating the table of contents. If linking a library
9500 # or program results in "error TOC overflow" add -mminimal-toc to
9501 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9502 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9505 hardcode_direct_CXX=yes
9506 hardcode_libdir_separator_CXX=':'
9507 link_all_deplibs_CXX=yes
9509 if test "$GXX" = yes; then
9510 case $host_os in aix4.012|aix4.012.*)
9511 # We only want to do this on AIX 4.2 and lower, the check
9512 # below for broken collect2 doesn't work under 4.3+
9513 collect2name=`${CC} -print-prog-name=collect2`
9514 if test -f "$collect2name" && \
9515 strings "$collect2name" | grep resolve_lib_name >/dev/null
9517 # We have reworked collect2
9518 hardcode_direct_CXX=yes
9520 # We have old collect2
9521 hardcode_direct_CXX=unsupported
9522 # It fails to find uninstalled libraries when the uninstalled
9523 # path is not listed in the libpath. Setting hardcode_minus_L
9524 # to unsupported forces relinking
9525 hardcode_minus_L_CXX=yes
9526 hardcode_libdir_flag_spec_CXX='-L$libdir'
9527 hardcode_libdir_separator_CXX=
9530 shared_flag='-shared'
9533 if test "$host_cpu" = ia64; then
9534 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9535 # chokes on -Wl,-G. The following line is correct:
9538 if test "$aix_use_runtimelinking" = yes; then
9539 shared_flag='${wl}-G'
9541 shared_flag='${wl}-bM:SRE'
9546 # It seems that -bexpall does not export symbols beginning with
9547 # underscore (_), so it is better to generate a list of symbols to export.
9548 always_export_symbols_CXX=yes
9549 if test "$aix_use_runtimelinking" = yes; then
9550 # Warning - without using the other runtime loading flags (-brtl),
9551 # -berok will link without error, but may produce a broken library.
9552 allow_undefined_flag_CXX='-berok'
9553 # Determine the default libpath from the value encoded in an empty executable.
9554 cat >conftest.$ac_ext <<_ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>conftest.er1
9573 grep -v '^ *+' conftest.er1 >conftest.err
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_cxx_werror_flag"
9579 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest$ac_exeext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9592 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9594 # Check for a 64-bit object if we didn't find anything.
9595 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; }
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9602 rm -f conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9606 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9608 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"
9610 if test "$host_cpu" = ia64; then
9611 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9612 allow_undefined_flag_CXX="-z nodefs"
9613 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"
9615 # Determine the default libpath from the value encoded in an empty executable.
9616 cat >conftest.$ac_ext <<_ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>conftest.er1
9635 grep -v '^ *+' conftest.er1 >conftest.err
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -z "$ac_cxx_werror_flag"
9641 || test ! -s conftest.err'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9656 # Check for a 64-bit object if we didn't find anything.
9657 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; }
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9664 rm -f conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9668 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9669 # Warning - without using the other run time loading flags,
9670 # -berok will link without error, but may produce a broken library.
9671 no_undefined_flag_CXX=' ${wl}-bernotok'
9672 allow_undefined_flag_CXX=' ${wl}-berok'
9673 # -bexpall does not export symbols beginning with underscore (_)
9674 always_export_symbols_CXX=yes
9675 # Exported symbols can be pulled into shared objects from archives
9676 whole_archive_flag_spec_CXX=' '
9677 archive_cmds_need_lc_CXX=yes
9678 # This is similar to how AIX traditionally builds it's shared libraries.
9679 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'
9684 case $cc_basename in
9686 # FIXME: insert proper C++ library support
9692 cygwin* | mingw* | pw32*)
9693 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9694 # as there is no search path for DLLs.
9695 hardcode_libdir_flag_spec_CXX='-L$libdir'
9696 allow_undefined_flag_CXX=unsupported
9697 always_export_symbols_CXX=no
9698 enable_shared_with_static_runtimes_CXX=yes
9700 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9701 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'
9702 # If the export-symbols file already is a .def file (1st line
9703 # is EXPORTS), use it as is; otherwise, prepend...
9704 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9705 cp $export_symbols $output_objdir/$soname.def;
9707 echo EXPORTS > $output_objdir/$soname.def;
9708 cat $export_symbols >> $output_objdir/$soname.def;
9710 $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'
9716 darwin* | rhapsody*)
9717 if test "$GXX" = yes; then
9718 archive_cmds_need_lc_CXX=no
9720 rhapsody* | darwin1.[012])
9721 allow_undefined_flag_CXX='-undefined suppress'
9724 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9725 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9727 case ${MACOSX_DEPLOYMENT_TARGET} in
9729 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9732 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9738 lt_int_apple_cc_single_mod=no
9739 output_verbose_link_cmd='echo'
9740 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9741 lt_int_apple_cc_single_mod=yes
9743 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9744 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9746 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'
9748 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9750 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9751 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9752 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}'
9754 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}'
9756 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}'
9757 hardcode_direct_CXX=no
9758 hardcode_automatic_CXX=yes
9759 hardcode_shlibpath_var_CXX=unsupported
9760 whole_archive_flag_spec_CXX='-all_load $convenience'
9761 link_all_deplibs_CXX=yes
9768 case $cc_basename in
9770 # FIXME: insert proper C++ library support
9774 # Green Hills C++ Compiler
9775 # FIXME: insert proper C++ library support
9779 # FIXME: insert proper C++ library support
9785 # C++ shared libraries reported to be fairly broken before switch to ELF
9789 archive_cmds_need_lc_CXX=no
9791 freebsd* | kfreebsd*-gnu)
9792 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9799 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9800 hardcode_libdir_separator_CXX=:
9801 export_dynamic_flag_spec_CXX='${wl}-E'
9802 hardcode_direct_CXX=yes
9803 hardcode_minus_L_CXX=yes # Not in the search PATH,
9804 # but as the default
9805 # location of the library.
9807 case $cc_basename in
9809 # FIXME: insert proper C++ library support
9813 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'
9814 # Commands to make compiler produce verbose output that lists
9815 # what "hidden" libraries, object files and flags are used when
9816 # linking a shared library.
9818 # There doesn't appear to be a way to prevent this compiler from
9819 # explicitly linking system object files so we need to strip them
9820 # from the output so that they don't get included in the library
9822 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9825 if test "$GXX" = yes; then
9826 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'
9828 # FIXME: insert proper C++ library support
9835 if test $with_gnu_ld = no; then
9838 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9839 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9840 hardcode_libdir_separator_CXX=:
9843 hardcode_libdir_flag_spec_CXX='-L$libdir'
9846 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9847 hardcode_libdir_separator_CXX=:
9848 export_dynamic_flag_spec_CXX='${wl}-E'
9854 hardcode_direct_CXX=no
9855 hardcode_shlibpath_var_CXX=no
9858 hardcode_direct_CXX=no
9859 hardcode_shlibpath_var_CXX=no
9860 hardcode_minus_L_CXX=yes # Not in the search PATH,
9861 # but as the default
9862 # location of the library.
9865 hardcode_direct_CXX=yes
9866 hardcode_minus_L_CXX=yes # Not in the search PATH,
9867 # but as the default
9868 # location of the library.
9872 case $cc_basename in
9874 # FIXME: insert proper C++ library support
9880 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9883 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9886 # Commands to make compiler produce verbose output that lists
9887 # what "hidden" libraries, object files and flags are used when
9888 # linking a shared library.
9890 # There doesn't appear to be a way to prevent this compiler from
9891 # explicitly linking system object files so we need to strip them
9892 # from the output so that they don't get included in the library
9894 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'
9897 if test "$GXX" = yes; then
9898 if test $with_gnu_ld = no; then
9901 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9904 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'
9909 # FIXME: insert proper C++ library support
9916 case $cc_basename in
9919 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'
9921 # Archives containing C++ object files must be created using
9922 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9923 # necessary to make sure instantiated templates are included
9925 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9928 if test "$GXX" = yes; then
9929 if test "$with_gnu_ld" = no; then
9930 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'
9932 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'
9935 link_all_deplibs_CXX=yes
9938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9939 hardcode_libdir_separator_CXX=:
9942 case $cc_basename in
9944 # Kuck and Associates, Inc. (KAI) C++ Compiler
9946 # KCC will only create a shared library if the output file
9947 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9948 # to its proper name (with version) after linking.
9949 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'
9950 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'
9951 # Commands to make compiler produce verbose output that lists
9952 # what "hidden" libraries, object files and flags are used when
9953 # linking a shared library.
9955 # There doesn't appear to be a way to prevent this compiler from
9956 # explicitly linking system object files so we need to strip them
9957 # from the output so that they don't get included in the library
9959 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'
9961 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9962 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9964 # Archives containing C++ object files must be created using
9965 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9966 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9971 archive_cmds_need_lc_CXX=no
9972 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9973 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'
9974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9976 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9980 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981 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'
9983 runpath_var=LD_RUN_PATH
9984 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9985 hardcode_libdir_separator_CXX=:
9987 # Commands to make compiler produce verbose output that lists
9988 # what "hidden" libraries, object files and flags are used when
9989 # linking a shared library.
9991 # There doesn't appear to be a way to prevent this compiler from
9992 # explicitly linking system object files so we need to strip them
9993 # from the output so that they don't get included in the library
9995 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'
10000 # FIXME: insert proper C++ library support
10004 # FIXME: insert proper C++ library support
10008 case $cc_basename in
10010 # FIXME: insert proper C++ library support
10014 # FIXME: insert proper C++ library support
10020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10021 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10023 hardcode_libdir_flag_spec_CXX='-R$libdir'
10024 hardcode_direct_CXX=yes
10025 hardcode_shlibpath_var_CXX=no
10027 # Workaround some broken pre-1.5 toolchains
10028 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10031 case $cc_basename in
10033 # Kuck and Associates, Inc. (KAI) C++ Compiler
10035 # KCC will only create a shared library if the output file
10036 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10037 # to its proper name (with version) after linking.
10038 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'
10040 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10041 hardcode_libdir_separator_CXX=:
10043 # Archives containing C++ object files must be created using
10044 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10045 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10049 # Rational C++ 2.4.1
10050 # FIXME: insert proper C++ library support
10054 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10055 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'
10057 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10058 hardcode_libdir_separator_CXX=:
10060 # Commands to make compiler produce verbose output that lists
10061 # what "hidden" libraries, object files and flags are used when
10062 # linking a shared library.
10064 # There doesn't appear to be a way to prevent this compiler from
10065 # explicitly linking system object files so we need to strip them
10066 # from the output so that they don't get included in the library
10068 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'
10071 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10072 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10073 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'
10075 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10076 hardcode_libdir_separator_CXX=:
10078 # Commands to make compiler produce verbose output that lists
10079 # what "hidden" libraries, object files and flags are used when
10080 # linking a shared library.
10081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10084 # FIXME: insert proper C++ library support
10091 case $cc_basename in
10093 # Kuck and Associates, Inc. (KAI) C++ Compiler
10095 # KCC will only create a shared library if the output file
10096 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10097 # to its proper name (with version) after linking.
10098 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'
10100 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10101 hardcode_libdir_separator_CXX=:
10103 # Archives containing C++ object files must be created using
10104 # the KAI C++ compiler.
10105 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10108 # Rational C++ 2.4.1
10109 # FIXME: insert proper C++ library support
10113 allow_undefined_flag_CXX=' -expect_unresolved \*'
10114 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'
10115 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10116 echo "-hidden">> $lib.exp~
10117 $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~
10120 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10121 hardcode_libdir_separator_CXX=:
10123 # Commands to make compiler produce verbose output that lists
10124 # what "hidden" libraries, object files and flags are used when
10125 # linking a shared library.
10127 # There doesn't appear to be a way to prevent this compiler from
10128 # explicitly linking system object files so we need to strip them
10129 # from the output so that they don't get included in the library
10131 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'
10134 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10135 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10136 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'
10138 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10139 hardcode_libdir_separator_CXX=:
10141 # Commands to make compiler produce verbose output that lists
10142 # what "hidden" libraries, object files and flags are used when
10143 # linking a shared library.
10144 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10147 # FIXME: insert proper C++ library support
10154 # FIXME: insert proper C++ library support
10158 archive_cmds_need_lc_CXX=no
10159 case $cc_basename in
10161 # FIXME: insert proper C++ library support
10165 # FIXME: insert proper C++ library support
10171 case $cc_basename in
10174 # FIXME: insert proper C++ library support
10179 # FIXME: insert proper C++ library support
10183 # FIXME: insert proper C++ library support
10189 case $cc_basename in
10191 # Sun C++ 4.2, 5.x and Centerline C++
10192 no_undefined_flag_CXX=' -zdefs'
10193 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10194 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10195 $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'
10197 hardcode_libdir_flag_spec_CXX='-R$libdir'
10198 hardcode_shlibpath_var_CXX=no
10200 solaris2.0-5 | solaris2.0-5.*) ;;
10202 # The C++ compiler is used as linker so we must use $wl
10203 # flag to pass the commands to the underlying system
10205 # Supported since Solaris 2.6 (maybe 2.5.1?)
10206 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10209 link_all_deplibs_CXX=yes
10211 # Commands to make compiler produce verbose output that lists
10212 # what "hidden" libraries, object files and flags are used when
10213 # linking a shared library.
10215 # There doesn't appear to be a way to prevent this compiler from
10216 # explicitly linking system object files so we need to strip them
10217 # from the output so that they don't get included in the library
10219 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'
10221 # Archives containing C++ object files must be created using
10222 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10223 # necessary to make sure instantiated templates are included
10225 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10228 # Green Hills C++ Compiler
10229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10231 # The C++ compiler must be used to create the archive.
10232 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10235 # GNU C++ compiler with Solaris linker
10236 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10237 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10238 if $CC --version | grep -v '^2\.7' > /dev/null; then
10239 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10240 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10241 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10243 # Commands to make compiler produce verbose output that lists
10244 # what "hidden" libraries, object files and flags are used when
10245 # linking a shared library.
10246 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10248 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10250 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10251 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10252 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10254 # Commands to make compiler produce verbose output that lists
10255 # what "hidden" libraries, object files and flags are used when
10256 # linking a shared library.
10257 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10260 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10265 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10266 archive_cmds_need_lc_CXX=no
10269 case $cc_basename in
10271 # NonStop-UX NCC 3.20
10272 # FIXME: insert proper C++ library support
10276 # FIXME: insert proper C++ library support
10282 # FIXME: insert proper C++ library support
10286 # FIXME: insert proper C++ library support
10290 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10291 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10292 test "$ld_shlibs_CXX" = no && can_build_shared=no
10298 cat > conftest.$ac_ext <<EOF
10302 Foo (void) { a = 0; }
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; then
10313 # Parse the compiler output and extract the necessary
10314 # objects, libraries and library flags.
10316 # Sentinel used to keep track of whether or not we are before
10317 # the conftest object file.
10318 pre_test_object_deps_done=no
10320 # The `*' in the case matches for architectures that use `case' in
10321 # $output_verbose_cmd can trigger glob expansion during the loop
10322 # eval without this substitution.
10323 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10325 for p in `eval $output_verbose_link_cmd`; do
10329 # Some compilers place space between "-{L,R}" and the path.
10330 # Remove the space.
10331 if test $p = "-L" \
10332 || test $p = "-R"; then
10339 if test "$pre_test_object_deps_done" = no; then
10342 # Internal compiler library paths should come after those
10343 # provided the user. The postdeps already come after the
10344 # user supplied libs so there is no need to process them.
10345 if test -z "$compiler_lib_search_path_CXX"; then
10346 compiler_lib_search_path_CXX="${prev}${p}"
10348 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10351 # The "-l" case would never come before the object being
10352 # linked, so don't bother handling this case.
10355 if test -z "$postdeps_CXX"; then
10356 postdeps_CXX="${prev}${p}"
10358 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10364 # This assumes that the test object file only shows up
10365 # once in the compiler output.
10366 if test "$p" = "conftest.$objext"; then
10367 pre_test_object_deps_done=yes
10371 if test "$pre_test_object_deps_done" = no; then
10372 if test -z "$predep_objects_CXX"; then
10373 predep_objects_CXX="$p"
10375 predep_objects_CXX="$predep_objects_CXX $p"
10378 if test -z "$postdep_objects_CXX"; then
10379 postdep_objects_CXX="$p"
10381 postdep_objects_CXX="$postdep_objects_CXX $p"
10386 *) ;; # Ignore the rest.
10394 echo "libtool.m4: error: problem compiling CXX test program"
10397 $rm -f confest.$objext
10399 case " $postdeps_CXX " in
10400 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10403 lt_prog_compiler_wl_CXX=
10404 lt_prog_compiler_pic_CXX=
10405 lt_prog_compiler_static_CXX=
10407 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10408 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10410 # C++ specific cases for pic, static, wl, etc.
10411 if test "$GXX" = yes; then
10412 lt_prog_compiler_wl_CXX='-Wl,'
10413 lt_prog_compiler_static_CXX='-static'
10417 # All AIX code is PIC.
10418 if test "$host_cpu" = ia64; then
10419 # AIX 5 now supports IA64 processor
10420 lt_prog_compiler_static_CXX='-Bstatic'
10424 # FIXME: we need at least 68020 code to build shared libraries, but
10425 # adding the `-m68020' flag to GCC prevents building anything better,
10427 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10429 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10430 # PIC is the default for these OSes.
10432 mingw* | os2* | pw32*)
10433 # This hack is so that the source file can tell whether it is being
10434 # built for inclusion in a dll (and should export symbols for example).
10435 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10437 darwin* | rhapsody*)
10438 # PIC is the default on this platform
10439 # Common symbols not allowed in MH_DYLIB files
10440 lt_prog_compiler_pic_CXX='-fno-common'
10443 # DJGPP does not support shared libraries at all
10444 lt_prog_compiler_pic_CXX=
10447 if test -d /usr/nec; then
10448 lt_prog_compiler_pic_CXX=-Kconform_pic
10452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10453 # not for PA HP-UX.
10454 case "$host_cpu" in
10458 lt_prog_compiler_pic_CXX='-fPIC'
10463 lt_prog_compiler_pic_CXX='-fPIC'
10469 # All AIX code is PIC.
10470 if test "$host_cpu" = ia64; then
10471 # AIX 5 now supports IA64 processor
10472 lt_prog_compiler_static_CXX='-Bstatic'
10474 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10478 case $cc_basename in
10480 # Green Hills C++ Compiler
10481 # _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"
10486 case $cc_basename in
10488 lt_prog_compiler_pic_CXX='-KPIC'
10491 # Green Hills C++ Compiler
10492 lt_prog_compiler_pic_CXX='-pic'
10498 freebsd* | kfreebsd*-gnu)
10499 # FreeBSD uses GNU C++
10501 hpux9* | hpux10* | hpux11*)
10502 case $cc_basename in
10504 lt_prog_compiler_wl_CXX='-Wl,'
10505 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10506 if test "$host_cpu" != ia64; then
10507 lt_prog_compiler_pic_CXX='+Z'
10511 lt_prog_compiler_wl_CXX='-Wl,'
10512 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10513 case "$host_cpu" in
10518 lt_prog_compiler_pic_CXX='+Z'
10526 irix5* | irix6* | nonstopux*)
10527 case $cc_basename in
10529 lt_prog_compiler_wl_CXX='-Wl,'
10530 lt_prog_compiler_static_CXX='-non_shared'
10531 # CC pic flag -KPIC is the default.
10538 case $cc_basename in
10541 lt_prog_compiler_wl_CXX='--backend -Wl,'
10542 lt_prog_compiler_pic_CXX='-fPIC'
10546 lt_prog_compiler_wl_CXX='-Wl,'
10547 lt_prog_compiler_pic_CXX='-KPIC'
10548 lt_prog_compiler_static_CXX='-static'
10552 # Make sure the PIC flag is empty. It appears that all Alpha
10553 # Linux and Compaq Tru64 Unix objects are PIC.
10554 lt_prog_compiler_pic_CXX=
10555 lt_prog_compiler_static_CXX='-non_shared'
10566 case $cc_basename in
10568 lt_prog_compiler_pic_CXX='-W c,exportall'
10576 osf3* | osf4* | osf5*)
10577 case $cc_basename in
10579 lt_prog_compiler_wl_CXX='--backend -Wl,'
10582 # Rational C++ 2.4.1
10583 lt_prog_compiler_pic_CXX='-pic'
10586 # Digital/Compaq C++
10587 lt_prog_compiler_wl_CXX='-Wl,'
10588 # Make sure the PIC flag is empty. It appears that all Alpha
10589 # Linux and Compaq Tru64 Unix objects are PIC.
10590 lt_prog_compiler_pic_CXX=
10591 lt_prog_compiler_static_CXX='-non_shared'
10600 case $cc_basename in
10602 lt_prog_compiler_pic_CXX='-fPIC'
10609 case $cc_basename in
10611 # Sun C++ 4.2, 5.x and Centerline C++
10612 lt_prog_compiler_pic_CXX='-KPIC'
10613 lt_prog_compiler_static_CXX='-Bstatic'
10614 lt_prog_compiler_wl_CXX='-Qoption ld '
10617 # Green Hills C++ Compiler
10618 lt_prog_compiler_pic_CXX='-PIC'
10625 case $cc_basename in
10628 lt_prog_compiler_pic_CXX='-pic'
10629 lt_prog_compiler_static_CXX='-Bstatic'
10633 lt_prog_compiler_pic_CXX='-pic'
10640 case $cc_basename in
10642 # NonStop-UX NCC 3.20
10643 lt_prog_compiler_pic_CXX='-KPIC'
10654 lt_prog_compiler_can_build_shared_CXX=no
10659 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10660 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10663 # Check to make sure the PIC flag actually works.
10665 if test -n "$lt_prog_compiler_pic_CXX"; then
10667 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10668 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10669 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 lt_prog_compiler_pic_works_CXX=no
10673 ac_outfile=conftest.$ac_objext
10674 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10675 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10676 # Insert the option either (1) after the last *FLAGS variable, or
10677 # (2) before a word containing "conftest.", or (3) at the end.
10678 # Note that $ac_compile itself does not contain backslashes and begins
10679 # with a dollar sign (not a hyphen), so the echo should work correctly.
10680 # The option is referenced via a variable to avoid confusing sed.
10681 lt_compile=`echo "$ac_compile" | $SED \
10682 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10684 -e 's:$: $lt_compiler_flag:'`
10685 (eval echo "\"\$as_me:10685: $lt_compile\"" >&5)
10686 (eval "$lt_compile" 2>conftest.err)
10688 cat conftest.err >&5
10689 echo "$as_me:10689: \$? = $ac_status" >&5
10690 if (exit $ac_status) && test -s "$ac_outfile"; then
10691 # The compiler can only warn and ignore the option if not recognized
10692 # So say no if there are warnings
10693 if test ! -s conftest.err; then
10694 lt_prog_compiler_pic_works_CXX=yes
10700 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10701 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10703 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10704 case $lt_prog_compiler_pic_CXX in
10706 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10709 lt_prog_compiler_pic_CXX=
10710 lt_prog_compiler_can_build_shared_CXX=no
10715 # For platforms which do not support PIC, -DPIC is meaningless:
10717 lt_prog_compiler_pic_CXX=
10720 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10724 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10725 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10726 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 lt_cv_prog_compiler_c_o_CXX=no
10730 $rm -r conftest 2>/dev/null
10734 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10736 lt_compiler_flag="-o out/conftest2.$ac_objext"
10737 # Insert the option either (1) after the last *FLAGS variable, or
10738 # (2) before a word containing "conftest.", or (3) at the end.
10739 # Note that $ac_compile itself does not contain backslashes and begins
10740 # with a dollar sign (not a hyphen), so the echo should work correctly.
10741 lt_compile=`echo "$ac_compile" | $SED \
10742 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10744 -e 's:$: $lt_compiler_flag:'`
10745 (eval echo "\"\$as_me:10745: $lt_compile\"" >&5)
10746 (eval "$lt_compile" 2>out/conftest.err)
10748 cat out/conftest.err >&5
10749 echo "$as_me:10749: \$? = $ac_status" >&5
10750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10752 # The compiler can only warn and ignore the option if not recognized
10753 # So say no if there are warnings
10754 if test ! -s out/conftest.err; then
10755 lt_cv_prog_compiler_c_o_CXX=yes
10760 # SGI C++ compiler will create directory out/ii_files/ for
10761 # template instantiation
10762 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10763 $rm out/* && rmdir out
10769 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10770 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10773 hard_links="nottested"
10774 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10775 # do not overwrite the value of need_locks provided by the user
10776 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10777 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10782 ln conftest.a conftest.b 2>&5 || hard_links=no
10783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10784 echo "$as_me:$LINENO: result: $hard_links" >&5
10785 echo "${ECHO_T}$hard_links" >&6
10786 if test "$hard_links" = no; then
10787 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10788 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10795 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10796 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10798 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10801 # If we're using GNU nm, then we don't want the "-C" option.
10802 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10803 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10804 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'
10806 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'
10810 export_symbols_cmds_CXX="$ltdll_cmds"
10813 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10816 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10820 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10821 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10822 test "$ld_shlibs_CXX" = no && can_build_shared=no
10824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10825 if test "$GCC" = yes; then
10826 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10830 # Do we need to explicitly link libc?
10832 case "x$archive_cmds_need_lc_CXX" in
10834 # Assume -lc should be added
10835 archive_cmds_need_lc_CXX=yes
10837 if test "$enable_shared" = yes && test "$GCC" = yes; then
10838 case $archive_cmds_CXX in
10840 # FIXME: we may have to deal with multi-command sequences.
10843 # Test whether the compiler implicitly links with -lc since on some
10844 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10845 # to ld, don't add -lc before -lgcc.
10846 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10847 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10852 (eval $ac_compile) 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } 2>conftest.err; then
10858 libobjs=conftest.$ac_objext
10860 wl=$lt_prog_compiler_wl_CXX
10866 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10867 allow_undefined_flag_CXX=
10868 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10869 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }
10874 archive_cmds_need_lc_CXX=no
10876 archive_cmds_need_lc_CXX=yes
10878 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10880 cat conftest.err 1>&5
10883 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10884 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10891 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10892 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10893 library_names_spec=
10894 libname_spec='lib$name'
10898 postuninstall_cmds=
10902 shlibpath_overrides_runpath=unknown
10904 dynamic_linker="$host_os ld.so"
10905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10906 if test "$GCC" = yes; then
10907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10908 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10909 # if the path contains ";" then we assume it to be the separator
10910 # otherwise default to the standard path separator (i.e. ":") - it is
10911 # assumed that no part of a normal pathname contains ";" but that should
10912 # okay in the real world where ";" in dirpaths is itself problematic.
10913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10920 need_lib_prefix=unknown
10921 hardcode_into_libs=no
10923 # when you set need_version to no, make sure it does not cause -set_version
10924 # flags to be left without arguments
10925 need_version=unknown
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10931 shlibpath_var=LIBPATH
10933 # AIX 3 has no versioning support, so we append a major version to the name.
10934 soname_spec='${libname}${release}${shared_ext}$major'
10941 hardcode_into_libs=yes
10942 if test "$host_cpu" = ia64; then
10943 # AIX 5 supports IA64
10944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10945 shlibpath_var=LD_LIBRARY_PATH
10947 # With GCC up to 2.95.x, collect2 would create an import file
10948 # for dependence libraries. The import file would start with
10949 # the line `#! .'. This would cause the generated library to
10950 # depend on `.', always an invalid library. This was fixed in
10951 # development snapshots of GCC prior to 3.0.
10953 aix4 | aix4.[01] | aix4.[01].*)
10954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10956 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10959 can_build_shared=no
10963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10964 # soname into executable. Probably we can add versioning support to
10965 # collect2, so additional links can be useful in future.
10966 if test "$aix_use_runtimelinking" = yes; then
10967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10968 # instead of lib<name>.a to let people know that these are not
10969 # typical AIX shared libraries.
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 # We preserve .a as extension for shared libraries through AIX4.2
10973 # and later when we are not doing run time linking.
10974 library_names_spec='${libname}${release}.a $libname.a'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10977 shlibpath_var=LIBPATH
10982 library_names_spec='$libname.ixlibrary $libname.a'
10983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10984 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'
10988 library_names_spec='${libname}${shared_ext}'
10989 dynamic_linker="$host_os ld.so"
10990 shlibpath_var=LIBRARY_PATH
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997 soname_spec='${libname}${release}${shared_ext}$major'
10998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11002 # the default ld.so.conf also contains /usr/contrib/lib and
11003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11004 # libtool to hard-code these into programs
11007 cygwin* | mingw* | pw32*)
11008 version_type=windows
11013 case $GCC,$host_os in
11014 yes,cygwin* | yes,mingw* | yes,pw32*)
11015 library_names_spec='$libname.dll.a'
11016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11017 postinstall_cmds='base_file=`basename \${file}`~
11018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11019 dldir=$destdir/`dirname \$dlpath`~
11020 test -d \$dldir || mkdir -p \$dldir~
11021 $install_prog $dir/$dlname \$dldir/$dlname'
11022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11023 dlpath=$dir/\$dldll~
11025 shlibpath_overrides_runpath=yes
11029 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11031 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11034 # MinGW DLLs use traditional 'lib' prefix
11035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11037 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11038 # It is most probably a Windows format PATH printed by
11039 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11040 # path with ; separators, and with drive letters. We can handle the
11041 # drive letters (cygwin fileutils understands them), so leave them,
11042 # especially as we might pass files found there to a mingw objdump,
11043 # which wouldn't understand a cygwinified path. Ahh.
11044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11050 # pw32 DLLs use 'pw' prefix rather than 'lib'
11051 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11057 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11059 supports_anon_versioning=no
11060 case `$LD -v 2>/dev/null` in
11061 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11064 *\ 2.11.*) ;; # other 2.11 versions
11065 *) supports_anon_versioning=yes ;;
11067 if test $supports_anon_versioning = yes; then
11068 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11070 $echo "local: *; };" >> $output_objdir/$libname.ver~
11071 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11073 $archive_expsym_cmds="$archive_cmds"
11081 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11084 dynamic_linker='Win32 ld.exe'
11085 # FIXME: first we should search . and the directory the executable is in
11089 darwin* | rhapsody*)
11090 dynamic_linker="$host_os dyld"
11091 version_type=darwin
11094 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11095 soname_spec='${libname}${release}${major}$shared_ext'
11096 shlibpath_overrides_runpath=yes
11097 shlibpath_var=DYLD_LIBRARY_PATH
11098 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11099 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11100 if test "$GCC" = yes; then
11101 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"`
11103 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11105 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 shlibpath_var=LD_LIBRARY_PATH
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11126 soname_spec='${libname}${release}${shared_ext}$major'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 shlibpath_overrides_runpath=no
11129 hardcode_into_libs=yes
11130 dynamic_linker='GNU ld.so'
11134 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11135 version_type=freebsd-$objformat
11136 case $version_type in
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11147 shlibpath_var=LD_LIBRARY_PATH
11150 shlibpath_overrides_runpath=yes
11152 freebsd3.01* | freebsdelf3.01*)
11153 shlibpath_overrides_runpath=yes
11154 hardcode_into_libs=yes
11157 shlibpath_overrides_runpath=no
11158 hardcode_into_libs=yes
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11168 soname_spec='${libname}${release}${shared_ext}$major'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 hardcode_into_libs=yes
11173 hpux9* | hpux10* | hpux11*)
11174 # Give a soname corresponding to the major version so that dld.sl refuses to
11175 # link against other versions.
11179 case "$host_cpu" in
11182 hardcode_into_libs=yes
11183 dynamic_linker="$host_os dld.so"
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 if test "X$HPUX_IA64_MODE" = X32; then
11189 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11191 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11197 hardcode_into_libs=yes
11198 dynamic_linker="$host_os dld.sl"
11199 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11208 dynamic_linker="$host_os dld.sl"
11209 shlibpath_var=SHLIB_PATH
11210 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212 soname_spec='${libname}${release}${shared_ext}$major'
11215 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11216 postinstall_cmds='chmod 555 $lib'
11219 irix5* | irix6* | nonstopux*)
11221 nonstopux*) version_type=nonstopux ;;
11223 if test "$lt_cv_prog_gnu_ld" = yes; then
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11234 irix5* | nonstopux*)
11235 libsuff= shlibsuff=
11238 case $LD in # libtool.m4 will add one of these switches to LD
11239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11240 libsuff= shlibsuff= libmagic=32-bit;;
11241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11242 libsuff=32 shlibsuff=N32 libmagic=N32;;
11243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11244 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11245 *) libsuff= shlibsuff= libmagic=never-match;;
11249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11250 shlibpath_overrides_runpath=no
11251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11253 hardcode_into_libs=yes
11256 # No shared lib support for Linux oldld, aout, or coff.
11257 linux*oldld* | linux*aout* | linux*coff*)
11261 # This must be Linux ELF.
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 shlibpath_overrides_runpath=no
11271 # This implies no fast_install, which is unacceptable.
11272 # Some rework will be needed to allow for fast_install
11273 # before this can be enabled.
11274 hardcode_into_libs=yes
11276 # Append ld.so.conf contents to the search path
11277 if test -f /etc/ld.so.conf; then
11278 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11279 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11282 case $host_cpu:$lt_cv_cc_64bit_output in
11283 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
11284 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
11285 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
11289 # We used to test for /lib/ld.so.1 and disable shared libraries on
11290 # powerpc, because MkLinux only supported shared libraries with the
11291 # GNU dynamic linker. Since this was broken with cross compilers,
11292 # most powerpc-linux boxes support dynamic linking these days and
11293 # people can always --disable-shared, the test was removed, and we
11294 # assume the GNU/Linux dynamic linker is in use.
11295 dynamic_linker='GNU/Linux ld.so'
11297 # Find out which ABI we are using (multilib Linux x86_64 hack).
11299 case "$host_cpu" in
11301 echo '#line 11301 "configure"' > conftest.$ac_ext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303 (eval $ac_compile) 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; then
11307 case `/usr/bin/file conftest.$ac_objext` in
11318 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11319 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 shlibpath_var=LD_LIBRARY_PATH
11329 shlibpath_overrides_runpath=no
11330 hardcode_into_libs=yes
11331 dynamic_linker='GNU ld.so'
11338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11341 dynamic_linker='NetBSD (a.out) ld.so'
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11345 dynamic_linker='NetBSD ld.elf_so'
11347 shlibpath_var=LD_LIBRARY_PATH
11348 shlibpath_overrides_runpath=yes
11349 hardcode_into_libs=yes
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 shlibpath_var=LD_LIBRARY_PATH
11356 shlibpath_overrides_runpath=yes
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11365 shlibpath_var=LD_LIBRARY_PATH
11366 shlibpath_overrides_runpath=yes
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11378 openbsd2.[89] | openbsd2.[89].*)
11379 shlibpath_overrides_runpath=no
11382 shlibpath_overrides_runpath=yes
11386 shlibpath_overrides_runpath=yes
11391 libname_spec='$name'
11394 library_names_spec='$libname${shared_ext} $libname.a'
11395 dynamic_linker='OS/2 ld.exe'
11396 shlibpath_var=LIBPATH
11399 osf3* | osf4* | osf5*)
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405 shlibpath_var=LD_LIBRARY_PATH
11406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11412 soname_spec='${libname}${release}${shared_ext}$major'
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 shlibpath_var=LD_LIBRARY_PATH
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=yes
11425 hardcode_into_libs=yes
11426 # ldd complains unless libraries are executable
11427 postinstall_cmds='chmod +x $lib'
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11433 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11434 shlibpath_var=LD_LIBRARY_PATH
11435 shlibpath_overrides_runpath=yes
11436 if test "$with_gnu_ld" = yes; then
11442 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445 soname_spec='${libname}${release}${shared_ext}$major'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 case $host_vendor in
11449 shlibpath_overrides_runpath=no
11451 export_dynamic_flag_spec='${wl}-Blargedynsym'
11452 runpath_var=LD_RUN_PATH
11460 shlibpath_overrides_runpath=no
11461 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11467 if test -d /usr/nec ;then
11469 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11470 soname_spec='$libname${shared_ext}.$major'
11471 shlibpath_var=LD_LIBRARY_PATH
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11479 shlibpath_var=LD_LIBRARY_PATH
11486 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11487 echo "${ECHO_T}$dynamic_linker" >&6
11488 test "$dynamic_linker" = no && can_build_shared=no
11490 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11491 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11492 hardcode_action_CXX=
11493 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11494 test -n "$runpath_var CXX" || \
11495 test "X$hardcode_automatic_CXX"="Xyes" ; then
11497 # We can hardcode non-existant directories.
11498 if test "$hardcode_direct_CXX" != no &&
11499 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11500 # have to relink, otherwise we might link with an installed library
11501 # when we should be linking with a yet-to-be-installed one
11502 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11503 test "$hardcode_minus_L_CXX" != no; then
11504 # Linking always hardcodes the temporary library directory.
11505 hardcode_action_CXX=relink
11507 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11508 hardcode_action_CXX=immediate
11511 # We cannot hardcode anything, or else we can only hardcode existing
11513 hardcode_action_CXX=unsupported
11515 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11516 echo "${ECHO_T}$hardcode_action_CXX" >&6
11518 if test "$hardcode_action_CXX" = relink; then
11519 # Fast installation is not supported
11520 enable_fast_install=no
11521 elif test "$shlibpath_overrides_runpath" = yes ||
11522 test "$enable_shared" = no; then
11523 # Fast installation is not necessary
11524 enable_fast_install=needless
11529 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11530 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11531 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11532 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11533 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11534 echo "$as_me:$LINENO: result: yes" >&5
11535 echo "${ECHO_T}yes" >&6
11537 # FIXME - insert some real tests, host_os isn't really good enough
11540 if test -n "$STRIP" ; then
11541 striplib="$STRIP -x"
11542 echo "$as_me:$LINENO: result: yes" >&5
11543 echo "${ECHO_T}yes" >&6
11545 echo "$as_me:$LINENO: result: no" >&5
11546 echo "${ECHO_T}no" >&6
11550 echo "$as_me:$LINENO: result: no" >&5
11551 echo "${ECHO_T}no" >&6
11556 if test "x$enable_dlopen" != xyes; then
11557 enable_dlopen=unknown
11558 enable_dlopen_self=unknown
11559 enable_dlopen_self_static=unknown
11566 lt_cv_dlopen="load_add_on"
11568 lt_cv_dlopen_self=yes
11572 lt_cv_dlopen="LoadLibrary"
11577 lt_cv_dlopen="dlopen"
11582 # if libdl is installed we need to link against it
11583 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11584 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 ac_check_lib_save_LIBS=$LIBS
11590 cat >conftest.$ac_ext <<_ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11597 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11612 rm -f conftest.$ac_objext conftest$ac_exeext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>conftest.er1
11616 grep -v '^ *+' conftest.er1 >conftest.err
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try='test -z "$ac_cxx_werror_flag"
11622 || test ! -s conftest.err'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; } &&
11628 { ac_try='test -s conftest$ac_exeext'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
11634 ac_cv_lib_dl_dlopen=yes
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 ac_cv_lib_dl_dlopen=no
11641 rm -f conftest.err conftest.$ac_objext \
11642 conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11645 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11646 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11647 if test $ac_cv_lib_dl_dlopen = yes; then
11648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11651 lt_cv_dlopen="dyld"
11653 lt_cv_dlopen_self=yes
11660 echo "$as_me:$LINENO: checking for shl_load" >&5
11661 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11662 if test "${ac_cv_func_shl_load+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11673 #define shl_load innocuous_shl_load
11675 /* System header to define __stub macros and hopefully few prototypes,
11676 which can conflict with char shl_load (); below.
11677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11678 <limits.h> exists even on freestanding compilers. */
11681 # include <limits.h>
11683 # include <assert.h>
11688 /* Override any gcc2 internal prototype to avoid an error. */
11693 /* We use char because int might match the return type of a gcc2
11694 builtin and then its argument prototype would still apply. */
11696 /* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11702 char (*f) () = shl_load;
11711 return f != shl_load;
11716 rm -f conftest.$ac_objext conftest$ac_exeext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718 (eval $ac_link) 2>conftest.er1
11720 grep -v '^ *+' conftest.er1 >conftest.err
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
11725 { ac_try='test -z "$ac_cxx_werror_flag"
11726 || test ! -s conftest.err'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest$ac_exeext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_cv_func_shl_load=yes
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 ac_cv_func_shl_load=no
11745 rm -f conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11748 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11749 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11750 if test $ac_cv_func_shl_load = yes; then
11751 lt_cv_dlopen="shl_load"
11753 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11754 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11755 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 ac_check_lib_save_LIBS=$LIBS
11760 cat >conftest.$ac_ext <<_ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11767 /* Override any gcc2 internal prototype to avoid an error. */
11771 /* We use char because int might match the return type of a gcc2
11772 builtin and then its argument prototype would still apply. */
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11784 (eval $ac_link) 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -z "$ac_cxx_werror_flag"
11792 || test ! -s conftest.err'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; } &&
11798 { ac_try='test -s conftest$ac_exeext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_cv_lib_dld_shl_load=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_cv_lib_dld_shl_load=no
11811 rm -f conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_lib_save_LIBS
11815 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11816 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11817 if test $ac_cv_lib_dld_shl_load = yes; then
11818 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11820 echo "$as_me:$LINENO: checking for dlopen" >&5
11821 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11822 if test "${ac_cv_func_dlopen+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 cat >conftest.$ac_ext <<_ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11833 #define dlopen innocuous_dlopen
11835 /* System header to define __stub macros and hopefully few prototypes,
11836 which can conflict with char dlopen (); below.
11837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838 <limits.h> exists even on freestanding compilers. */
11841 # include <limits.h>
11843 # include <assert.h>
11848 /* Override any gcc2 internal prototype to avoid an error. */
11853 /* We use char because int might match the return type of a gcc2
11854 builtin and then its argument prototype would still apply. */
11856 /* The GNU C library defines this for functions which it implements
11857 to always fail with ENOSYS. Some functions are actually named
11858 something starting with __ and the normal name is an alias. */
11859 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11862 char (*f) () = dlopen;
11871 return f != dlopen;
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_cxx_werror_flag"
11886 || test ! -s conftest.err'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_cv_func_dlopen=yes
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11903 ac_cv_func_dlopen=no
11905 rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11908 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11909 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11910 if test $ac_cv_func_dlopen = yes; then
11911 lt_cv_dlopen="dlopen"
11913 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11914 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11915 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 ac_check_lib_save_LIBS=$LIBS
11920 cat >conftest.$ac_ext <<_ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11927 /* Override any gcc2 internal prototype to avoid an error. */
11931 /* We use char because int might match the return type of a gcc2
11932 builtin and then its argument prototype would still apply. */
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11944 (eval $ac_link) 2>conftest.er1
11946 grep -v '^ *+' conftest.er1 >conftest.err
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_cxx_werror_flag"
11952 || test ! -s conftest.err'
11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 (eval $ac_try) 2>&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; } &&
11958 { ac_try='test -s conftest$ac_exeext'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11964 ac_cv_lib_dl_dlopen=yes
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11969 ac_cv_lib_dl_dlopen=no
11971 rm -f conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11975 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11977 if test $ac_cv_lib_dl_dlopen = yes; then
11978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11980 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11981 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11982 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 ac_check_lib_save_LIBS=$LIBS
11986 LIBS="-lsvld $LIBS"
11987 cat >conftest.$ac_ext <<_ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11994 /* Override any gcc2 internal prototype to avoid an error. */
11998 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>conftest.er1
12013 grep -v '^ *+' conftest.er1 >conftest.err
12015 cat conftest.err >&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -z "$ac_cxx_werror_flag"
12019 || test ! -s conftest.err'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; } &&
12025 { ac_try='test -s conftest$ac_exeext'
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 ac_cv_lib_svld_dlopen=yes
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12036 ac_cv_lib_svld_dlopen=no
12038 rm -f conftest.err conftest.$ac_objext \
12039 conftest$ac_exeext conftest.$ac_ext
12040 LIBS=$ac_check_lib_save_LIBS
12042 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12043 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12044 if test $ac_cv_lib_svld_dlopen = yes; then
12045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12047 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12048 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 ac_check_lib_save_LIBS=$LIBS
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12061 /* Override any gcc2 internal prototype to avoid an error. */
12065 /* We use char because int might match the return type of a gcc2
12066 builtin and then its argument prototype would still apply. */
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12078 (eval $ac_link) 2>conftest.er1
12080 grep -v '^ *+' conftest.er1 >conftest.err
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_cxx_werror_flag"
12086 || test ! -s conftest.err'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12098 ac_cv_lib_dld_dld_link=yes
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 ac_cv_lib_dld_dld_link=no
12105 rm -f conftest.err conftest.$ac_objext \
12106 conftest$ac_exeext conftest.$ac_ext
12107 LIBS=$ac_check_lib_save_LIBS
12109 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12110 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12111 if test $ac_cv_lib_dld_dld_link = yes; then
12112 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12133 if test "x$lt_cv_dlopen" != xno; then
12139 case $lt_cv_dlopen in
12141 save_CPPFLAGS="$CPPFLAGS"
12142 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12144 save_LDFLAGS="$LDFLAGS"
12145 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12148 LIBS="$lt_cv_dlopen_libs $LIBS"
12150 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12151 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12152 if test "${lt_cv_dlopen_self+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 if test "$cross_compiling" = yes; then :
12156 lt_cv_dlopen_self=cross
12158 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12159 lt_status=$lt_dlunknown
12160 cat > conftest.$ac_ext <<EOF
12161 #line 12161 "configure"
12162 #include "confdefs.h"
12171 # define LT_DLGLOBAL RTLD_GLOBAL
12174 # define LT_DLGLOBAL DL_GLOBAL
12176 # define LT_DLGLOBAL 0
12180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12181 find out it does not work in some platform. */
12182 #ifndef LT_DLLAZY_OR_NOW
12184 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12187 # define LT_DLLAZY_OR_NOW DL_LAZY
12190 # define LT_DLLAZY_OR_NOW RTLD_NOW
12193 # define LT_DLLAZY_OR_NOW DL_NOW
12195 # define LT_DLLAZY_OR_NOW 0
12203 extern "C" void exit (int);
12206 void fnord() { int i=42;}
12209 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12210 int status = $lt_dlunknown;
12214 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12215 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12216 /* dlclose (self); */
12222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223 (eval $ac_link) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12227 (./conftest; exit; ) 2>/dev/null
12229 case x$lt_status in
12230 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12231 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12232 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12235 # compilation failed
12236 lt_cv_dlopen_self=no
12243 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12244 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12246 if test "x$lt_cv_dlopen_self" = xyes; then
12247 LDFLAGS="$LDFLAGS $link_static_flag"
12248 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12249 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12250 if test "${lt_cv_dlopen_self_static+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 if test "$cross_compiling" = yes; then :
12254 lt_cv_dlopen_self_static=cross
12256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12257 lt_status=$lt_dlunknown
12258 cat > conftest.$ac_ext <<EOF
12259 #line 12259 "configure"
12260 #include "confdefs.h"
12269 # define LT_DLGLOBAL RTLD_GLOBAL
12272 # define LT_DLGLOBAL DL_GLOBAL
12274 # define LT_DLGLOBAL 0
12278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12279 find out it does not work in some platform. */
12280 #ifndef LT_DLLAZY_OR_NOW
12282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12285 # define LT_DLLAZY_OR_NOW DL_LAZY
12288 # define LT_DLLAZY_OR_NOW RTLD_NOW
12291 # define LT_DLLAZY_OR_NOW DL_NOW
12293 # define LT_DLLAZY_OR_NOW 0
12301 extern "C" void exit (int);
12304 void fnord() { int i=42;}
12307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12308 int status = $lt_dlunknown;
12312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12313 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12314 /* dlclose (self); */
12320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321 (eval $ac_link) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12325 (./conftest; exit; ) 2>/dev/null
12327 case x$lt_status in
12328 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12329 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12330 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12333 # compilation failed
12334 lt_cv_dlopen_self_static=no
12341 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12342 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12345 CPPFLAGS="$save_CPPFLAGS"
12346 LDFLAGS="$save_LDFLAGS"
12351 case $lt_cv_dlopen_self in
12352 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12353 *) enable_dlopen_self=unknown ;;
12356 case $lt_cv_dlopen_self_static in
12357 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12358 *) enable_dlopen_self_static=unknown ;;
12363 # The else clause should only fire when bootstrapping the
12364 # libtool distribution, otherwise you forgot to ship ltmain.sh
12365 # with your package, and you will get complaints that there are
12366 # no rules to generate ltmain.sh.
12367 if test -f "$ltmain"; then
12368 # See if we are running on zsh, and set the options which allow our commands through
12369 # without removal of \ escapes.
12370 if test -n "${ZSH_VERSION+set}" ; then
12371 setopt NO_GLOB_SUBST
12373 # Now quote all the things that may contain metacharacters while being
12374 # careful not to overquote the AC_SUBSTed values. We take copies of the
12375 # variables and quote the copies for generation of the libtool script.
12376 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12378 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12379 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12380 deplibs_check_method reload_flag reload_cmds need_locks \
12381 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12382 lt_cv_sys_global_symbol_to_c_name_address \
12383 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12384 old_postinstall_cmds old_postuninstall_cmds \
12388 lt_prog_compiler_wl_CXX \
12389 lt_prog_compiler_pic_CXX \
12390 lt_prog_compiler_static_CXX \
12391 lt_prog_compiler_no_builtin_flag_CXX \
12392 export_dynamic_flag_spec_CXX \
12393 thread_safe_flag_spec_CXX \
12394 whole_archive_flag_spec_CXX \
12395 enable_shared_with_static_runtimes_CXX \
12396 old_archive_cmds_CXX \
12397 old_archive_from_new_cmds_CXX \
12398 predep_objects_CXX \
12399 postdep_objects_CXX \
12402 compiler_lib_search_path_CXX \
12404 archive_expsym_cmds_CXX \
12405 postinstall_cmds_CXX \
12406 postuninstall_cmds_CXX \
12407 old_archive_from_expsyms_cmds_CXX \
12408 allow_undefined_flag_CXX \
12409 no_undefined_flag_CXX \
12410 export_symbols_cmds_CXX \
12411 hardcode_libdir_flag_spec_CXX \
12412 hardcode_libdir_flag_spec_ld_CXX \
12413 hardcode_libdir_separator_CXX \
12414 hardcode_automatic_CXX \
12416 module_expsym_cmds_CXX \
12417 lt_cv_prog_compiler_c_o_CXX \
12418 exclude_expsyms_CXX \
12419 include_expsyms_CXX; do
12422 old_archive_cmds_CXX | \
12423 old_archive_from_new_cmds_CXX | \
12424 archive_cmds_CXX | \
12425 archive_expsym_cmds_CXX | \
12426 module_cmds_CXX | \
12427 module_expsym_cmds_CXX | \
12428 old_archive_from_expsyms_cmds_CXX | \
12429 export_symbols_cmds_CXX | \
12430 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12431 postinstall_cmds | postuninstall_cmds | \
12432 old_postinstall_cmds | old_postuninstall_cmds | \
12433 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12434 # Double-quote double-evaled strings.
12435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12444 *'\$0 --fallback-echo"')
12445 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12451 cat <<__EOF__ >> "$cfgfile"
12452 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12456 # Shell to use when invoking shell scripts.
12459 # Whether or not to build shared libraries.
12460 build_libtool_libs=$enable_shared
12462 # Whether or not to build static libraries.
12463 build_old_libs=$enable_static
12465 # Whether or not to add -lc for building shared libraries.
12466 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12468 # Whether or not to disallow shared libs when runtime libs are static
12469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12471 # Whether or not to optimize for fast installation.
12472 fast_install=$enable_fast_install
12475 host_alias=$host_alias
12478 # An echo program that does not interpret backslashes.
12483 AR_FLAGS=$lt_AR_FLAGS
12488 # A language-specific compiler.
12489 CC=$lt_compiler_CXX
12491 # Is the compiler the GNU C compiler?
12497 # The linker used to build libraries.
12500 # Whether we need hard or soft links.
12503 # A BSD-compatible nm program.
12506 # A symbol stripping program
12509 # Used to examine libraries when file_magic_cmd begins "file"
12510 MAGIC_CMD=$MAGIC_CMD
12512 # Used on cygwin: DLL creation program.
12515 # Used on cygwin: object dumper.
12518 # Used on cygwin: assembler.
12521 # The name of the directory that contains temporary libtool files.
12524 # How to create reloadable object files.
12525 reload_flag=$lt_reload_flag
12526 reload_cmds=$lt_reload_cmds
12528 # How to pass a linker flag through the compiler.
12529 wl=$lt_lt_prog_compiler_wl_CXX
12531 # Object file suffix (normally "o").
12532 objext="$ac_objext"
12534 # Old archive suffix (normally "a").
12537 # Shared library suffix (normally ".so").
12540 # Executable file suffix (normally "").
12543 # Additional compiler flags for building library objects.
12544 pic_flag=$lt_lt_prog_compiler_pic_CXX
12547 # What is the maximum length of a command?
12548 max_cmd_len=$lt_cv_sys_max_cmd_len
12550 # Does compiler simultaneously support -c and -o options?
12551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12553 # Must we lock files when doing compilation ?
12554 need_locks=$lt_need_locks
12556 # Do we need the lib prefix for modules?
12557 need_lib_prefix=$need_lib_prefix
12559 # Do we need a version for libraries?
12560 need_version=$need_version
12562 # Whether dlopen is supported.
12563 dlopen_support=$enable_dlopen
12565 # Whether dlopen of programs is supported.
12566 dlopen_self=$enable_dlopen_self
12568 # Whether dlopen of statically linked programs is supported.
12569 dlopen_self_static=$enable_dlopen_self_static
12571 # Compiler flag to prevent dynamic linking.
12572 link_static_flag=$lt_lt_prog_compiler_static_CXX
12574 # Compiler flag to turn off builtin functions.
12575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12577 # Compiler flag to allow reflexive dlopens.
12578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12580 # Compiler flag to generate shared objects directly from archives.
12581 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12583 # Compiler flag to generate thread-safe objects.
12584 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12586 # Library versioning type.
12587 version_type=$version_type
12589 # Format of library name prefix.
12590 libname_spec=$lt_libname_spec
12592 # List of archive names. First name is the real one, the rest are links.
12593 # The last name is the one that the linker finds with -lNAME.
12594 library_names_spec=$lt_library_names_spec
12596 # The coded name of the library, if different from the real name.
12597 soname_spec=$lt_soname_spec
12599 # Commands used to build and install an old-style archive.
12601 old_archive_cmds=$lt_old_archive_cmds_CXX
12602 old_postinstall_cmds=$lt_old_postinstall_cmds
12603 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12605 # Create an old-style archive from a shared archive.
12606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12608 # Create a temporary old-style archive to link instead of a shared archive.
12609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12611 # Commands used to build and install a shared archive.
12612 archive_cmds=$lt_archive_cmds_CXX
12613 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12614 postinstall_cmds=$lt_postinstall_cmds
12615 postuninstall_cmds=$lt_postuninstall_cmds
12617 # Commands used to build a loadable module (assumed same as above if empty)
12618 module_cmds=$lt_module_cmds_CXX
12619 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12621 # Commands to strip libraries.
12622 old_striplib=$lt_old_striplib
12623 striplib=$lt_striplib
12625 # Dependencies to place before the objects being linked to create a
12627 predep_objects=$lt_predep_objects_CXX
12629 # Dependencies to place after the objects being linked to create a
12631 postdep_objects=$lt_postdep_objects_CXX
12633 # Dependencies to place before the objects being linked to create a
12635 predeps=$lt_predeps_CXX
12637 # Dependencies to place after the objects being linked to create a
12639 postdeps=$lt_postdeps_CXX
12641 # The library search path used internally by the compiler when linking
12642 # a shared library.
12643 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12645 # Method to check whether dependent libraries are shared objects.
12646 deplibs_check_method=$lt_deplibs_check_method
12648 # Command to use when deplibs_check_method == file_magic.
12649 file_magic_cmd=$lt_file_magic_cmd
12651 # Flag that allows shared libraries with undefined symbols to be built.
12652 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12654 # Flag that forces no undefined symbols.
12655 no_undefined_flag=$lt_no_undefined_flag_CXX
12657 # Commands used to finish a libtool library installation in a directory.
12658 finish_cmds=$lt_finish_cmds
12660 # Same as above, but a single script fragment to be evaled but not shown.
12661 finish_eval=$lt_finish_eval
12663 # Take the output of nm and produce a listing of raw symbols and C names.
12664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12666 # Transform the output of nm in a proper C declaration
12667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12669 # Transform the output of nm in a C name address pair
12670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12672 # This is the shared library runtime path variable.
12673 runpath_var=$runpath_var
12675 # This is the shared library path variable.
12676 shlibpath_var=$shlibpath_var
12678 # Is shlibpath searched before the hard-coded library search path?
12679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12681 # How to hardcode a shared library path into an executable.
12682 hardcode_action=$hardcode_action_CXX
12684 # Whether we should hardcode library paths into libraries.
12685 hardcode_into_libs=$hardcode_into_libs
12687 # Flag to hardcode \$libdir into a binary during linking.
12688 # This must work even if \$libdir does not exist.
12689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12691 # If ld is used when linking, flag to hardcode \$libdir into
12692 # a binary during linking. This must work even if \$libdir does
12694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12696 # Whether we need a single -rpath flag with a separated argument.
12697 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12700 # resulting binary.
12701 hardcode_direct=$hardcode_direct_CXX
12703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12704 # resulting binary.
12705 hardcode_minus_L=$hardcode_minus_L_CXX
12707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12708 # the resulting binary.
12709 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12711 # Set to yes if building a shared library automatically hardcodes DIR into the library
12712 # and all subsequent libraries and executables linked against it.
12713 hardcode_automatic=$hardcode_automatic_CXX
12715 # Variables whose values should be saved in libtool wrapper scripts and
12716 # restored at relink time.
12717 variables_saved_for_relink="$variables_saved_for_relink"
12719 # Whether libtool must link a program against all its dependency libraries.
12720 link_all_deplibs=$link_all_deplibs_CXX
12722 # Compile-time system search path for libraries
12723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12725 # Run-time system search path for libraries
12726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12728 # Fix the shell variable \$srcfile for the compiler.
12729 fix_srcfile_path="$fix_srcfile_path_CXX"
12731 # Set to yes if exported symbols are required.
12732 always_export_symbols=$always_export_symbols_CXX
12734 # The commands to list exported symbols.
12735 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12737 # The commands to extract the exported symbol list from a shared archive.
12738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12740 # Symbols that should not be listed in the preloaded symbols.
12741 exclude_expsyms=$lt_exclude_expsyms_CXX
12743 # Symbols that must always be exported.
12744 include_expsyms=$lt_include_expsyms_CXX
12746 # ### END LIBTOOL TAG CONFIG: $tagname
12752 # If there is no Makefile yet, we rely on a make rule to execute
12753 # `config.status --recheck' to rerun these tests and create the
12754 # libtool script then.
12755 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12756 if test -f "$ltmain_in"; then
12757 test -f Makefile && make "$ltmain"
12763 ac_cpp='$CPP $CPPFLAGS'
12764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12772 with_gnu_ldcxx=$with_gnu_ld
12773 with_gnu_ld=$lt_save_with_gnu_ld
12774 lt_cv_path_LDCXX=$lt_cv_path_LD
12775 lt_cv_path_LD=$lt_save_path_LD
12776 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12777 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12785 if test -n "$F77" && test "X$F77" != "Xno"; then
12788 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12789 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12790 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12793 archive_cmds_need_lc_F77=no
12794 allow_undefined_flag_F77=
12795 always_export_symbols_F77=no
12796 archive_expsym_cmds_F77=
12797 export_dynamic_flag_spec_F77=
12798 hardcode_direct_F77=no
12799 hardcode_libdir_flag_spec_F77=
12800 hardcode_libdir_flag_spec_ld_F77=
12801 hardcode_libdir_separator_F77=
12802 hardcode_minus_L_F77=no
12803 hardcode_automatic_F77=no
12805 module_expsym_cmds_F77=
12806 link_all_deplibs_F77=unknown
12807 old_archive_cmds_F77=$old_archive_cmds
12808 no_undefined_flag_F77=
12809 whole_archive_flag_spec_F77=
12810 enable_shared_with_static_runtimes_F77=no
12812 # Source file extension for f77 test sources.
12815 # Object file extension for compiled f77 test sources.
12819 # Code to be used in simple compile tests
12820 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12822 # Code to be used in simple link tests
12823 lt_simple_link_test_code=" program t\n end\n"
12825 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12827 # If no C compiler was specified, use CC.
12830 # Allow CC to be a program name with arguments.
12834 # Allow CC to be a program name with arguments.
12839 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12841 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12842 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12843 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12844 echo "${ECHO_T}$can_build_shared" >&6
12846 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12847 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12848 test "$can_build_shared" = "no" && enable_shared=no
12850 # On AIX, shared libraries and static libraries use the same namespace, and
12851 # are all built from PIC.
12854 test "$enable_shared" = yes && enable_static=no
12855 if test -n "$RANLIB"; then
12856 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12857 postinstall_cmds='$RANLIB $lib'
12861 test "$enable_shared" = yes && enable_static=no
12864 echo "$as_me:$LINENO: result: $enable_shared" >&5
12865 echo "${ECHO_T}$enable_shared" >&6
12867 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12868 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12869 # Make sure either enable_shared or enable_static is yes.
12870 test "$enable_shared" = yes || enable_static=yes
12871 echo "$as_me:$LINENO: result: $enable_static" >&5
12872 echo "${ECHO_T}$enable_static" >&6
12874 test "$ld_shlibs_F77" = no && can_build_shared=no
12879 lt_prog_compiler_wl_F77=
12880 lt_prog_compiler_pic_F77=
12881 lt_prog_compiler_static_F77=
12883 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12884 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12886 if test "$GCC" = yes; then
12887 lt_prog_compiler_wl_F77='-Wl,'
12888 lt_prog_compiler_static_F77='-static'
12892 # All AIX code is PIC.
12893 if test "$host_cpu" = ia64; then
12894 # AIX 5 now supports IA64 processor
12895 lt_prog_compiler_static_F77='-Bstatic'
12900 # FIXME: we need at least 68020 code to build shared libraries, but
12901 # adding the `-m68020' flag to GCC prevents building anything better,
12903 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12906 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12907 # PIC is the default for these OSes.
12910 mingw* | pw32* | os2*)
12911 # This hack is so that the source file can tell whether it is being
12912 # built for inclusion in a dll (and should export symbols for example).
12913 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12916 darwin* | rhapsody*)
12917 # PIC is the default on this platform
12918 # Common symbols not allowed in MH_DYLIB files
12919 lt_prog_compiler_pic_F77='-fno-common'
12923 # Just because we use GCC doesn't mean we suddenly get shared libraries
12924 # on systems that don't support them.
12925 lt_prog_compiler_can_build_shared_F77=no
12930 if test -d /usr/nec; then
12931 lt_prog_compiler_pic_F77=-Kconform_pic
12936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12937 # not for PA HP-UX.
12938 case "$host_cpu" in
12943 lt_prog_compiler_pic_F77='-fPIC'
12949 lt_prog_compiler_pic_F77='-fPIC'
12953 # PORTME Check for flag to pass linker flags through the system compiler.
12956 lt_prog_compiler_wl_F77='-Wl,'
12957 if test "$host_cpu" = ia64; then
12958 # AIX 5 now supports IA64 processor
12959 lt_prog_compiler_static_F77='-Bstatic'
12961 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12965 mingw* | pw32* | os2*)
12966 # This hack is so that the source file can tell whether it is being
12967 # built for inclusion in a dll (and should export symbols for example).
12968 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12971 hpux9* | hpux10* | hpux11*)
12972 lt_prog_compiler_wl_F77='-Wl,'
12973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12974 # not for PA HP-UX.
12975 case "$host_cpu" in
12980 lt_prog_compiler_pic_F77='+Z'
12983 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12984 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12987 irix5* | irix6* | nonstopux*)
12988 lt_prog_compiler_wl_F77='-Wl,'
12989 # PIC (with -KPIC) is the default.
12990 lt_prog_compiler_static_F77='-non_shared'
12994 lt_prog_compiler_pic_F77='-KPIC'
12995 lt_prog_compiler_static_F77='-Bstatic'
13001 lt_prog_compiler_wl_F77='-Wl,'
13002 lt_prog_compiler_pic_F77='-KPIC'
13003 lt_prog_compiler_static_F77='-static'
13006 lt_prog_compiler_wl_F77='-Wl,'
13007 # All Alpha code is PIC.
13008 lt_prog_compiler_static_F77='-non_shared'
13013 osf3* | osf4* | osf5*)
13014 lt_prog_compiler_wl_F77='-Wl,'
13015 # All OSF/1 code is PIC.
13016 lt_prog_compiler_static_F77='-non_shared'
13020 lt_prog_compiler_pic_F77='-Kpic'
13021 lt_prog_compiler_static_F77='-dn'
13025 lt_prog_compiler_wl_F77='-Wl,'
13026 lt_prog_compiler_pic_F77='-KPIC'
13027 lt_prog_compiler_static_F77='-Bstatic'
13031 lt_prog_compiler_wl_F77='-Qoption ld '
13032 lt_prog_compiler_pic_F77='-PIC'
13033 lt_prog_compiler_static_F77='-Bstatic'
13036 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13037 lt_prog_compiler_wl_F77='-Wl,'
13038 lt_prog_compiler_pic_F77='-KPIC'
13039 lt_prog_compiler_static_F77='-Bstatic'
13043 if test -d /usr/nec ;then
13044 lt_prog_compiler_pic_F77='-Kconform_pic'
13045 lt_prog_compiler_static_F77='-Bstatic'
13050 lt_prog_compiler_pic_F77='-pic'
13051 lt_prog_compiler_static_F77='-Bstatic'
13055 lt_prog_compiler_can_build_shared_F77=no
13060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13061 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13064 # Check to make sure the PIC flag actually works.
13066 if test -n "$lt_prog_compiler_pic_F77"; then
13068 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13069 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13070 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 lt_prog_compiler_pic_works_F77=no
13074 ac_outfile=conftest.$ac_objext
13075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13076 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13077 # Insert the option either (1) after the last *FLAGS variable, or
13078 # (2) before a word containing "conftest.", or (3) at the end.
13079 # Note that $ac_compile itself does not contain backslashes and begins
13080 # with a dollar sign (not a hyphen), so the echo should work correctly.
13081 # The option is referenced via a variable to avoid confusing sed.
13082 lt_compile=`echo "$ac_compile" | $SED \
13083 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13085 -e 's:$: $lt_compiler_flag:'`
13086 (eval echo "\"\$as_me:13086: $lt_compile\"" >&5)
13087 (eval "$lt_compile" 2>conftest.err)
13089 cat conftest.err >&5
13090 echo "$as_me:13090: \$? = $ac_status" >&5
13091 if (exit $ac_status) && test -s "$ac_outfile"; then
13092 # The compiler can only warn and ignore the option if not recognized
13093 # So say no if there are warnings
13094 if test ! -s conftest.err; then
13095 lt_prog_compiler_pic_works_F77=yes
13101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13102 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13104 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13105 case $lt_prog_compiler_pic_F77 in
13107 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13110 lt_prog_compiler_pic_F77=
13111 lt_prog_compiler_can_build_shared_F77=no
13116 # For platforms which do not support PIC, -DPIC is meaningless:
13118 lt_prog_compiler_pic_F77=
13121 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13125 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13126 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13127 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 lt_cv_prog_compiler_c_o_F77=no
13131 $rm -r conftest 2>/dev/null
13135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13137 lt_compiler_flag="-o out/conftest2.$ac_objext"
13138 # Insert the option either (1) after the last *FLAGS variable, or
13139 # (2) before a word containing "conftest.", or (3) at the end.
13140 # Note that $ac_compile itself does not contain backslashes and begins
13141 # with a dollar sign (not a hyphen), so the echo should work correctly.
13142 lt_compile=`echo "$ac_compile" | $SED \
13143 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13145 -e 's:$: $lt_compiler_flag:'`
13146 (eval echo "\"\$as_me:13146: $lt_compile\"" >&5)
13147 (eval "$lt_compile" 2>out/conftest.err)
13149 cat out/conftest.err >&5
13150 echo "$as_me:13150: \$? = $ac_status" >&5
13151 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13153 # The compiler can only warn and ignore the option if not recognized
13154 # So say no if there are warnings
13155 if test ! -s out/conftest.err; then
13156 lt_cv_prog_compiler_c_o_F77=yes
13161 # SGI C++ compiler will create directory out/ii_files/ for
13162 # template instantiation
13163 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13164 $rm out/* && rmdir out
13170 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13171 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13174 hard_links="nottested"
13175 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13176 # do not overwrite the value of need_locks provided by the user
13177 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13178 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13183 ln conftest.a conftest.b 2>&5 || hard_links=no
13184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13185 echo "$as_me:$LINENO: result: $hard_links" >&5
13186 echo "${ECHO_T}$hard_links" >&6
13187 if test "$hard_links" = no; then
13188 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13189 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13196 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13197 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13200 allow_undefined_flag_F77=
13201 enable_shared_with_static_runtimes_F77=no
13203 archive_expsym_cmds_F77=
13204 old_archive_From_new_cmds_F77=
13205 old_archive_from_expsyms_cmds_F77=
13206 export_dynamic_flag_spec_F77=
13207 whole_archive_flag_spec_F77=
13208 thread_safe_flag_spec_F77=
13209 hardcode_libdir_flag_spec_F77=
13210 hardcode_libdir_flag_spec_ld_F77=
13211 hardcode_libdir_separator_F77=
13212 hardcode_direct_F77=no
13213 hardcode_minus_L_F77=no
13214 hardcode_shlibpath_var_F77=unsupported
13215 link_all_deplibs_F77=unknown
13216 hardcode_automatic_F77=no
13218 module_expsym_cmds_F77=
13219 always_export_symbols_F77=no
13220 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13221 # include_expsyms should be a list of space-separated symbols to be *always*
13222 # included in the symbol list
13223 include_expsyms_F77=
13224 # exclude_expsyms can be an extended regexp of symbols to exclude
13225 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13226 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13227 # as well as any symbol that contains `d'.
13228 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13230 # platforms (ab)use it in PIC code, but their linkers get confused if
13231 # the symbol is explicitly referenced. Since portable code cannot
13232 # rely on this symbol name, it's probably fine to never include it in
13233 # preloaded symbol tables.
13234 extract_expsyms_cmds=
13237 cygwin* | mingw* | pw32*)
13238 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13239 # When not using gcc, we currently assume that we are using
13240 # Microsoft Visual C++.
13241 if test "$GCC" != yes; then
13251 if test "$with_gnu_ld" = yes; then
13252 # If archive_cmds runs LD, not CC, wlarc should be empty
13255 # See if GNU ld supports shared libraries.
13257 aix3* | aix4* | aix5*)
13258 # On AIX/PPC, the GNU linker is very broken
13259 if test "$host_cpu" != ia64; then
13263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13264 *** to be unable to reliably create shared libraries on AIX.
13265 *** Therefore, libtool is disabling shared libraries support. If you
13266 *** really care for shared libraries, you may want to modify your PATH
13267 *** so that a non-GNU linker is found, and then restart.
13274 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)'
13275 hardcode_libdir_flag_spec_F77='-L$libdir'
13276 hardcode_minus_L_F77=yes
13278 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13279 # that the semantics of dynamic libraries on AmigaOS, at least up
13280 # to version 4, is to share data among multiple programs linked
13281 # with the same dynamic library. Since this doesn't match the
13282 # behavior of shared libraries on other platforms, we can't use
13288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13289 allow_undefined_flag_F77=unsupported
13290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13291 # support --undefined. This deserves some investigation. FIXME
13292 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298 cygwin* | mingw* | pw32*)
13299 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13300 # as there is no search path for DLLs.
13301 hardcode_libdir_flag_spec_F77='-L$libdir'
13302 allow_undefined_flag_F77=unsupported
13303 always_export_symbols_F77=no
13304 enable_shared_with_static_runtimes_F77=yes
13305 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13307 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13309 # If the export-symbols file already is a .def file (1st line
13310 # is EXPORTS), use it as is; otherwise, prepend...
13311 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13312 cp $export_symbols $output_objdir/$soname.def;
13314 echo EXPORTS > $output_objdir/$soname.def;
13315 cat $export_symbols >> $output_objdir/$soname.def;
13317 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13325 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13328 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13329 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13334 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13339 *** create shared libraries on Solaris systems. Therefore, libtool
13340 *** is disabling shared libraries support. We urge you to upgrade GNU
13341 *** binutils to release 2.9.1 or newer. Another option is to modify
13342 *** your PATH or compiler configuration so that the native linker is
13343 *** used, and then restart.
13346 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13347 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13355 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13357 hardcode_direct_F77=yes
13358 hardcode_shlibpath_var_F77=no
13362 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13363 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13364 archive_cmds_F77="$tmp_archive_cmds"
13365 supports_anon_versioning=no
13366 case `$LD -v 2>/dev/null` in
13367 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13368 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13369 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13370 *\ 2.11.*) ;; # other 2.11 versions
13371 *) supports_anon_versioning=yes ;;
13373 if test $supports_anon_versioning = yes; then
13374 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13375 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13376 $echo "local: *; };" >> $output_objdir/$libname.ver~
13377 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13379 archive_expsym_cmds_F77="$tmp_archive_cmds"
13387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13388 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13396 if test "$ld_shlibs_F77" = yes; then
13397 runpath_var=LD_RUN_PATH
13398 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13399 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13400 # ancient GNU ld didn't support --whole-archive et. al.
13401 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13402 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13404 whole_archive_flag_spec_F77=
13408 # PORTME fill in a description of your system's linker (not GNU ld)
13411 allow_undefined_flag_F77=unsupported
13412 always_export_symbols_F77=yes
13413 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'
13414 # Note: this linker hardcodes the directories in LIBPATH if there
13415 # are no directories specified by -L.
13416 hardcode_minus_L_F77=yes
13417 if test "$GCC" = yes && test -z "$link_static_flag"; then
13418 # Neither direct hardcoding nor static linking is supported with a
13420 hardcode_direct_F77=unsupported
13425 if test "$host_cpu" = ia64; then
13426 # On IA64, the linker does run time linking by default, so we don't
13427 # have to do anything special.
13428 aix_use_runtimelinking=no
13429 exp_sym_flag='-Bexport'
13432 # If we're using GNU nm, then we don't want the "-C" option.
13433 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13434 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13435 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'
13437 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'
13439 aix_use_runtimelinking=no
13441 # Test if we are trying to use run time linking or normal
13442 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13443 # need to do runtime linking.
13444 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13445 for ld_flag in $LDFLAGS; do
13446 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13447 aix_use_runtimelinking=yes
13453 exp_sym_flag='-bexport'
13454 no_entry_flag='-bnoentry'
13457 # When large executables or shared objects are built, AIX ld can
13458 # have problems creating the table of contents. If linking a library
13459 # or program results in "error TOC overflow" add -mminimal-toc to
13460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13463 archive_cmds_F77=''
13464 hardcode_direct_F77=yes
13465 hardcode_libdir_separator_F77=':'
13466 link_all_deplibs_F77=yes
13468 if test "$GCC" = yes; then
13469 case $host_os in aix4.012|aix4.012.*)
13470 # We only want to do this on AIX 4.2 and lower, the check
13471 # below for broken collect2 doesn't work under 4.3+
13472 collect2name=`${CC} -print-prog-name=collect2`
13473 if test -f "$collect2name" && \
13474 strings "$collect2name" | grep resolve_lib_name >/dev/null
13476 # We have reworked collect2
13477 hardcode_direct_F77=yes
13479 # We have old collect2
13480 hardcode_direct_F77=unsupported
13481 # It fails to find uninstalled libraries when the uninstalled
13482 # path is not listed in the libpath. Setting hardcode_minus_L
13483 # to unsupported forces relinking
13484 hardcode_minus_L_F77=yes
13485 hardcode_libdir_flag_spec_F77='-L$libdir'
13486 hardcode_libdir_separator_F77=
13489 shared_flag='-shared'
13492 if test "$host_cpu" = ia64; then
13493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13494 # chokes on -Wl,-G. The following line is correct:
13497 if test "$aix_use_runtimelinking" = yes; then
13498 shared_flag='${wl}-G'
13500 shared_flag='${wl}-bM:SRE'
13505 # It seems that -bexpall does not export symbols beginning with
13506 # underscore (_), so it is better to generate a list of symbols to export.
13507 always_export_symbols_F77=yes
13508 if test "$aix_use_runtimelinking" = yes; then
13509 # Warning - without using the other runtime loading flags (-brtl),
13510 # -berok will link without error, but may produce a broken library.
13511 allow_undefined_flag_F77='-berok'
13512 # Determine the default libpath from the value encoded in an empty executable.
13513 cat >conftest.$ac_ext <<_ACEOF
13518 rm -f conftest.$ac_objext conftest$ac_exeext
13519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13520 (eval $ac_link) 2>conftest.er1
13522 grep -v '^ *+' conftest.er1 >conftest.err
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -z "$ac_f77_werror_flag"
13528 || test ! -s conftest.err'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; } &&
13534 { ac_try='test -s conftest$ac_exeext'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; }; then
13541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13543 # Check for a 64-bit object if we didn't find anything.
13544 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; }
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13551 rm -f conftest.err conftest.$ac_objext \
13552 conftest$ac_exeext conftest.$ac_ext
13553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13555 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13556 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"
13558 if test "$host_cpu" = ia64; then
13559 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13560 allow_undefined_flag_F77="-z nodefs"
13561 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"
13563 # Determine the default libpath from the value encoded in an empty executable.
13564 cat >conftest.$ac_ext <<_ACEOF
13569 rm -f conftest.$ac_objext conftest$ac_exeext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13571 (eval $ac_link) 2>conftest.er1
13573 grep -v '^ *+' conftest.er1 >conftest.err
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -z "$ac_f77_werror_flag"
13579 || test ! -s conftest.err'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest$ac_exeext'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13592 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13594 # Check for a 64-bit object if we didn't find anything.
13595 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; }
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.$ac_ext >&5
13602 rm -f conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
13604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13606 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13607 # Warning - without using the other run time loading flags,
13608 # -berok will link without error, but may produce a broken library.
13609 no_undefined_flag_F77=' ${wl}-bernotok'
13610 allow_undefined_flag_F77=' ${wl}-berok'
13611 # -bexpall does not export symbols beginning with underscore (_)
13612 always_export_symbols_F77=yes
13613 # Exported symbols can be pulled into shared objects from archives
13614 whole_archive_flag_spec_F77=' '
13615 archive_cmds_need_lc_F77=yes
13616 # This is similar to how AIX traditionally builds it's shared libraries.
13617 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'
13623 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)'
13624 hardcode_libdir_flag_spec_F77='-L$libdir'
13625 hardcode_minus_L_F77=yes
13626 # see comment about different semantics on the GNU ld section
13631 export_dynamic_flag_spec_F77=-rdynamic
13634 cygwin* | mingw* | pw32*)
13635 # When not using gcc, we currently assume that we are using
13636 # Microsoft Visual C++.
13637 # hardcode_libdir_flag_spec is actually meaningless, as there is
13638 # no search path for DLLs.
13639 hardcode_libdir_flag_spec_F77=' '
13640 allow_undefined_flag_F77=unsupported
13641 # Tell ltmain to make .lib files, not .a files.
13643 # Tell ltmain to make .dll files, not .so files.
13645 # FIXME: Setting linknames here is a bad hack.
13646 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13647 # The linker will automatically build a .lib file if we build a DLL.
13648 old_archive_From_new_cmds_F77='true'
13649 # FIXME: Should let the user specify the lib program.
13650 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13651 fix_srcfile_path='`cygpath -w "$srcfile"`'
13652 enable_shared_with_static_runtimes_F77=yes
13655 darwin* | rhapsody*)
13656 if test "$GXX" = yes ; then
13657 archive_cmds_need_lc_F77=no
13659 rhapsody* | darwin1.[012])
13660 allow_undefined_flag_F77='-undefined suppress'
13663 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13664 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13666 case ${MACOSX_DEPLOYMENT_TARGET} in
13668 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13671 allow_undefined_flag_F77='-undefined dynamic_lookup'
13677 lt_int_apple_cc_single_mod=no
13678 output_verbose_link_cmd='echo'
13679 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13680 lt_int_apple_cc_single_mod=yes
13682 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13683 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13685 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'
13687 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13688 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13689 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13690 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}'
13692 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}'
13694 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}'
13695 hardcode_direct_F77=no
13696 hardcode_automatic_F77=yes
13697 hardcode_shlibpath_var_F77=unsupported
13698 whole_archive_flag_spec_F77='-all_load $convenience'
13699 link_all_deplibs_F77=yes
13706 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13707 hardcode_libdir_flag_spec_F77='-L$libdir'
13708 hardcode_shlibpath_var_F77=no
13715 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13716 # support. Future versions do this automatically, but an explicit c++rt0.o
13717 # does not break anything, and helps significantly (at the cost of a little
13720 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13721 hardcode_libdir_flag_spec_F77='-R$libdir'
13722 hardcode_direct_F77=yes
13723 hardcode_shlibpath_var_F77=no
13726 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13728 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13729 hardcode_direct_F77=yes
13730 hardcode_minus_L_F77=yes
13731 hardcode_shlibpath_var_F77=no
13734 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13735 freebsd* | kfreebsd*-gnu)
13736 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13737 hardcode_libdir_flag_spec_F77='-R$libdir'
13738 hardcode_direct_F77=yes
13739 hardcode_shlibpath_var_F77=no
13743 if test "$GCC" = yes; then
13744 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'
13746 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'
13748 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13749 hardcode_libdir_separator_F77=:
13750 hardcode_direct_F77=yes
13752 # hardcode_minus_L: Not really in the search PATH,
13753 # but as the default location of the library.
13754 hardcode_minus_L_F77=yes
13755 export_dynamic_flag_spec_F77='${wl}-E'
13759 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13760 case "$host_cpu" in
13762 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13769 case "$host_cpu" in
13771 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13774 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13778 if test "$with_gnu_ld" = no; then
13779 case "$host_cpu" in
13781 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13782 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13783 hardcode_libdir_separator_F77=:
13784 hardcode_direct_F77=no
13785 hardcode_shlibpath_var_F77=no
13788 hardcode_libdir_flag_spec_F77='-L$libdir'
13789 hardcode_direct_F77=no
13790 hardcode_shlibpath_var_F77=no
13792 # hardcode_minus_L: Not really in the search PATH,
13793 # but as the default location of the library.
13794 hardcode_minus_L_F77=yes
13797 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13798 hardcode_libdir_separator_F77=:
13799 hardcode_direct_F77=yes
13800 export_dynamic_flag_spec_F77='${wl}-E'
13802 # hardcode_minus_L: Not really in the search PATH,
13803 # but as the default location of the library.
13804 hardcode_minus_L_F77=yes
13810 irix5* | irix6* | nonstopux*)
13811 if test "$GCC" = yes; then
13812 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'
13814 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'
13815 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13817 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13818 hardcode_libdir_separator_F77=:
13819 link_all_deplibs_F77=yes
13823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13824 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13826 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13828 hardcode_libdir_flag_spec_F77='-R$libdir'
13829 hardcode_direct_F77=yes
13830 hardcode_shlibpath_var_F77=no
13834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835 hardcode_direct_F77=yes
13836 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13837 hardcode_libdir_separator_F77=:
13838 hardcode_shlibpath_var_F77=no
13842 hardcode_direct_F77=yes
13843 hardcode_shlibpath_var_F77=no
13844 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13845 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13846 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13847 export_dynamic_flag_spec_F77='${wl}-E'
13850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13851 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13852 hardcode_libdir_flag_spec_F77='-R$libdir'
13855 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13856 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13863 hardcode_libdir_flag_spec_F77='-L$libdir'
13864 hardcode_minus_L_F77=yes
13865 allow_undefined_flag_F77=unsupported
13866 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'
13867 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13871 if test "$GCC" = yes; then
13872 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13873 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'
13875 allow_undefined_flag_F77=' -expect_unresolved \*'
13876 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'
13878 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13879 hardcode_libdir_separator_F77=:
13882 osf4* | osf5*) # as osf3* with the addition of -msym flag
13883 if test "$GCC" = yes; then
13884 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13885 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'
13886 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13888 allow_undefined_flag_F77=' -expect_unresolved \*'
13889 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'
13890 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~
13891 $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'
13893 # Both c and cxx compiler support -rpath directly
13894 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13896 hardcode_libdir_separator_F77=:
13900 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13901 hardcode_shlibpath_var_F77=no
13902 export_dynamic_flag_spec_F77='${wl}-Bexport'
13903 runpath_var=LD_RUN_PATH
13904 hardcode_runpath_var=yes
13908 no_undefined_flag_F77=' -z text'
13909 if test "$GCC" = yes; then
13910 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13911 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13912 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13914 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13916 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13918 hardcode_libdir_flag_spec_F77='-R$libdir'
13919 hardcode_shlibpath_var_F77=no
13921 solaris2.[0-5] | solaris2.[0-5].*) ;;
13922 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13923 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13925 link_all_deplibs_F77=yes
13929 if test "x$host_vendor" = xsequent; then
13930 # Use $CC to link under sequent, because it throws in some extra .o
13931 # files that make .init and .fini sections work.
13932 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13934 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13936 hardcode_libdir_flag_spec_F77='-L$libdir'
13937 hardcode_direct_F77=yes
13938 hardcode_minus_L_F77=yes
13939 hardcode_shlibpath_var_F77=no
13943 case $host_vendor in
13945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13946 hardcode_direct_F77=yes # is this really true???
13949 ## LD is ld it makes a PLAMLIB
13950 ## CC just makes a GrossModule.
13951 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13952 reload_cmds_F77='$CC -r -o $output$reload_objs'
13953 hardcode_direct_F77=no
13956 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13960 runpath_var='LD_RUN_PATH'
13961 hardcode_shlibpath_var_F77=no
13965 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13966 hardcode_shlibpath_var_F77=no
13967 export_dynamic_flag_spec_F77='-Bexport'
13971 if test -d /usr/nec; then
13972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13973 hardcode_shlibpath_var_F77=no
13974 runpath_var=LD_RUN_PATH
13975 hardcode_runpath_var=yes
13981 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13982 hardcode_direct_F77=yes
13983 hardcode_minus_L_F77=no
13984 hardcode_shlibpath_var_F77=no
13985 hardcode_runpath_var=yes
13986 runpath_var=LD_RUN_PATH
13989 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13990 no_undefined_flag_F77='${wl}-z ${wl}text'
13991 if test "$GCC" = yes; then
13992 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13994 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13996 runpath_var='LD_RUN_PATH'
13997 hardcode_shlibpath_var_F77=no
14001 no_undefined_flag_F77=' -z text'
14002 # $CC -shared without GNU ld will not create a library from C++
14003 # object files and a static libstdc++, better avoid it by now
14004 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14005 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14007 hardcode_libdir_flag_spec_F77=
14008 hardcode_shlibpath_var_F77=no
14009 runpath_var='LD_RUN_PATH'
14013 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14014 hardcode_libdir_flag_spec_F77='-L$libdir'
14015 hardcode_shlibpath_var_F77=no
14024 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14025 echo "${ECHO_T}$ld_shlibs_F77" >&6
14026 test "$ld_shlibs_F77" = no && can_build_shared=no
14028 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14029 if test "$GCC" = yes; then
14030 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14034 # Do we need to explicitly link libc?
14036 case "x$archive_cmds_need_lc_F77" in
14038 # Assume -lc should be added
14039 archive_cmds_need_lc_F77=yes
14041 if test "$enable_shared" = yes && test "$GCC" = yes; then
14042 case $archive_cmds_F77 in
14044 # FIXME: we may have to deal with multi-command sequences.
14047 # Test whether the compiler implicitly links with -lc since on some
14048 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14049 # to ld, don't add -lc before -lgcc.
14050 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14051 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } 2>conftest.err; then
14062 libobjs=conftest.$ac_objext
14064 wl=$lt_prog_compiler_wl_F77
14070 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14071 allow_undefined_flag_F77=
14072 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14073 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }
14078 archive_cmds_need_lc_F77=no
14080 archive_cmds_need_lc_F77=yes
14082 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14084 cat conftest.err 1>&5
14087 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14088 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14095 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14096 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14097 library_names_spec=
14098 libname_spec='lib$name'
14102 postuninstall_cmds=
14106 shlibpath_overrides_runpath=unknown
14108 dynamic_linker="$host_os ld.so"
14109 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14110 if test "$GCC" = yes; then
14111 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14112 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14113 # if the path contains ";" then we assume it to be the separator
14114 # otherwise default to the standard path separator (i.e. ":") - it is
14115 # assumed that no part of a normal pathname contains ";" but that should
14116 # okay in the real world where ";" in dirpaths is itself problematic.
14117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14122 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14124 need_lib_prefix=unknown
14125 hardcode_into_libs=no
14127 # when you set need_version to no, make sure it does not cause -set_version
14128 # flags to be left without arguments
14129 need_version=unknown
14134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14135 shlibpath_var=LIBPATH
14137 # AIX 3 has no versioning support, so we append a major version to the name.
14138 soname_spec='${libname}${release}${shared_ext}$major'
14145 hardcode_into_libs=yes
14146 if test "$host_cpu" = ia64; then
14147 # AIX 5 supports IA64
14148 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14149 shlibpath_var=LD_LIBRARY_PATH
14151 # With GCC up to 2.95.x, collect2 would create an import file
14152 # for dependence libraries. The import file would start with
14153 # the line `#! .'. This would cause the generated library to
14154 # depend on `.', always an invalid library. This was fixed in
14155 # development snapshots of GCC prior to 3.0.
14157 aix4 | aix4.[01] | aix4.[01].*)
14158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14160 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14163 can_build_shared=no
14167 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14168 # soname into executable. Probably we can add versioning support to
14169 # collect2, so additional links can be useful in future.
14170 if test "$aix_use_runtimelinking" = yes; then
14171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14172 # instead of lib<name>.a to let people know that these are not
14173 # typical AIX shared libraries.
14174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14176 # We preserve .a as extension for shared libraries through AIX4.2
14177 # and later when we are not doing run time linking.
14178 library_names_spec='${libname}${release}.a $libname.a'
14179 soname_spec='${libname}${release}${shared_ext}$major'
14181 shlibpath_var=LIBPATH
14186 library_names_spec='$libname.ixlibrary $libname.a'
14187 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14188 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'
14192 library_names_spec='${libname}${shared_ext}'
14193 dynamic_linker="$host_os ld.so"
14194 shlibpath_var=LIBRARY_PATH
14200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14201 soname_spec='${libname}${release}${shared_ext}$major'
14202 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14203 shlibpath_var=LD_LIBRARY_PATH
14204 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14205 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14206 # the default ld.so.conf also contains /usr/contrib/lib and
14207 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14208 # libtool to hard-code these into programs
14211 cygwin* | mingw* | pw32*)
14212 version_type=windows
14217 case $GCC,$host_os in
14218 yes,cygwin* | yes,mingw* | yes,pw32*)
14219 library_names_spec='$libname.dll.a'
14220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14221 postinstall_cmds='base_file=`basename \${file}`~
14222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14223 dldir=$destdir/`dirname \$dlpath`~
14224 test -d \$dldir || mkdir -p \$dldir~
14225 $install_prog $dir/$dlname \$dldir/$dlname'
14226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14227 dlpath=$dir/\$dldll~
14229 shlibpath_overrides_runpath=yes
14233 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14234 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14235 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14238 # MinGW DLLs use traditional 'lib' prefix
14239 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14240 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14241 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14242 # It is most probably a Windows format PATH printed by
14243 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14244 # path with ; separators, and with drive letters. We can handle the
14245 # drive letters (cygwin fileutils understands them), so leave them,
14246 # especially as we might pass files found there to a mingw objdump,
14247 # which wouldn't understand a cygwinified path. Ahh.
14248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14254 # pw32 DLLs use 'pw' prefix rather than 'lib'
14255 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14261 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14263 supports_anon_versioning=no
14264 case `$LD -v 2>/dev/null` in
14265 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14266 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14267 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14268 *\ 2.11.*) ;; # other 2.11 versions
14269 *) supports_anon_versioning=yes ;;
14271 if test $supports_anon_versioning = yes; then
14272 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14274 $echo "local: *; };" >> $output_objdir/$libname.ver~
14275 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14277 $archive_expsym_cmds="$archive_cmds"
14285 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14288 dynamic_linker='Win32 ld.exe'
14289 # FIXME: first we should search . and the directory the executable is in
14293 darwin* | rhapsody*)
14294 dynamic_linker="$host_os dyld"
14295 version_type=darwin
14298 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14299 soname_spec='${libname}${release}${major}$shared_ext'
14300 shlibpath_overrides_runpath=yes
14301 shlibpath_var=DYLD_LIBRARY_PATH
14302 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14303 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14304 if test "$GCC" = yes; then
14305 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"`
14307 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14309 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14317 soname_spec='${libname}${release}${shared_ext}$major'
14318 shlibpath_var=LD_LIBRARY_PATH
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14330 soname_spec='${libname}${release}${shared_ext}$major'
14331 shlibpath_var=LD_LIBRARY_PATH
14332 shlibpath_overrides_runpath=no
14333 hardcode_into_libs=yes
14334 dynamic_linker='GNU ld.so'
14338 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14339 version_type=freebsd-$objformat
14340 case $version_type in
14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14351 shlibpath_var=LD_LIBRARY_PATH
14354 shlibpath_overrides_runpath=yes
14356 freebsd3.01* | freebsdelf3.01*)
14357 shlibpath_overrides_runpath=yes
14358 hardcode_into_libs=yes
14361 shlibpath_overrides_runpath=no
14362 hardcode_into_libs=yes
14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14372 soname_spec='${libname}${release}${shared_ext}$major'
14373 shlibpath_var=LD_LIBRARY_PATH
14374 hardcode_into_libs=yes
14377 hpux9* | hpux10* | hpux11*)
14378 # Give a soname corresponding to the major version so that dld.sl refuses to
14379 # link against other versions.
14383 case "$host_cpu" in
14386 hardcode_into_libs=yes
14387 dynamic_linker="$host_os dld.so"
14388 shlibpath_var=LD_LIBRARY_PATH
14389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391 soname_spec='${libname}${release}${shared_ext}$major'
14392 if test "X$HPUX_IA64_MODE" = X32; then
14393 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14395 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14401 hardcode_into_libs=yes
14402 dynamic_linker="$host_os dld.sl"
14403 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14412 dynamic_linker="$host_os dld.sl"
14413 shlibpath_var=SHLIB_PATH
14414 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416 soname_spec='${libname}${release}${shared_ext}$major'
14419 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14420 postinstall_cmds='chmod 555 $lib'
14423 irix5* | irix6* | nonstopux*)
14425 nonstopux*) version_type=nonstopux ;;
14427 if test "$lt_cv_prog_gnu_ld" = yes; then
14435 soname_spec='${libname}${release}${shared_ext}$major'
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14438 irix5* | nonstopux*)
14439 libsuff= shlibsuff=
14442 case $LD in # libtool.m4 will add one of these switches to LD
14443 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14444 libsuff= shlibsuff= libmagic=32-bit;;
14445 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14446 libsuff=32 shlibsuff=N32 libmagic=N32;;
14447 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14448 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14449 *) libsuff= shlibsuff= libmagic=never-match;;
14453 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14454 shlibpath_overrides_runpath=no
14455 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14456 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14457 hardcode_into_libs=yes
14460 # No shared lib support for Linux oldld, aout, or coff.
14461 linux*oldld* | linux*aout* | linux*coff*)
14465 # This must be Linux ELF.
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471 soname_spec='${libname}${release}${shared_ext}$major'
14472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 shlibpath_overrides_runpath=no
14475 # This implies no fast_install, which is unacceptable.
14476 # Some rework will be needed to allow for fast_install
14477 # before this can be enabled.
14478 hardcode_into_libs=yes
14480 # Append ld.so.conf contents to the search path
14481 if test -f /etc/ld.so.conf; then
14482 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14483 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14486 case $host_cpu:$lt_cv_cc_64bit_output in
14487 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
14488 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
14489 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
14493 # We used to test for /lib/ld.so.1 and disable shared libraries on
14494 # powerpc, because MkLinux only supported shared libraries with the
14495 # GNU dynamic linker. Since this was broken with cross compilers,
14496 # most powerpc-linux boxes support dynamic linking these days and
14497 # people can always --disable-shared, the test was removed, and we
14498 # assume the GNU/Linux dynamic linker is in use.
14499 dynamic_linker='GNU/Linux ld.so'
14501 # Find out which ABI we are using (multilib Linux x86_64 hack).
14503 case "$host_cpu" in
14505 echo '#line 14505 "configure"' > conftest.$ac_ext
14506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14507 (eval $ac_compile) 2>&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; then
14511 case `/usr/bin/file conftest.$ac_objext` in
14522 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14523 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 shlibpath_overrides_runpath=no
14534 hardcode_into_libs=yes
14535 dynamic_linker='GNU ld.so'
14542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14545 dynamic_linker='NetBSD (a.out) ld.so'
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 dynamic_linker='NetBSD ld.elf_so'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=yes
14553 hardcode_into_libs=yes
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 shlibpath_overrides_runpath=yes
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568 soname_spec='${libname}${release}${shared_ext}$major'
14569 shlibpath_var=LD_LIBRARY_PATH
14570 shlibpath_overrides_runpath=yes
14577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14579 shlibpath_var=LD_LIBRARY_PATH
14580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14582 openbsd2.[89] | openbsd2.[89].*)
14583 shlibpath_overrides_runpath=no
14586 shlibpath_overrides_runpath=yes
14590 shlibpath_overrides_runpath=yes
14595 libname_spec='$name'
14598 library_names_spec='$libname${shared_ext} $libname.a'
14599 dynamic_linker='OS/2 ld.exe'
14600 shlibpath_var=LIBPATH
14603 osf3* | osf4* | osf5*)
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14611 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618 shlibpath_var=LD_LIBRARY_PATH
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec='${libname}${release}${shared_ext}$major'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath=yes
14629 hardcode_into_libs=yes
14630 # ldd complains unless libraries are executable
14631 postinstall_cmds='chmod +x $lib'
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14637 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=yes
14640 if test "$with_gnu_ld" = yes; then
14646 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 shlibpath_var=LD_LIBRARY_PATH
14651 case $host_vendor in
14653 shlibpath_overrides_runpath=no
14655 export_dynamic_flag_spec='${wl}-Blargedynsym'
14656 runpath_var=LD_RUN_PATH
14664 shlibpath_overrides_runpath=no
14665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14671 if test -d /usr/nec ;then
14673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14674 soname_spec='$libname${shared_ext}.$major'
14675 shlibpath_var=LD_LIBRARY_PATH
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 shlibpath_var=LD_LIBRARY_PATH
14690 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14691 echo "${ECHO_T}$dynamic_linker" >&6
14692 test "$dynamic_linker" = no && can_build_shared=no
14694 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14695 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14696 hardcode_action_F77=
14697 if test -n "$hardcode_libdir_flag_spec_F77" || \
14698 test -n "$runpath_var F77" || \
14699 test "X$hardcode_automatic_F77"="Xyes" ; then
14701 # We can hardcode non-existant directories.
14702 if test "$hardcode_direct_F77" != no &&
14703 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14704 # have to relink, otherwise we might link with an installed library
14705 # when we should be linking with a yet-to-be-installed one
14706 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14707 test "$hardcode_minus_L_F77" != no; then
14708 # Linking always hardcodes the temporary library directory.
14709 hardcode_action_F77=relink
14711 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14712 hardcode_action_F77=immediate
14715 # We cannot hardcode anything, or else we can only hardcode existing
14717 hardcode_action_F77=unsupported
14719 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14720 echo "${ECHO_T}$hardcode_action_F77" >&6
14722 if test "$hardcode_action_F77" = relink; then
14723 # Fast installation is not supported
14724 enable_fast_install=no
14725 elif test "$shlibpath_overrides_runpath" = yes ||
14726 test "$enable_shared" = no; then
14727 # Fast installation is not necessary
14728 enable_fast_install=needless
14733 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14734 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14735 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14736 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14737 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14738 echo "$as_me:$LINENO: result: yes" >&5
14739 echo "${ECHO_T}yes" >&6
14741 # FIXME - insert some real tests, host_os isn't really good enough
14744 if test -n "$STRIP" ; then
14745 striplib="$STRIP -x"
14746 echo "$as_me:$LINENO: result: yes" >&5
14747 echo "${ECHO_T}yes" >&6
14749 echo "$as_me:$LINENO: result: no" >&5
14750 echo "${ECHO_T}no" >&6
14754 echo "$as_me:$LINENO: result: no" >&5
14755 echo "${ECHO_T}no" >&6
14762 # The else clause should only fire when bootstrapping the
14763 # libtool distribution, otherwise you forgot to ship ltmain.sh
14764 # with your package, and you will get complaints that there are
14765 # no rules to generate ltmain.sh.
14766 if test -f "$ltmain"; then
14767 # See if we are running on zsh, and set the options which allow our commands through
14768 # without removal of \ escapes.
14769 if test -n "${ZSH_VERSION+set}" ; then
14770 setopt NO_GLOB_SUBST
14772 # Now quote all the things that may contain metacharacters while being
14773 # careful not to overquote the AC_SUBSTed values. We take copies of the
14774 # variables and quote the copies for generation of the libtool script.
14775 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14777 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14778 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14779 deplibs_check_method reload_flag reload_cmds need_locks \
14780 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14781 lt_cv_sys_global_symbol_to_c_name_address \
14782 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14783 old_postinstall_cmds old_postuninstall_cmds \
14787 lt_prog_compiler_wl_F77 \
14788 lt_prog_compiler_pic_F77 \
14789 lt_prog_compiler_static_F77 \
14790 lt_prog_compiler_no_builtin_flag_F77 \
14791 export_dynamic_flag_spec_F77 \
14792 thread_safe_flag_spec_F77 \
14793 whole_archive_flag_spec_F77 \
14794 enable_shared_with_static_runtimes_F77 \
14795 old_archive_cmds_F77 \
14796 old_archive_from_new_cmds_F77 \
14797 predep_objects_F77 \
14798 postdep_objects_F77 \
14801 compiler_lib_search_path_F77 \
14803 archive_expsym_cmds_F77 \
14804 postinstall_cmds_F77 \
14805 postuninstall_cmds_F77 \
14806 old_archive_from_expsyms_cmds_F77 \
14807 allow_undefined_flag_F77 \
14808 no_undefined_flag_F77 \
14809 export_symbols_cmds_F77 \
14810 hardcode_libdir_flag_spec_F77 \
14811 hardcode_libdir_flag_spec_ld_F77 \
14812 hardcode_libdir_separator_F77 \
14813 hardcode_automatic_F77 \
14815 module_expsym_cmds_F77 \
14816 lt_cv_prog_compiler_c_o_F77 \
14817 exclude_expsyms_F77 \
14818 include_expsyms_F77; do
14821 old_archive_cmds_F77 | \
14822 old_archive_from_new_cmds_F77 | \
14823 archive_cmds_F77 | \
14824 archive_expsym_cmds_F77 | \
14825 module_cmds_F77 | \
14826 module_expsym_cmds_F77 | \
14827 old_archive_from_expsyms_cmds_F77 | \
14828 export_symbols_cmds_F77 | \
14829 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14830 postinstall_cmds | postuninstall_cmds | \
14831 old_postinstall_cmds | old_postuninstall_cmds | \
14832 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14833 # Double-quote double-evaled strings.
14834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14837 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14843 *'\$0 --fallback-echo"')
14844 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14850 cat <<__EOF__ >> "$cfgfile"
14851 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14853 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14855 # Shell to use when invoking shell scripts.
14858 # Whether or not to build shared libraries.
14859 build_libtool_libs=$enable_shared
14861 # Whether or not to build static libraries.
14862 build_old_libs=$enable_static
14864 # Whether or not to add -lc for building shared libraries.
14865 build_libtool_need_lc=$archive_cmds_need_lc_F77
14867 # Whether or not to disallow shared libs when runtime libs are static
14868 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14870 # Whether or not to optimize for fast installation.
14871 fast_install=$enable_fast_install
14874 host_alias=$host_alias
14877 # An echo program that does not interpret backslashes.
14882 AR_FLAGS=$lt_AR_FLAGS
14887 # A language-specific compiler.
14888 CC=$lt_compiler_F77
14890 # Is the compiler the GNU C compiler?
14896 # The linker used to build libraries.
14899 # Whether we need hard or soft links.
14902 # A BSD-compatible nm program.
14905 # A symbol stripping program
14908 # Used to examine libraries when file_magic_cmd begins "file"
14909 MAGIC_CMD=$MAGIC_CMD
14911 # Used on cygwin: DLL creation program.
14914 # Used on cygwin: object dumper.
14917 # Used on cygwin: assembler.
14920 # The name of the directory that contains temporary libtool files.
14923 # How to create reloadable object files.
14924 reload_flag=$lt_reload_flag
14925 reload_cmds=$lt_reload_cmds
14927 # How to pass a linker flag through the compiler.
14928 wl=$lt_lt_prog_compiler_wl_F77
14930 # Object file suffix (normally "o").
14931 objext="$ac_objext"
14933 # Old archive suffix (normally "a").
14936 # Shared library suffix (normally ".so").
14939 # Executable file suffix (normally "").
14942 # Additional compiler flags for building library objects.
14943 pic_flag=$lt_lt_prog_compiler_pic_F77
14946 # What is the maximum length of a command?
14947 max_cmd_len=$lt_cv_sys_max_cmd_len
14949 # Does compiler simultaneously support -c and -o options?
14950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14952 # Must we lock files when doing compilation ?
14953 need_locks=$lt_need_locks
14955 # Do we need the lib prefix for modules?
14956 need_lib_prefix=$need_lib_prefix
14958 # Do we need a version for libraries?
14959 need_version=$need_version
14961 # Whether dlopen is supported.
14962 dlopen_support=$enable_dlopen
14964 # Whether dlopen of programs is supported.
14965 dlopen_self=$enable_dlopen_self
14967 # Whether dlopen of statically linked programs is supported.
14968 dlopen_self_static=$enable_dlopen_self_static
14970 # Compiler flag to prevent dynamic linking.
14971 link_static_flag=$lt_lt_prog_compiler_static_F77
14973 # Compiler flag to turn off builtin functions.
14974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14976 # Compiler flag to allow reflexive dlopens.
14977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14979 # Compiler flag to generate shared objects directly from archives.
14980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14982 # Compiler flag to generate thread-safe objects.
14983 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14985 # Library versioning type.
14986 version_type=$version_type
14988 # Format of library name prefix.
14989 libname_spec=$lt_libname_spec
14991 # List of archive names. First name is the real one, the rest are links.
14992 # The last name is the one that the linker finds with -lNAME.
14993 library_names_spec=$lt_library_names_spec
14995 # The coded name of the library, if different from the real name.
14996 soname_spec=$lt_soname_spec
14998 # Commands used to build and install an old-style archive.
15000 old_archive_cmds=$lt_old_archive_cmds_F77
15001 old_postinstall_cmds=$lt_old_postinstall_cmds
15002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15004 # Create an old-style archive from a shared archive.
15005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15007 # Create a temporary old-style archive to link instead of a shared archive.
15008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15010 # Commands used to build and install a shared archive.
15011 archive_cmds=$lt_archive_cmds_F77
15012 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15013 postinstall_cmds=$lt_postinstall_cmds
15014 postuninstall_cmds=$lt_postuninstall_cmds
15016 # Commands used to build a loadable module (assumed same as above if empty)
15017 module_cmds=$lt_module_cmds_F77
15018 module_expsym_cmds=$lt_module_expsym_cmds_F77
15020 # Commands to strip libraries.
15021 old_striplib=$lt_old_striplib
15022 striplib=$lt_striplib
15024 # Dependencies to place before the objects being linked to create a
15026 predep_objects=$lt_predep_objects_F77
15028 # Dependencies to place after the objects being linked to create a
15030 postdep_objects=$lt_postdep_objects_F77
15032 # Dependencies to place before the objects being linked to create a
15034 predeps=$lt_predeps_F77
15036 # Dependencies to place after the objects being linked to create a
15038 postdeps=$lt_postdeps_F77
15040 # The library search path used internally by the compiler when linking
15041 # a shared library.
15042 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15044 # Method to check whether dependent libraries are shared objects.
15045 deplibs_check_method=$lt_deplibs_check_method
15047 # Command to use when deplibs_check_method == file_magic.
15048 file_magic_cmd=$lt_file_magic_cmd
15050 # Flag that allows shared libraries with undefined symbols to be built.
15051 allow_undefined_flag=$lt_allow_undefined_flag_F77
15053 # Flag that forces no undefined symbols.
15054 no_undefined_flag=$lt_no_undefined_flag_F77
15056 # Commands used to finish a libtool library installation in a directory.
15057 finish_cmds=$lt_finish_cmds
15059 # Same as above, but a single script fragment to be evaled but not shown.
15060 finish_eval=$lt_finish_eval
15062 # Take the output of nm and produce a listing of raw symbols and C names.
15063 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15065 # Transform the output of nm in a proper C declaration
15066 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15068 # Transform the output of nm in a C name address pair
15069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15071 # This is the shared library runtime path variable.
15072 runpath_var=$runpath_var
15074 # This is the shared library path variable.
15075 shlibpath_var=$shlibpath_var
15077 # Is shlibpath searched before the hard-coded library search path?
15078 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15080 # How to hardcode a shared library path into an executable.
15081 hardcode_action=$hardcode_action_F77
15083 # Whether we should hardcode library paths into libraries.
15084 hardcode_into_libs=$hardcode_into_libs
15086 # Flag to hardcode \$libdir into a binary during linking.
15087 # This must work even if \$libdir does not exist.
15088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15090 # If ld is used when linking, flag to hardcode \$libdir into
15091 # a binary during linking. This must work even if \$libdir does
15093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15095 # Whether we need a single -rpath flag with a separated argument.
15096 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15098 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15099 # resulting binary.
15100 hardcode_direct=$hardcode_direct_F77
15102 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15103 # resulting binary.
15104 hardcode_minus_L=$hardcode_minus_L_F77
15106 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15107 # the resulting binary.
15108 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15110 # Set to yes if building a shared library automatically hardcodes DIR into the library
15111 # and all subsequent libraries and executables linked against it.
15112 hardcode_automatic=$hardcode_automatic_F77
15114 # Variables whose values should be saved in libtool wrapper scripts and
15115 # restored at relink time.
15116 variables_saved_for_relink="$variables_saved_for_relink"
15118 # Whether libtool must link a program against all its dependency libraries.
15119 link_all_deplibs=$link_all_deplibs_F77
15121 # Compile-time system search path for libraries
15122 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15124 # Run-time system search path for libraries
15125 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15127 # Fix the shell variable \$srcfile for the compiler.
15128 fix_srcfile_path="$fix_srcfile_path_F77"
15130 # Set to yes if exported symbols are required.
15131 always_export_symbols=$always_export_symbols_F77
15133 # The commands to list exported symbols.
15134 export_symbols_cmds=$lt_export_symbols_cmds_F77
15136 # The commands to extract the exported symbol list from a shared archive.
15137 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15139 # Symbols that should not be listed in the preloaded symbols.
15140 exclude_expsyms=$lt_exclude_expsyms_F77
15142 # Symbols that must always be exported.
15143 include_expsyms=$lt_include_expsyms_F77
15145 # ### END LIBTOOL TAG CONFIG: $tagname
15151 # If there is no Makefile yet, we rely on a make rule to execute
15152 # `config.status --recheck' to rerun these tests and create the
15153 # libtool script then.
15154 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15155 if test -f "$ltmain_in"; then
15156 test -f Makefile && make "$ltmain"
15162 ac_cpp='$CPP $CPPFLAGS'
15163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15175 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15179 # Source file extension for Java test sources.
15182 # Object file extension for compiled Java test sources.
15186 # Code to be used in simple compile tests
15187 lt_simple_compile_test_code="class foo {}\n"
15189 # Code to be used in simple link tests
15190 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15194 # If no C compiler was specified, use CC.
15197 # Allow CC to be a program name with arguments.
15201 # Allow CC to be a program name with arguments.
15207 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15208 archive_cmds_need_lc_GCJ=no
15211 lt_prog_compiler_no_builtin_flag_GCJ=
15213 if test "$GCC" = yes; then
15214 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15217 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15218 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15219 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 lt_cv_prog_compiler_rtti_exceptions=no
15223 ac_outfile=conftest.$ac_objext
15224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15225 lt_compiler_flag="-fno-rtti -fno-exceptions"
15226 # Insert the option either (1) after the last *FLAGS variable, or
15227 # (2) before a word containing "conftest.", or (3) at the end.
15228 # Note that $ac_compile itself does not contain backslashes and begins
15229 # with a dollar sign (not a hyphen), so the echo should work correctly.
15230 # The option is referenced via a variable to avoid confusing sed.
15231 lt_compile=`echo "$ac_compile" | $SED \
15232 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15234 -e 's:$: $lt_compiler_flag:'`
15235 (eval echo "\"\$as_me:15235: $lt_compile\"" >&5)
15236 (eval "$lt_compile" 2>conftest.err)
15238 cat conftest.err >&5
15239 echo "$as_me:15239: \$? = $ac_status" >&5
15240 if (exit $ac_status) && test -s "$ac_outfile"; then
15241 # The compiler can only warn and ignore the option if not recognized
15242 # So say no if there are warnings
15243 if test ! -s conftest.err; then
15244 lt_cv_prog_compiler_rtti_exceptions=yes
15250 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15251 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15253 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15254 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15261 lt_prog_compiler_wl_GCJ=
15262 lt_prog_compiler_pic_GCJ=
15263 lt_prog_compiler_static_GCJ=
15265 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15266 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15268 if test "$GCC" = yes; then
15269 lt_prog_compiler_wl_GCJ='-Wl,'
15270 lt_prog_compiler_static_GCJ='-static'
15274 # All AIX code is PIC.
15275 if test "$host_cpu" = ia64; then
15276 # AIX 5 now supports IA64 processor
15277 lt_prog_compiler_static_GCJ='-Bstatic'
15282 # FIXME: we need at least 68020 code to build shared libraries, but
15283 # adding the `-m68020' flag to GCC prevents building anything better,
15285 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15288 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15289 # PIC is the default for these OSes.
15292 mingw* | pw32* | os2*)
15293 # This hack is so that the source file can tell whether it is being
15294 # built for inclusion in a dll (and should export symbols for example).
15295 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15298 darwin* | rhapsody*)
15299 # PIC is the default on this platform
15300 # Common symbols not allowed in MH_DYLIB files
15301 lt_prog_compiler_pic_GCJ='-fno-common'
15305 # Just because we use GCC doesn't mean we suddenly get shared libraries
15306 # on systems that don't support them.
15307 lt_prog_compiler_can_build_shared_GCJ=no
15312 if test -d /usr/nec; then
15313 lt_prog_compiler_pic_GCJ=-Kconform_pic
15318 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15319 # not for PA HP-UX.
15320 case "$host_cpu" in
15325 lt_prog_compiler_pic_GCJ='-fPIC'
15331 lt_prog_compiler_pic_GCJ='-fPIC'
15335 # PORTME Check for flag to pass linker flags through the system compiler.
15338 lt_prog_compiler_wl_GCJ='-Wl,'
15339 if test "$host_cpu" = ia64; then
15340 # AIX 5 now supports IA64 processor
15341 lt_prog_compiler_static_GCJ='-Bstatic'
15343 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15347 mingw* | pw32* | os2*)
15348 # This hack is so that the source file can tell whether it is being
15349 # built for inclusion in a dll (and should export symbols for example).
15350 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15353 hpux9* | hpux10* | hpux11*)
15354 lt_prog_compiler_wl_GCJ='-Wl,'
15355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15356 # not for PA HP-UX.
15357 case "$host_cpu" in
15362 lt_prog_compiler_pic_GCJ='+Z'
15365 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15366 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15369 irix5* | irix6* | nonstopux*)
15370 lt_prog_compiler_wl_GCJ='-Wl,'
15371 # PIC (with -KPIC) is the default.
15372 lt_prog_compiler_static_GCJ='-non_shared'
15376 lt_prog_compiler_pic_GCJ='-KPIC'
15377 lt_prog_compiler_static_GCJ='-Bstatic'
15383 lt_prog_compiler_wl_GCJ='-Wl,'
15384 lt_prog_compiler_pic_GCJ='-KPIC'
15385 lt_prog_compiler_static_GCJ='-static'
15388 lt_prog_compiler_wl_GCJ='-Wl,'
15389 # All Alpha code is PIC.
15390 lt_prog_compiler_static_GCJ='-non_shared'
15395 osf3* | osf4* | osf5*)
15396 lt_prog_compiler_wl_GCJ='-Wl,'
15397 # All OSF/1 code is PIC.
15398 lt_prog_compiler_static_GCJ='-non_shared'
15402 lt_prog_compiler_pic_GCJ='-Kpic'
15403 lt_prog_compiler_static_GCJ='-dn'
15407 lt_prog_compiler_wl_GCJ='-Wl,'
15408 lt_prog_compiler_pic_GCJ='-KPIC'
15409 lt_prog_compiler_static_GCJ='-Bstatic'
15413 lt_prog_compiler_wl_GCJ='-Qoption ld '
15414 lt_prog_compiler_pic_GCJ='-PIC'
15415 lt_prog_compiler_static_GCJ='-Bstatic'
15418 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15419 lt_prog_compiler_wl_GCJ='-Wl,'
15420 lt_prog_compiler_pic_GCJ='-KPIC'
15421 lt_prog_compiler_static_GCJ='-Bstatic'
15425 if test -d /usr/nec ;then
15426 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15427 lt_prog_compiler_static_GCJ='-Bstatic'
15432 lt_prog_compiler_pic_GCJ='-pic'
15433 lt_prog_compiler_static_GCJ='-Bstatic'
15437 lt_prog_compiler_can_build_shared_GCJ=no
15442 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15443 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15446 # Check to make sure the PIC flag actually works.
15448 if test -n "$lt_prog_compiler_pic_GCJ"; then
15450 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15451 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15452 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 lt_prog_compiler_pic_works_GCJ=no
15456 ac_outfile=conftest.$ac_objext
15457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15458 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15459 # Insert the option either (1) after the last *FLAGS variable, or
15460 # (2) before a word containing "conftest.", or (3) at the end.
15461 # Note that $ac_compile itself does not contain backslashes and begins
15462 # with a dollar sign (not a hyphen), so the echo should work correctly.
15463 # The option is referenced via a variable to avoid confusing sed.
15464 lt_compile=`echo "$ac_compile" | $SED \
15465 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15467 -e 's:$: $lt_compiler_flag:'`
15468 (eval echo "\"\$as_me:15468: $lt_compile\"" >&5)
15469 (eval "$lt_compile" 2>conftest.err)
15471 cat conftest.err >&5
15472 echo "$as_me:15472: \$? = $ac_status" >&5
15473 if (exit $ac_status) && test -s "$ac_outfile"; then
15474 # The compiler can only warn and ignore the option if not recognized
15475 # So say no if there are warnings
15476 if test ! -s conftest.err; then
15477 lt_prog_compiler_pic_works_GCJ=yes
15483 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15484 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15486 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15487 case $lt_prog_compiler_pic_GCJ in
15489 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15492 lt_prog_compiler_pic_GCJ=
15493 lt_prog_compiler_can_build_shared_GCJ=no
15498 # For platforms which do not support PIC, -DPIC is meaningless:
15500 lt_prog_compiler_pic_GCJ=
15503 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15507 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15508 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15509 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 lt_cv_prog_compiler_c_o_GCJ=no
15513 $rm -r conftest 2>/dev/null
15517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15519 lt_compiler_flag="-o out/conftest2.$ac_objext"
15520 # Insert the option either (1) after the last *FLAGS variable, or
15521 # (2) before a word containing "conftest.", or (3) at the end.
15522 # Note that $ac_compile itself does not contain backslashes and begins
15523 # with a dollar sign (not a hyphen), so the echo should work correctly.
15524 lt_compile=`echo "$ac_compile" | $SED \
15525 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15527 -e 's:$: $lt_compiler_flag:'`
15528 (eval echo "\"\$as_me:15528: $lt_compile\"" >&5)
15529 (eval "$lt_compile" 2>out/conftest.err)
15531 cat out/conftest.err >&5
15532 echo "$as_me:15532: \$? = $ac_status" >&5
15533 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15535 # The compiler can only warn and ignore the option if not recognized
15536 # So say no if there are warnings
15537 if test ! -s out/conftest.err; then
15538 lt_cv_prog_compiler_c_o_GCJ=yes
15543 # SGI C++ compiler will create directory out/ii_files/ for
15544 # template instantiation
15545 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15546 $rm out/* && rmdir out
15552 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15553 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15556 hard_links="nottested"
15557 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15558 # do not overwrite the value of need_locks provided by the user
15559 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15560 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15565 ln conftest.a conftest.b 2>&5 || hard_links=no
15566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15567 echo "$as_me:$LINENO: result: $hard_links" >&5
15568 echo "${ECHO_T}$hard_links" >&6
15569 if test "$hard_links" = no; then
15570 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15571 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15578 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15579 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15582 allow_undefined_flag_GCJ=
15583 enable_shared_with_static_runtimes_GCJ=no
15585 archive_expsym_cmds_GCJ=
15586 old_archive_From_new_cmds_GCJ=
15587 old_archive_from_expsyms_cmds_GCJ=
15588 export_dynamic_flag_spec_GCJ=
15589 whole_archive_flag_spec_GCJ=
15590 thread_safe_flag_spec_GCJ=
15591 hardcode_libdir_flag_spec_GCJ=
15592 hardcode_libdir_flag_spec_ld_GCJ=
15593 hardcode_libdir_separator_GCJ=
15594 hardcode_direct_GCJ=no
15595 hardcode_minus_L_GCJ=no
15596 hardcode_shlibpath_var_GCJ=unsupported
15597 link_all_deplibs_GCJ=unknown
15598 hardcode_automatic_GCJ=no
15600 module_expsym_cmds_GCJ=
15601 always_export_symbols_GCJ=no
15602 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15603 # include_expsyms should be a list of space-separated symbols to be *always*
15604 # included in the symbol list
15605 include_expsyms_GCJ=
15606 # exclude_expsyms can be an extended regexp of symbols to exclude
15607 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15608 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15609 # as well as any symbol that contains `d'.
15610 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15611 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15612 # platforms (ab)use it in PIC code, but their linkers get confused if
15613 # the symbol is explicitly referenced. Since portable code cannot
15614 # rely on this symbol name, it's probably fine to never include it in
15615 # preloaded symbol tables.
15616 extract_expsyms_cmds=
15619 cygwin* | mingw* | pw32*)
15620 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15621 # When not using gcc, we currently assume that we are using
15622 # Microsoft Visual C++.
15623 if test "$GCC" != yes; then
15633 if test "$with_gnu_ld" = yes; then
15634 # If archive_cmds runs LD, not CC, wlarc should be empty
15637 # See if GNU ld supports shared libraries.
15639 aix3* | aix4* | aix5*)
15640 # On AIX/PPC, the GNU linker is very broken
15641 if test "$host_cpu" != ia64; then
15645 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15646 *** to be unable to reliably create shared libraries on AIX.
15647 *** Therefore, libtool is disabling shared libraries support. If you
15648 *** really care for shared libraries, you may want to modify your PATH
15649 *** so that a non-GNU linker is found, and then restart.
15656 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)'
15657 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15658 hardcode_minus_L_GCJ=yes
15660 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15661 # that the semantics of dynamic libraries on AmigaOS, at least up
15662 # to version 4, is to share data among multiple programs linked
15663 # with the same dynamic library. Since this doesn't match the
15664 # behavior of shared libraries on other platforms, we can't use
15670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15671 allow_undefined_flag_GCJ=unsupported
15672 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15673 # support --undefined. This deserves some investigation. FIXME
15674 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15680 cygwin* | mingw* | pw32*)
15681 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15682 # as there is no search path for DLLs.
15683 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15684 allow_undefined_flag_GCJ=unsupported
15685 always_export_symbols_GCJ=no
15686 enable_shared_with_static_runtimes_GCJ=yes
15687 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15689 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15690 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15691 # If the export-symbols file already is a .def file (1st line
15692 # is EXPORTS), use it as is; otherwise, prepend...
15693 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15694 cp $export_symbols $output_objdir/$soname.def;
15696 echo EXPORTS > $output_objdir/$soname.def;
15697 cat $export_symbols >> $output_objdir/$soname.def;
15699 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15707 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15710 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15711 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15716 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15721 *** create shared libraries on Solaris systems. Therefore, libtool
15722 *** is disabling shared libraries support. We urge you to upgrade GNU
15723 *** binutils to release 2.9.1 or newer. Another option is to modify
15724 *** your PATH or compiler configuration so that the native linker is
15725 *** used, and then restart.
15728 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15729 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15730 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15737 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15739 hardcode_direct_GCJ=yes
15740 hardcode_shlibpath_var_GCJ=no
15744 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15745 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15746 archive_cmds_GCJ="$tmp_archive_cmds"
15747 supports_anon_versioning=no
15748 case `$LD -v 2>/dev/null` in
15749 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15750 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15751 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15752 *\ 2.11.*) ;; # other 2.11 versions
15753 *) supports_anon_versioning=yes ;;
15755 if test $supports_anon_versioning = yes; then
15756 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15758 $echo "local: *; };" >> $output_objdir/$libname.ver~
15759 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15761 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15770 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15771 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15778 if test "$ld_shlibs_GCJ" = yes; then
15779 runpath_var=LD_RUN_PATH
15780 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15781 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15782 # ancient GNU ld didn't support --whole-archive et. al.
15783 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15784 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15786 whole_archive_flag_spec_GCJ=
15790 # PORTME fill in a description of your system's linker (not GNU ld)
15793 allow_undefined_flag_GCJ=unsupported
15794 always_export_symbols_GCJ=yes
15795 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'
15796 # Note: this linker hardcodes the directories in LIBPATH if there
15797 # are no directories specified by -L.
15798 hardcode_minus_L_GCJ=yes
15799 if test "$GCC" = yes && test -z "$link_static_flag"; then
15800 # Neither direct hardcoding nor static linking is supported with a
15802 hardcode_direct_GCJ=unsupported
15807 if test "$host_cpu" = ia64; then
15808 # On IA64, the linker does run time linking by default, so we don't
15809 # have to do anything special.
15810 aix_use_runtimelinking=no
15811 exp_sym_flag='-Bexport'
15814 # If we're using GNU nm, then we don't want the "-C" option.
15815 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15816 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15817 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'
15819 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'
15821 aix_use_runtimelinking=no
15823 # Test if we are trying to use run time linking or normal
15824 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15825 # need to do runtime linking.
15826 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15827 for ld_flag in $LDFLAGS; do
15828 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15829 aix_use_runtimelinking=yes
15835 exp_sym_flag='-bexport'
15836 no_entry_flag='-bnoentry'
15839 # When large executables or shared objects are built, AIX ld can
15840 # have problems creating the table of contents. If linking a library
15841 # or program results in "error TOC overflow" add -mminimal-toc to
15842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15845 archive_cmds_GCJ=''
15846 hardcode_direct_GCJ=yes
15847 hardcode_libdir_separator_GCJ=':'
15848 link_all_deplibs_GCJ=yes
15850 if test "$GCC" = yes; then
15851 case $host_os in aix4.012|aix4.012.*)
15852 # We only want to do this on AIX 4.2 and lower, the check
15853 # below for broken collect2 doesn't work under 4.3+
15854 collect2name=`${CC} -print-prog-name=collect2`
15855 if test -f "$collect2name" && \
15856 strings "$collect2name" | grep resolve_lib_name >/dev/null
15858 # We have reworked collect2
15859 hardcode_direct_GCJ=yes
15861 # We have old collect2
15862 hardcode_direct_GCJ=unsupported
15863 # It fails to find uninstalled libraries when the uninstalled
15864 # path is not listed in the libpath. Setting hardcode_minus_L
15865 # to unsupported forces relinking
15866 hardcode_minus_L_GCJ=yes
15867 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15868 hardcode_libdir_separator_GCJ=
15871 shared_flag='-shared'
15874 if test "$host_cpu" = ia64; then
15875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15876 # chokes on -Wl,-G. The following line is correct:
15879 if test "$aix_use_runtimelinking" = yes; then
15880 shared_flag='${wl}-G'
15882 shared_flag='${wl}-bM:SRE'
15887 # It seems that -bexpall does not export symbols beginning with
15888 # underscore (_), so it is better to generate a list of symbols to export.
15889 always_export_symbols_GCJ=yes
15890 if test "$aix_use_runtimelinking" = yes; then
15891 # Warning - without using the other runtime loading flags (-brtl),
15892 # -berok will link without error, but may produce a broken library.
15893 allow_undefined_flag_GCJ='-berok'
15894 # Determine the default libpath from the value encoded in an empty executable.
15895 cat >conftest.$ac_ext <<_ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15912 (eval $ac_link) 2>conftest.er1
15914 grep -v '^ *+' conftest.er1 >conftest.err
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } &&
15919 { ac_try='test -z "$ac_c_werror_flag"
15920 || test ! -s conftest.err'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; } &&
15926 { ac_try='test -s conftest$ac_exeext'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; }; then
15933 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15935 # Check for a 64-bit object if we didn't find anything.
15936 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; }
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15943 rm -f conftest.err conftest.$ac_objext \
15944 conftest$ac_exeext conftest.$ac_ext
15945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15947 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15948 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"
15950 if test "$host_cpu" = ia64; then
15951 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15952 allow_undefined_flag_GCJ="-z nodefs"
15953 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"
15955 # Determine the default libpath from the value encoded in an empty executable.
15956 cat >conftest.$ac_ext <<_ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h. */
15971 rm -f conftest.$ac_objext conftest$ac_exeext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15973 (eval $ac_link) 2>conftest.er1
15975 grep -v '^ *+' conftest.er1 >conftest.err
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } &&
15980 { ac_try='test -z "$ac_c_werror_flag"
15981 || test ! -s conftest.err'
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; } &&
15987 { ac_try='test -s conftest$ac_exeext'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15996 # Check for a 64-bit object if we didn't find anything.
15997 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; }
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16004 rm -f conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
16006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16008 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16009 # Warning - without using the other run time loading flags,
16010 # -berok will link without error, but may produce a broken library.
16011 no_undefined_flag_GCJ=' ${wl}-bernotok'
16012 allow_undefined_flag_GCJ=' ${wl}-berok'
16013 # -bexpall does not export symbols beginning with underscore (_)
16014 always_export_symbols_GCJ=yes
16015 # Exported symbols can be pulled into shared objects from archives
16016 whole_archive_flag_spec_GCJ=' '
16017 archive_cmds_need_lc_GCJ=yes
16018 # This is similar to how AIX traditionally builds it's shared libraries.
16019 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'
16025 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)'
16026 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16027 hardcode_minus_L_GCJ=yes
16028 # see comment about different semantics on the GNU ld section
16033 export_dynamic_flag_spec_GCJ=-rdynamic
16036 cygwin* | mingw* | pw32*)
16037 # When not using gcc, we currently assume that we are using
16038 # Microsoft Visual C++.
16039 # hardcode_libdir_flag_spec is actually meaningless, as there is
16040 # no search path for DLLs.
16041 hardcode_libdir_flag_spec_GCJ=' '
16042 allow_undefined_flag_GCJ=unsupported
16043 # Tell ltmain to make .lib files, not .a files.
16045 # Tell ltmain to make .dll files, not .so files.
16047 # FIXME: Setting linknames here is a bad hack.
16048 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16049 # The linker will automatically build a .lib file if we build a DLL.
16050 old_archive_From_new_cmds_GCJ='true'
16051 # FIXME: Should let the user specify the lib program.
16052 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16053 fix_srcfile_path='`cygpath -w "$srcfile"`'
16054 enable_shared_with_static_runtimes_GCJ=yes
16057 darwin* | rhapsody*)
16058 if test "$GXX" = yes ; then
16059 archive_cmds_need_lc_GCJ=no
16061 rhapsody* | darwin1.[012])
16062 allow_undefined_flag_GCJ='-undefined suppress'
16065 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16066 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16068 case ${MACOSX_DEPLOYMENT_TARGET} in
16070 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16073 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16079 lt_int_apple_cc_single_mod=no
16080 output_verbose_link_cmd='echo'
16081 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16082 lt_int_apple_cc_single_mod=yes
16084 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16085 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16087 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'
16089 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16090 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16091 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16092 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}'
16094 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}'
16096 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}'
16097 hardcode_direct_GCJ=no
16098 hardcode_automatic_GCJ=yes
16099 hardcode_shlibpath_var_GCJ=unsupported
16100 whole_archive_flag_spec_GCJ='-all_load $convenience'
16101 link_all_deplibs_GCJ=yes
16108 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16110 hardcode_shlibpath_var_GCJ=no
16117 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16118 # support. Future versions do this automatically, but an explicit c++rt0.o
16119 # does not break anything, and helps significantly (at the cost of a little
16122 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16123 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16124 hardcode_direct_GCJ=yes
16125 hardcode_shlibpath_var_GCJ=no
16128 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16130 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16131 hardcode_direct_GCJ=yes
16132 hardcode_minus_L_GCJ=yes
16133 hardcode_shlibpath_var_GCJ=no
16136 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16137 freebsd* | kfreebsd*-gnu)
16138 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16139 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16140 hardcode_direct_GCJ=yes
16141 hardcode_shlibpath_var_GCJ=no
16145 if test "$GCC" = yes; then
16146 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'
16148 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'
16150 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16151 hardcode_libdir_separator_GCJ=:
16152 hardcode_direct_GCJ=yes
16154 # hardcode_minus_L: Not really in the search PATH,
16155 # but as the default location of the library.
16156 hardcode_minus_L_GCJ=yes
16157 export_dynamic_flag_spec_GCJ='${wl}-E'
16161 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16162 case "$host_cpu" in
16164 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16171 case "$host_cpu" in
16173 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16180 if test "$with_gnu_ld" = no; then
16181 case "$host_cpu" in
16183 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16184 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16185 hardcode_libdir_separator_GCJ=:
16186 hardcode_direct_GCJ=no
16187 hardcode_shlibpath_var_GCJ=no
16190 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16191 hardcode_direct_GCJ=no
16192 hardcode_shlibpath_var_GCJ=no
16194 # hardcode_minus_L: Not really in the search PATH,
16195 # but as the default location of the library.
16196 hardcode_minus_L_GCJ=yes
16199 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16200 hardcode_libdir_separator_GCJ=:
16201 hardcode_direct_GCJ=yes
16202 export_dynamic_flag_spec_GCJ='${wl}-E'
16204 # hardcode_minus_L: Not really in the search PATH,
16205 # but as the default location of the library.
16206 hardcode_minus_L_GCJ=yes
16212 irix5* | irix6* | nonstopux*)
16213 if test "$GCC" = yes; then
16214 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'
16216 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'
16217 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16219 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16220 hardcode_libdir_separator_GCJ=:
16221 link_all_deplibs_GCJ=yes
16225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16226 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16228 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16230 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16231 hardcode_direct_GCJ=yes
16232 hardcode_shlibpath_var_GCJ=no
16236 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_direct_GCJ=yes
16238 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16239 hardcode_libdir_separator_GCJ=:
16240 hardcode_shlibpath_var_GCJ=no
16244 hardcode_direct_GCJ=yes
16245 hardcode_shlibpath_var_GCJ=no
16246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16247 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16249 export_dynamic_flag_spec_GCJ='${wl}-E'
16252 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16253 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16254 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16257 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16258 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16266 hardcode_minus_L_GCJ=yes
16267 allow_undefined_flag_GCJ=unsupported
16268 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'
16269 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16273 if test "$GCC" = yes; then
16274 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16275 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'
16277 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16278 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'
16280 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16281 hardcode_libdir_separator_GCJ=:
16284 osf4* | osf5*) # as osf3* with the addition of -msym flag
16285 if test "$GCC" = yes; then
16286 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16287 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'
16288 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16290 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16291 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'
16292 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~
16293 $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'
16295 # Both c and cxx compiler support -rpath directly
16296 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16298 hardcode_libdir_separator_GCJ=:
16302 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16303 hardcode_shlibpath_var_GCJ=no
16304 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16305 runpath_var=LD_RUN_PATH
16306 hardcode_runpath_var=yes
16310 no_undefined_flag_GCJ=' -z text'
16311 if test "$GCC" = yes; then
16312 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16313 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16314 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16316 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16317 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16318 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16320 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16321 hardcode_shlibpath_var_GCJ=no
16323 solaris2.[0-5] | solaris2.[0-5].*) ;;
16324 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16325 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16327 link_all_deplibs_GCJ=yes
16331 if test "x$host_vendor" = xsequent; then
16332 # Use $CC to link under sequent, because it throws in some extra .o
16333 # files that make .init and .fini sections work.
16334 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16336 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16339 hardcode_direct_GCJ=yes
16340 hardcode_minus_L_GCJ=yes
16341 hardcode_shlibpath_var_GCJ=no
16345 case $host_vendor in
16347 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16348 hardcode_direct_GCJ=yes # is this really true???
16351 ## LD is ld it makes a PLAMLIB
16352 ## CC just makes a GrossModule.
16353 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16354 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16355 hardcode_direct_GCJ=no
16358 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16359 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16362 runpath_var='LD_RUN_PATH'
16363 hardcode_shlibpath_var_GCJ=no
16367 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16368 hardcode_shlibpath_var_GCJ=no
16369 export_dynamic_flag_spec_GCJ='-Bexport'
16373 if test -d /usr/nec; then
16374 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16375 hardcode_shlibpath_var_GCJ=no
16376 runpath_var=LD_RUN_PATH
16377 hardcode_runpath_var=yes
16383 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16384 hardcode_direct_GCJ=yes
16385 hardcode_minus_L_GCJ=no
16386 hardcode_shlibpath_var_GCJ=no
16387 hardcode_runpath_var=yes
16388 runpath_var=LD_RUN_PATH
16391 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16392 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16393 if test "$GCC" = yes; then
16394 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16396 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16398 runpath_var='LD_RUN_PATH'
16399 hardcode_shlibpath_var_GCJ=no
16403 no_undefined_flag_GCJ=' -z text'
16404 # $CC -shared without GNU ld will not create a library from C++
16405 # object files and a static libstdc++, better avoid it by now
16406 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16407 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16408 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16409 hardcode_libdir_flag_spec_GCJ=
16410 hardcode_shlibpath_var_GCJ=no
16411 runpath_var='LD_RUN_PATH'
16415 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16417 hardcode_shlibpath_var_GCJ=no
16426 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16427 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16428 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16430 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16431 if test "$GCC" = yes; then
16432 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16436 # Do we need to explicitly link libc?
16438 case "x$archive_cmds_need_lc_GCJ" in
16440 # Assume -lc should be added
16441 archive_cmds_need_lc_GCJ=yes
16443 if test "$enable_shared" = yes && test "$GCC" = yes; then
16444 case $archive_cmds_GCJ in
16446 # FIXME: we may have to deal with multi-command sequences.
16449 # Test whether the compiler implicitly links with -lc since on some
16450 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16451 # to ld, don't add -lc before -lgcc.
16452 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16453 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16458 (eval $ac_compile) 2>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } 2>conftest.err; then
16464 libobjs=conftest.$ac_objext
16466 wl=$lt_prog_compiler_wl_GCJ
16472 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16473 allow_undefined_flag_GCJ=
16474 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16475 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }
16480 archive_cmds_need_lc_GCJ=no
16482 archive_cmds_need_lc_GCJ=yes
16484 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16486 cat conftest.err 1>&5
16489 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16490 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16497 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16498 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16499 library_names_spec=
16500 libname_spec='lib$name'
16504 postuninstall_cmds=
16508 shlibpath_overrides_runpath=unknown
16510 dynamic_linker="$host_os ld.so"
16511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16512 if test "$GCC" = yes; then
16513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16514 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16515 # if the path contains ";" then we assume it to be the separator
16516 # otherwise default to the standard path separator (i.e. ":") - it is
16517 # assumed that no part of a normal pathname contains ";" but that should
16518 # okay in the real world where ";" in dirpaths is itself problematic.
16519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16526 need_lib_prefix=unknown
16527 hardcode_into_libs=no
16529 # when you set need_version to no, make sure it does not cause -set_version
16530 # flags to be left without arguments
16531 need_version=unknown
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16537 shlibpath_var=LIBPATH
16539 # AIX 3 has no versioning support, so we append a major version to the name.
16540 soname_spec='${libname}${release}${shared_ext}$major'
16547 hardcode_into_libs=yes
16548 if test "$host_cpu" = ia64; then
16549 # AIX 5 supports IA64
16550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16551 shlibpath_var=LD_LIBRARY_PATH
16553 # With GCC up to 2.95.x, collect2 would create an import file
16554 # for dependence libraries. The import file would start with
16555 # the line `#! .'. This would cause the generated library to
16556 # depend on `.', always an invalid library. This was fixed in
16557 # development snapshots of GCC prior to 3.0.
16559 aix4 | aix4.[01] | aix4.[01].*)
16560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16562 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16565 can_build_shared=no
16569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16570 # soname into executable. Probably we can add versioning support to
16571 # collect2, so additional links can be useful in future.
16572 if test "$aix_use_runtimelinking" = yes; then
16573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16574 # instead of lib<name>.a to let people know that these are not
16575 # typical AIX shared libraries.
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578 # We preserve .a as extension for shared libraries through AIX4.2
16579 # and later when we are not doing run time linking.
16580 library_names_spec='${libname}${release}.a $libname.a'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16583 shlibpath_var=LIBPATH
16588 library_names_spec='$libname.ixlibrary $libname.a'
16589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16590 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'
16594 library_names_spec='${libname}${shared_ext}'
16595 dynamic_linker="$host_os ld.so"
16596 shlibpath_var=LIBRARY_PATH
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16605 shlibpath_var=LD_LIBRARY_PATH
16606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16608 # the default ld.so.conf also contains /usr/contrib/lib and
16609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16610 # libtool to hard-code these into programs
16613 cygwin* | mingw* | pw32*)
16614 version_type=windows
16619 case $GCC,$host_os in
16620 yes,cygwin* | yes,mingw* | yes,pw32*)
16621 library_names_spec='$libname.dll.a'
16622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16623 postinstall_cmds='base_file=`basename \${file}`~
16624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16625 dldir=$destdir/`dirname \$dlpath`~
16626 test -d \$dldir || mkdir -p \$dldir~
16627 $install_prog $dir/$dlname \$dldir/$dlname'
16628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16629 dlpath=$dir/\$dldll~
16631 shlibpath_overrides_runpath=yes
16635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16637 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16640 # MinGW DLLs use traditional 'lib' prefix
16641 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16642 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16643 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16644 # It is most probably a Windows format PATH printed by
16645 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16646 # path with ; separators, and with drive letters. We can handle the
16647 # drive letters (cygwin fileutils understands them), so leave them,
16648 # especially as we might pass files found there to a mingw objdump,
16649 # which wouldn't understand a cygwinified path. Ahh.
16650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16656 # pw32 DLLs use 'pw' prefix rather than 'lib'
16657 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16663 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16665 supports_anon_versioning=no
16666 case `$LD -v 2>/dev/null` in
16667 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16668 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16669 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16670 *\ 2.11.*) ;; # other 2.11 versions
16671 *) supports_anon_versioning=yes ;;
16673 if test $supports_anon_versioning = yes; then
16674 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16676 $echo "local: *; };" >> $output_objdir/$libname.ver~
16677 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16679 $archive_expsym_cmds="$archive_cmds"
16687 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16690 dynamic_linker='Win32 ld.exe'
16691 # FIXME: first we should search . and the directory the executable is in
16695 darwin* | rhapsody*)
16696 dynamic_linker="$host_os dyld"
16697 version_type=darwin
16700 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16701 soname_spec='${libname}${release}${major}$shared_ext'
16702 shlibpath_overrides_runpath=yes
16703 shlibpath_var=DYLD_LIBRARY_PATH
16704 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16705 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16706 if test "$GCC" = yes; then
16707 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"`
16709 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16711 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16719 soname_spec='${libname}${release}${shared_ext}$major'
16720 shlibpath_var=LD_LIBRARY_PATH
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16732 soname_spec='${libname}${release}${shared_ext}$major'
16733 shlibpath_var=LD_LIBRARY_PATH
16734 shlibpath_overrides_runpath=no
16735 hardcode_into_libs=yes
16736 dynamic_linker='GNU ld.so'
16740 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16741 version_type=freebsd-$objformat
16742 case $version_type in
16744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16753 shlibpath_var=LD_LIBRARY_PATH
16756 shlibpath_overrides_runpath=yes
16758 freebsd3.01* | freebsdelf3.01*)
16759 shlibpath_overrides_runpath=yes
16760 hardcode_into_libs=yes
16763 shlibpath_overrides_runpath=no
16764 hardcode_into_libs=yes
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16774 soname_spec='${libname}${release}${shared_ext}$major'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 hardcode_into_libs=yes
16779 hpux9* | hpux10* | hpux11*)
16780 # Give a soname corresponding to the major version so that dld.sl refuses to
16781 # link against other versions.
16785 case "$host_cpu" in
16788 hardcode_into_libs=yes
16789 dynamic_linker="$host_os dld.so"
16790 shlibpath_var=LD_LIBRARY_PATH
16791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793 soname_spec='${libname}${release}${shared_ext}$major'
16794 if test "X$HPUX_IA64_MODE" = X32; then
16795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16797 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16803 hardcode_into_libs=yes
16804 dynamic_linker="$host_os dld.sl"
16805 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16814 dynamic_linker="$host_os dld.sl"
16815 shlibpath_var=SHLIB_PATH
16816 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818 soname_spec='${libname}${release}${shared_ext}$major'
16821 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16822 postinstall_cmds='chmod 555 $lib'
16825 irix5* | irix6* | nonstopux*)
16827 nonstopux*) version_type=nonstopux ;;
16829 if test "$lt_cv_prog_gnu_ld" = yes; then
16837 soname_spec='${libname}${release}${shared_ext}$major'
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16840 irix5* | nonstopux*)
16841 libsuff= shlibsuff=
16844 case $LD in # libtool.m4 will add one of these switches to LD
16845 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16846 libsuff= shlibsuff= libmagic=32-bit;;
16847 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16848 libsuff=32 shlibsuff=N32 libmagic=N32;;
16849 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16850 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16851 *) libsuff= shlibsuff= libmagic=never-match;;
16855 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16856 shlibpath_overrides_runpath=no
16857 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16858 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16859 hardcode_into_libs=yes
16862 # No shared lib support for Linux oldld, aout, or coff.
16863 linux*oldld* | linux*aout* | linux*coff*)
16867 # This must be Linux ELF.
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873 soname_spec='${libname}${release}${shared_ext}$major'
16874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 shlibpath_overrides_runpath=no
16877 # This implies no fast_install, which is unacceptable.
16878 # Some rework will be needed to allow for fast_install
16879 # before this can be enabled.
16880 hardcode_into_libs=yes
16882 # Append ld.so.conf contents to the search path
16883 if test -f /etc/ld.so.conf; then
16884 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16885 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16888 case $host_cpu:$lt_cv_cc_64bit_output in
16889 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
16890 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
16891 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
16895 # We used to test for /lib/ld.so.1 and disable shared libraries on
16896 # powerpc, because MkLinux only supported shared libraries with the
16897 # GNU dynamic linker. Since this was broken with cross compilers,
16898 # most powerpc-linux boxes support dynamic linking these days and
16899 # people can always --disable-shared, the test was removed, and we
16900 # assume the GNU/Linux dynamic linker is in use.
16901 dynamic_linker='GNU/Linux ld.so'
16903 # Find out which ABI we are using (multilib Linux x86_64 hack).
16905 case "$host_cpu" in
16907 echo '#line 16907 "configure"' > conftest.$ac_ext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16909 (eval $ac_compile) 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; then
16913 case `/usr/bin/file conftest.$ac_objext` in
16924 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16925 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16933 soname_spec='${libname}${release}${shared_ext}$major'
16934 shlibpath_var=LD_LIBRARY_PATH
16935 shlibpath_overrides_runpath=no
16936 hardcode_into_libs=yes
16937 dynamic_linker='GNU ld.so'
16944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16947 dynamic_linker='NetBSD (a.out) ld.so'
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 dynamic_linker='NetBSD ld.elf_so'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 shlibpath_overrides_runpath=yes
16955 hardcode_into_libs=yes
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961 shlibpath_var=LD_LIBRARY_PATH
16962 shlibpath_overrides_runpath=yes
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16970 soname_spec='${libname}${release}${shared_ext}$major'
16971 shlibpath_var=LD_LIBRARY_PATH
16972 shlibpath_overrides_runpath=yes
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16981 shlibpath_var=LD_LIBRARY_PATH
16982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16984 openbsd2.[89] | openbsd2.[89].*)
16985 shlibpath_overrides_runpath=no
16988 shlibpath_overrides_runpath=yes
16992 shlibpath_overrides_runpath=yes
16997 libname_spec='$name'
17000 library_names_spec='$libname${shared_ext} $libname.a'
17001 dynamic_linker='OS/2 ld.exe'
17002 shlibpath_var=LIBPATH
17005 osf3* | osf4* | osf5*)
17009 soname_spec='${libname}${release}${shared_ext}$major'
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011 shlibpath_var=LD_LIBRARY_PATH
17012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17018 soname_spec='${libname}${release}${shared_ext}$major'
17019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17020 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=yes
17031 hardcode_into_libs=yes
17032 # ldd complains unless libraries are executable
17033 postinstall_cmds='chmod +x $lib'
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath=yes
17042 if test "$with_gnu_ld" = yes; then
17048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17051 soname_spec='${libname}${release}${shared_ext}$major'
17052 shlibpath_var=LD_LIBRARY_PATH
17053 case $host_vendor in
17055 shlibpath_overrides_runpath=no
17057 export_dynamic_flag_spec='${wl}-Blargedynsym'
17058 runpath_var=LD_RUN_PATH
17066 shlibpath_overrides_runpath=no
17067 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17073 if test -d /usr/nec ;then
17075 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17076 soname_spec='$libname${shared_ext}.$major'
17077 shlibpath_var=LD_LIBRARY_PATH
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 shlibpath_var=LD_LIBRARY_PATH
17092 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17093 echo "${ECHO_T}$dynamic_linker" >&6
17094 test "$dynamic_linker" = no && can_build_shared=no
17096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17098 hardcode_action_GCJ=
17099 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17100 test -n "$runpath_var GCJ" || \
17101 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17103 # We can hardcode non-existant directories.
17104 if test "$hardcode_direct_GCJ" != no &&
17105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17106 # have to relink, otherwise we might link with an installed library
17107 # when we should be linking with a yet-to-be-installed one
17108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17109 test "$hardcode_minus_L_GCJ" != no; then
17110 # Linking always hardcodes the temporary library directory.
17111 hardcode_action_GCJ=relink
17113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17114 hardcode_action_GCJ=immediate
17117 # We cannot hardcode anything, or else we can only hardcode existing
17119 hardcode_action_GCJ=unsupported
17121 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17122 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17124 if test "$hardcode_action_GCJ" = relink; then
17125 # Fast installation is not supported
17126 enable_fast_install=no
17127 elif test "$shlibpath_overrides_runpath" = yes ||
17128 test "$enable_shared" = no; then
17129 # Fast installation is not necessary
17130 enable_fast_install=needless
17135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17137 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17139 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17140 echo "$as_me:$LINENO: result: yes" >&5
17141 echo "${ECHO_T}yes" >&6
17143 # FIXME - insert some real tests, host_os isn't really good enough
17146 if test -n "$STRIP" ; then
17147 striplib="$STRIP -x"
17148 echo "$as_me:$LINENO: result: yes" >&5
17149 echo "${ECHO_T}yes" >&6
17151 echo "$as_me:$LINENO: result: no" >&5
17152 echo "${ECHO_T}no" >&6
17156 echo "$as_me:$LINENO: result: no" >&5
17157 echo "${ECHO_T}no" >&6
17162 if test "x$enable_dlopen" != xyes; then
17163 enable_dlopen=unknown
17164 enable_dlopen_self=unknown
17165 enable_dlopen_self_static=unknown
17172 lt_cv_dlopen="load_add_on"
17174 lt_cv_dlopen_self=yes
17178 lt_cv_dlopen="LoadLibrary"
17183 lt_cv_dlopen="dlopen"
17188 # if libdl is installed we need to link against it
17189 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17194 ac_check_lib_save_LIBS=$LIBS
17196 cat >conftest.$ac_ext <<_ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17203 /* Override any gcc2 internal prototype to avoid an error. */
17207 /* We use char because int might match the return type of a gcc2
17208 builtin and then its argument prototype would still apply. */
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17220 (eval $ac_link) 2>conftest.er1
17222 grep -v '^ *+' conftest.er1 >conftest.err
17224 cat conftest.err >&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } &&
17227 { ac_try='test -z "$ac_c_werror_flag"
17228 || test ! -s conftest.err'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; } &&
17234 { ac_try='test -s conftest$ac_exeext'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 ac_cv_lib_dl_dlopen=yes
17242 echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17245 ac_cv_lib_dl_dlopen=no
17247 rm -f conftest.err conftest.$ac_objext \
17248 conftest$ac_exeext conftest.$ac_ext
17249 LIBS=$ac_check_lib_save_LIBS
17251 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17253 if test $ac_cv_lib_dl_dlopen = yes; then
17254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17257 lt_cv_dlopen="dyld"
17259 lt_cv_dlopen_self=yes
17266 echo "$as_me:$LINENO: checking for shl_load" >&5
17267 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17268 if test "${ac_cv_func_shl_load+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 cat >conftest.$ac_ext <<_ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17277 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17279 #define shl_load innocuous_shl_load
17281 /* System header to define __stub macros and hopefully few prototypes,
17282 which can conflict with char shl_load (); below.
17283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17284 <limits.h> exists even on freestanding compilers. */
17287 # include <limits.h>
17289 # include <assert.h>
17294 /* Override any gcc2 internal prototype to avoid an error. */
17299 /* We use char because int might match the return type of a gcc2
17300 builtin and then its argument prototype would still apply. */
17302 /* The GNU C library defines this for functions which it implements
17303 to always fail with ENOSYS. Some functions are actually named
17304 something starting with __ and the normal name is an alias. */
17305 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17308 char (*f) () = shl_load;
17317 return f != shl_load;
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324 (eval $ac_link) 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag"
17332 || test ! -s conftest.err'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest$ac_exeext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_func_shl_load=yes
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 ac_cv_func_shl_load=no
17351 rm -f conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
17354 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17355 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17356 if test $ac_cv_func_shl_load = yes; then
17357 lt_cv_dlopen="shl_load"
17359 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17360 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17361 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 ac_check_lib_save_LIBS=$LIBS
17366 cat >conftest.$ac_ext <<_ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17373 /* Override any gcc2 internal prototype to avoid an error. */
17377 /* We use char because int might match the return type of a gcc2
17378 builtin and then its argument prototype would still apply. */
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17390 (eval $ac_link) 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest$ac_exeext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_lib_dld_shl_load=yes
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 ac_cv_lib_dld_shl_load=no
17417 rm -f conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17419 LIBS=$ac_check_lib_save_LIBS
17421 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17422 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17423 if test $ac_cv_lib_dld_shl_load = yes; then
17424 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17426 echo "$as_me:$LINENO: checking for dlopen" >&5
17427 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17428 if test "${ac_cv_func_dlopen+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 cat >conftest.$ac_ext <<_ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17439 #define dlopen innocuous_dlopen
17441 /* System header to define __stub macros and hopefully few prototypes,
17442 which can conflict with char dlopen (); below.
17443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17444 <limits.h> exists even on freestanding compilers. */
17447 # include <limits.h>
17449 # include <assert.h>
17454 /* Override any gcc2 internal prototype to avoid an error. */
17459 /* We use char because int might match the return type of a gcc2
17460 builtin and then its argument prototype would still apply. */
17462 /* The GNU C library defines this for functions which it implements
17463 to always fail with ENOSYS. Some functions are actually named
17464 something starting with __ and the normal name is an alias. */
17465 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17468 char (*f) () = dlopen;
17477 return f != dlopen;
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>conftest.er1
17486 grep -v '^ *+' conftest.er1 >conftest.err
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 ac_cv_func_dlopen=yes
17506 echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17509 ac_cv_func_dlopen=no
17511 rm -f conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17514 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17515 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17516 if test $ac_cv_func_dlopen = yes; then
17517 lt_cv_dlopen="dlopen"
17519 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17524 ac_check_lib_save_LIBS=$LIBS
17526 cat >conftest.$ac_ext <<_ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17533 /* Override any gcc2 internal prototype to avoid an error. */
17537 /* We use char because int might match the return type of a gcc2
17538 builtin and then its argument prototype would still apply. */
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17550 (eval $ac_link) 2>conftest.er1
17552 grep -v '^ *+' conftest.er1 >conftest.err
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag"
17558 || test ! -s conftest.err'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; } &&
17564 { ac_try='test -s conftest$ac_exeext'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 ac_cv_lib_dl_dlopen=yes
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 ac_cv_lib_dl_dlopen=no
17577 rm -f conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
17579 LIBS=$ac_check_lib_save_LIBS
17581 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17582 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17583 if test $ac_cv_lib_dl_dlopen = yes; then
17584 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17586 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17587 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17588 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 ac_check_lib_save_LIBS=$LIBS
17592 LIBS="-lsvld $LIBS"
17593 cat >conftest.$ac_ext <<_ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17600 /* Override any gcc2 internal prototype to avoid an error. */
17604 /* We use char because int might match the return type of a gcc2
17605 builtin and then its argument prototype would still apply. */
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17617 (eval $ac_link) 2>conftest.er1
17619 grep -v '^ *+' conftest.er1 >conftest.err
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag"
17625 || test ! -s conftest.err'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest$ac_exeext'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 ac_cv_lib_svld_dlopen=yes
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ac_cv_lib_svld_dlopen=no
17644 rm -f conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17646 LIBS=$ac_check_lib_save_LIBS
17648 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17649 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17650 if test $ac_cv_lib_svld_dlopen = yes; then
17651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17653 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17654 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17655 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 ac_check_lib_save_LIBS=$LIBS
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17667 /* Override any gcc2 internal prototype to avoid an error. */
17671 /* We use char because int might match the return type of a gcc2
17672 builtin and then its argument prototype would still apply. */
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 (eval $ac_link) 2>conftest.er1
17686 grep -v '^ *+' conftest.er1 >conftest.err
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } &&
17691 { ac_try='test -z "$ac_c_werror_flag"
17692 || test ! -s conftest.err'
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; } &&
17698 { ac_try='test -s conftest$ac_exeext'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; }; then
17704 ac_cv_lib_dld_dld_link=yes
17706 echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17709 ac_cv_lib_dld_dld_link=no
17711 rm -f conftest.err conftest.$ac_objext \
17712 conftest$ac_exeext conftest.$ac_ext
17713 LIBS=$ac_check_lib_save_LIBS
17715 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17716 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17717 if test $ac_cv_lib_dld_dld_link = yes; then
17718 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17739 if test "x$lt_cv_dlopen" != xno; then
17745 case $lt_cv_dlopen in
17747 save_CPPFLAGS="$CPPFLAGS"
17748 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17750 save_LDFLAGS="$LDFLAGS"
17751 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17754 LIBS="$lt_cv_dlopen_libs $LIBS"
17756 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17757 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17758 if test "${lt_cv_dlopen_self+set}" = set; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17761 if test "$cross_compiling" = yes; then :
17762 lt_cv_dlopen_self=cross
17764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17765 lt_status=$lt_dlunknown
17766 cat > conftest.$ac_ext <<EOF
17767 #line 17767 "configure"
17768 #include "confdefs.h"
17777 # define LT_DLGLOBAL RTLD_GLOBAL
17780 # define LT_DLGLOBAL DL_GLOBAL
17782 # define LT_DLGLOBAL 0
17786 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17787 find out it does not work in some platform. */
17788 #ifndef LT_DLLAZY_OR_NOW
17790 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17793 # define LT_DLLAZY_OR_NOW DL_LAZY
17796 # define LT_DLLAZY_OR_NOW RTLD_NOW
17799 # define LT_DLLAZY_OR_NOW DL_NOW
17801 # define LT_DLLAZY_OR_NOW 0
17809 extern "C" void exit (int);
17812 void fnord() { int i=42;}
17815 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17816 int status = $lt_dlunknown;
17820 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17821 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17822 /* dlclose (self); */
17828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829 (eval $ac_link) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17833 (./conftest; exit; ) 2>/dev/null
17835 case x$lt_status in
17836 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17837 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17838 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17841 # compilation failed
17842 lt_cv_dlopen_self=no
17849 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17850 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17852 if test "x$lt_cv_dlopen_self" = xyes; then
17853 LDFLAGS="$LDFLAGS $link_static_flag"
17854 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17855 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17856 if test "${lt_cv_dlopen_self_static+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 if test "$cross_compiling" = yes; then :
17860 lt_cv_dlopen_self_static=cross
17862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17863 lt_status=$lt_dlunknown
17864 cat > conftest.$ac_ext <<EOF
17865 #line 17865 "configure"
17866 #include "confdefs.h"
17875 # define LT_DLGLOBAL RTLD_GLOBAL
17878 # define LT_DLGLOBAL DL_GLOBAL
17880 # define LT_DLGLOBAL 0
17884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17885 find out it does not work in some platform. */
17886 #ifndef LT_DLLAZY_OR_NOW
17888 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17891 # define LT_DLLAZY_OR_NOW DL_LAZY
17894 # define LT_DLLAZY_OR_NOW RTLD_NOW
17897 # define LT_DLLAZY_OR_NOW DL_NOW
17899 # define LT_DLLAZY_OR_NOW 0
17907 extern "C" void exit (int);
17910 void fnord() { int i=42;}
17913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17914 int status = $lt_dlunknown;
17918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17919 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17920 /* dlclose (self); */
17926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17927 (eval $ac_link) 2>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17931 (./conftest; exit; ) 2>/dev/null
17933 case x$lt_status in
17934 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17935 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17936 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17939 # compilation failed
17940 lt_cv_dlopen_self_static=no
17947 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17948 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17951 CPPFLAGS="$save_CPPFLAGS"
17952 LDFLAGS="$save_LDFLAGS"
17957 case $lt_cv_dlopen_self in
17958 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17959 *) enable_dlopen_self=unknown ;;
17962 case $lt_cv_dlopen_self_static in
17963 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17964 *) enable_dlopen_self_static=unknown ;;
17969 # The else clause should only fire when bootstrapping the
17970 # libtool distribution, otherwise you forgot to ship ltmain.sh
17971 # with your package, and you will get complaints that there are
17972 # no rules to generate ltmain.sh.
17973 if test -f "$ltmain"; then
17974 # See if we are running on zsh, and set the options which allow our commands through
17975 # without removal of \ escapes.
17976 if test -n "${ZSH_VERSION+set}" ; then
17977 setopt NO_GLOB_SUBST
17979 # Now quote all the things that may contain metacharacters while being
17980 # careful not to overquote the AC_SUBSTed values. We take copies of the
17981 # variables and quote the copies for generation of the libtool script.
17982 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17984 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17985 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17986 deplibs_check_method reload_flag reload_cmds need_locks \
17987 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17988 lt_cv_sys_global_symbol_to_c_name_address \
17989 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17990 old_postinstall_cmds old_postuninstall_cmds \
17994 lt_prog_compiler_wl_GCJ \
17995 lt_prog_compiler_pic_GCJ \
17996 lt_prog_compiler_static_GCJ \
17997 lt_prog_compiler_no_builtin_flag_GCJ \
17998 export_dynamic_flag_spec_GCJ \
17999 thread_safe_flag_spec_GCJ \
18000 whole_archive_flag_spec_GCJ \
18001 enable_shared_with_static_runtimes_GCJ \
18002 old_archive_cmds_GCJ \
18003 old_archive_from_new_cmds_GCJ \
18004 predep_objects_GCJ \
18005 postdep_objects_GCJ \
18008 compiler_lib_search_path_GCJ \
18010 archive_expsym_cmds_GCJ \
18011 postinstall_cmds_GCJ \
18012 postuninstall_cmds_GCJ \
18013 old_archive_from_expsyms_cmds_GCJ \
18014 allow_undefined_flag_GCJ \
18015 no_undefined_flag_GCJ \
18016 export_symbols_cmds_GCJ \
18017 hardcode_libdir_flag_spec_GCJ \
18018 hardcode_libdir_flag_spec_ld_GCJ \
18019 hardcode_libdir_separator_GCJ \
18020 hardcode_automatic_GCJ \
18022 module_expsym_cmds_GCJ \
18023 lt_cv_prog_compiler_c_o_GCJ \
18024 exclude_expsyms_GCJ \
18025 include_expsyms_GCJ; do
18028 old_archive_cmds_GCJ | \
18029 old_archive_from_new_cmds_GCJ | \
18030 archive_cmds_GCJ | \
18031 archive_expsym_cmds_GCJ | \
18032 module_cmds_GCJ | \
18033 module_expsym_cmds_GCJ | \
18034 old_archive_from_expsyms_cmds_GCJ | \
18035 export_symbols_cmds_GCJ | \
18036 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18037 postinstall_cmds | postuninstall_cmds | \
18038 old_postinstall_cmds | old_postuninstall_cmds | \
18039 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18040 # Double-quote double-evaled strings.
18041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18044 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18050 *'\$0 --fallback-echo"')
18051 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18057 cat <<__EOF__ >> "$cfgfile"
18058 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18060 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18062 # Shell to use when invoking shell scripts.
18065 # Whether or not to build shared libraries.
18066 build_libtool_libs=$enable_shared
18068 # Whether or not to build static libraries.
18069 build_old_libs=$enable_static
18071 # Whether or not to add -lc for building shared libraries.
18072 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18074 # Whether or not to disallow shared libs when runtime libs are static
18075 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18077 # Whether or not to optimize for fast installation.
18078 fast_install=$enable_fast_install
18081 host_alias=$host_alias
18084 # An echo program that does not interpret backslashes.
18089 AR_FLAGS=$lt_AR_FLAGS
18094 # A language-specific compiler.
18095 CC=$lt_compiler_GCJ
18097 # Is the compiler the GNU C compiler?
18103 # The linker used to build libraries.
18106 # Whether we need hard or soft links.
18109 # A BSD-compatible nm program.
18112 # A symbol stripping program
18115 # Used to examine libraries when file_magic_cmd begins "file"
18116 MAGIC_CMD=$MAGIC_CMD
18118 # Used on cygwin: DLL creation program.
18121 # Used on cygwin: object dumper.
18124 # Used on cygwin: assembler.
18127 # The name of the directory that contains temporary libtool files.
18130 # How to create reloadable object files.
18131 reload_flag=$lt_reload_flag
18132 reload_cmds=$lt_reload_cmds
18134 # How to pass a linker flag through the compiler.
18135 wl=$lt_lt_prog_compiler_wl_GCJ
18137 # Object file suffix (normally "o").
18138 objext="$ac_objext"
18140 # Old archive suffix (normally "a").
18143 # Shared library suffix (normally ".so").
18146 # Executable file suffix (normally "").
18149 # Additional compiler flags for building library objects.
18150 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18153 # What is the maximum length of a command?
18154 max_cmd_len=$lt_cv_sys_max_cmd_len
18156 # Does compiler simultaneously support -c and -o options?
18157 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18159 # Must we lock files when doing compilation ?
18160 need_locks=$lt_need_locks
18162 # Do we need the lib prefix for modules?
18163 need_lib_prefix=$need_lib_prefix
18165 # Do we need a version for libraries?
18166 need_version=$need_version
18168 # Whether dlopen is supported.
18169 dlopen_support=$enable_dlopen
18171 # Whether dlopen of programs is supported.
18172 dlopen_self=$enable_dlopen_self
18174 # Whether dlopen of statically linked programs is supported.
18175 dlopen_self_static=$enable_dlopen_self_static
18177 # Compiler flag to prevent dynamic linking.
18178 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18180 # Compiler flag to turn off builtin functions.
18181 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18183 # Compiler flag to allow reflexive dlopens.
18184 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18186 # Compiler flag to generate shared objects directly from archives.
18187 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18189 # Compiler flag to generate thread-safe objects.
18190 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18192 # Library versioning type.
18193 version_type=$version_type
18195 # Format of library name prefix.
18196 libname_spec=$lt_libname_spec
18198 # List of archive names. First name is the real one, the rest are links.
18199 # The last name is the one that the linker finds with -lNAME.
18200 library_names_spec=$lt_library_names_spec
18202 # The coded name of the library, if different from the real name.
18203 soname_spec=$lt_soname_spec
18205 # Commands used to build and install an old-style archive.
18207 old_archive_cmds=$lt_old_archive_cmds_GCJ
18208 old_postinstall_cmds=$lt_old_postinstall_cmds
18209 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18211 # Create an old-style archive from a shared archive.
18212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18214 # Create a temporary old-style archive to link instead of a shared archive.
18215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18217 # Commands used to build and install a shared archive.
18218 archive_cmds=$lt_archive_cmds_GCJ
18219 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18220 postinstall_cmds=$lt_postinstall_cmds
18221 postuninstall_cmds=$lt_postuninstall_cmds
18223 # Commands used to build a loadable module (assumed same as above if empty)
18224 module_cmds=$lt_module_cmds_GCJ
18225 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18227 # Commands to strip libraries.
18228 old_striplib=$lt_old_striplib
18229 striplib=$lt_striplib
18231 # Dependencies to place before the objects being linked to create a
18233 predep_objects=$lt_predep_objects_GCJ
18235 # Dependencies to place after the objects being linked to create a
18237 postdep_objects=$lt_postdep_objects_GCJ
18239 # Dependencies to place before the objects being linked to create a
18241 predeps=$lt_predeps_GCJ
18243 # Dependencies to place after the objects being linked to create a
18245 postdeps=$lt_postdeps_GCJ
18247 # The library search path used internally by the compiler when linking
18248 # a shared library.
18249 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18251 # Method to check whether dependent libraries are shared objects.
18252 deplibs_check_method=$lt_deplibs_check_method
18254 # Command to use when deplibs_check_method == file_magic.
18255 file_magic_cmd=$lt_file_magic_cmd
18257 # Flag that allows shared libraries with undefined symbols to be built.
18258 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18260 # Flag that forces no undefined symbols.
18261 no_undefined_flag=$lt_no_undefined_flag_GCJ
18263 # Commands used to finish a libtool library installation in a directory.
18264 finish_cmds=$lt_finish_cmds
18266 # Same as above, but a single script fragment to be evaled but not shown.
18267 finish_eval=$lt_finish_eval
18269 # Take the output of nm and produce a listing of raw symbols and C names.
18270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18272 # Transform the output of nm in a proper C declaration
18273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18275 # Transform the output of nm in a C name address pair
18276 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18278 # This is the shared library runtime path variable.
18279 runpath_var=$runpath_var
18281 # This is the shared library path variable.
18282 shlibpath_var=$shlibpath_var
18284 # Is shlibpath searched before the hard-coded library search path?
18285 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18287 # How to hardcode a shared library path into an executable.
18288 hardcode_action=$hardcode_action_GCJ
18290 # Whether we should hardcode library paths into libraries.
18291 hardcode_into_libs=$hardcode_into_libs
18293 # Flag to hardcode \$libdir into a binary during linking.
18294 # This must work even if \$libdir does not exist.
18295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18297 # If ld is used when linking, flag to hardcode \$libdir into
18298 # a binary during linking. This must work even if \$libdir does
18300 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18302 # Whether we need a single -rpath flag with a separated argument.
18303 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18305 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18306 # resulting binary.
18307 hardcode_direct=$hardcode_direct_GCJ
18309 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18310 # resulting binary.
18311 hardcode_minus_L=$hardcode_minus_L_GCJ
18313 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18314 # the resulting binary.
18315 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18317 # Set to yes if building a shared library automatically hardcodes DIR into the library
18318 # and all subsequent libraries and executables linked against it.
18319 hardcode_automatic=$hardcode_automatic_GCJ
18321 # Variables whose values should be saved in libtool wrapper scripts and
18322 # restored at relink time.
18323 variables_saved_for_relink="$variables_saved_for_relink"
18325 # Whether libtool must link a program against all its dependency libraries.
18326 link_all_deplibs=$link_all_deplibs_GCJ
18328 # Compile-time system search path for libraries
18329 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18331 # Run-time system search path for libraries
18332 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18334 # Fix the shell variable \$srcfile for the compiler.
18335 fix_srcfile_path="$fix_srcfile_path_GCJ"
18337 # Set to yes if exported symbols are required.
18338 always_export_symbols=$always_export_symbols_GCJ
18340 # The commands to list exported symbols.
18341 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18343 # The commands to extract the exported symbol list from a shared archive.
18344 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18346 # Symbols that should not be listed in the preloaded symbols.
18347 exclude_expsyms=$lt_exclude_expsyms_GCJ
18349 # Symbols that must always be exported.
18350 include_expsyms=$lt_include_expsyms_GCJ
18352 # ### END LIBTOOL TAG CONFIG: $tagname
18358 # If there is no Makefile yet, we rely on a make rule to execute
18359 # `config.status --recheck' to rerun these tests and create the
18360 # libtool script then.
18361 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18362 if test -f "$ltmain_in"; then
18363 test -f Makefile && make "$ltmain"
18369 ac_cpp='$CPP $CPPFLAGS'
18370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18385 # Source file extension for RC test sources.
18388 # Object file extension for compiled RC test sources.
18392 # Code to be used in simple compile tests
18393 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18395 # Code to be used in simple link tests
18396 lt_simple_link_test_code="$lt_simple_compile_test_code"
18398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18400 # If no C compiler was specified, use CC.
18403 # Allow CC to be a program name with arguments.
18407 # Allow CC to be a program name with arguments.
18412 lt_cv_prog_compiler_c_o_RC=yes
18414 # The else clause should only fire when bootstrapping the
18415 # libtool distribution, otherwise you forgot to ship ltmain.sh
18416 # with your package, and you will get complaints that there are
18417 # no rules to generate ltmain.sh.
18418 if test -f "$ltmain"; then
18419 # See if we are running on zsh, and set the options which allow our commands through
18420 # without removal of \ escapes.
18421 if test -n "${ZSH_VERSION+set}" ; then
18422 setopt NO_GLOB_SUBST
18424 # Now quote all the things that may contain metacharacters while being
18425 # careful not to overquote the AC_SUBSTed values. We take copies of the
18426 # variables and quote the copies for generation of the libtool script.
18427 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18429 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18430 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18431 deplibs_check_method reload_flag reload_cmds need_locks \
18432 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18433 lt_cv_sys_global_symbol_to_c_name_address \
18434 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18435 old_postinstall_cmds old_postuninstall_cmds \
18439 lt_prog_compiler_wl_RC \
18440 lt_prog_compiler_pic_RC \
18441 lt_prog_compiler_static_RC \
18442 lt_prog_compiler_no_builtin_flag_RC \
18443 export_dynamic_flag_spec_RC \
18444 thread_safe_flag_spec_RC \
18445 whole_archive_flag_spec_RC \
18446 enable_shared_with_static_runtimes_RC \
18447 old_archive_cmds_RC \
18448 old_archive_from_new_cmds_RC \
18449 predep_objects_RC \
18450 postdep_objects_RC \
18453 compiler_lib_search_path_RC \
18455 archive_expsym_cmds_RC \
18456 postinstall_cmds_RC \
18457 postuninstall_cmds_RC \
18458 old_archive_from_expsyms_cmds_RC \
18459 allow_undefined_flag_RC \
18460 no_undefined_flag_RC \
18461 export_symbols_cmds_RC \
18462 hardcode_libdir_flag_spec_RC \
18463 hardcode_libdir_flag_spec_ld_RC \
18464 hardcode_libdir_separator_RC \
18465 hardcode_automatic_RC \
18467 module_expsym_cmds_RC \
18468 lt_cv_prog_compiler_c_o_RC \
18469 exclude_expsyms_RC \
18470 include_expsyms_RC; do
18473 old_archive_cmds_RC | \
18474 old_archive_from_new_cmds_RC | \
18475 archive_cmds_RC | \
18476 archive_expsym_cmds_RC | \
18478 module_expsym_cmds_RC | \
18479 old_archive_from_expsyms_cmds_RC | \
18480 export_symbols_cmds_RC | \
18481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18482 postinstall_cmds | postuninstall_cmds | \
18483 old_postinstall_cmds | old_postuninstall_cmds | \
18484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18485 # Double-quote double-evaled strings.
18486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18495 *'\$0 --fallback-echo"')
18496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18502 cat <<__EOF__ >> "$cfgfile"
18503 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18507 # Shell to use when invoking shell scripts.
18510 # Whether or not to build shared libraries.
18511 build_libtool_libs=$enable_shared
18513 # Whether or not to build static libraries.
18514 build_old_libs=$enable_static
18516 # Whether or not to add -lc for building shared libraries.
18517 build_libtool_need_lc=$archive_cmds_need_lc_RC
18519 # Whether or not to disallow shared libs when runtime libs are static
18520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18522 # Whether or not to optimize for fast installation.
18523 fast_install=$enable_fast_install
18526 host_alias=$host_alias
18529 # An echo program that does not interpret backslashes.
18534 AR_FLAGS=$lt_AR_FLAGS
18539 # A language-specific compiler.
18542 # Is the compiler the GNU C compiler?
18548 # The linker used to build libraries.
18551 # Whether we need hard or soft links.
18554 # A BSD-compatible nm program.
18557 # A symbol stripping program
18560 # Used to examine libraries when file_magic_cmd begins "file"
18561 MAGIC_CMD=$MAGIC_CMD
18563 # Used on cygwin: DLL creation program.
18566 # Used on cygwin: object dumper.
18569 # Used on cygwin: assembler.
18572 # The name of the directory that contains temporary libtool files.
18575 # How to create reloadable object files.
18576 reload_flag=$lt_reload_flag
18577 reload_cmds=$lt_reload_cmds
18579 # How to pass a linker flag through the compiler.
18580 wl=$lt_lt_prog_compiler_wl_RC
18582 # Object file suffix (normally "o").
18583 objext="$ac_objext"
18585 # Old archive suffix (normally "a").
18588 # Shared library suffix (normally ".so").
18591 # Executable file suffix (normally "").
18594 # Additional compiler flags for building library objects.
18595 pic_flag=$lt_lt_prog_compiler_pic_RC
18598 # What is the maximum length of a command?
18599 max_cmd_len=$lt_cv_sys_max_cmd_len
18601 # Does compiler simultaneously support -c and -o options?
18602 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18604 # Must we lock files when doing compilation ?
18605 need_locks=$lt_need_locks
18607 # Do we need the lib prefix for modules?
18608 need_lib_prefix=$need_lib_prefix
18610 # Do we need a version for libraries?
18611 need_version=$need_version
18613 # Whether dlopen is supported.
18614 dlopen_support=$enable_dlopen
18616 # Whether dlopen of programs is supported.
18617 dlopen_self=$enable_dlopen_self
18619 # Whether dlopen of statically linked programs is supported.
18620 dlopen_self_static=$enable_dlopen_self_static
18622 # Compiler flag to prevent dynamic linking.
18623 link_static_flag=$lt_lt_prog_compiler_static_RC
18625 # Compiler flag to turn off builtin functions.
18626 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18628 # Compiler flag to allow reflexive dlopens.
18629 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18631 # Compiler flag to generate shared objects directly from archives.
18632 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18634 # Compiler flag to generate thread-safe objects.
18635 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18637 # Library versioning type.
18638 version_type=$version_type
18640 # Format of library name prefix.
18641 libname_spec=$lt_libname_spec
18643 # List of archive names. First name is the real one, the rest are links.
18644 # The last name is the one that the linker finds with -lNAME.
18645 library_names_spec=$lt_library_names_spec
18647 # The coded name of the library, if different from the real name.
18648 soname_spec=$lt_soname_spec
18650 # Commands used to build and install an old-style archive.
18652 old_archive_cmds=$lt_old_archive_cmds_RC
18653 old_postinstall_cmds=$lt_old_postinstall_cmds
18654 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18656 # Create an old-style archive from a shared archive.
18657 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18659 # Create a temporary old-style archive to link instead of a shared archive.
18660 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18662 # Commands used to build and install a shared archive.
18663 archive_cmds=$lt_archive_cmds_RC
18664 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18665 postinstall_cmds=$lt_postinstall_cmds
18666 postuninstall_cmds=$lt_postuninstall_cmds
18668 # Commands used to build a loadable module (assumed same as above if empty)
18669 module_cmds=$lt_module_cmds_RC
18670 module_expsym_cmds=$lt_module_expsym_cmds_RC
18672 # Commands to strip libraries.
18673 old_striplib=$lt_old_striplib
18674 striplib=$lt_striplib
18676 # Dependencies to place before the objects being linked to create a
18678 predep_objects=$lt_predep_objects_RC
18680 # Dependencies to place after the objects being linked to create a
18682 postdep_objects=$lt_postdep_objects_RC
18684 # Dependencies to place before the objects being linked to create a
18686 predeps=$lt_predeps_RC
18688 # Dependencies to place after the objects being linked to create a
18690 postdeps=$lt_postdeps_RC
18692 # The library search path used internally by the compiler when linking
18693 # a shared library.
18694 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18696 # Method to check whether dependent libraries are shared objects.
18697 deplibs_check_method=$lt_deplibs_check_method
18699 # Command to use when deplibs_check_method == file_magic.
18700 file_magic_cmd=$lt_file_magic_cmd
18702 # Flag that allows shared libraries with undefined symbols to be built.
18703 allow_undefined_flag=$lt_allow_undefined_flag_RC
18705 # Flag that forces no undefined symbols.
18706 no_undefined_flag=$lt_no_undefined_flag_RC
18708 # Commands used to finish a libtool library installation in a directory.
18709 finish_cmds=$lt_finish_cmds
18711 # Same as above, but a single script fragment to be evaled but not shown.
18712 finish_eval=$lt_finish_eval
18714 # Take the output of nm and produce a listing of raw symbols and C names.
18715 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18717 # Transform the output of nm in a proper C declaration
18718 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18720 # Transform the output of nm in a C name address pair
18721 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18723 # This is the shared library runtime path variable.
18724 runpath_var=$runpath_var
18726 # This is the shared library path variable.
18727 shlibpath_var=$shlibpath_var
18729 # Is shlibpath searched before the hard-coded library search path?
18730 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18732 # How to hardcode a shared library path into an executable.
18733 hardcode_action=$hardcode_action_RC
18735 # Whether we should hardcode library paths into libraries.
18736 hardcode_into_libs=$hardcode_into_libs
18738 # Flag to hardcode \$libdir into a binary during linking.
18739 # This must work even if \$libdir does not exist.
18740 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18742 # If ld is used when linking, flag to hardcode \$libdir into
18743 # a binary during linking. This must work even if \$libdir does
18745 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18747 # Whether we need a single -rpath flag with a separated argument.
18748 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18750 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18751 # resulting binary.
18752 hardcode_direct=$hardcode_direct_RC
18754 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18755 # resulting binary.
18756 hardcode_minus_L=$hardcode_minus_L_RC
18758 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18759 # the resulting binary.
18760 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18762 # Set to yes if building a shared library automatically hardcodes DIR into the library
18763 # and all subsequent libraries and executables linked against it.
18764 hardcode_automatic=$hardcode_automatic_RC
18766 # Variables whose values should be saved in libtool wrapper scripts and
18767 # restored at relink time.
18768 variables_saved_for_relink="$variables_saved_for_relink"
18770 # Whether libtool must link a program against all its dependency libraries.
18771 link_all_deplibs=$link_all_deplibs_RC
18773 # Compile-time system search path for libraries
18774 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18776 # Run-time system search path for libraries
18777 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18779 # Fix the shell variable \$srcfile for the compiler.
18780 fix_srcfile_path="$fix_srcfile_path_RC"
18782 # Set to yes if exported symbols are required.
18783 always_export_symbols=$always_export_symbols_RC
18785 # The commands to list exported symbols.
18786 export_symbols_cmds=$lt_export_symbols_cmds_RC
18788 # The commands to extract the exported symbol list from a shared archive.
18789 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18791 # Symbols that should not be listed in the preloaded symbols.
18792 exclude_expsyms=$lt_exclude_expsyms_RC
18794 # Symbols that must always be exported.
18795 include_expsyms=$lt_include_expsyms_RC
18797 # ### END LIBTOOL TAG CONFIG: $tagname
18803 # If there is no Makefile yet, we rely on a make rule to execute
18804 # `config.status --recheck' to rerun these tests and create the
18805 # libtool script then.
18806 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18807 if test -f "$ltmain_in"; then
18808 test -f Makefile && make "$ltmain"
18814 ac_cpp='$CPP $CPPFLAGS'
18815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18824 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18825 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18826 { (exit 1); exit 1; }; }
18830 # Append the new tag name to the list of available tags.
18831 if test -n "$tagname" ; then
18832 available_tags="$available_tags $tagname"
18838 # Now substitute the updated list of available tags.
18839 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18840 mv "${ofile}T" "$ofile"
18844 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18845 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18846 { (exit 1); exit 1; }; }
18851 if test ! -f "${ofile}"; then
18852 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18853 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18855 if test -z `grep -e 'shared_ext.*shrext' $ofile`; then
18856 # Make sure $shared_ext gets set to $shrext
18857 if sed -e 's/shared_ext/shrext/g' "$ofile" > "${ofile}T"; then
18858 mv "${ofile}T" "$ofile"
18862 { { echo "$as_me:$LINENO: error: unable to update shared_ext." >&5
18863 echo "$as_me: error: unable to update shared_ext." >&2;}
18864 { (exit 1); exit 1; }; }
18870 # This can be used to rebuild libtool when needed
18871 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18873 # Always use our own libtool.
18874 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18876 # Prevent multiple expansion
18897 for ac_prog in gzip uncompress compress
18899 # Extract the first word of "$ac_prog", so it can be a program name with args.
18900 set dummy $ac_prog; ac_word=$2
18901 echo "$as_me:$LINENO: checking for $ac_word" >&5
18902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18903 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 if test -n "$UNCOMPRESS"; then
18907 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
18909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18910 for as_dir in $PATH
18913 test -z "$as_dir" && as_dir=.
18914 for ac_exec_ext in '' $ac_executable_extensions; do
18915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18916 ac_cv_prog_UNCOMPRESS="$ac_prog"
18917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18925 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
18926 if test -n "$UNCOMPRESS"; then
18927 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
18928 echo "${ECHO_T}$UNCOMPRESS" >&6
18930 echo "$as_me:$LINENO: result: no" >&5
18931 echo "${ECHO_T}no" >&6
18934 test -n "$UNCOMPRESS" && break
18943 if test "x$EXEEXT" = "x.exe";then
18954 echo "$as_me:$LINENO: checking for target system" >&5
18955 echo $ECHO_N "checking for target system... $ECHO_C" >&6
18959 *cygwin* ) CYGWIN=yes;;
18960 *mingw* ) MINGW=yes;;
18964 if test "x$MINGW" = "xyes"; then
18965 #fix for the debian distribution of mingw
18966 if test -x "/usr/i586-mingw32msvc/bin/ar";then
18967 AR="/usr/i586-mingw32msvc/bin/ar"
18969 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
18970 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
18972 #fix for the gentoo distribution of mingw
18973 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
18974 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
18976 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
18977 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
18979 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
18980 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
18986 if test "x${CYGWIN}" = "xyes"; then
18987 cat >>confdefs.h <<_ACEOF
18991 echo "$as_me:$LINENO: result: cygwin" >&5
18992 echo "${ECHO_T}cygwin" >&6
18994 if test "x${MINGW}" = "xyes"; then
18995 cat >>confdefs.h <<_ACEOF
19000 cat >>confdefs.h <<_ACEOF
19004 LIBS="$LIBS -lws2_32"
19005 echo "$as_me:$LINENO: result: mingw" >&5
19006 echo "${ECHO_T}mingw" >&6
19010 cat >>confdefs.h <<_ACEOF
19014 echo "$as_me:$LINENO: result: " >&5
19015 echo "${ECHO_T}" >&6
19021 if test "x${MINGW}" != "xyes"; then
19023 cat >>confdefs.h <<_ACEOF
19034 # The following tries to make use of includes and libraries in
19035 # /usr/local, too. Notice: A -I/usr/local/include might break
19036 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
19037 # especially on systems which link /usr/local to /usr, so it has yet
19038 # to be seen how useful this is.
19039 if test -d /usr/local/lib; then
19040 LDFLAGS="$LDFLAGS -L/usr/local/lib"
19042 if test -d /usr/local/include; then
19043 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
19044 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
19047 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
19048 # if the user has a special prefix (like /opt), there might also be $prefix/lib
19049 # and $prefix/include, which should be included in our search paths for libraries
19051 LDFLAGS="$LDFLAGS -L${libdir}"
19052 CPPFLAGS="$CPPFLAGS -I${includedir}"
19053 # TODO- test whether gcc still works after this
19057 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
19060 # this must be done after (I believe) AC_PROG_MAKE_SET
19061 if test "x$DEBUG" '!=' "x";then
19062 STRIP="@echo debug enabled, not stripping "
19068 echo "$as_me:$LINENO: checking for sin in -lm" >&5
19069 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19070 if test "${ac_cv_lib_m_sin+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 ac_check_lib_save_LIBS=$LIBS
19075 cat >conftest.$ac_ext <<_ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19082 /* Override any gcc2 internal prototype to avoid an error. */
19086 /* We use char because int might match the return type of a gcc2
19087 builtin and then its argument prototype would still apply. */
19097 rm -f conftest.$ac_objext conftest$ac_exeext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19099 (eval $ac_link) 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_c_werror_flag"
19107 || test ! -s conftest.err'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest$ac_exeext'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_cv_lib_m_sin=yes
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19126 rm -f conftest.err conftest.$ac_objext \
19127 conftest$ac_exeext conftest.$ac_ext
19128 LIBS=$ac_check_lib_save_LIBS
19130 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19131 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19132 if test $ac_cv_lib_m_sin = yes; then
19133 cat >>confdefs.h <<_ACEOF
19134 #define HAVE_LIBM 1
19140 echo "Error: Math library not found.";
19146 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19147 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19148 if test "${ac_cv_lib_z_deflate+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19151 ac_check_lib_save_LIBS=$LIBS
19153 cat >conftest.$ac_ext <<_ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19160 /* Override any gcc2 internal prototype to avoid an error. */
19164 /* We use char because int might match the return type of a gcc2
19165 builtin and then its argument prototype would still apply. */
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19177 (eval $ac_link) 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag"
19185 || test ! -s conftest.err'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest$ac_exeext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_lib_z_deflate=yes
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_cv_lib_z_deflate=no
19204 rm -f conftest.err conftest.$ac_objext \
19205 conftest$ac_exeext conftest.$ac_ext
19206 LIBS=$ac_check_lib_save_LIBS
19208 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19209 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19210 if test $ac_cv_lib_z_deflate = yes; then
19211 cat >>confdefs.h <<_ACEOF
19212 #define HAVE_LIBZ 1
19222 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
19223 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
19224 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
19225 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 ac_check_lib_save_LIBS=$LIBS
19228 LIBS="-ljpeg $LIBS"
19229 cat >conftest.$ac_ext <<_ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19236 /* Override any gcc2 internal prototype to avoid an error. */
19240 /* We use char because int might match the return type of a gcc2
19241 builtin and then its argument prototype would still apply. */
19242 char jpeg_write_raw_data ();
19246 jpeg_write_raw_data ();
19251 rm -f conftest.$ac_objext conftest$ac_exeext
19252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19253 (eval $ac_link) 2>conftest.er1
19255 grep -v '^ *+' conftest.er1 >conftest.err
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } &&
19260 { ac_try='test -z "$ac_c_werror_flag"
19261 || test ! -s conftest.err'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; } &&
19267 { ac_try='test -s conftest$ac_exeext'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; }; then
19273 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
19275 echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19278 ac_cv_lib_jpeg_jpeg_write_raw_data=no
19280 rm -f conftest.err conftest.$ac_objext \
19281 conftest$ac_exeext conftest.$ac_ext
19282 LIBS=$ac_check_lib_save_LIBS
19284 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
19285 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
19286 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
19287 cat >>confdefs.h <<_ACEOF
19288 #define HAVE_LIBJPEG 1
19291 LIBS="-ljpeg $LIBS"
19294 JPEGLIBMISSING=true
19298 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
19299 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
19300 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19303 ac_check_lib_save_LIBS=$LIBS
19305 cat >conftest.$ac_ext <<_ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19312 /* Override any gcc2 internal prototype to avoid an error. */
19316 /* We use char because int might match the return type of a gcc2
19317 builtin and then its argument prototype would still apply. */
19318 char T1_LoadFont ();
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19329 (eval $ac_link) 2>conftest.er1
19331 grep -v '^ *+' conftest.er1 >conftest.err
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
19336 { ac_try='test -z "$ac_c_werror_flag"
19337 || test ! -s conftest.err'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest$ac_exeext'
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 ac_cv_lib_t1_T1_LoadFont=yes
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_cv_lib_t1_T1_LoadFont=no
19356 rm -f conftest.err conftest.$ac_objext \
19357 conftest$ac_exeext conftest.$ac_ext
19358 LIBS=$ac_check_lib_save_LIBS
19360 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
19361 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
19362 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
19363 cat >>confdefs.h <<_ACEOF
19364 #define HAVE_LIBT1 1
19375 echo "$as_me:$LINENO: checking for byte order" >&5
19376 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
19377 if test "$cross_compiling" = yes; then
19380 cat >conftest.$ac_ext <<_ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19387 int main (int argc, char *argv[])
19394 rm -f conftest$ac_exeext
19395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19396 (eval $ac_link) 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19407 echo "$as_me: program exited with status $ac_status" >&5
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19411 ( exit $ac_status )
19414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19416 export CROSSCOMPILE
19418 if test "x${CROSSCOMPILE}" = "x1"; then
19419 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
19420 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
19421 echo "$as_me:$LINENO: checking target system type" >&5
19422 echo $ECHO_N "checking target system type... $ECHO_C" >&6
19423 if test "${ac_cv_target+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 ac_cv_target_alias=$target_alias
19427 test "x$ac_cv_target_alias" = "x" &&
19428 ac_cv_target_alias=$ac_cv_host_alias
19429 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
19430 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
19431 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
19432 { (exit 1); exit 1; }; }
19435 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
19436 echo "${ECHO_T}$ac_cv_target" >&6
19437 target=$ac_cv_target
19438 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
19439 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
19440 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
19443 # The aliases save the names the user supplied, while $host etc.
19444 # will get canonicalized.
19445 test -n "$target_alias" &&
19446 test "$program_prefix$program_suffix$program_transform_name" = \
19448 program_prefix=${target_alias}-
19449 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
19450 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
19451 case "${target}" in
19455 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
19461 export LITTLEENDIAN
19462 if test "x${LITTLEENDIAN}" = "x1"; then
19463 echo "$as_me:$LINENO: result: little endian" >&5
19464 echo "${ECHO_T}little endian" >&6
19468 if test "x${BIGENDIAN}" = "x1"; then
19469 echo "$as_me:$LINENO: result: big endian" >&5
19470 echo "${ECHO_T}big endian" >&6
19473 export WORDS_BIGENDIAN
19474 cat >>confdefs.h <<_ACEOF
19475 #define WORDS_BIGENDIAN 1
19479 if test "x${BYTEORDERCHECKOK}" != "x1"; then
19480 echo "$as_me:$LINENO: result: unknown" >&5
19481 echo "${ECHO_T}unknown" >&6
19482 echo Byte order could not determined.
19488 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
19489 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
19490 if test "$cross_compiling" = yes; then
19493 cat >conftest.$ac_ext <<_ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19500 #include "stdlib.h"
19501 int main (int argc, char*argv[])
19503 return system("test `touch config.tmp2`");
19507 rm -f conftest$ac_exeext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19509 (eval $ac_link) 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19520 echo "$as_me: program exited with status $ac_status" >&5
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19528 if test "x${OK}" = "xOK";then
19529 test -f config.tmp2 || OK=
19532 if test "x${CROSSCOMPILE}" = "x1";then
19535 if test "x${OK}" = "xOK";then
19537 echo "$as_me:$LINENO: result: yes" >&5
19538 echo "${ECHO_T}yes" >&6
19540 export SYSTEM_BACKTICKS
19541 cat >>confdefs.h <<_ACEOF
19542 #define SYSTEM_BACKTICKS 1
19546 echo "$as_me:$LINENO: result: no" >&5
19547 echo "${ECHO_T}no" >&6
19552 test "$program_prefix" != NONE &&
19553 program_transform_name="s,^,$program_prefix,;$program_transform_name"
19554 # Use a double $ so make ignores it.
19555 test "$program_suffix" != NONE &&
19556 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
19557 # Double any \ or $. echo might interpret backslashes.
19558 # By default was `s,x,x', remove it if useless.
19559 cat <<\_ACEOF >conftest.sed
19560 s/[\\$]/&&/g;s/;s,x,x,$//
19562 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
19566 ac_config_headers="$ac_config_headers config.h"
19573 ac_header_dirent=no
19574 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19575 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19576 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19577 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19587 #include <sys/types.h>
19599 rm -f conftest.$ac_objext
19600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19601 (eval $ac_compile) 2>conftest.er1
19603 grep -v '^ *+' conftest.er1 >conftest.err
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
19608 { ac_try='test -z "$ac_c_werror_flag"
19609 || test ! -s conftest.err'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 eval "$as_ac_Header=yes"
19623 echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 eval "$as_ac_Header=no"
19628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19633 cat >>confdefs.h <<_ACEOF
19634 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19637 ac_header_dirent=$ac_hdr; break
19641 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19642 if test $ac_header_dirent = dirent.h; then
19643 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19644 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19645 if test "${ac_cv_search_opendir+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19648 ac_func_search_save_LIBS=$LIBS
19649 ac_cv_search_opendir=no
19650 cat >conftest.$ac_ext <<_ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19657 /* Override any gcc2 internal prototype to avoid an error. */
19661 /* We use char because int might match the return type of a gcc2
19662 builtin and then its argument prototype would still apply. */
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19674 (eval $ac_link) 2>conftest.er1
19676 grep -v '^ *+' conftest.er1 >conftest.err
19678 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } &&
19681 { ac_try='test -z "$ac_c_werror_flag"
19682 || test ! -s conftest.err'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } &&
19688 { ac_try='test -s conftest$ac_exeext'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 ac_cv_search_opendir="none required"
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19700 rm -f conftest.err conftest.$ac_objext \
19701 conftest$ac_exeext conftest.$ac_ext
19702 if test "$ac_cv_search_opendir" = no; then
19703 for ac_lib in dir; do
19704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19705 cat >conftest.$ac_ext <<_ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19712 /* Override any gcc2 internal prototype to avoid an error. */
19716 /* We use char because int might match the return type of a gcc2
19717 builtin and then its argument prototype would still apply. */
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729 (eval $ac_link) 2>conftest.er1
19731 grep -v '^ *+' conftest.er1 >conftest.err
19733 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
19736 { ac_try='test -z "$ac_c_werror_flag"
19737 || test ! -s conftest.err'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } &&
19743 { ac_try='test -s conftest$ac_exeext'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
19749 ac_cv_search_opendir="-l$ac_lib"
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19756 rm -f conftest.err conftest.$ac_objext \
19757 conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_func_search_save_LIBS
19762 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19763 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19764 if test "$ac_cv_search_opendir" != no; then
19765 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19770 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19772 if test "${ac_cv_search_opendir+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 ac_func_search_save_LIBS=$LIBS
19776 ac_cv_search_opendir=no
19777 cat >conftest.$ac_ext <<_ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19784 /* Override any gcc2 internal prototype to avoid an error. */
19788 /* We use char because int might match the return type of a gcc2
19789 builtin and then its argument prototype would still apply. */
19799 rm -f conftest.$ac_objext conftest$ac_exeext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19801 (eval $ac_link) 2>conftest.er1
19803 grep -v '^ *+' conftest.er1 >conftest.err
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try='test -z "$ac_c_werror_flag"
19809 || test ! -s conftest.err'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest$ac_exeext'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_cv_search_opendir="none required"
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19827 rm -f conftest.err conftest.$ac_objext \
19828 conftest$ac_exeext conftest.$ac_ext
19829 if test "$ac_cv_search_opendir" = no; then
19830 for ac_lib in x; do
19831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19832 cat >conftest.$ac_ext <<_ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h. */
19839 /* Override any gcc2 internal prototype to avoid an error. */
19843 /* We use char because int might match the return type of a gcc2
19844 builtin and then its argument prototype would still apply. */
19854 rm -f conftest.$ac_objext conftest$ac_exeext
19855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19856 (eval $ac_link) 2>conftest.er1
19858 grep -v '^ *+' conftest.er1 >conftest.err
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
19863 { ac_try='test -z "$ac_c_werror_flag"
19864 || test ! -s conftest.err'
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } &&
19870 { ac_try='test -s conftest$ac_exeext'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19876 ac_cv_search_opendir="-l$ac_lib"
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19883 rm -f conftest.err conftest.$ac_objext \
19884 conftest$ac_exeext conftest.$ac_ext
19887 LIBS=$ac_func_search_save_LIBS
19889 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19890 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19891 if test "$ac_cv_search_opendir" != no; then
19892 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19898 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19899 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19900 if test "${ac_cv_header_stdc+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 cat >conftest.$ac_ext <<_ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19909 #include <stdlib.h>
19910 #include <stdarg.h>
19911 #include <string.h>
19922 rm -f conftest.$ac_objext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924 (eval $ac_compile) 2>conftest.er1
19926 grep -v '^ *+' conftest.er1 >conftest.err
19928 cat conftest.err >&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } &&
19931 { ac_try='test -z "$ac_c_werror_flag"
19932 || test ! -s conftest.err'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; } &&
19938 { ac_try='test -s conftest.$ac_objext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_cv_header_stdc=yes
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ac_cv_header_stdc=no
19951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19953 if test $ac_cv_header_stdc = yes; then
19954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19961 #include <string.h>
19964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19965 $EGREP "memchr" >/dev/null 2>&1; then
19968 ac_cv_header_stdc=no
19974 if test $ac_cv_header_stdc = yes; then
19975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19976 cat >conftest.$ac_ext <<_ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19982 #include <stdlib.h>
19985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19986 $EGREP "free" >/dev/null 2>&1; then
19989 ac_cv_header_stdc=no
19995 if test $ac_cv_header_stdc = yes; then
19996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19997 if test "$cross_compiling" = yes; then
20000 cat >conftest.$ac_ext <<_ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20007 #if ((' ' & 0x0FF) == 0x020)
20008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20011 # define ISLOWER(c) \
20012 (('a' <= (c) && (c) <= 'i') \
20013 || ('j' <= (c) && (c) <= 'r') \
20014 || ('s' <= (c) && (c) <= 'z'))
20015 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20018 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20023 for (i = 0; i < 256; i++)
20024 if (XOR (islower (i), ISLOWER (i))
20025 || toupper (i) != TOUPPER (i))
20030 rm -f conftest$ac_exeext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20032 (eval $ac_link) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20043 echo "$as_me: program exited with status $ac_status" >&5
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ( exit $ac_status )
20048 ac_cv_header_stdc=no
20050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20054 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20055 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20056 if test $ac_cv_header_stdc = yes; then
20058 cat >>confdefs.h <<\_ACEOF
20059 #define STDC_HEADERS 1
20078 for ac_header in zlib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
20080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20082 echo "$as_me:$LINENO: checking for $ac_header" >&5
20083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20090 # Is the header compilable?
20091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20093 cat >conftest.$ac_ext <<_ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099 $ac_includes_default
20100 #include <$ac_header>
20102 rm -f conftest.$ac_objext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104 (eval $ac_compile) 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
20111 { ac_try='test -z "$ac_c_werror_flag"
20112 || test ! -s conftest.err'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest.$ac_objext'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_header_compiler=yes
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ac_header_compiler=no
20131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20133 echo "${ECHO_T}$ac_header_compiler" >&6
20135 # Is the header present?
20136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20138 cat >conftest.$ac_ext <<_ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144 #include <$ac_header>
20146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } >/dev/null; then
20154 if test -s conftest.err; then
20155 ac_cpp_err=$ac_c_preproc_warn_flag
20156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20163 if test -z "$ac_cpp_err"; then
20164 ac_header_preproc=yes
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ac_header_preproc=no
20171 rm -f conftest.err conftest.$ac_ext
20172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20173 echo "${ECHO_T}$ac_header_preproc" >&6
20175 # So? What about this header?
20176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20182 ac_header_preproc=yes
20185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20199 ## ------------------------------------------ ##
20200 ## Report this to the AC_PACKAGE_NAME lists. ##
20201 ## ------------------------------------------ ##
20204 sed "s/^/$as_me: WARNING: /" >&2
20207 echo "$as_me:$LINENO: checking for $ac_header" >&5
20208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 eval "$as_ac_Header=\$ac_header_preproc"
20214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20219 cat >>confdefs.h <<_ACEOF
20220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20228 cat >>confdefs.h <<_ACEOF
20229 #define PACKAGE "$PACKAGE"
20232 cat >>confdefs.h <<_ACEOF
20233 #define VERSION "$VERSION"
20242 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20243 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20244 if test "${ac_cv_c_const+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 cat >conftest.$ac_ext <<_ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20257 /* FIXME: Include the comments suggested by Paul. */
20258 #ifndef __cplusplus
20259 /* Ultrix mips cc rejects this. */
20260 typedef int charset[2];
20262 /* SunOS 4.1.1 cc rejects this. */
20263 char const *const *ccp;
20265 /* NEC SVR4.0.2 mips cc rejects this. */
20266 struct point {int x, y;};
20267 static struct point const zero = {0,0};
20268 /* AIX XL C 1.02.0.0 rejects this.
20269 It does not let you subtract one const X* pointer from another in
20270 an arm of an if-expression whose if-part is not a constant
20272 const char *g = "string";
20273 ccp = &g + (g ? g-g : 0);
20274 /* HPUX 7.0 cc rejects these. */
20277 ccp = (char const *const *) p;
20278 { /* SCO 3.2v4 cc rejects this. */
20280 char const *s = 0 ? (char *) 0 : (char const *) 0;
20284 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20285 int x[] = {25, 17};
20286 const int *foo = &x[0];
20289 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20290 typedef const int *iptr;
20294 { /* AIX XL C 1.02.0.0 rejects this saying
20295 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20296 struct s { int j; const int *ap[3]; };
20297 struct s *b; b->j = 5;
20299 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20300 const int foo = 10;
20308 rm -f conftest.$ac_objext
20309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20310 (eval $ac_compile) 2>conftest.er1
20312 grep -v '^ *+' conftest.er1 >conftest.err
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -z "$ac_c_werror_flag"
20318 || test ! -s conftest.err'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; } &&
20324 { ac_try='test -s conftest.$ac_objext'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20339 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20340 echo "${ECHO_T}$ac_cv_c_const" >&6
20341 if test $ac_cv_c_const = no; then
20343 cat >>confdefs.h <<\_ACEOF
20349 echo "$as_me:$LINENO: checking for inline" >&5
20350 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20351 if test "${ac_cv_c_inline+set}" = set; then
20352 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 for ac_kw in inline __inline__ __inline; do
20356 cat >conftest.$ac_ext <<_ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 #ifndef __cplusplus
20364 static $ac_kw foo_t static_foo () {return 0; }
20365 $ac_kw foo_t foo () {return 0; }
20369 rm -f conftest.$ac_objext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20371 (eval $ac_compile) 2>conftest.er1
20373 grep -v '^ *+' conftest.er1 >conftest.err
20375 cat conftest.err >&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
20378 { ac_try='test -z "$ac_c_werror_flag"
20379 || test ! -s conftest.err'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest.$ac_objext'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 ac_cv_c_inline=$ac_kw; break
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20401 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20402 echo "${ECHO_T}$ac_cv_c_inline" >&6
20405 case $ac_cv_c_inline in
20408 case $ac_cv_c_inline in
20410 *) ac_val=$ac_cv_c_inline;;
20412 cat >>confdefs.h <<_ACEOF
20413 #ifndef __cplusplus
20414 #define inline $ac_val
20420 echo "$as_me:$LINENO: checking for off_t" >&5
20421 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20422 if test "${ac_cv_type_off_t+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20425 cat >conftest.$ac_ext <<_ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 $ac_includes_default
20437 if (sizeof (off_t))
20443 rm -f conftest.$ac_objext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20445 (eval $ac_compile) 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } &&
20452 { ac_try='test -z "$ac_c_werror_flag"
20453 || test ! -s conftest.err'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; } &&
20459 { ac_try='test -s conftest.$ac_objext'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 ac_cv_type_off_t=yes
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ac_cv_type_off_t=no
20472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20474 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20475 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20476 if test $ac_cv_type_off_t = yes; then
20480 cat >>confdefs.h <<_ACEOF
20486 echo "$as_me:$LINENO: checking for size_t" >&5
20487 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20488 if test "${ac_cv_type_size_t+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 $ac_includes_default
20503 if (sizeof (size_t))
20509 rm -f conftest.$ac_objext
20510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20511 (eval $ac_compile) 2>conftest.er1
20513 grep -v '^ *+' conftest.er1 >conftest.err
20515 cat conftest.err >&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } &&
20518 { ac_try='test -z "$ac_c_werror_flag"
20519 || test ! -s conftest.err'
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; } &&
20525 { ac_try='test -s conftest.$ac_objext'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; }; then
20531 ac_cv_type_size_t=yes
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ac_cv_type_size_t=no
20538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20540 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20541 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20542 if test $ac_cv_type_size_t = yes; then
20546 cat >>confdefs.h <<_ACEOF
20547 #define size_t unsigned
20552 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20553 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20554 if test "${ac_cv_struct_tm+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 cat >conftest.$ac_ext <<_ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20563 #include <sys/types.h>
20569 struct tm *tp; tp->tm_sec;
20574 rm -f conftest.$ac_objext
20575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20576 (eval $ac_compile) 2>conftest.er1
20578 grep -v '^ *+' conftest.er1 >conftest.err
20580 cat conftest.err >&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } &&
20583 { ac_try='test -z "$ac_c_werror_flag"
20584 || test ! -s conftest.err'
20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586 (eval $ac_try) 2>&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; } &&
20590 { ac_try='test -s conftest.$ac_objext'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20596 ac_cv_struct_tm=time.h
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20601 ac_cv_struct_tm=sys/time.h
20603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20605 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20606 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20607 if test $ac_cv_struct_tm = sys/time.h; then
20609 cat >>confdefs.h <<\_ACEOF
20610 #define TM_IN_SYS_TIME 1
20615 echo "$as_me:$LINENO: checking for boolean" >&5
20616 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
20617 if test "${ac_cv_type_boolean+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 cat >conftest.$ac_ext <<_ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626 $ac_includes_default
20632 if (sizeof (boolean))
20638 rm -f conftest.$ac_objext
20639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20640 (eval $ac_compile) 2>conftest.er1
20642 grep -v '^ *+' conftest.er1 >conftest.err
20644 cat conftest.err >&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } &&
20647 { ac_try='test -z "$ac_c_werror_flag"
20648 || test ! -s conftest.err'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; } &&
20654 { ac_try='test -s conftest.$ac_objext'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
20660 ac_cv_type_boolean=yes
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20665 ac_cv_type_boolean=no
20667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20669 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
20670 echo "${ECHO_T}$ac_cv_type_boolean" >&6
20671 if test $ac_cv_type_boolean = yes; then
20675 cat >>confdefs.h <<_ACEOF
20676 #define boolean int
20680 #needed for jpeglib
20692 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
20694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20695 echo "$as_me:$LINENO: checking for $ac_func" >&5
20696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20697 if eval "test \"\${$as_ac_var+set}\" = set"; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20708 #define $ac_func innocuous_$ac_func
20710 /* System header to define __stub macros and hopefully few prototypes,
20711 which can conflict with char $ac_func (); below.
20712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20713 <limits.h> exists even on freestanding compilers. */
20716 # include <limits.h>
20718 # include <assert.h>
20723 /* Override any gcc2 internal prototype to avoid an error. */
20728 /* We use char because int might match the return type of a gcc2
20729 builtin and then its argument prototype would still apply. */
20731 /* The GNU C library defines this for functions which it implements
20732 to always fail with ENOSYS. Some functions are actually named
20733 something starting with __ and the normal name is an alias. */
20734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20737 char (*f) () = $ac_func;
20746 return f != $ac_func;
20751 rm -f conftest.$ac_objext conftest$ac_exeext
20752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20753 (eval $ac_link) 2>conftest.er1
20755 grep -v '^ *+' conftest.er1 >conftest.err
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
20760 { ac_try='test -z "$ac_c_werror_flag"
20761 || test ! -s conftest.err'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; } &&
20767 { ac_try='test -s conftest$ac_exeext'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; }; then
20773 eval "$as_ac_var=yes"
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20778 eval "$as_ac_var=no"
20780 rm -f conftest.err conftest.$ac_objext \
20781 conftest$ac_exeext conftest.$ac_ext
20783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20785 if test `eval echo '${'$as_ac_var'}'` = yes; then
20786 cat >>confdefs.h <<_ACEOF
20787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20794 # ------------------------------------------------------------------
20798 # Extract the first word of "freetype-config", so it can be a program name with args.
20799 set dummy freetype-config; ac_word=$2
20800 echo "$as_me:$LINENO: checking for $ac_word" >&5
20801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20802 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 case $FREETYPE_CONFIG in
20807 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
20810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20811 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
20812 for as_dir in $as_dummy
20815 test -z "$as_dir" && as_dir=.
20816 for ac_exec_ext in '' $ac_executable_extensions; do
20817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20818 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20828 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
20830 if test -n "$FREETYPE_CONFIG"; then
20831 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
20832 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
20834 echo "$as_me:$LINENO: result: no" >&5
20835 echo "${ECHO_T}no" >&6
20839 OLDCPPFLAGS="${CPPFLAGS}"
20841 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
20842 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
20843 else if test -d /usr/include/freetype2; then
20844 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
20845 else if test -d /usr/local/include/freetype2; then
20846 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
20851 if test "x${FREETYPE_CONFIG}" '=' "x";then
20852 # if we didn't find the freetype-config program, we won't
20853 # know where the libs are expected to be. So just blindly
20854 # try to link against them.
20855 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
20856 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
20857 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20860 ac_check_lib_save_LIBS=$LIBS
20861 LIBS="-lfreetype $LIBS"
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20869 /* Override any gcc2 internal prototype to avoid an error. */
20873 /* We use char because int might match the return type of a gcc2
20874 builtin and then its argument prototype would still apply. */
20875 char FT_Init_FreeType ();
20879 FT_Init_FreeType ();
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886 (eval $ac_link) 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
20893 { ac_try='test -z "$ac_c_werror_flag"
20894 || test ! -s conftest.err'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest$ac_exeext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 ac_cv_lib_freetype_FT_Init_FreeType=yes
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ac_cv_lib_freetype_FT_Init_FreeType=no
20913 rm -f conftest.err conftest.$ac_objext \
20914 conftest$ac_exeext conftest.$ac_ext
20915 LIBS=$ac_check_lib_save_LIBS
20917 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
20918 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
20919 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
20920 HAVE_LIB_FREETYPE=1
20926 for ac_header in ft2build.h
20928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20930 echo "$as_me:$LINENO: checking for $ac_header" >&5
20931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20933 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20938 # Is the header compilable?
20939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 $ac_includes_default
20948 #include <$ac_header>
20950 rm -f conftest.$ac_objext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20952 (eval $ac_compile) 2>conftest.er1
20954 grep -v '^ *+' conftest.er1 >conftest.err
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_c_werror_flag"
20960 || test ! -s conftest.err'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; } &&
20966 { ac_try='test -s conftest.$ac_objext'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 ac_header_compiler=yes
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 ac_header_compiler=no
20979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20981 echo "${ECHO_T}$ac_header_compiler" >&6
20983 # Is the header present?
20984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20986 cat >conftest.$ac_ext <<_ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 #include <$ac_header>
20994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } >/dev/null; then
21002 if test -s conftest.err; then
21003 ac_cpp_err=$ac_c_preproc_warn_flag
21004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21011 if test -z "$ac_cpp_err"; then
21012 ac_header_preproc=yes
21014 echo "$as_me: failed program was:" >&5
21015 sed 's/^/| /' conftest.$ac_ext >&5
21017 ac_header_preproc=no
21019 rm -f conftest.err conftest.$ac_ext
21020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21021 echo "${ECHO_T}$ac_header_preproc" >&6
21023 # So? What about this header?
21024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21030 ac_header_preproc=yes
21033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21047 ## ------------------------------------------ ##
21048 ## Report this to the AC_PACKAGE_NAME lists. ##
21049 ## ------------------------------------------ ##
21052 sed "s/^/$as_me: WARNING: /" >&2
21055 echo "$as_me:$LINENO: checking for $ac_header" >&5
21056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 eval "$as_ac_Header=\$ac_header_preproc"
21062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21067 cat >>confdefs.h <<_ACEOF
21068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21075 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
21077 for ac_header in freetype/freetype.h
21079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21081 echo "$as_me:$LINENO: checking for $ac_header" >&5
21082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21089 # Is the header compilable?
21090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 $ac_includes_default
21099 #include <$ac_header>
21101 rm -f conftest.$ac_objext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21103 (eval $ac_compile) 2>conftest.er1
21105 grep -v '^ *+' conftest.er1 >conftest.err
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } &&
21110 { ac_try='test -z "$ac_c_werror_flag"
21111 || test ! -s conftest.err'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; } &&
21117 { ac_try='test -s conftest.$ac_objext'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 ac_header_compiler=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ac_header_compiler=no
21130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21132 echo "${ECHO_T}$ac_header_compiler" >&6
21134 # Is the header present?
21135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 #include <$ac_header>
21145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21148 grep -v '^ *+' conftest.er1 >conftest.err
21150 cat conftest.err >&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } >/dev/null; then
21153 if test -s conftest.err; then
21154 ac_cpp_err=$ac_c_preproc_warn_flag
21155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21162 if test -z "$ac_cpp_err"; then
21163 ac_header_preproc=yes
21165 echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21168 ac_header_preproc=no
21170 rm -f conftest.err conftest.$ac_ext
21171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21172 echo "${ECHO_T}$ac_header_preproc" >&6
21174 # So? What about this header?
21175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21181 ac_header_preproc=yes
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21198 ## ------------------------------------------ ##
21199 ## Report this to the AC_PACKAGE_NAME lists. ##
21200 ## ------------------------------------------ ##
21203 sed "s/^/$as_me: WARNING: /" >&2
21206 echo "$as_me:$LINENO: checking for $ac_header" >&5
21207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 eval "$as_ac_Header=\$ac_header_preproc"
21213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21218 cat >>confdefs.h <<_ACEOF
21219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21221 HAVE_FREETYPE_FREETYPE_H=1
21228 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
21229 "x${FREETYPE_CONFIG}" '!=' "x";then
21230 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
21233 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
21238 if test "x${HAVE_FREETYPE}" = "x1"; then
21239 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
21240 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
21242 LIBS="$LIBS -lfreetype"
21245 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
21246 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
21249 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
21250 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
21252 cat > conftest.c << EOF
21253 $HAVE_FT2BUILD_H_DEFINE
21255 #ifdef HAVE_FT2BUILD_H
21256 #include <ft2build.h>
21257 #include FT_FREETYPE_H
21258 #include FT_GLYPH_H
21259 #include FT_SIZES_H
21260 #include FT_SFNT_NAMES_H
21261 #include FT_TRUETYPE_IDS_H
21262 #include FT_OUTLINE_H
21264 #include <freetype/freetype.h>
21265 #include <freetype/ftglyph.h>
21266 #include <freetype/ftsizes.h>
21267 #include <freetype/ftsnames.h>
21268 #include <freetype/ttnameid.h>
21269 #include <freetype/ftoutln.h>
21274 FT_Library ftlibrary;
21286 FT_Init_FreeType(&ftlibrary);
21287 FT_New_Face(ftlibrary, "filename", 0, &face);
21288 i = face->num_glyphs - 1;
21289 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
21290 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
21291 FT_Get_Postscript_Name(face);
21292 FT_Get_Char_Index(face, 33);
21293 FT_Get_First_Char(face, &i);
21294 FT_Get_Next_Char(face, 33, &i);
21295 if(FT_HAS_GLYPH_NAMES(face)) {
21296 FT_Get_Glyph_Name(face, 33, name, 127);
21298 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
21299 FT_Get_Glyph(face->glyph, &glyph);
21300 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
21301 FT_Done_Glyph(glyph);
21302 FT_Done_Face(face);
21303 FT_Done_FreeType(ftlibrary);
21308 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21309 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21310 echo "$as_me:$LINENO: result: yes" >&5
21311 echo "${ECHO_T}yes" >&6
21312 cat >>confdefs.h <<_ACEOF
21313 #define HAVE_FREETYPE 1
21316 cat >>confdefs.h <<_ACEOF
21317 #define USE_FREETYPE 1
21321 echo "configure: failed program was:" >&5
21324 echo "$as_me:$LINENO: result: no" >&5
21325 echo "${ECHO_T}no" >&6
21330 # if the above didn't work out, reset all changes to the compiler variables.
21331 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
21332 CPPFLAGS=$OLDCPPFLAGS
21338 OLDCPPFLAGS="${CPPFLAGS}"
21341 if test -d /usr/include/fontconfig; then
21342 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
21345 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
21346 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
21347 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
21350 ac_check_lib_save_LIBS=$LIBS
21351 LIBS="-lfontconfig $LIBS"
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21359 /* Override any gcc2 internal prototype to avoid an error. */
21363 /* We use char because int might match the return type of a gcc2
21364 builtin and then its argument prototype would still apply. */
21374 rm -f conftest.$ac_objext conftest$ac_exeext
21375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21376 (eval $ac_link) 2>conftest.er1
21378 grep -v '^ *+' conftest.er1 >conftest.err
21380 cat conftest.err >&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } &&
21383 { ac_try='test -z "$ac_c_werror_flag"
21384 || test ! -s conftest.err'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; } &&
21390 { ac_try='test -s conftest$ac_exeext'
21391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392 (eval $ac_try) 2>&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; }; then
21396 ac_cv_lib_fontconfig_FcInit=yes
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 ac_cv_lib_fontconfig_FcInit=no
21403 rm -f conftest.err conftest.$ac_objext \
21404 conftest$ac_exeext conftest.$ac_ext
21405 LIBS=$ac_check_lib_save_LIBS
21407 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
21408 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
21409 if test $ac_cv_lib_fontconfig_FcInit = yes; then
21410 HAVE_LIB_FONTCONFIG=1
21414 for ac_header in fontconfig.h
21416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21418 echo "$as_me:$LINENO: checking for $ac_header" >&5
21419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21426 # Is the header compilable?
21427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21429 cat >conftest.$ac_ext <<_ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21435 $ac_includes_default
21436 #include <$ac_header>
21438 rm -f conftest.$ac_objext
21439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21440 (eval $ac_compile) 2>conftest.er1
21442 grep -v '^ *+' conftest.er1 >conftest.err
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } &&
21447 { ac_try='test -z "$ac_c_werror_flag"
21448 || test ! -s conftest.err'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; } &&
21454 { ac_try='test -s conftest.$ac_objext'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; }; then
21460 ac_header_compiler=yes
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21465 ac_header_compiler=no
21467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21469 echo "${ECHO_T}$ac_header_compiler" >&6
21471 # Is the header present?
21472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 #include <$ac_header>
21482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21485 grep -v '^ *+' conftest.er1 >conftest.err
21487 cat conftest.err >&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } >/dev/null; then
21490 if test -s conftest.err; then
21491 ac_cpp_err=$ac_c_preproc_warn_flag
21492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21499 if test -z "$ac_cpp_err"; then
21500 ac_header_preproc=yes
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ac_header_preproc=no
21507 rm -f conftest.err conftest.$ac_ext
21508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21509 echo "${ECHO_T}$ac_header_preproc" >&6
21511 # So? What about this header?
21512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21518 ac_header_preproc=yes
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21535 ## ------------------------------------------ ##
21536 ## Report this to the AC_PACKAGE_NAME lists. ##
21537 ## ------------------------------------------ ##
21540 sed "s/^/$as_me: WARNING: /" >&2
21543 echo "$as_me:$LINENO: checking for $ac_header" >&5
21544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 eval "$as_ac_Header=\$ac_header_preproc"
21550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21555 cat >>confdefs.h <<_ACEOF
21556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21558 HAVE_FONTCONFIG_H=1
21564 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
21565 if test "x${HAVE_FONTCONFIG_H}" != "x";then
21570 if test "x${HAVE_FONTCONFIG}" = "x1"; then
21571 LIBS="$LIBS -lfontconfig"
21572 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
21573 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
21575 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
21576 #move freetype library to the end of libraries, otherwise fontconfig
21578 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
21581 cat > conftest.c << EOF
21582 #include <fontconfig.h>
21586 FcPattern *pattern, *match;
21590 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
21591 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
21592 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
21593 FcConfigSubstitute(0, pattern, FcMatchPattern);
21594 FcDefaultSubstitute(pattern);
21595 match = FcFontMatch(0, pattern, &result);
21596 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
21597 FcPatternPrint(pattern);
21598 FcPatternDestroy(pattern);
21599 FcPatternDestroy(match);
21604 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21605 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21606 echo "$as_me:$LINENO: result: yes" >&5
21607 echo "${ECHO_T}yes" >&6
21608 cat >>confdefs.h <<_ACEOF
21609 #define HAVE_FONTCONFIG 1
21613 echo "configure: failed program was:" >&5
21616 echo "$as_me:$LINENO: result: no" >&5
21617 echo "${ECHO_T}no" >&6
21622 # if the above didn't work out, reset all changes to the compiler variables.
21623 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
21624 CPPFLAGS=$OLDCPPFLAGS
21629 # ------------------------------------------------------------------
21633 if test "x${DISABLE_LAME}" = "xtrue"; then
21634 echo "*" Disabling lame support...
21636 # old lame code at lib/lame
21637 if test -f lib/lame/Makefile.in; then
21638 lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
21639 lame_makefile="lib/lame/Makefile"
21640 CPPFLAGS="$CPPFLAGS -Ilame"
21641 cat >>confdefs.h <<_ACEOF
21642 #define HAVE_LAME 1
21646 if test -d /usr/include/lame; then
21647 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
21649 if test -d /usr/local/include/lame; then
21650 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
21654 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
21655 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
21656 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 ac_check_lib_save_LIBS=$LIBS
21660 LIBS="-lmp3lame $LIBS"
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21668 /* Override any gcc2 internal prototype to avoid an error. */
21672 /* We use char because int might match the return type of a gcc2
21673 builtin and then its argument prototype would still apply. */
21683 rm -f conftest.$ac_objext conftest$ac_exeext
21684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21685 (eval $ac_link) 2>conftest.er1
21687 grep -v '^ *+' conftest.er1 >conftest.err
21689 cat conftest.err >&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } &&
21692 { ac_try='test -z "$ac_c_werror_flag"
21693 || test ! -s conftest.err'
21694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695 (eval $ac_try) 2>&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; } &&
21699 { ac_try='test -s conftest$ac_exeext'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; }; then
21705 ac_cv_lib_mp3lame_lame_init=yes
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 ac_cv_lib_mp3lame_lame_init=no
21712 rm -f conftest.err conftest.$ac_objext \
21713 conftest$ac_exeext conftest.$ac_ext
21714 LIBS=$ac_check_lib_save_LIBS
21716 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
21717 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
21718 if test $ac_cv_lib_mp3lame_lame_init = yes; then
21719 cat >>confdefs.h <<_ACEOF
21720 #define HAVE_LIBMP3LAME 1
21723 LIBS="-lmp3lame $LIBS"
21730 for ac_header in lame.h
21732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21734 echo "$as_me:$LINENO: checking for $ac_header" >&5
21735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21742 # Is the header compilable?
21743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21745 cat >conftest.$ac_ext <<_ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21751 $ac_includes_default
21752 #include <$ac_header>
21754 rm -f conftest.$ac_objext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21756 (eval $ac_compile) 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } &&
21763 { ac_try='test -z "$ac_c_werror_flag"
21764 || test ! -s conftest.err'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; } &&
21770 { ac_try='test -s conftest.$ac_objext'
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; }; then
21776 ac_header_compiler=yes
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_header_compiler=no
21783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21785 echo "${ECHO_T}$ac_header_compiler" >&6
21787 # Is the header present?
21788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 #include <$ac_header>
21798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } >/dev/null; then
21806 if test -s conftest.err; then
21807 ac_cpp_err=$ac_c_preproc_warn_flag
21808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21815 if test -z "$ac_cpp_err"; then
21816 ac_header_preproc=yes
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_header_preproc=no
21823 rm -f conftest.err conftest.$ac_ext
21824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21825 echo "${ECHO_T}$ac_header_preproc" >&6
21827 # So? What about this header?
21828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21834 ac_header_preproc=yes
21837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21851 ## ------------------------------------------ ##
21852 ## Report this to the AC_PACKAGE_NAME lists. ##
21853 ## ------------------------------------------ ##
21856 sed "s/^/$as_me: WARNING: /" >&2
21859 echo "$as_me:$LINENO: checking for $ac_header" >&5
21860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21862 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 eval "$as_ac_Header=\$ac_header_preproc"
21866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21871 cat >>confdefs.h <<_ACEOF
21872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21879 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
21880 cat >>confdefs.h <<_ACEOF
21881 #define HAVE_LAME 1
21889 # ------------------------------------------------------------------
21893 for ac_prog in avifile-config
21895 # Extract the first word of "$ac_prog", so it can be a program name with args.
21896 set dummy $ac_prog; ac_word=$2
21897 echo "$as_me:$LINENO: checking for $ac_word" >&5
21898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21899 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 if test -n "$AVIFILE_CONFIG"; then
21903 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
21905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21906 for as_dir in $PATH
21909 test -z "$as_dir" && as_dir=.
21910 for ac_exec_ext in '' $ac_executable_extensions; do
21911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21912 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
21913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21921 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
21922 if test -n "$AVIFILE_CONFIG"; then
21923 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
21924 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
21926 echo "$as_me:$LINENO: result: no" >&5
21927 echo "${ECHO_T}no" >&6
21930 test -n "$AVIFILE_CONFIG" && break
21934 if test "x$AVIFILE_CONFIG" '!=' "x";then
21935 OLDCPPFLAGS="$CPPFLAGS"
21936 # temporarily add avifile paths to CPPFLAGS...
21937 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
21940 for ac_header in avifile/version.h version.h
21942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21944 echo "$as_me:$LINENO: checking for $ac_header" >&5
21945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21952 # Is the header compilable?
21953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21955 cat >conftest.$ac_ext <<_ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21961 $ac_includes_default
21962 #include <$ac_header>
21964 rm -f conftest.$ac_objext
21965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21966 (eval $ac_compile) 2>conftest.er1
21968 grep -v '^ *+' conftest.er1 >conftest.err
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } &&
21973 { ac_try='test -z "$ac_c_werror_flag"
21974 || test ! -s conftest.err'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; } &&
21980 { ac_try='test -s conftest.$ac_objext'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; }; then
21986 ac_header_compiler=yes
21988 echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21991 ac_header_compiler=no
21993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21995 echo "${ECHO_T}$ac_header_compiler" >&6
21997 # Is the header present?
21998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22000 cat >conftest.$ac_ext <<_ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22006 #include <$ac_header>
22008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22011 grep -v '^ *+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } >/dev/null; then
22016 if test -s conftest.err; then
22017 ac_cpp_err=$ac_c_preproc_warn_flag
22018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22025 if test -z "$ac_cpp_err"; then
22026 ac_header_preproc=yes
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22031 ac_header_preproc=no
22033 rm -f conftest.err conftest.$ac_ext
22034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22035 echo "${ECHO_T}$ac_header_preproc" >&6
22037 # So? What about this header?
22038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22044 ac_header_preproc=yes
22047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22061 ## ------------------------------------------ ##
22062 ## Report this to the AC_PACKAGE_NAME lists. ##
22063 ## ------------------------------------------ ##
22066 sed "s/^/$as_me: WARNING: /" >&2
22069 echo "$as_me:$LINENO: checking for $ac_header" >&5
22070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 eval "$as_ac_Header=\$ac_header_preproc"
22076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22081 cat >>confdefs.h <<_ACEOF
22082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22090 CPPFLAGS="$OLDCPPFLAGS"
22093 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
22094 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
22096 if test "x${ac_cv_header_version_h}" '=' "xyes";then
22097 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
22099 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
22100 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
22103 cat > conftest.cpp << EOF
22105 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
22106 // so we have to introduce them this way
22107 $HAVE_VERSION_H_DEFINE
22108 $HAVE_AVIFILE_VERSION_H_DEFINE
22110 #ifdef HAVE_VERSION_H
22111 #include <version.h>
22113 #ifdef HAVE_AVIFILE_VERSION_H
22114 #include <avifile/version.h>
22117 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
22118 #include <avifile.h>
22119 #include <aviplay.h>
22120 #include <fourcc.h>
22121 #include <creators.h>
22122 #include <StreamInfo.h>
22125 #include <avifile.h>
22126 #include <aviplay.h>
22127 #include <aviutil.h>
22128 #define Width width
22129 #define Height height
22136 IAviReadFile* player;
22137 IAviReadStream* astream;
22138 IAviReadStream* vstream;
22139 player = CreateIAviReadFile(0);
22140 astream = player->GetStream(0, AviStream::Audio);
22141 vstream = player->GetStream(0, AviStream::Video);
22142 vstream -> StartStreaming();
22143 astream -> StartStreaming();
22145 MainAVIHeader head;
22146 player->GetFileHeader(&head);
22147 head.dwMicroSecPerFrame;
22148 head.dwTotalFrames;
22152 head.dwMicroSecPerFrame;
22153 astream->GetEndPos(),
22154 astream->GetEndTime());
22155 player->StreamCount();
22157 StreamInfo*audioinfo;
22158 StreamInfo*videoinfo;
22159 audioinfo = astream->GetStreamInfo();
22160 videoinfo = vstream->GetStreamInfo();
22161 videoinfo->GetVideoWidth();
22162 videoinfo->GetVideoHeight();
22163 audioinfo->GetAudioSamplesPerSec();
22164 videoinfo->GetFps();
22166 CImage*img = vstream->GetFrame();
22173 astream->GetAudioFormatInfo(&wave,0);
22175 astream->ReadFrames(0,0,0,a,b);
22177 int main (int argc, char*argv)
22183 if test "x$AVIFILE_CONFIG" '!=' "x";then
22184 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
22185 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
22186 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
22187 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
22188 echo "$as_me:$LINENO: result: yes" >&5
22189 echo "${ECHO_T}yes" >&6
22192 cat >>confdefs.h <<_ACEOF
22193 #define AVIFILE true
22197 echo "configure: failed program was:" >&5
22198 cat conftest.cpp >&5
22199 echo "$as_me:$LINENO: result: no" >&5
22200 echo "${ECHO_T}no" >&6
22203 echo "$as_me:$LINENO: result: no" >&5
22204 echo "${ECHO_T}no" >&6
22208 if test "x${AVIFILE}" = "xtrue"; then
22209 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
22210 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
22211 cat >>confdefs.h <<_ACEOF
22212 #define HAVE_AVIFILE 1
22217 if test "x${WIN32}" != "x"; then
22218 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
22219 #if test "x${AVIFIL32}" != "x"; then
22220 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22222 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22228 # ------------------------------------------------------------------
22230 if test "x${UNCOMPRESS}" = "xgzip"; then
22231 cat >>confdefs.h <<_ACEOF
22238 # ------------------------------------------------------------------
22241 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
22242 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
22244 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
22247 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
22248 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
22250 # iterate through version 2.2 to 2.4
22253 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
22255 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
22256 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
22258 elif test -f "/Library/Python/2.$v/PIL/_imaging.so" \
22259 -a -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
22260 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
22262 PYTHON_LIB="-framework Python"
22263 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
22264 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
22266 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
22267 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
22268 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
22270 -a -f "/sw/include/python2.$v/Python.h" \
22271 -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
22273 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
22274 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
22279 if test "x$PY_VERSION" "!=" "x"; then
22280 echo "$as_me:$LINENO: result: $PY_VERSION" >&5
22281 echo "${ECHO_T}$PY_VERSION" >&6
22282 export PYTHON_INCLUDES PYTHON_LIB
22285 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
22286 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
22288 cat > conftest.c << EOF
22289 #include <Python.h>
22290 #include <Imaging.h>
22295 ret = Py_Main(0, 0);
22296 int x; // check also for gcc 2.95.x incompatibilities
22300 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
22301 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22302 echo "$as_me:$LINENO: result: yes" >&5
22303 echo "${ECHO_T}yes" >&6
22306 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
22307 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22308 echo "$as_me:$LINENO: result: yes" >&5
22309 echo "${ECHO_T}yes" >&6
22310 PYTHON_LIB="${PYTHON_LIB2}"
22313 echo "configure: failed program was:" >&5
22315 echo "$as_me:$LINENO: result: no" >&5
22316 echo "${ECHO_T}no" >&6
22321 echo "$as_me:$LINENO: result: nope" >&5
22322 echo "${ECHO_T}nope" >&6
22326 if test "x$PYTHON_OK" '!=' "xyes";then
22327 echo all install uninstall clean: > lib/python/Makefile
22328 # fail silently- the most users won't have any need for the
22329 # python interface anyway
22331 pythonrfxswf="lib/python/Makefile"
22334 # ------------------------------------------------------------------
22336 echo "$as_me:$LINENO: checking for missing libraries" >&5
22337 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
22339 if test "x$ZLIBMISSING" = "xtrue";then
22340 MISSINGLIBS="${MISSINGLIBS} zlib"
22341 DISABLEPNG2SWF=true
22344 if test "x$JPEGLIBMISSING" = "xtrue";then
22345 MISSINGLIBS="${MISSINGLIBS} jpeglib"
22346 DISABLEPDF2SWF=true
22347 DISABLEJPEG2SWF=true
22350 if test "x$T1LIBMISSING" = "xtrue";then
22351 MISSINGLIBS="${MISSINGLIBS} t1lib"
22354 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
22355 DISABLEPDF2SWF=true;
22356 DISABLEJPEG2SWF=true;
22357 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
22360 if test "x$HAVE_FREETYPE" '!=' "x1"; then
22361 DISABLEPDF2SWF=true;
22362 MISSINGLIBS="${MISSINGLIBS} freetype"
22365 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
22366 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
22368 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
22369 DISABLEPNG2SWF=true;
22370 MISSINGLIBS="${MISSINGLIBS} zlib.h"
22373 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
22374 MISSINGLIBS="${MISSINGLIBS} avifile"
22378 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
22379 echo "${ECHO_T}${MISSINGLIBS}" >&6
22381 # ------------------------------------------------------------------
22383 if test "x${MISSINGLIBS}" '!=' "x"; then
22384 echo "***************************************************"
22385 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
22388 avi2swf="avi2swf/Makefile"
22389 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
22390 echo "* Disabling avi2swf tool..."
22391 echo all install uninstall clean: > avi2swf/Makefile
22395 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
22396 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
22397 echo "* Disabling pdf2swf tool..."
22398 rm -f pdf2swf/Makefile
22399 echo all install uninstall clean: > pdf2swf/Makefile
22400 pdf2swf_makefile=""
22403 if test "x${ZLIBMISSING}" = "xtrue"; then
22405 echo "* Warning! Without zlib, you will not be able to read"
22406 echo "* or write compressed Flash MX files!"
22409 JPEG2SWF='jpeg2swf$(E)'
22410 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
22411 echo "* Disabling jpeg2swf tool..."
22417 PNG2SWF='png2swf$(E)'
22418 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
22419 echo "* Disabling png2swf tool..."
22425 if test "x${MISSINGLIBS}" '!=' "x"; then
22426 if test "x${PARTIAL}" '=' "x"; then
22427 echo "* (never mind)"
22429 echo "***************************************************"
22432 # ------------------------------------------------------------------
22434 if test -f "release.in"; then release_in="./release"; fi
22435 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
22437 ac_config_files="$ac_config_files ${FILES}"
22439 cat >confcache <<\_ACEOF
22440 # This file is a shell script that caches the results of configure
22441 # tests run on this system so they can be shared between configure
22442 # scripts and configure runs, see configure's option --config-cache.
22443 # It is not useful on other systems. If it contains results you don't
22444 # want to keep, you may remove or edit it.
22446 # config.status only pays attention to the cache file if you give it
22447 # the --recheck option to rerun configure.
22449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22451 # following values.
22455 # The following way of writing the cache mishandles newlines in values,
22456 # but we know of no workaround that is simple, portable, and efficient.
22457 # So, don't put newlines in cache variables' values.
22458 # Ultrix sh set writes to stderr and can't be redirected directly,
22459 # and sets the high bit in the cache file unless we assign to the vars.
22462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22464 # `set' does not quote correctly, so add quotes (double-quote
22465 # substitution turns \\\\ into \\, and sed turns \\ into \).
22468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22471 # `set' quotes correctly as required by POSIX, so do not add quotes.
22473 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22482 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22484 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22485 if test -w $cache_file; then
22486 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22487 cat confcache >$cache_file
22489 echo "not updating unwritable cache $cache_file"
22494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22495 # Let make expand exec_prefix.
22496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22500 # trailing colons and then remove the whole line if VPATH becomes empty
22501 # (actually we leave an empty line to preserve line numbers).
22502 if test "x$srcdir" = x.; then
22503 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22504 s/:*\$(srcdir):*/:/;
22505 s/:*\${srcdir}:*/:/;
22507 s/^\([^=]*=[ ]*\):*/\1/;
22513 DEFS=-DHAVE_CONFIG_H
22517 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22518 # 1. Remove the extension, and $U if already installed.
22519 ac_i=`echo "$ac_i" |
22520 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22522 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22523 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22525 LIBOBJS=$ac_libobjs
22527 LTLIBOBJS=$ac_ltlibobjs
22531 : ${CONFIG_STATUS=./config.status}
22532 ac_clean_files_save=$ac_clean_files
22533 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22534 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22535 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22536 cat >$CONFIG_STATUS <<_ACEOF
22538 # Generated by $as_me.
22539 # Run this file to recreate the current configuration.
22540 # Compiler output produced by configure, useful for debugging
22541 # configure, is in config.log if it exists.
22544 ac_cs_recheck=false
22546 SHELL=\${CONFIG_SHELL-$SHELL}
22549 cat >>$CONFIG_STATUS <<\_ACEOF
22550 ## --------------------- ##
22551 ## M4sh Initialization. ##
22552 ## --------------------- ##
22554 # Be Bourne compatible
22555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22558 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22559 # is contrary to our usage. Disable this feature.
22560 alias -g '${1+"$@"}'='"$@"'
22561 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22564 DUALCASE=1; export DUALCASE # for MKS sh
22566 # Support unset when possible.
22567 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22574 # Work around bugs in pre-3.0 UWIN ksh.
22575 $as_unset ENV MAIL MAILPATH
22582 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22583 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22584 LC_TELEPHONE LC_TIME
22586 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22587 eval $as_var=C; export $as_var
22593 # Required to use basename.
22594 if expr a : '\(a\)' >/dev/null 2>&1; then
22600 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22601 as_basename=basename
22607 # Name of the executable.
22608 as_me=`$as_basename "$0" ||
22609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22610 X"$0" : 'X\(//\)$' \| \
22611 X"$0" : 'X\(/\)$' \| \
22612 . : '\(.\)' 2>/dev/null ||
22614 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22615 /^X\/\(\/\/\)$/{ s//\1/; q; }
22616 /^X\/\(\/\).*/{ s//\1/; q; }
22620 # PATH needs CR, and LINENO needs CR and PATH.
22621 # Avoid depending upon Character Ranges.
22622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22625 as_cr_digits='0123456789'
22626 as_cr_alnum=$as_cr_Letters$as_cr_digits
22628 # The user is always right.
22629 if test "${PATH_SEPARATOR+set}" != set; then
22630 echo "#! /bin/sh" >conf$$.sh
22631 echo "exit 0" >>conf$$.sh
22633 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22642 as_lineno_1=$LINENO
22643 as_lineno_2=$LINENO
22644 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22645 test "x$as_lineno_1" != "x$as_lineno_2" &&
22646 test "x$as_lineno_3" = "x$as_lineno_2" || {
22647 # Find who we are. Look in the path if we contain no path at all
22650 *[\\/]* ) as_myself=$0 ;;
22651 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22652 for as_dir in $PATH
22655 test -z "$as_dir" && as_dir=.
22656 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22661 # We did not find ourselves, most probably we were run as `sh COMMAND'
22662 # in which case we are not to be found in the path.
22663 if test "x$as_myself" = x; then
22666 if test ! -f "$as_myself"; then
22667 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22668 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22669 { (exit 1); exit 1; }; }
22671 case $CONFIG_SHELL in
22673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22674 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22677 test -z "$as_dir" && as_dir=.
22678 for as_base in sh bash ksh sh5; do
22681 if ("$as_dir/$as_base" -c '
22682 as_lineno_1=$LINENO
22683 as_lineno_2=$LINENO
22684 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22685 test "x$as_lineno_1" != "x$as_lineno_2" &&
22686 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22687 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22688 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22689 CONFIG_SHELL=$as_dir/$as_base
22690 export CONFIG_SHELL
22691 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22699 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22700 # uniformly replaced by the line number. The first 'sed' inserts a
22701 # line-number line before each line; the second 'sed' does the real
22702 # work. The second script uses 'N' to pair each line-number line
22703 # with the numbered line, and appends trailing '-' during
22704 # substitution so that $LINENO is not a special case at line end.
22705 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22706 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22707 sed '=' <$as_myself |
22712 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22715 s,^['$as_cr_digits']*\n,,
22716 ' >$as_me.lineno &&
22717 chmod +x $as_me.lineno ||
22718 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22719 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22720 { (exit 1); exit 1; }; }
22722 # Don't try to exec as it changes $[0], causing all sort of problems
22723 # (the dirname of $[0] is not the place where we might find the
22724 # original and so on. Autoconf is especially sensible to this).
22726 # Exit status is that of the last command.
22731 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22732 *c*,-n*) ECHO_N= ECHO_C='
22734 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22735 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22738 if expr a : '\(a\)' >/dev/null 2>&1; then
22744 rm -f conf$$ conf$$.exe conf$$.file
22746 if ln -s conf$$.file conf$$ 2>/dev/null; then
22747 # We could just check for DJGPP; but this test a) works b) is more generic
22748 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22749 if test -f conf$$.exe; then
22750 # Don't use ln at all; we don't have any links
22755 elif ln conf$$.file conf$$ 2>/dev/null; then
22760 rm -f conf$$ conf$$.exe conf$$.file
22762 if mkdir -p . 2>/dev/null; then
22765 test -d ./-p && rmdir ./-p
22769 as_executable_p="test -f"
22771 # Sed expression to map a string onto a valid CPP name.
22772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22774 # Sed expression to map a string onto a valid variable name.
22775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22779 # We need space, tab and new line, in precisely that order.
22789 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22790 # report actual input values of CONFIG_FILES etc. instead of their
22791 # values after options handling. Logging --version etc. is OK.
22795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22796 ## Running $as_me. ##
22801 This file was extended by $as_me, which was
22802 generated by GNU Autoconf 2.59. Invocation command line was
22804 CONFIG_FILES = $CONFIG_FILES
22805 CONFIG_HEADERS = $CONFIG_HEADERS
22806 CONFIG_LINKS = $CONFIG_LINKS
22807 CONFIG_COMMANDS = $CONFIG_COMMANDS
22811 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22815 # Files that config.status was made for.
22816 if test -n "$ac_config_files"; then
22817 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22820 if test -n "$ac_config_headers"; then
22821 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22824 if test -n "$ac_config_links"; then
22825 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22828 if test -n "$ac_config_commands"; then
22829 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22832 cat >>$CONFIG_STATUS <<\_ACEOF
22835 \`$as_me' instantiates files from templates according to the
22836 current configuration.
22838 Usage: $0 [OPTIONS] [FILE]...
22840 -h, --help print this help, then exit
22841 -V, --version print version number, then exit
22842 -q, --quiet do not print progress messages
22843 -d, --debug don't remove temporary files
22844 --recheck update $as_me by reconfiguring in the same conditions
22845 --file=FILE[:TEMPLATE]
22846 instantiate the configuration file FILE
22847 --header=FILE[:TEMPLATE]
22848 instantiate the configuration header FILE
22850 Configuration files:
22853 Configuration headers:
22856 Report bugs to <bug-autoconf@gnu.org>."
22859 cat >>$CONFIG_STATUS <<_ACEOF
22862 configured by $0, generated by GNU Autoconf 2.59,
22863 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22865 Copyright (C) 2003 Free Software Foundation, Inc.
22866 This config.status script is free software; the Free Software Foundation
22867 gives unlimited permission to copy, distribute and modify it."
22872 cat >>$CONFIG_STATUS <<\_ACEOF
22873 # If no file are specified by the user, then we need to provide default
22874 # value. By we need to know if files were specified by the user.
22880 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22881 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22889 *) # This is not an option, so the user has probably given explicit
22892 ac_need_defaults=false;;
22896 # Handling of the options.
22898 cat >>$CONFIG_STATUS <<\_ACEOF
22899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22901 --version | --vers* | -V )
22902 echo "$ac_cs_version"; exit 0 ;;
22904 # Conflict between --help and --header
22905 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22906 Try \`$0 --help' for more information." >&5
22907 echo "$as_me: error: ambiguous option: $1
22908 Try \`$0 --help' for more information." >&2;}
22909 { (exit 1); exit 1; }; };;
22910 --help | --hel | -h )
22911 echo "$ac_cs_usage"; exit 0 ;;
22912 --debug | --d* | -d )
22914 --file | --fil | --fi | --f )
22916 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22917 ac_need_defaults=false;;
22918 --header | --heade | --head | --hea )
22920 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22921 ac_need_defaults=false;;
22922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22923 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22926 # This is an error.
22927 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22928 Try \`$0 --help' for more information." >&5
22929 echo "$as_me: error: unrecognized option: $1
22930 Try \`$0 --help' for more information." >&2;}
22931 { (exit 1); exit 1; }; } ;;
22933 *) ac_config_targets="$ac_config_targets $1" ;;
22939 ac_configure_extra_args=
22941 if $ac_cs_silent; then
22943 ac_configure_extra_args="$ac_configure_extra_args --silent"
22947 cat >>$CONFIG_STATUS <<_ACEOF
22948 if \$ac_cs_recheck; then
22949 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22950 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22959 cat >>$CONFIG_STATUS <<\_ACEOF
22960 for ac_config_target in $ac_config_targets
22962 case "$ac_config_target" in
22963 # Handling of arguments.
22964 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
22965 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22966 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22968 { (exit 1); exit 1; }; };;
22972 # If the user did not use the arguments to specify the items to instantiate,
22973 # then the envvar interface is used. Set only those that are not.
22974 # We use the long form for the default assignment because of an extremely
22975 # bizarre bug on SunOS 4.1.3.
22976 if $ac_need_defaults; then
22977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22981 # Have a temporary directory for convenience. Make it in the build tree
22982 # simply because there is no reason to put it here, and in addition,
22983 # creating and moving files from /tmp can sometimes cause problems.
22984 # Create a temporary directory, and hook for its removal unless debugging.
22987 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22988 trap '{ (exit 1); exit 1; }' 1 2 13 15
22991 # Create a (secure) tmp directory for tmp files.
22994 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22995 test -n "$tmp" && test -d "$tmp"
22998 tmp=./confstat$$-$RANDOM
22999 (umask 077 && mkdir $tmp)
23002 echo "$me: cannot create a temporary directory in ." >&2
23003 { (exit 1); exit 1; }
23008 cat >>$CONFIG_STATUS <<_ACEOF
23011 # CONFIG_FILES section.
23014 # No need to generate the scripts if there are no CONFIG_FILES.
23015 # This happens for instance when ./config.status config.h
23016 if test -n "\$CONFIG_FILES"; then
23017 # Protect against being on the right side of a sed subst in config.status.
23018 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23019 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23020 s,@SHELL@,$SHELL,;t t
23021 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23022 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23023 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23024 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23025 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23026 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23027 s,@exec_prefix@,$exec_prefix,;t t
23028 s,@prefix@,$prefix,;t t
23029 s,@program_transform_name@,$program_transform_name,;t t
23030 s,@bindir@,$bindir,;t t
23031 s,@sbindir@,$sbindir,;t t
23032 s,@libexecdir@,$libexecdir,;t t
23033 s,@datadir@,$datadir,;t t
23034 s,@sysconfdir@,$sysconfdir,;t t
23035 s,@sharedstatedir@,$sharedstatedir,;t t
23036 s,@localstatedir@,$localstatedir,;t t
23037 s,@libdir@,$libdir,;t t
23038 s,@includedir@,$includedir,;t t
23039 s,@oldincludedir@,$oldincludedir,;t t
23040 s,@infodir@,$infodir,;t t
23041 s,@mandir@,$mandir,;t t
23042 s,@build_alias@,$build_alias,;t t
23043 s,@host_alias@,$host_alias,;t t
23044 s,@target_alias@,$target_alias,;t t
23045 s,@DEFS@,$DEFS,;t t
23046 s,@ECHO_C@,$ECHO_C,;t t
23047 s,@ECHO_N@,$ECHO_N,;t t
23048 s,@ECHO_T@,$ECHO_T,;t t
23049 s,@LIBS@,$LIBS,;t t
23050 s,@build@,$build,;t t
23051 s,@build_cpu@,$build_cpu,;t t
23052 s,@build_vendor@,$build_vendor,;t t
23053 s,@build_os@,$build_os,;t t
23054 s,@host@,$host,;t t
23055 s,@host_cpu@,$host_cpu,;t t
23056 s,@host_vendor@,$host_vendor,;t t
23057 s,@host_os@,$host_os,;t t
23058 s,@SHARED@,$SHARED,;t t
23060 s,@CFLAGS@,$CFLAGS,;t t
23061 s,@LDFLAGS@,$LDFLAGS,;t t
23062 s,@CPPFLAGS@,$CPPFLAGS,;t t
23063 s,@ac_ct_CC@,$ac_ct_CC,;t t
23064 s,@EXEEXT@,$EXEEXT,;t t
23065 s,@OBJEXT@,$OBJEXT,;t t
23067 s,@CXXFLAGS@,$CXXFLAGS,;t t
23068 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23070 s,@RANLIB@,$RANLIB,;t t
23071 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23072 s,@SET_MAKE@,$SET_MAKE,;t t
23073 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23074 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23075 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23076 s,@LN_S@,$LN_S,;t t
23077 s,@EGREP@,$EGREP,;t t
23078 s,@ECHO@,$ECHO,;t t
23080 s,@ac_ct_AR@,$ac_ct_AR,;t t
23081 s,@STRIP@,$STRIP,;t t
23082 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23083 s,@CXXCPP@,$CXXCPP,;t t
23085 s,@FFLAGS@,$FFLAGS,;t t
23086 s,@ac_ct_F77@,$ac_ct_F77,;t t
23087 s,@LIBTOOL@,$LIBTOOL,;t t
23088 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
23089 s,@AREXT@,$AREXT,;t t
23090 s,@SLEXT@,$SLEXT,;t t
23091 s,@target@,$target,;t t
23092 s,@target_cpu@,$target_cpu,;t t
23093 s,@target_vendor@,$target_vendor,;t t
23094 s,@target_os@,$target_os,;t t
23095 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
23096 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
23097 s,@PACKAGE@,$PACKAGE,;t t
23098 s,@VERSION@,$VERSION,;t t
23099 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
23100 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
23101 s,@lame_objects@,$lame_objects,;t t
23102 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
23103 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
23104 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
23105 s,@USE_GZIP@,$USE_GZIP,;t t
23106 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
23107 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
23108 s,@JPEG2SWF@,$JPEG2SWF,;t t
23109 s,@PNG2SWF@,$PNG2SWF,;t t
23110 s,@LIBOBJS@,$LIBOBJS,;t t
23111 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23116 cat >>$CONFIG_STATUS <<\_ACEOF
23117 # Split the substitutions into bite-sized pieces for seds with
23118 # small command number limits, like on Digital OSF/1 and HP-UX.
23119 ac_max_sed_lines=48
23120 ac_sed_frag=1 # Number of current file.
23121 ac_beg=1 # First line for current file.
23122 ac_end=$ac_max_sed_lines # Line after last line for current file.
23125 while $ac_more_lines; do
23126 if test $ac_beg -gt 1; then
23127 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23129 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23131 if test ! -s $tmp/subs.frag; then
23132 ac_more_lines=false
23134 # The purpose of the label and of the branching condition is to
23135 # speed up the sed processing (if there are no `@' at all, there
23136 # is no need to browse any of the substitutions).
23137 # These are the two extra sed commands mentioned above.
23139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23140 if test -z "$ac_sed_cmds"; then
23141 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23143 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23145 ac_sed_frag=`expr $ac_sed_frag + 1`
23147 ac_end=`expr $ac_end + $ac_max_sed_lines`
23150 if test -z "$ac_sed_cmds"; then
23153 fi # test -n "$CONFIG_FILES"
23156 cat >>$CONFIG_STATUS <<\_ACEOF
23157 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23160 - | *:- | *:-:* ) # input from stdin
23162 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23164 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23166 * ) ac_file_in=$ac_file.in ;;
23169 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23170 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23172 X"$ac_file" : 'X\(//\)[^/]' \| \
23173 X"$ac_file" : 'X\(//\)$' \| \
23174 X"$ac_file" : 'X\(/\)' \| \
23175 . : '\(.\)' 2>/dev/null ||
23177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23179 /^X\(\/\/\)$/{ s//\1/; q; }
23180 /^X\(\/\).*/{ s//\1/; q; }
23182 { if $as_mkdir_p; then
23187 while test ! -d "$as_dir"; do
23188 as_dirs="$as_dir $as_dirs"
23189 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23191 X"$as_dir" : 'X\(//\)[^/]' \| \
23192 X"$as_dir" : 'X\(//\)$' \| \
23193 X"$as_dir" : 'X\(/\)' \| \
23194 . : '\(.\)' 2>/dev/null ||
23196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23198 /^X\(\/\/\)$/{ s//\1/; q; }
23199 /^X\(\/\).*/{ s//\1/; q; }
23202 test ! -n "$as_dirs" || mkdir $as_dirs
23203 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23204 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23205 { (exit 1); exit 1; }; }; }
23209 if test "$ac_dir" != .; then
23210 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23211 # A "../" for each directory in $ac_dir_suffix.
23212 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23214 ac_dir_suffix= ac_top_builddir=
23218 .) # No --srcdir option. We are building in place.
23220 if test -z "$ac_top_builddir"; then
23223 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23225 [\\/]* | ?:[\\/]* ) # Absolute path.
23226 ac_srcdir=$srcdir$ac_dir_suffix;
23227 ac_top_srcdir=$srcdir ;;
23228 *) # Relative path.
23229 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23230 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23233 # Do not use `cd foo && pwd` to compute absolute paths, because
23234 # the directories may not exist.
23236 .) ac_abs_builddir="$ac_dir";;
23239 .) ac_abs_builddir=`pwd`;;
23240 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23241 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23244 case $ac_abs_builddir in
23245 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23247 case ${ac_top_builddir}. in
23248 .) ac_abs_top_builddir=$ac_abs_builddir;;
23249 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23250 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23253 case $ac_abs_builddir in
23254 .) ac_abs_srcdir=$ac_srcdir;;
23257 .) ac_abs_srcdir=$ac_abs_builddir;;
23258 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23259 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23262 case $ac_abs_builddir in
23263 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23265 case $ac_top_srcdir in
23266 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23267 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23268 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23275 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23278 if test x"$ac_file" != x-; then
23279 { echo "$as_me:$LINENO: creating $ac_file" >&5
23280 echo "$as_me: creating $ac_file" >&6;}
23283 # Let's still pretend it is `configure' which instantiates (i.e., don't
23284 # use $as_me), people would be surprised to read:
23285 # /* config.h. Generated by config.status. */
23286 if test x"$ac_file" = x-; then
23289 configure_input="$ac_file. "
23291 configure_input=$configure_input"Generated from `echo $ac_file_in |
23292 sed 's,.*/,,'` by configure."
23294 # First look for the input files in the build tree, otherwise in the
23296 ac_file_inputs=`IFS=:
23297 for f in $ac_file_in; do
23299 -) echo $tmp/stdin ;;
23301 # Absolute (can't be DOS-style, as IFS=:)
23302 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23303 echo "$as_me: error: cannot find input file: $f" >&2;}
23304 { (exit 1); exit 1; }; }
23307 if test -f "$f"; then
23310 elif test -f "$srcdir/$f"; then
23315 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23316 echo "$as_me: error: cannot find input file: $f" >&2;}
23317 { (exit 1); exit 1; }; }
23320 done` || { (exit 1); exit 1; }
23322 cat >>$CONFIG_STATUS <<_ACEOF
23326 cat >>$CONFIG_STATUS <<\_ACEOF
23328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23329 s,@configure_input@,$configure_input,;t t
23330 s,@srcdir@,$ac_srcdir,;t t
23331 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23332 s,@top_srcdir@,$ac_top_srcdir,;t t
23333 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23334 s,@builddir@,$ac_builddir,;t t
23335 s,@abs_builddir@,$ac_abs_builddir,;t t
23336 s,@top_builddir@,$ac_top_builddir,;t t
23337 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23338 s,@INSTALL@,$ac_INSTALL,;t t
23339 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23341 if test x"$ac_file" != x-; then
23342 mv $tmp/out $ac_file
23350 cat >>$CONFIG_STATUS <<\_ACEOF
23353 # CONFIG_HEADER section.
23356 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23357 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23359 # ac_d sets the value in "#define NAME VALUE" lines.
23360 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23361 ac_dB='[ ].*$,\1#\2'
23364 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23365 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23366 ac_uB='$,\1#\2define\3'
23370 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23371 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23373 - | *:- | *:-:* ) # input from stdin
23375 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23377 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23379 * ) ac_file_in=$ac_file.in ;;
23382 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23383 echo "$as_me: creating $ac_file" >&6;}
23385 # First look for the input files in the build tree, otherwise in the
23387 ac_file_inputs=`IFS=:
23388 for f in $ac_file_in; do
23390 -) echo $tmp/stdin ;;
23392 # Absolute (can't be DOS-style, as IFS=:)
23393 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23394 echo "$as_me: error: cannot find input file: $f" >&2;}
23395 { (exit 1); exit 1; }; }
23396 # Do quote $f, to prevent DOS paths from being IFS'd.
23399 if test -f "$f"; then
23402 elif test -f "$srcdir/$f"; then
23407 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23408 echo "$as_me: error: cannot find input file: $f" >&2;}
23409 { (exit 1); exit 1; }; }
23412 done` || { (exit 1); exit 1; }
23413 # Remove the trailing spaces.
23414 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23418 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23419 # `conftest.undefs', that substitutes the proper values into
23420 # config.h.in to produce config.h. The first handles `#define'
23421 # templates, and the second `#undef' templates.
23422 # And first: Protect against being on the right side of a sed subst in
23423 # config.status. Protect against being in an unquoted here document
23424 # in config.status.
23425 rm -f conftest.defines conftest.undefs
23426 # Using a here document instead of a string reduces the quoting nightmare.
23427 # Putting comments in sed scripts is not portable.
23429 # `end' is used to avoid that the second main sed command (meant for
23430 # 0-ary CPP macros) applies to n-ary macro definitions.
23431 # See the Autoconf documentation for `clear'.
23432 cat >confdef2sed.sed <<\_ACEOF
23437 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23439 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23442 # If some macros were called several times there might be several times
23443 # the same #defines, which is useless. Nevertheless, we may not want to
23444 # sort them, since we want the *last* AC-DEFINE to be honored.
23445 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23446 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23447 rm -f confdef2sed.sed
23449 # This sed command replaces #undef with comments. This is necessary, for
23450 # example, in the case of _POSIX_SOURCE, which is predefined and required
23451 # on some systems where configure will not decide to define it.
23452 cat >>conftest.undefs <<\_ACEOF
23453 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23456 # Break up conftest.defines because some shells have a limit on the size
23457 # of here documents, and old seds have small limits too (100 cmds).
23458 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23459 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23460 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23461 echo ' :' >>$CONFIG_STATUS
23462 rm -f conftest.tail
23463 while grep . conftest.defines >/dev/null
23465 # Write a limited-size here document to $tmp/defines.sed.
23466 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23467 # Speed up: don't consider the non `#define' lines.
23468 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23469 # Work around the forget-to-reset-the-flag bug.
23470 echo 't clr' >>$CONFIG_STATUS
23471 echo ': clr' >>$CONFIG_STATUS
23472 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23474 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23476 mv $tmp/out $tmp/in
23478 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23479 rm -f conftest.defines
23480 mv conftest.tail conftest.defines
23482 rm -f conftest.defines
23483 echo ' fi # grep' >>$CONFIG_STATUS
23484 echo >>$CONFIG_STATUS
23486 # Break up conftest.undefs because some shells have a limit on the size
23487 # of here documents, and old seds have small limits too (100 cmds).
23488 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23489 rm -f conftest.tail
23490 while grep . conftest.undefs >/dev/null
23492 # Write a limited-size here document to $tmp/undefs.sed.
23493 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23494 # Speed up: don't consider the non `#undef'
23495 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23496 # Work around the forget-to-reset-the-flag bug.
23497 echo 't clr' >>$CONFIG_STATUS
23498 echo ': clr' >>$CONFIG_STATUS
23499 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23501 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23503 mv $tmp/out $tmp/in
23505 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23506 rm -f conftest.undefs
23507 mv conftest.tail conftest.undefs
23509 rm -f conftest.undefs
23511 cat >>$CONFIG_STATUS <<\_ACEOF
23512 # Let's still pretend it is `configure' which instantiates (i.e., don't
23513 # use $as_me), people would be surprised to read:
23514 # /* config.h. Generated by config.status. */
23515 if test x"$ac_file" = x-; then
23516 echo "/* Generated by configure. */" >$tmp/config.h
23518 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23520 cat $tmp/in >>$tmp/config.h
23522 if test x"$ac_file" != x-; then
23523 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23524 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23525 echo "$as_me: $ac_file is unchanged" >&6;}
23527 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23529 X"$ac_file" : 'X\(//\)[^/]' \| \
23530 X"$ac_file" : 'X\(//\)$' \| \
23531 X"$ac_file" : 'X\(/\)' \| \
23532 . : '\(.\)' 2>/dev/null ||
23534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23536 /^X\(\/\/\)$/{ s//\1/; q; }
23537 /^X\(\/\).*/{ s//\1/; q; }
23539 { if $as_mkdir_p; then
23544 while test ! -d "$as_dir"; do
23545 as_dirs="$as_dir $as_dirs"
23546 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23548 X"$as_dir" : 'X\(//\)[^/]' \| \
23549 X"$as_dir" : 'X\(//\)$' \| \
23550 X"$as_dir" : 'X\(/\)' \| \
23551 . : '\(.\)' 2>/dev/null ||
23553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23555 /^X\(\/\/\)$/{ s//\1/; q; }
23556 /^X\(\/\).*/{ s//\1/; q; }
23559 test ! -n "$as_dirs" || mkdir $as_dirs
23560 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23561 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23562 { (exit 1); exit 1; }; }; }
23565 mv $tmp/config.h $ac_file
23569 rm -f $tmp/config.h
23574 cat >>$CONFIG_STATUS <<\_ACEOF
23576 { (exit 0); exit 0; }
23578 chmod +x $CONFIG_STATUS
23579 ac_clean_files=$ac_clean_files_save
23582 # configure is writing to config.log, and then calls config.status.
23583 # config.status does its own redirection, appending to config.log.
23584 # Unfortunately, on DOS this fails, as config.log is still kept open
23585 # by configure, so config.status won't be able to write to it; its
23586 # output is simply discarded. So we exec the FD to /dev/null,
23587 # effectively closing config.log, so it can be properly (re)opened and
23588 # appended to by config.status. When coming back to configure, we
23589 # need to make the FD available again.
23590 if test "$no_create" != yes; then
23592 ac_config_status_args=
23593 test "$silent" = yes &&
23594 ac_config_status_args="$ac_config_status_args --quiet"
23596 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23598 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23599 # would make configure fail if this is the last instruction.
23600 $ac_cs_success || { (exit 1); exit 1; }