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 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 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-warnings turn on compiler warnings
1030 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1031 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1047 include additional configurations [automatic]
1049 Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1069 if test "$ac_init_help" = "recursive"; then
1070 # If there are subdirs, report their specific --help.
1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073 test -d $ac_dir || continue
1076 if test "$ac_dir" != .; then
1077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078 # A "../" for each directory in $ac_dir_suffix.
1079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 ac_dir_suffix= ac_top_builddir=
1085 .) # No --srcdir option. We are building in place.
1087 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 [\\/]* | ?:[\\/]* ) # Absolute path.
1093 ac_srcdir=$srcdir$ac_dir_suffix;
1094 ac_top_srcdir=$srcdir ;;
1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1103 .) ac_abs_builddir="$ac_dir";;
1106 .) ac_abs_builddir=`pwd`;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 case ${ac_top_builddir}. in
1115 .) ac_abs_top_builddir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1124 .) ac_abs_srcdir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 case $ac_top_srcdir in
1133 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 # Check for guested configure; otherwise get Cygnus style configure.
1141 if test -f $ac_srcdir/configure.gnu; then
1143 $SHELL $ac_srcdir/configure.gnu --help=recursive
1144 elif test -f $ac_srcdir/configure; then
1146 $SHELL $ac_srcdir/configure --help=recursive
1147 elif test -f $ac_srcdir/configure.ac ||
1148 test -f $ac_srcdir/configure.in; then
1150 $ac_configure --help
1152 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 test -z "$as_dir" && as_dir=.
1209 echo "PATH: $as_dir"
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_must_keep_next=false
1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true; then
1251 ac_must_keep_next=false # Got value, back to normal.
1254 *=* | --config-cache | -C | -disable-* | --disable-* \
1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257 | -with-* | --with-* | -without-* | --without-* | --x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 -* ) ac_must_keep_next=true ;;
1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281 # Save into config.log some information that might help in debugging.
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1291 # The following way of writing the cache mishandles newlines in values,
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1314 for ac_var in $ac_subst_vars
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -n "$ac_subst_files"; then
1328 for ac_var in $ac_subst_files
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -s confdefs.h; then
1343 sed "/^$/d" confdefs.h | sort
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1350 rm -f core *.core &&
1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354 for ac_signal in 1 2 13 15; do
1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE; then
1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 for ac_site_file in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's/^/| /' "$ac_site_file" >&5
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1416 [\\/]* | ?:[\\/]* ) . $cache_file;;
1417 *) . ./$cache_file;;
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1426 # Check that the precious variables saved in the cache have kept the same
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432 eval ac_new_set=\$ac_env_${ac_var}_set
1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted=:
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg=$ac_var=$ac_new_val ;;
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503 # Check whether --enable-checkmem or --disable-checkmem was given.
1504 if test "${enable_checkmem+set}" = set; then
1505 enableval="$enable_checkmem"
1508 # Check whether --enable-debug or --disable-debug was given.
1509 if test "${enable_debug+set}" = set; then
1510 enableval="$enable_debug"
1513 # Check whether --enable-warnings or --disable-warnings was given.
1514 if test "${enable_warnings+set}" = set; then
1515 enableval="$enable_warnings"
1516 ENABLE_WARNINGS=true
1518 # Check whether --enable-optimizations or --disable-optimizations was given.
1519 if test "${enable_optimizations+set}" = set; then
1520 enableval="$enable_optimizations"
1523 # Check whether --enable-lame or --disable-lame was given.
1524 if test "${enable_lame+set}" = set; then
1525 enableval="$enable_lame"
1530 VERSION=2004-10-24-1908
1533 # ------------------------------------------------------------------
1535 if test "x${srcdir}" != "x."; then
1536 echo "--srcdir is not supported"
1540 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1541 if test "x$ENABLE_WARNINGS" '!=' "x";then
1542 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1545 if test "x$CHECKMEM" '!=' "x";then
1548 if test "x$DEBUG" '!=' "x";then
1549 CFLAGS="$WARNINGS -g $CFLAGS"
1550 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1551 else if test "x$OPTIMIZE" '!=' "x"; then
1552 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1553 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1555 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1556 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1560 #if test "x$OLDGCC" '!=' "x";then
1561 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1562 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1563 # CFLAGS="$CFLAGS -ansi -pendantic"
1564 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1567 export PACKAGE VERSION CFLAGS CXXFLAGS
1570 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1571 if test -f $ac_dir/install-sh; then
1573 ac_install_sh="$ac_aux_dir/install-sh -c"
1575 elif test -f $ac_dir/install.sh; then
1577 ac_install_sh="$ac_aux_dir/install.sh -c"
1579 elif test -f $ac_dir/shtool; then
1581 ac_install_sh="$ac_aux_dir/shtool install -c"
1585 if test -z "$ac_aux_dir"; then
1586 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1587 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1588 { (exit 1); exit 1; }; }
1590 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1591 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1592 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1594 # Make sure we can run config.sub.
1595 $ac_config_sub sun4 >/dev/null 2>&1 ||
1596 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1597 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1598 { (exit 1); exit 1; }; }
1600 echo "$as_me:$LINENO: checking build system type" >&5
1601 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1602 if test "${ac_cv_build+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 ac_cv_build_alias=$build_alias
1606 test -z "$ac_cv_build_alias" &&
1607 ac_cv_build_alias=`$ac_config_guess`
1608 test -z "$ac_cv_build_alias" &&
1609 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1610 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1611 { (exit 1); exit 1; }; }
1612 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1618 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1619 echo "${ECHO_T}$ac_cv_build" >&6
1621 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626 echo "$as_me:$LINENO: checking host system type" >&5
1627 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1628 if test "${ac_cv_host+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 ac_cv_host_alias=$host_alias
1632 test -z "$ac_cv_host_alias" &&
1633 ac_cv_host_alias=$ac_cv_build_alias
1634 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1641 echo "${ECHO_T}$ac_cv_host" >&6
1643 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652 CFLAGS="$CFLAGS -fno-rtti"
1653 CXXFLAGS="$CXXFLAGS -fno-rtti"
1657 ac_cpp='$CPP $CPPFLAGS'
1658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1661 if test -n "$ac_tool_prefix"; then
1662 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1663 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1664 echo "$as_me:$LINENO: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_prog_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 if test -n "$CC"; then
1670 ac_cv_prog_CC="$CC" # Let the user override the test.
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 if test -n "$CC"; then
1690 echo "$as_me:$LINENO: result: $CC" >&5
1691 echo "${ECHO_T}$CC" >&6
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1698 if test -z "$ac_cv_prog_CC"; then
1700 # Extract the first word of "gcc", so it can be a program name with args.
1701 set dummy gcc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="gcc"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1740 if test -z "$CC"; then
1741 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1743 set dummy ${ac_tool_prefix}cc; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="${ac_tool_prefix}cc"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 if test -n "$CC"; then
1770 echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1778 if test -z "$ac_cv_prog_CC"; then
1780 # Extract the first word of "cc", so it can be a program name with args.
1781 set dummy cc; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 if test -n "$ac_ct_CC"; then
1788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 ac_cv_prog_ac_ct_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1807 if test -n "$ac_ct_CC"; then
1808 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1809 echo "${ECHO_T}$ac_ct_CC" >&6
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1821 if test -z "$CC"; then
1822 # Extract the first word of "cc", so it can be a program name with args.
1823 set dummy cc; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1841 ac_prog_rejected=yes
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 if test $ac_prog_rejected = yes; then
1852 # We found a bogon in the path, so make sure we never use it.
1853 set dummy $ac_cv_prog_CC
1855 if test $# != 0; then
1856 # We chose a different compiler from the bogus one.
1857 # However, it has the same basename, so the bogon will be chosen
1858 # first if we set CC to just the basename; use the full file name.
1860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1866 if test -n "$CC"; then
1867 echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1875 if test -z "$CC"; then
1876 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 if test -n "$CC"; then
1907 echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1914 test -n "$CC" && break
1917 if test -z "$CC"; then
1921 # Extract the first word of "$ac_prog", so it can be a program name with args.
1922 set dummy $ac_prog; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 if test -n "$ac_ct_CC"; then
1929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_ac_ct_CC="$ac_prog"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1956 test -n "$ac_ct_CC" && break
1965 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1966 See \`config.log' for more details." >&5
1967 echo "$as_me: error: no acceptable C compiler found in \$PATH
1968 See \`config.log' for more details." >&2;}
1969 { (exit 1); exit 1; }; }
1971 # Provide some information about the compiler.
1972 echo "$as_me:$LINENO:" \
1973 "checking for C compiler version" >&5
1974 ac_compiler=`set X $ac_compile; echo $2`
1975 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1976 (eval $ac_compiler --version </dev/null >&5) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }
1980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1981 (eval $ac_compiler -v </dev/null >&5) 2>&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }
1985 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1986 (eval $ac_compiler -V </dev/null >&5) 2>&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }
1991 cat >conftest.$ac_ext <<_ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
2006 ac_clean_files_save=$ac_clean_files
2007 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2008 # Try to create an executable without -o first, disregard a.out.
2009 # It will help us diagnose broken compilers, and finding out an intuition
2011 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2012 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2013 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2015 (eval $ac_link_default) 2>&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }; then
2019 # Find the output, starting from the most likely. This scheme is
2020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2023 # Be careful to initialize this variable, since it used to be cached.
2024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2026 # b.out is created by i960 compilers.
2027 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2029 test -f "$ac_file" || continue
2031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2034 # This is the source file.
2037 # We found the default executable, but exeext='' is most
2041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2042 # FIXME: I believe we export ac_cv_exeext for Libtool,
2043 # but it would be cool to find out if it's true. Does anybody
2044 # maintain Libtool? --akim.
2052 echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: C compiler cannot create executables
2058 See \`config.log' for more details." >&2;}
2059 { (exit 77); exit 77; }; }
2062 ac_exeext=$ac_cv_exeext
2063 echo "$as_me:$LINENO: result: $ac_file" >&5
2064 echo "${ECHO_T}$ac_file" >&6
2066 # Check the compiler produces executables we can run. If not, either
2067 # the compiler is broken, or we cross compile.
2068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2071 # If not cross compiling, check that we can run a simple program.
2072 if test "$cross_compiling" != yes; then
2073 if { ac_try='./$ac_file'
2074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }; }; then
2081 if test "$cross_compiling" = maybe; then
2084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2085 If you meant to cross compile, use \`--host'.
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: cannot run C compiled programs.
2088 If you meant to cross compile, use \`--host'.
2089 See \`config.log' for more details." >&2;}
2090 { (exit 1); exit 1; }; }
2094 echo "$as_me:$LINENO: result: yes" >&5
2095 echo "${ECHO_T}yes" >&6
2097 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2098 ac_clean_files=$ac_clean_files_save
2099 # Check the compiler produces executables we can run. If not, either
2100 # the compiler is broken, or we cross compile.
2101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2104 echo "${ECHO_T}$cross_compiling" >&6
2106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2109 (eval $ac_link) 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; then
2113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2115 # work properly (i.e., refer to `conftest.exe'), while it won't with
2117 for ac_file in conftest.exe conftest conftest.*; do
2118 test -f "$ac_file" || continue
2120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2129 See \`config.log' for more details." >&5
2130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2131 See \`config.log' for more details." >&2;}
2132 { (exit 1); exit 1; }; }
2135 rm -f conftest$ac_cv_exeext
2136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2137 echo "${ECHO_T}$ac_cv_exeext" >&6
2139 rm -f conftest.$ac_ext
2140 EXEEXT=$ac_cv_exeext
2142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2144 if test "${ac_cv_objext+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 cat >conftest.$ac_ext <<_ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2162 rm -f conftest.o conftest.obj
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2171 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2179 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2180 See \`config.log' for more details." >&5
2181 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2182 See \`config.log' for more details." >&2;}
2183 { (exit 1); exit 1; }; }
2186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2188 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2189 echo "${ECHO_T}$ac_cv_objext" >&6
2190 OBJEXT=$ac_cv_objext
2192 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2193 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2194 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 cat >conftest.$ac_ext <<_ACEOF
2200 cat confdefs.h >>conftest.$ac_ext
2201 cat >>conftest.$ac_ext <<_ACEOF
2202 /* end confdefs.h. */
2215 rm -f conftest.$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217 (eval $ac_compile) 2>conftest.er1
2219 grep -v '^ *+' conftest.er1 >conftest.err
2221 cat conftest.err >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -z "$ac_c_werror_flag"
2225 || test ! -s conftest.err'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2239 echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2245 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2248 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2249 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2250 GCC=`test $ac_compiler_gnu = yes && echo yes`
2251 ac_test_CFLAGS=${CFLAGS+set}
2252 ac_save_CFLAGS=$CFLAGS
2254 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2255 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2256 if test "${ac_cv_prog_cc_g+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 cat >conftest.$ac_ext <<_ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276 (eval $ac_compile) 2>conftest.er1
2278 grep -v '^ *+' conftest.er1 >conftest.err
2280 cat conftest.err >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } &&
2283 { ac_try='test -z "$ac_c_werror_flag"
2284 || test ! -s conftest.err'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; } &&
2290 { ac_try='test -s conftest.$ac_objext'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; }; then
2298 echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2305 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2307 if test "$ac_test_CFLAGS" = set; then
2308 CFLAGS=$ac_save_CFLAGS
2309 elif test $ac_cv_prog_cc_g = yes; then
2310 if test "$GCC" = yes; then
2316 if test "$GCC" = yes; then
2322 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2323 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 ac_cv_prog_cc_stdc=no
2329 cat >conftest.$ac_ext <<_ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2337 #include <sys/types.h>
2338 #include <sys/stat.h>
2339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2340 struct buf { int x; };
2341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2342 static char *e (p, i)
2348 static char *f (char * (*g) (char **, int), char **p, ...)
2353 s = g (p, va_arg (v,int));
2358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2359 function prototypes and stuff, but not '\xHH' hex character constants.
2360 These don't provoke an error unfortunately, instead are silently treated
2361 as 'x'. The following induces an error, until -std1 is added to get
2362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2363 array size at least. It's necessary to write '\x00'==0 to get something
2364 that's true only with -std1. */
2365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2367 int test (int i, double x);
2368 struct s1 {int (*f) (int a);};
2369 struct s2 {int (*f) (double a);};
2370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2381 # Don't try gcc -ansi; that turns off useful extensions and
2382 # breaks some systems' header files.
2383 # AIX -qlanglvl=ansi
2384 # Ultrix and OSF/1 -std1
2385 # HP-UX 10.20 and later -Ae
2386 # HP-UX older versions -Aa -D_HPUX_SOURCE
2387 # SVR4 -Xc -D__EXTENSIONS__
2388 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2390 CC="$ac_save_CC $ac_arg"
2391 rm -f conftest.$ac_objext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393 (eval $ac_compile) 2>conftest.er1
2395 grep -v '^ *+' conftest.er1 >conftest.err
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_cv_prog_cc_stdc=$ac_arg
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2420 rm -f conftest.err conftest.$ac_objext
2422 rm -f conftest.$ac_ext conftest.$ac_objext
2427 case "x$ac_cv_prog_cc_stdc" in
2429 echo "$as_me:$LINENO: result: none needed" >&5
2430 echo "${ECHO_T}none needed" >&6 ;;
2432 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2433 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2434 CC="$CC $ac_cv_prog_cc_stdc" ;;
2437 # Some people use a C++ compiler to compile C. Since we use `exit',
2438 # in C++ we need to declare it. In case someone uses the same compiler
2439 # for both compiling C and C++ we need to have the C++ compiler decide
2440 # the declaration of exit, since it's the most demanding environment.
2441 cat >conftest.$ac_ext <<_ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2450 grep -v '^ *+' conftest.er1 >conftest.err
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 for ac_declaration in \
2470 'extern "C" void std::exit (int) throw (); using std::exit;' \
2471 'extern "C" void std::exit (int); using std::exit;' \
2472 'extern "C" void exit (int) throw ();' \
2473 'extern "C" void exit (int);' \
2476 cat >conftest.$ac_ext <<_ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2492 rm -f conftest.$ac_objext
2493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494 (eval $ac_compile) 2>conftest.er1
2496 grep -v '^ *+' conftest.er1 >conftest.err
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
2501 { ac_try='test -z "$ac_c_werror_flag"
2502 || test ! -s conftest.err'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>conftest.er1
2541 grep -v '^ *+' conftest.er1 >conftest.err
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -z "$ac_c_werror_flag"
2547 || test ! -s conftest.err'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2568 if test -n "$ac_declaration"; then
2569 echo '#ifdef __cplusplus' >>confdefs.h
2570 echo $ac_declaration >>confdefs.h
2571 echo '#endif' >>confdefs.h
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587 ac_cpp='$CXXCPP $CPPFLAGS'
2588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2591 if test -n "$ac_tool_prefix"; then
2592 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598 if test "${ac_cv_prog_CXX+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 if test -n "$CXX"; then
2602 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 if test -n "$CXX"; then
2622 echo "$as_me:$LINENO: result: $CXX" >&5
2623 echo "${ECHO_T}$CXX" >&6
2625 echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6
2629 test -n "$CXX" && break
2632 if test -z "$CXX"; then
2634 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2640 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 if test -n "$ac_ct_CXX"; then
2644 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_ac_ct_CXX="$ac_prog"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2663 if test -n "$ac_ct_CXX"; then
2664 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2665 echo "${ECHO_T}$ac_ct_CXX" >&6
2667 echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6
2671 test -n "$ac_ct_CXX" && break
2673 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2679 # Provide some information about the compiler.
2680 echo "$as_me:$LINENO:" \
2681 "checking for C++ compiler version" >&5
2682 ac_compiler=`set X $ac_compile; echo $2`
2683 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2684 (eval $ac_compiler --version </dev/null >&5) 2>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2689 (eval $ac_compiler -v </dev/null >&5) 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2694 (eval $ac_compiler -V </dev/null >&5) 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2699 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2700 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2701 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>conftest.er1
2726 grep -v '^ *+' conftest.er1 >conftest.err
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -z "$ac_cxx_werror_flag"
2732 || test ! -s conftest.err'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2755 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2756 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2757 GXX=`test $ac_compiler_gnu = yes && echo yes`
2758 ac_test_CXXFLAGS=${CXXFLAGS+set}
2759 ac_save_CXXFLAGS=$CXXFLAGS
2761 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2762 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2763 if test "${ac_cv_prog_cxx_g+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 cat >conftest.$ac_ext <<_ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -z "$ac_cxx_werror_flag"
2791 || test ! -s conftest.err'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 ac_cv_prog_cxx_g=yes
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2814 if test "$ac_test_CXXFLAGS" = set; then
2815 CXXFLAGS=$ac_save_CXXFLAGS
2816 elif test $ac_cv_prog_cxx_g = yes; then
2817 if test "$GXX" = yes; then
2823 if test "$GXX" = yes; then
2829 for ac_declaration in \
2831 'extern "C" void std::exit (int) throw (); using std::exit;' \
2832 'extern "C" void std::exit (int); using std::exit;' \
2833 'extern "C" void exit (int) throw ();' \
2834 'extern "C" void exit (int);' \
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>conftest.er1
2857 grep -v '^ *+' conftest.er1 >conftest.err
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -z "$ac_cxx_werror_flag"
2863 || test ! -s conftest.err'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -z "$ac_cxx_werror_flag"
2908 || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2929 if test -n "$ac_declaration"; then
2930 echo '#ifdef __cplusplus' >>confdefs.h
2931 echo $ac_declaration >>confdefs.h
2932 echo '#endif' >>confdefs.h
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 if test "x$CHECKMEM" '!=' "x";then
2946 #unset ac_cv_prog_CC
2947 #unset ac_cv_prog_CXX
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2957 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2958 # On Suns, sometimes $CPP names a directory.
2959 if test -n "$CPP" && test -d "$CPP"; then
2962 if test -z "$CPP"; then
2963 if test "${ac_cv_prog_CPP+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 # Double quotes because CPP needs to be expanded
2967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2970 for ac_c_preproc_warn_flag in '' yes
2972 # Use a header file that comes with gcc, so configuring glibc
2973 # with a fresh cross-compiler works.
2974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2975 # <limits.h> exists even on freestanding compilers.
2976 # On the NeXT, cc -E runs the code through the compiler's parser,
2977 # not just through cpp. "Syntax error" is here to catch this case.
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2985 # include <limits.h>
2987 # include <assert.h>
2991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null; then
2999 if test -s conftest.err; then
3000 ac_cpp_err=$ac_c_preproc_warn_flag
3001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3008 if test -z "$ac_cpp_err"; then
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3014 # Broken: fails on valid input.
3017 rm -f conftest.err conftest.$ac_ext
3019 # OK, works on sane cases. Now check whether non-existent headers
3020 # can be detected and how.
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3027 #include <ac_nonexistent.h>
3029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev/null; then
3037 if test -s conftest.err; then
3038 ac_cpp_err=$ac_c_preproc_warn_flag
3039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046 if test -z "$ac_cpp_err"; then
3047 # Broken: success on invalid input.
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3053 # Passes both tests.
3057 rm -f conftest.err conftest.$ac_ext
3060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3061 rm -f conftest.err conftest.$ac_ext
3062 if $ac_preproc_ok; then
3074 echo "$as_me:$LINENO: result: $CPP" >&5
3075 echo "${ECHO_T}$CPP" >&6
3077 for ac_c_preproc_warn_flag in '' yes
3079 # Use a header file that comes with gcc, so configuring glibc
3080 # with a fresh cross-compiler works.
3081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3082 # <limits.h> exists even on freestanding compilers.
3083 # On the NeXT, cc -E runs the code through the compiler's parser,
3084 # not just through cpp. "Syntax error" is here to catch this case.
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3092 # include <limits.h>
3094 # include <assert.h>
3098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null; then
3106 if test -s conftest.err; then
3107 ac_cpp_err=$ac_c_preproc_warn_flag
3108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3115 if test -z "$ac_cpp_err"; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 # Broken: fails on valid input.
3124 rm -f conftest.err conftest.$ac_ext
3126 # OK, works on sane cases. Now check whether non-existent headers
3127 # can be detected and how.
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3134 #include <ac_nonexistent.h>
3136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null; then
3144 if test -s conftest.err; then
3145 ac_cpp_err=$ac_c_preproc_warn_flag
3146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3153 if test -z "$ac_cpp_err"; then
3154 # Broken: success on invalid input.
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 # Passes both tests.
3164 rm -f conftest.err conftest.$ac_ext
3167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3168 rm -f conftest.err conftest.$ac_ext
3169 if $ac_preproc_ok; then
3172 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3173 See \`config.log' for more details." >&5
3174 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3175 See \`config.log' for more details." >&2;}
3176 { (exit 1); exit 1; }; }
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186 if test -n "$ac_tool_prefix"; then
3187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$RANLIB"; then
3195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 RANLIB=$ac_cv_prog_RANLIB
3214 if test -n "$RANLIB"; then
3215 echo "$as_me:$LINENO: result: $RANLIB" >&5
3216 echo "${ECHO_T}$RANLIB" >&6
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3223 if test -z "$ac_cv_prog_RANLIB"; then
3224 ac_ct_RANLIB=$RANLIB
3225 # Extract the first word of "ranlib", so it can be a program name with args.
3226 set dummy ranlib; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 if test -n "$ac_ct_RANLIB"; then
3233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_ac_ct_RANLIB="ranlib"
3243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3253 if test -n "$ac_ct_RANLIB"; then
3254 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3255 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3257 echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3261 RANLIB=$ac_ct_RANLIB
3263 RANLIB="$ac_cv_prog_RANLIB"
3266 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3267 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3268 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3269 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 cat >conftest.make <<\_ACEOF
3274 @echo 'ac_maketemp="$(MAKE)"'
3276 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3277 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3278 if test -n "$ac_maketemp"; then
3279 eval ac_cv_prog_make_${ac_make}_set=yes
3281 eval ac_cv_prog_make_${ac_make}_set=no
3285 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3286 echo "$as_me:$LINENO: result: yes" >&5
3287 echo "${ECHO_T}yes" >&6
3290 echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 SET_MAKE="MAKE=${MAKE-make}"
3295 # Find a good install program. We prefer a C program (faster),
3296 # so one script is as good as another. But avoid the broken or
3297 # incompatible versions:
3298 # SysV /etc/install, /usr/sbin/install
3299 # SunOS /usr/etc/install
3300 # IRIX /sbin/install
3302 # AmigaOS /C/install, which installs bootblocks on floppy discs
3303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3306 # OS/2's system install, which has a completely different semantic
3307 # ./install, which can be erroneously created by make from ./install.sh.
3308 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3309 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3310 if test -z "$INSTALL"; then
3311 if test "${ac_cv_path_install+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir=.
3319 # Account for people who put trailing slashes in PATH elements.
3321 ./ | .// | /cC/* | \
3322 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3323 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3326 # OSF1 and SCO ODT 3.0 have their own names for install.
3327 # Don't use installbsd from OSF since it installs stuff as root
3329 for ac_prog in ginstall scoinst install; do
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3332 if test $ac_prog = install &&
3333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3334 # AIX install. It has an incompatible calling convention.
3336 elif test $ac_prog = install &&
3337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3338 # program-specific install script used by HP pwplus--don't use.
3341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3353 if test "${ac_cv_path_install+set}" = set; then
3354 INSTALL=$ac_cv_path_install
3356 # As a last resort, use the slow shell script. We don't cache a
3357 # path for INSTALL within a source directory, because that will
3358 # break other packages using the cache if that directory is
3359 # removed, or if the path is relative.
3360 INSTALL=$ac_install_sh
3363 echo "$as_me:$LINENO: result: $INSTALL" >&5
3364 echo "${ECHO_T}$INSTALL" >&6
3366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3367 # It thinks the first close brace ends the variable substitution.
3368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3374 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3375 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3377 if test "$LN_S" = "ln -s"; then
3378 echo "$as_me:$LINENO: result: yes" >&5
3379 echo "${ECHO_T}yes" >&6
3381 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3382 echo "${ECHO_T}no, using $LN_S" >&6
3385 # Check whether --enable-shared or --disable-shared was given.
3386 if test "${enable_shared+set}" = set; then
3387 enableval="$enable_shared"
3388 p=${PACKAGE-default}
3390 yes) enable_shared=yes ;;
3391 no) enable_shared=no ;;
3394 # Look at the argument we got. We use all the common list separators.
3395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3396 for pkg in $enableval; do
3398 if test "X$pkg" = "X$p"; then
3409 # Check whether --enable-static or --disable-static was given.
3410 if test "${enable_static+set}" = set; then
3411 enableval="$enable_static"
3412 p=${PACKAGE-default}
3414 yes) enable_static=yes ;;
3415 no) enable_static=no ;;
3418 # Look at the argument we got. We use all the common list separators.
3419 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3420 for pkg in $enableval; do
3422 if test "X$pkg" = "X$p"; then
3433 # Check whether --enable-fast-install or --disable-fast-install was given.
3434 if test "${enable_fast_install+set}" = set; then
3435 enableval="$enable_fast_install"
3436 p=${PACKAGE-default}
3438 yes) enable_fast_install=yes ;;
3439 no) enable_fast_install=no ;;
3441 enable_fast_install=no
3442 # Look at the argument we got. We use all the common list separators.
3443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3444 for pkg in $enableval; do
3446 if test "X$pkg" = "X$p"; then
3447 enable_fast_install=yes
3454 enable_fast_install=yes
3457 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3458 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3459 if test "${lt_cv_path_SED+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 # Loop through the user's path and test for sed and gsed.
3463 # Then use that list of sed's as ones to test for truncation.
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir=.
3469 for lt_ac_prog in sed gsed; do
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3472 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3479 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3480 # along with /bin/sed that truncates output.
3481 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3482 test ! -f $lt_ac_sed && break
3483 cat /dev/null > conftest.in
3485 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3486 # Check for GNU sed and select it if it is found.
3487 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3488 lt_cv_path_SED=$lt_ac_sed
3492 cat conftest.in conftest.in >conftest.tmp
3493 mv conftest.tmp conftest.in
3494 cp conftest.in conftest.nl
3496 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3497 cmp -s conftest.out conftest.nl || break
3498 # 10000 chars as input seems more than enough
3499 test $lt_ac_count -gt 10 && break
3500 lt_ac_count=`expr $lt_ac_count + 1`
3501 if test $lt_ac_count -gt $lt_ac_max; then
3502 lt_ac_max=$lt_ac_count
3503 lt_cv_path_SED=$lt_ac_sed
3511 echo "$as_me:$LINENO: result: $SED" >&5
3512 echo "${ECHO_T}$SED" >&6
3514 echo "$as_me:$LINENO: checking for egrep" >&5
3515 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3516 if test "${ac_cv_prog_egrep+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3520 then ac_cv_prog_egrep='grep -E'
3521 else ac_cv_prog_egrep='egrep'
3524 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3525 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3526 EGREP=$ac_cv_prog_egrep
3530 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3531 if test "${with_gnu_ld+set}" = set; then
3532 withval="$with_gnu_ld"
3533 test "$withval" = no || with_gnu_ld=yes
3538 if test "$GCC" = yes; then
3539 # Check if gcc -print-prog-name=ld gives a path.
3540 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3541 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3544 # gcc leaves a trailing carriage return which upsets mingw
3545 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3547 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3550 # Accept absolute paths.
3552 re_direlt='/[^/][^/]*/\.\./'
3553 # Canonicalize the pathname of ld
3554 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3555 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3556 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3558 test -z "$LD" && LD="$ac_prog"
3561 # If it fails, then pretend we aren't using GCC.
3565 # If it is relative, then search for the first ld in PATH.
3569 elif test "$with_gnu_ld" = yes; then
3570 echo "$as_me:$LINENO: checking for GNU ld" >&5
3571 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3573 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3574 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3576 if test "${lt_cv_path_LD+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 if test -z "$LD"; then
3580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3581 for ac_dir in $PATH; do
3583 test -z "$ac_dir" && ac_dir=.
3584 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3585 lt_cv_path_LD="$ac_dir/$ac_prog"
3586 # Check to see if the program is GNU ld. I'd rather use --version,
3587 # but apparently some GNU ld's only accept -v.
3588 # Break only if it was the GNU/non-GNU ld that we prefer.
3589 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3590 *GNU* | *'with BFD'*)
3591 test "$with_gnu_ld" != no && break
3594 test "$with_gnu_ld" != yes && break
3601 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3606 if test -n "$LD"; then
3607 echo "$as_me:$LINENO: result: $LD" >&5
3608 echo "${ECHO_T}$LD" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3613 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3614 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3615 { (exit 1); exit 1; }; }
3616 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3617 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3618 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3622 case `$LD -v 2>&1 </dev/null` in
3623 *GNU* | *'with BFD'*)
3624 lt_cv_prog_gnu_ld=yes
3627 lt_cv_prog_gnu_ld=no
3631 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3632 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3633 with_gnu_ld=$lt_cv_prog_gnu_ld
3636 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3637 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3638 if test "${lt_cv_ld_reload_flag+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 lt_cv_ld_reload_flag='-r'
3643 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3644 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3645 reload_flag=$lt_cv_ld_reload_flag
3646 case $reload_flag in
3648 *) reload_flag=" $reload_flag" ;;
3650 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3652 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3653 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3654 if test "${lt_cv_path_NM+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 if test -n "$NM"; then
3658 # Let the user override the test.
3661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3662 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3664 test -z "$ac_dir" && ac_dir=.
3665 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3666 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3667 # Check to see if the nm accepts a BSD-compat flag.
3668 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3669 # nm: unknown option "B" ignored
3670 # Tru64's nm complains that /dev/null is an invalid object file
3671 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3672 */dev/null* | *'Invalid file or object type'*)
3673 lt_cv_path_NM="$tmp_nm -B"
3677 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3679 lt_cv_path_NM="$tmp_nm -p"
3683 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3684 continue # so that we can try to find one that supports BSD flags
3691 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3694 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3695 echo "${ECHO_T}$lt_cv_path_NM" >&6
3698 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3699 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3700 if test "${lt_cv_deplibs_check_method+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 lt_cv_file_magic_cmd='$MAGIC_CMD'
3704 lt_cv_file_magic_test_file=
3705 lt_cv_deplibs_check_method='unknown'
3706 # Need to set the preceding variable on all platforms that support
3707 # interlibrary dependencies.
3708 # 'none' -- dependencies not supported.
3709 # `unknown' -- same as none, but documents that we really don't know.
3710 # 'pass_all' -- all dependencies passed with no checks.
3711 # 'test_compile' -- check by making test program.
3712 # 'file_magic [[regex]]' -- check by looking for files in library path
3713 # which responds to the $file_magic_cmd with a given extended regex.
3714 # If you have `file' or equivalent on your system and you're not sure
3715 # whether `pass_all' will *always* work, you probably want this one.
3719 lt_cv_deplibs_check_method=pass_all
3723 lt_cv_deplibs_check_method=pass_all
3727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3728 lt_cv_file_magic_cmd='/usr/bin/file -L'
3729 lt_cv_file_magic_test_file=/shlib/libc.so
3733 # win32_libid is a shell function defined in ltmain.sh
3734 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3735 lt_cv_file_magic_cmd='win32_libid'
3739 # Base MSYS/MinGW do not provide the 'file' command needed by
3740 # win32_libid shell function, so use a weaker test based on 'objdump'.
3741 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3742 lt_cv_file_magic_cmd='$OBJDUMP -f'
3745 darwin* | rhapsody*)
3746 lt_cv_deplibs_check_method=pass_all
3749 freebsd* | kfreebsd*-gnu)
3750 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3753 # Not sure whether the presence of OpenBSD here was a mistake.
3754 # Let's accept both of them until this is cleared up.
3755 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3756 lt_cv_file_magic_cmd=/usr/bin/file
3757 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3761 lt_cv_deplibs_check_method=pass_all
3766 lt_cv_deplibs_check_method=pass_all
3769 hpux10.20* | hpux11*)
3770 lt_cv_file_magic_cmd=/usr/bin/file
3773 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3774 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3777 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]'
3778 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3782 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3787 irix5* | irix6* | nonstopux*)
3789 *-32|*"-32 ") libmagic=32-bit;;
3790 *-n32|*"-n32 ") libmagic=N32;;
3791 *-64|*"-64 ") libmagic=64-bit;;
3792 *) libmagic=never-match;;
3794 lt_cv_deplibs_check_method=pass_all
3797 # This must be Linux ELF.
3800 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3801 lt_cv_deplibs_check_method=pass_all ;;
3803 # glibc up to 2.1.1 does not perform some relocations on ARM
3804 # this will be overridden with pass_all, but let us keep it just in case
3805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3807 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3808 lt_cv_deplibs_check_method=pass_all
3812 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3821 lt_cv_file_magic_cmd=/usr/bin/file
3822 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3826 lt_cv_deplibs_check_method=unknown
3830 lt_cv_file_magic_cmd=/usr/bin/file
3831 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3835 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3839 osf3* | osf4* | osf5*)
3840 lt_cv_deplibs_check_method=pass_all
3844 lt_cv_deplibs_check_method=pass_all
3848 lt_cv_deplibs_check_method=pass_all
3851 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3852 case $host_vendor in
3854 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]'
3855 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3858 lt_cv_deplibs_check_method=pass_all
3861 lt_cv_file_magic_cmd='/bin/file'
3862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3865 lt_cv_file_magic_cmd='/bin/file'
3866 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3867 lt_cv_file_magic_test_file=/lib/libc.so
3870 lt_cv_deplibs_check_method=pass_all
3875 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3876 lt_cv_deplibs_check_method=pass_all
3881 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3882 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3883 file_magic_cmd=$lt_cv_file_magic_cmd
3884 deplibs_check_method=$lt_cv_deplibs_check_method
3885 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3890 # If no C compiler was specified, use CC.
3893 # Allow CC to be a program name with arguments.
3897 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3898 if test "${enable_libtool_lock+set}" = set; then
3899 enableval="$enable_libtool_lock"
3902 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3904 # Some flags need to be propagated to the compiler or linker for good
3908 # Find out which ABI we are using.
3909 echo 'int i;' > conftest.$ac_ext
3910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3911 (eval $ac_compile) 2>&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; then
3915 case `/usr/bin/file conftest.$ac_objext` in
3927 # Find out which ABI we are using.
3928 echo '#line 3928 "configure"' > conftest.$ac_ext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; then
3934 if test "$lt_cv_prog_gnu_ld" = yes; then
3935 case `/usr/bin/file conftest.$ac_objext` in
3937 LD="${LD-ld} -melf32bsmip"
3940 LD="${LD-ld} -melf32bmipn32"
3943 LD="${LD-ld} -melf64bmip"
3947 case `/usr/bin/file conftest.$ac_objext` in
3963 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3964 # Find out which ABI we are using.
3965 echo 'int i;' > conftest.$ac_ext
3966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967 (eval $ac_compile) 2>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; then
3971 case "`/usr/bin/file conftest.o`" in
3975 LD="${LD-ld} -m elf_i386"
3977 ppc64-*linux*|powerpc64-*linux*)
3978 LD="${LD-ld} -m elf32ppclinux"
3981 LD="${LD-ld} -m elf_s390"
3984 LD="${LD-ld} -m elf32_sparc"
3991 LD="${LD-ld} -m elf_x86_64"
3993 ppc*-*linux*|powerpc*-*linux*)
3994 LD="${LD-ld} -m elf64ppc"
3997 LD="${LD-ld} -m elf64_s390"
4000 LD="${LD-ld} -m elf64_sparc"
4010 # Test if the compiler is 64bit
4011 echo 'int i;' > conftest.$ac_ext
4012 lt_cv_cc_64bit_output=no
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; then
4018 case `/usr/bin/file conftest.$ac_objext` in
4020 lt_cv_cc_64bit_output=yes
4028 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4029 SAVE_CFLAGS="$CFLAGS"
4030 CFLAGS="$CFLAGS -belf"
4031 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4032 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4033 if test "${lt_cv_cc_needs_belf+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4057 rm -f conftest.$ac_objext conftest$ac_exeext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4059 (eval $ac_link) 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_c_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest$ac_exeext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 lt_cv_cc_needs_belf=yes
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 lt_cv_cc_needs_belf=no
4086 rm -f conftest.err conftest.$ac_objext \
4087 conftest$ac_exeext conftest.$ac_ext
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4096 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4097 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4098 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4099 CFLAGS="$SAVE_CFLAGS"
4105 need_locks="$enable_libtool_lock"
4109 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4111 if test "${ac_cv_header_stdc+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4133 rm -f conftest.$ac_objext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135 (eval $ac_compile) 2>conftest.er1
4137 grep -v '^ *+' conftest.er1 >conftest.err
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try='test -z "$ac_c_werror_flag"
4143 || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_header_stdc=yes
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 ac_cv_header_stdc=no
4162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164 if test $ac_cv_header_stdc = yes; then
4165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "memchr" >/dev/null 2>&1; then
4179 ac_cv_header_stdc=no
4185 if test $ac_cv_header_stdc = yes; then
4186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4197 $EGREP "free" >/dev/null 2>&1; then
4200 ac_cv_header_stdc=no
4206 if test $ac_cv_header_stdc = yes; then
4207 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4208 if test "$cross_compiling" = yes; then
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4218 #if ((' ' & 0x0FF) == 0x020)
4219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4222 # define ISLOWER(c) \
4223 (('a' <= (c) && (c) <= 'i') \
4224 || ('j' <= (c) && (c) <= 'r') \
4225 || ('s' <= (c) && (c) <= 'z'))
4226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4234 for (i = 0; i < 256; i++)
4235 if (XOR (islower (i), ISLOWER (i))
4236 || toupper (i) != TOUPPER (i))
4241 rm -f conftest$ac_exeext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243 (eval $ac_link) 2>&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4254 echo "$as_me: program exited with status $ac_status" >&5
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4259 ac_cv_header_stdc=no
4261 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4265 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4266 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4267 if test $ac_cv_header_stdc = yes; then
4269 cat >>confdefs.h <<\_ACEOF
4270 #define STDC_HEADERS 1
4275 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4285 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4286 inttypes.h stdint.h unistd.h
4288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4289 echo "$as_me:$LINENO: checking for $ac_header" >&5
4290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 $ac_includes_default
4302 #include <$ac_header>
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 eval "$as_ac_Header=yes"
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 eval "$as_ac_Header=no"
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338 cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348 for ac_header in dlfcn.h
4350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4352 echo "$as_me:$LINENO: checking for $ac_header" >&5
4353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4360 # Is the header compilable?
4361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 $ac_includes_default
4370 #include <$ac_header>
4372 rm -f conftest.$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4376 grep -v '^ *+' conftest.er1 >conftest.err
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -z "$ac_c_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_header_compiler=yes
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 ac_header_compiler=no
4401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4403 echo "${ECHO_T}$ac_header_compiler" >&6
4405 # Is the header present?
4406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <$ac_header>
4416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4419 grep -v '^ *+' conftest.er1 >conftest.err
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } >/dev/null; then
4424 if test -s conftest.err; then
4425 ac_cpp_err=$ac_c_preproc_warn_flag
4426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4433 if test -z "$ac_cpp_err"; then
4434 ac_header_preproc=yes
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 ac_header_preproc=no
4441 rm -f conftest.err conftest.$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4443 echo "${ECHO_T}$ac_header_preproc" >&6
4445 # So? What about this header?
4446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4452 ac_header_preproc=yes
4455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4469 ## ------------------------------------------ ##
4470 ## Report this to the AC_PACKAGE_NAME lists. ##
4471 ## ------------------------------------------ ##
4474 sed "s/^/$as_me: WARNING: /" >&2
4477 echo "$as_me:$LINENO: checking for $ac_header" >&5
4478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 eval "$as_ac_Header=\$ac_header_preproc"
4484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4489 cat >>confdefs.h <<_ACEOF
4490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4498 ac_cpp='$CXXCPP $CPPFLAGS'
4499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4502 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4503 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4504 if test -z "$CXXCPP"; then
4505 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 # Double quotes because CXXCPP needs to be expanded
4509 for CXXCPP in "$CXX -E" "/lib/cpp"
4512 for ac_cxx_preproc_warn_flag in '' yes
4514 # Use a header file that comes with gcc, so configuring glibc
4515 # with a fresh cross-compiler works.
4516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4517 # <limits.h> exists even on freestanding compilers.
4518 # On the NeXT, cc -E runs the code through the compiler's parser,
4519 # not just through cpp. "Syntax error" is here to catch this case.
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4527 # include <limits.h>
4529 # include <assert.h>
4533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4536 grep -v '^ *+' conftest.er1 >conftest.err
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } >/dev/null; then
4541 if test -s conftest.err; then
4542 ac_cpp_err=$ac_cxx_preproc_warn_flag
4543 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4550 if test -z "$ac_cpp_err"; then
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 # Broken: fails on valid input.
4559 rm -f conftest.err conftest.$ac_ext
4561 # OK, works on sane cases. Now check whether non-existent headers
4562 # can be detected and how.
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 #include <ac_nonexistent.h>
4571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4574 grep -v '^ *+' conftest.er1 >conftest.err
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } >/dev/null; then
4579 if test -s conftest.err; then
4580 ac_cpp_err=$ac_cxx_preproc_warn_flag
4581 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4588 if test -z "$ac_cpp_err"; then
4589 # Broken: success on invalid input.
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 # Passes both tests.
4599 rm -f conftest.err conftest.$ac_ext
4602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603 rm -f conftest.err conftest.$ac_ext
4604 if $ac_preproc_ok; then
4609 ac_cv_prog_CXXCPP=$CXXCPP
4612 CXXCPP=$ac_cv_prog_CXXCPP
4614 ac_cv_prog_CXXCPP=$CXXCPP
4616 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4617 echo "${ECHO_T}$CXXCPP" >&6
4619 for ac_cxx_preproc_warn_flag in '' yes
4621 # Use a header file that comes with gcc, so configuring glibc
4622 # with a fresh cross-compiler works.
4623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4624 # <limits.h> exists even on freestanding compilers.
4625 # On the NeXT, cc -E runs the code through the compiler's parser,
4626 # not just through cpp. "Syntax error" is here to catch this case.
4627 cat >conftest.$ac_ext <<_ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4634 # include <limits.h>
4636 # include <assert.h>
4640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } >/dev/null; then
4648 if test -s conftest.err; then
4649 ac_cpp_err=$ac_cxx_preproc_warn_flag
4650 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4657 if test -z "$ac_cpp_err"; then
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 # Broken: fails on valid input.
4666 rm -f conftest.err conftest.$ac_ext
4668 # OK, works on sane cases. Now check whether non-existent headers
4669 # can be detected and how.
4670 cat >conftest.$ac_ext <<_ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <ac_nonexistent.h>
4678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4681 grep -v '^ *+' conftest.er1 >conftest.err
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } >/dev/null; then
4686 if test -s conftest.err; then
4687 ac_cpp_err=$ac_cxx_preproc_warn_flag
4688 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4695 if test -z "$ac_cpp_err"; then
4696 # Broken: success on invalid input.
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 # Passes both tests.
4706 rm -f conftest.err conftest.$ac_ext
4709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4710 rm -f conftest.err conftest.$ac_ext
4711 if $ac_preproc_ok; then
4714 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4715 See \`config.log' for more details." >&5
4716 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4717 See \`config.log' for more details." >&2;}
4718 { (exit 1); exit 1; }; }
4722 ac_cpp='$CXXCPP $CPPFLAGS'
4723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4729 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4730 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4732 if test -n "$ac_tool_prefix"; then
4733 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4737 echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4739 if test "${ac_cv_prog_F77+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 if test -n "$F77"; then
4743 ac_cv_prog_F77="$F77" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 if test -n "$F77"; then
4763 echo "$as_me:$LINENO: result: $F77" >&5
4764 echo "${ECHO_T}$F77" >&6
4766 echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4770 test -n "$F77" && break
4773 if test -z "$F77"; then
4775 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4777 # Extract the first word of "$ac_prog", so it can be a program name with args.
4778 set dummy $ac_prog; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 if test -n "$ac_ct_F77"; then
4785 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_ac_ct_F77="$ac_prog"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4804 if test -n "$ac_ct_F77"; then
4805 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4806 echo "${ECHO_T}$ac_ct_F77" >&6
4808 echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4812 test -n "$ac_ct_F77" && break
4819 # Provide some information about the compiler.
4820 echo "$as_me:4820:" \
4821 "checking for Fortran 77 compiler version" >&5
4822 ac_compiler=`set X $ac_compile; echo $2`
4823 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4824 (eval $ac_compiler --version </dev/null >&5) 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }
4828 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4829 (eval $ac_compiler -v </dev/null >&5) 2>&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }
4833 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4834 (eval $ac_compiler -V </dev/null >&5) 2>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }
4840 # If we don't use `.F' as extension, the preprocessor is not run on the
4841 # input file. (Note that this only needs to work for GNU compilers.)
4844 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4845 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4846 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 cat >conftest.$ac_ext <<_ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -z "$ac_f77_werror_flag"
4867 || test ! -s conftest.err'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; } &&
4873 { ac_try='test -s conftest.$ac_objext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4887 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4890 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4891 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4893 ac_test_FFLAGS=${FFLAGS+set}
4894 ac_save_FFLAGS=$FFLAGS
4896 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4897 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4898 if test "${ac_cv_prog_f77_g+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 cat >conftest.$ac_ext <<_ACEOF
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -z "$ac_f77_werror_flag"
4917 || test ! -s conftest.err'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try='test -s conftest.$ac_objext'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 ac_cv_prog_f77_g=yes
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4939 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4940 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4941 if test "$ac_test_FFLAGS" = set; then
4942 FFLAGS=$ac_save_FFLAGS
4943 elif test $ac_cv_prog_f77_g = yes; then
4944 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4950 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4957 G77=`test $ac_compiler_gnu = yes && echo yes`
4959 ac_cpp='$CPP $CPPFLAGS'
4960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4968 # find the maximum length of command line arguments
4969 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4970 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4971 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 # On DJGPP, this test can blow up pretty badly due to problems in libc
4980 # (any single argument exceeding 2000 bytes causes a buffer overrun
4981 # during glob expansion). Even if it were fixed, the result of this
4982 # check would be larger than it should be.
4983 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4987 # Under GNU Hurd, this test is not required because there is
4988 # no limit to the length of command line arguments.
4989 # Libtool will interpret -1 as no limit whatsoever
4990 lt_cv_sys_max_cmd_len=-1;
4994 # On Win9x/ME, this test blows up -- it succeeds, but takes
4995 # about 5 minutes as the teststring grows exponentially.
4996 # Worse, since 9x/ME are not pre-emptively multitasking,
4997 # you end up with a "frozen" computer, even though with patience
4998 # the test eventually succeeds (with a max line length of 256k).
4999 # Instead, let's just punt: use the minimum linelength reported by
5000 # all of the supported platforms: 8192 (on NT/2K/XP).
5001 lt_cv_sys_max_cmd_len=8192;
5005 # On AmigaOS with pdksh, this test takes hours, literally.
5006 # So we just punt and use a minimum line length of 8192.
5007 lt_cv_sys_max_cmd_len=8192;
5011 # If test is not a shell built-in, we'll probably end up computing a
5012 # maximum length that is only half of the actual maximum length, but
5014 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5015 = "XX$testring") >/dev/null 2>&1 &&
5016 new_result=`expr "X$testring" : ".*" 2>&1` &&
5017 lt_cv_sys_max_cmd_len=$new_result &&
5018 test $i != 17 # 1/2 MB should be enough
5021 testring=$testring$testring
5024 # Add a significant safety factor because C++ compilers can tack on massive
5025 # amounts of additional arguments before passing them to the linker.
5026 # It appears as though 1/2 is a usable value.
5027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5033 if test -n $lt_cv_sys_max_cmd_len ; then
5034 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5035 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5037 echo "$as_me:$LINENO: result: none" >&5
5038 echo "${ECHO_T}none" >&6
5044 # Check for command to grab the raw symbol name followed by C symbol from nm.
5045 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5046 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5047 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 # These are sane defaults that work on at least a few old systems.
5052 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5054 # Character class describing NM global symbol codes.
5055 symcode='[BCDEGRST]'
5057 # Regexp to match symbols that can be accessed directly from C.
5058 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5060 # Transform the above into a raw symbol and a C symbol.
5061 symxfrm='\1 \2\3 \3'
5063 # Transform an extracted symbol line into a proper C declaration
5064 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5066 # Transform an extracted symbol line into symbol name and symbol address
5067 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'"
5069 # Define system-specific variables.
5074 cygwin* | mingw* | pw32*)
5075 symcode='[ABCDGISTW]'
5077 hpux*) # Its linker distinguishes data from code symbols
5078 if test "$host_cpu" = ia64; then
5079 symcode='[ABCDEGRST]'
5081 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5082 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'"
5085 symcode='[BCDEGRST]'
5088 symcode='[BCDEGQRST]'
5098 # Handle CRLF in mingw tool chain
5102 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5106 # If we're using GNU nm, then use its standard symbol codes.
5107 case `$NM -V 2>&1` in
5108 *GNU* | *'with BFD'*)
5109 symcode='[ABCDGIRSTW]' ;;
5112 # Try without a prefix undercore, then with it.
5113 for ac_symprfx in "" "_"; do
5115 # Write the raw and C identifiers.
5116 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5118 # Check to see that the pipe works correctly.
5122 cat > conftest.$ac_ext <<EOF
5127 void nm_test_func(){}
5131 int main(){nm_test_var='a';nm_test_func();return(0);}
5134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135 (eval $ac_compile) 2>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; then
5139 # Now try to grab the symbols.
5141 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5142 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && test -s "$nlist"; then
5146 # Try sorting and uniquifying the output.
5147 if sort "$nlist" | uniq > "$nlist"T; then
5148 mv -f "$nlist"T "$nlist"
5153 # Make sure that we snagged all the symbols we need.
5154 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5155 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5156 cat <<EOF > conftest.$ac_ext
5162 # Now generate the symbol file.
5163 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5165 cat <<EOF >> conftest.$ac_ext
5166 #if defined (__STDC__) && __STDC__
5167 # define lt_ptr_t void *
5169 # define lt_ptr_t char *
5173 /* The mapping between symbol names and symbols. */
5178 lt_preloaded_symbols[] =
5181 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5182 cat <<\EOF >> conftest.$ac_ext
5190 # Now try linking the two files.
5191 mv conftest.$ac_objext conftstm.$ac_objext
5192 lt_save_LIBS="$LIBS"
5193 lt_save_CFLAGS="$CFLAGS"
5194 LIBS="conftstm.$ac_objext"
5195 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197 (eval $ac_link) 2>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5203 LIBS="$lt_save_LIBS"
5204 CFLAGS="$lt_save_CFLAGS"
5206 echo "cannot find nm_test_func in $nlist" >&5
5209 echo "cannot find nm_test_var in $nlist" >&5
5212 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5215 echo "$progname: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5218 rm -f conftest* conftst*
5220 # Do not use the global_symbol_pipe unless it works.
5221 if test "$pipe_works" = yes; then
5224 lt_cv_sys_global_symbol_pipe=
5230 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5231 lt_cv_sys_global_symbol_to_cdecl=
5233 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5234 echo "$as_me:$LINENO: result: failed" >&5
5235 echo "${ECHO_T}failed" >&6
5237 echo "$as_me:$LINENO: result: ok" >&5
5238 echo "${ECHO_T}ok" >&6
5241 echo "$as_me:$LINENO: checking for objdir" >&5
5242 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5243 if test "${lt_cv_objdir+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 rm -f .libs 2>/dev/null
5247 mkdir .libs 2>/dev/null
5248 if test -d .libs; then
5251 # MS-DOS does not allow filenames that begin with a dot.
5254 rmdir .libs 2>/dev/null
5256 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5257 echo "${ECHO_T}$lt_cv_objdir" >&6
5258 objdir=$lt_cv_objdir
5266 # AIX sometimes has problems with the GCC collect2 program. For some
5267 # reason, if we set the COLLECT_NAMES environment variable, the problems
5268 # vanish in a puff of smoke.
5269 if test "X${COLLECT_NAMES+set}" != Xset; then
5271 export COLLECT_NAMES
5276 # Sed substitution that helps us do robust quoting. It backslashifies
5277 # metacharacters that are still active within double-quoted strings.
5278 Xsed='sed -e s/^X//'
5279 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5281 # Same as above, but do not quote variable references.
5282 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5284 # Sed substitution to delay expansion of an escaped shell variable in a
5285 # double_quote_subst'ed string.
5286 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5288 # Sed substitution to avoid accidental globbing in evaled expressions
5289 no_glob_subst='s/\*/\\\*/g'
5295 default_ofile=libtool
5296 can_build_shared=yes
5298 # All known linkers require a `.a' archive for static linking (except M$VC,
5299 # which needs '.lib').
5301 ltmain="$ac_aux_dir/ltmain.sh"
5302 ofile="$default_ofile"
5303 with_gnu_ld="$lt_cv_prog_gnu_ld"
5305 if test -n "$ac_tool_prefix"; then
5306 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5307 set dummy ${ac_tool_prefix}ar; ac_word=$2
5308 echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5310 if test "${ac_cv_prog_AR+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 if test -n "$AR"; then
5314 ac_cv_prog_AR="$AR" # Let the user override the test.
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_AR="${ac_tool_prefix}ar"
5324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 if test -n "$AR"; then
5334 echo "$as_me:$LINENO: result: $AR" >&5
5335 echo "${ECHO_T}$AR" >&6
5337 echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6
5342 if test -z "$ac_cv_prog_AR"; then
5344 # Extract the first word of "ar", so it can be a program name with args.
5345 set dummy ar; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 if test -n "$ac_ct_AR"; then
5352 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_ac_ct_AR="ar"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5371 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5372 if test -n "$ac_ct_AR"; then
5373 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5374 echo "${ECHO_T}$ac_ct_AR" >&6
5376 echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6
5385 if test -n "$ac_tool_prefix"; then
5386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5388 echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5390 if test "${ac_cv_prog_RANLIB+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 if test -n "$RANLIB"; then
5394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 RANLIB=$ac_cv_prog_RANLIB
5413 if test -n "$RANLIB"; then
5414 echo "$as_me:$LINENO: result: $RANLIB" >&5
5415 echo "${ECHO_T}$RANLIB" >&6
5417 echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5422 if test -z "$ac_cv_prog_RANLIB"; then
5423 ac_ct_RANLIB=$RANLIB
5424 # Extract the first word of "ranlib", so it can be a program name with args.
5425 set dummy ranlib; ac_word=$2
5426 echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 if test -n "$ac_ct_RANLIB"; then
5432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_ac_ct_RANLIB="ranlib"
5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5452 if test -n "$ac_ct_RANLIB"; then
5453 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5454 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5456 echo "$as_me:$LINENO: result: no" >&5
5457 echo "${ECHO_T}no" >&6
5460 RANLIB=$ac_ct_RANLIB
5462 RANLIB="$ac_cv_prog_RANLIB"
5465 if test -n "$ac_tool_prefix"; then
5466 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5467 set dummy ${ac_tool_prefix}strip; ac_word=$2
5468 echo "$as_me:$LINENO: checking for $ac_word" >&5
5469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5470 if test "${ac_cv_prog_STRIP+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 if test -n "$STRIP"; then
5474 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 STRIP=$ac_cv_prog_STRIP
5493 if test -n "$STRIP"; then
5494 echo "$as_me:$LINENO: result: $STRIP" >&5
5495 echo "${ECHO_T}$STRIP" >&6
5497 echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6
5502 if test -z "$ac_cv_prog_STRIP"; then
5504 # Extract the first word of "strip", so it can be a program name with args.
5505 set dummy strip; ac_word=$2
5506 echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 if test -n "$ac_ct_STRIP"; then
5512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_ac_ct_STRIP="strip"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5532 if test -n "$ac_ct_STRIP"; then
5533 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5534 echo "${ECHO_T}$ac_ct_STRIP" >&6
5536 echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6
5542 STRIP="$ac_cv_prog_STRIP"
5547 old_CFLAGS="$CFLAGS"
5549 # Set sane defaults for various variables
5550 test -z "$AR" && AR=ar
5551 test -z "$AR_FLAGS" && AR_FLAGS=cru
5552 test -z "$AS" && AS=as
5553 test -z "$CC" && CC=cc
5554 test -z "$LTCC" && LTCC=$CC
5555 test -z "$DLLTOOL" && DLLTOOL=dlltool
5556 test -z "$LD" && LD=ld
5557 test -z "$LN_S" && LN_S="ln -s"
5558 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5559 test -z "$NM" && NM=nm
5560 test -z "$SED" && SED=sed
5561 test -z "$OBJDUMP" && OBJDUMP=objdump
5562 test -z "$RANLIB" && RANLIB=:
5563 test -z "$STRIP" && STRIP=:
5564 test -z "$ac_objext" && ac_objext=o
5566 # Determine commands to create old-style static archives.
5567 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5568 old_postinstall_cmds='chmod 644 $oldlib'
5569 old_postuninstall_cmds=
5571 if test -n "$RANLIB"; then
5574 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5577 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5580 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5583 # Only perform the check for file, if the check method requires it
5584 case $deplibs_check_method in
5586 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5587 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5588 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5589 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5597 lt_save_MAGIC_CMD="$MAGIC_CMD"
5598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5599 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5600 for ac_dir in $ac_dummy; do
5602 test -z "$ac_dir" && ac_dir=.
5603 if test -f $ac_dir/${ac_tool_prefix}file; then
5604 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5605 if test -n "$file_magic_test_file"; then
5606 case $deplibs_check_method in
5608 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5609 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5610 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5611 $EGREP "$file_magic_regex" > /dev/null; then
5616 *** Warning: the command libtool uses to detect shared libraries,
5617 *** $file_magic_cmd, produces output that libtool cannot recognize.
5618 *** The result is that libtool may fail to recognize shared libraries
5619 *** as such. This will affect the creation of libtool libraries that
5620 *** depend on shared libraries, but programs linked with such libtool
5621 *** libraries will work regardless of this problem. Nevertheless, you
5622 *** may want to report the problem to your system manager and/or to
5623 *** bug-libtool@gnu.org
5633 MAGIC_CMD="$lt_save_MAGIC_CMD"
5638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5639 if test -n "$MAGIC_CMD"; then
5640 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5641 echo "${ECHO_T}$MAGIC_CMD" >&6
5643 echo "$as_me:$LINENO: result: no" >&5
5644 echo "${ECHO_T}no" >&6
5647 if test -z "$lt_cv_path_MAGIC_CMD"; then
5648 if test -n "$ac_tool_prefix"; then
5649 echo "$as_me:$LINENO: checking for file" >&5
5650 echo $ECHO_N "checking for file... $ECHO_C" >&6
5651 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5659 lt_save_MAGIC_CMD="$MAGIC_CMD"
5660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5661 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5662 for ac_dir in $ac_dummy; do
5664 test -z "$ac_dir" && ac_dir=.
5665 if test -f $ac_dir/file; then
5666 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5667 if test -n "$file_magic_test_file"; then
5668 case $deplibs_check_method in
5670 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5672 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5673 $EGREP "$file_magic_regex" > /dev/null; then
5678 *** Warning: the command libtool uses to detect shared libraries,
5679 *** $file_magic_cmd, produces output that libtool cannot recognize.
5680 *** The result is that libtool may fail to recognize shared libraries
5681 *** as such. This will affect the creation of libtool libraries that
5682 *** depend on shared libraries, but programs linked with such libtool
5683 *** libraries will work regardless of this problem. Nevertheless, you
5684 *** may want to report the problem to your system manager and/or to
5685 *** bug-libtool@gnu.org
5695 MAGIC_CMD="$lt_save_MAGIC_CMD"
5700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5701 if test -n "$MAGIC_CMD"; then
5702 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5703 echo "${ECHO_T}$MAGIC_CMD" >&6
5705 echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5721 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5722 if test "${enable_libtool_lock+set}" = set; then
5723 enableval="$enable_libtool_lock"
5726 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5729 # Check whether --with-pic or --without-pic was given.
5730 if test "${with_pic+set}" = set; then
5736 test -z "$pic_mode" && pic_mode=default
5738 # Use C for the default configuration in the libtool script
5742 ac_cpp='$CPP $CPPFLAGS'
5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748 # Source file extension for C test sources.
5751 # Object file extension for compiled C test sources.
5755 # Code to be used in simple compile tests
5756 lt_simple_compile_test_code="int some_variable = 0;\n"
5758 # Code to be used in simple link tests
5759 lt_simple_link_test_code='int main(){return(0);}\n'
5762 # If no C compiler was specified, use CC.
5765 # Allow CC to be a program name with arguments.
5770 # Check for any special shared library compilation flags.
5773 if test "$GCC" = no; then
5776 lt_prog_cc_shlib='-belf'
5780 if test -n "$lt_prog_cc_shlib"; then
5781 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5782 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5783 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5785 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5786 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5787 lt_cv_prog_cc_can_build_shared=no
5793 # Check to make sure the static flag actually works.
5795 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5796 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5797 if test "${lt_prog_compiler_static_works+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 lt_prog_compiler_static_works=no
5801 save_LDFLAGS="$LDFLAGS"
5802 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5803 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5804 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5805 # The compiler can only warn and ignore the option if not recognized
5806 # So say no if there are warnings
5807 if test -s conftest.err; then
5808 # Append any errors to the config.log.
5809 cat conftest.err 1>&5
5811 lt_prog_compiler_static_works=yes
5815 LDFLAGS="$save_LDFLAGS"
5818 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5819 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5821 if test x"$lt_prog_compiler_static_works" = xyes; then
5824 lt_prog_compiler_static=
5830 lt_prog_compiler_no_builtin_flag=
5832 if test "$GCC" = yes; then
5833 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5836 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5837 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5838 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 lt_cv_prog_compiler_rtti_exceptions=no
5842 ac_outfile=conftest.$ac_objext
5843 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5844 lt_compiler_flag="-fno-rtti -fno-exceptions"
5845 # Insert the option either (1) after the last *FLAGS variable, or
5846 # (2) before a word containing "conftest.", or (3) at the end.
5847 # Note that $ac_compile itself does not contain backslashes and begins
5848 # with a dollar sign (not a hyphen), so the echo should work correctly.
5849 # The option is referenced via a variable to avoid confusing sed.
5850 lt_compile=`echo "$ac_compile" | $SED \
5851 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5853 -e 's:$: $lt_compiler_flag:'`
5854 (eval echo "\"\$as_me:5854: $lt_compile\"" >&5)
5855 (eval "$lt_compile" 2>conftest.err)
5857 cat conftest.err >&5
5858 echo "$as_me:5858: \$? = $ac_status" >&5
5859 if (exit $ac_status) && test -s "$ac_outfile"; then
5860 # The compiler can only warn and ignore the option if not recognized
5861 # So say no if there are warnings
5862 if test ! -s conftest.err; then
5863 lt_cv_prog_compiler_rtti_exceptions=yes
5869 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5870 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5872 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5873 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5880 lt_prog_compiler_wl=
5881 lt_prog_compiler_pic=
5882 lt_prog_compiler_static=
5884 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5885 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5887 if test "$GCC" = yes; then
5888 lt_prog_compiler_wl='-Wl,'
5889 lt_prog_compiler_static='-static'
5893 # All AIX code is PIC.
5894 if test "$host_cpu" = ia64; then
5895 # AIX 5 now supports IA64 processor
5896 lt_prog_compiler_static='-Bstatic'
5901 # FIXME: we need at least 68020 code to build shared libraries, but
5902 # adding the `-m68020' flag to GCC prevents building anything better,
5904 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5907 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5908 # PIC is the default for these OSes.
5911 mingw* | pw32* | os2*)
5912 # This hack is so that the source file can tell whether it is being
5913 # built for inclusion in a dll (and should export symbols for example).
5914 lt_prog_compiler_pic='-DDLL_EXPORT'
5917 darwin* | rhapsody*)
5918 # PIC is the default on this platform
5919 # Common symbols not allowed in MH_DYLIB files
5920 lt_prog_compiler_pic='-fno-common'
5924 # Just because we use GCC doesn't mean we suddenly get shared libraries
5925 # on systems that don't support them.
5926 lt_prog_compiler_can_build_shared=no
5931 if test -d /usr/nec; then
5932 lt_prog_compiler_pic=-Kconform_pic
5937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5944 lt_prog_compiler_pic='-fPIC'
5950 lt_prog_compiler_pic='-fPIC'
5954 # PORTME Check for flag to pass linker flags through the system compiler.
5957 lt_prog_compiler_wl='-Wl,'
5958 if test "$host_cpu" = ia64; then
5959 # AIX 5 now supports IA64 processor
5960 lt_prog_compiler_static='-Bstatic'
5962 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5966 mingw* | pw32* | os2*)
5967 # This hack is so that the source file can tell whether it is being
5968 # built for inclusion in a dll (and should export symbols for example).
5969 lt_prog_compiler_pic='-DDLL_EXPORT'
5972 hpux9* | hpux10* | hpux11*)
5973 lt_prog_compiler_wl='-Wl,'
5974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5981 lt_prog_compiler_pic='+Z'
5984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5985 lt_prog_compiler_static='${wl}-a ${wl}archive'
5988 irix5* | irix6* | nonstopux*)
5989 lt_prog_compiler_wl='-Wl,'
5990 # PIC (with -KPIC) is the default.
5991 lt_prog_compiler_static='-non_shared'
5995 lt_prog_compiler_pic='-KPIC'
5996 lt_prog_compiler_static='-Bstatic'
6002 lt_prog_compiler_wl='-Wl,'
6003 lt_prog_compiler_pic='-KPIC'
6004 lt_prog_compiler_static='-static'
6007 lt_prog_compiler_wl='-Wl,'
6008 # All Alpha code is PIC.
6009 lt_prog_compiler_static='-non_shared'
6014 osf3* | osf4* | osf5*)
6015 lt_prog_compiler_wl='-Wl,'
6016 # All OSF/1 code is PIC.
6017 lt_prog_compiler_static='-non_shared'
6021 lt_prog_compiler_pic='-Kpic'
6022 lt_prog_compiler_static='-dn'
6026 lt_prog_compiler_wl='-Wl,'
6027 lt_prog_compiler_pic='-KPIC'
6028 lt_prog_compiler_static='-Bstatic'
6032 lt_prog_compiler_wl='-Qoption ld '
6033 lt_prog_compiler_pic='-PIC'
6034 lt_prog_compiler_static='-Bstatic'
6037 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6038 lt_prog_compiler_wl='-Wl,'
6039 lt_prog_compiler_pic='-KPIC'
6040 lt_prog_compiler_static='-Bstatic'
6044 if test -d /usr/nec ;then
6045 lt_prog_compiler_pic='-Kconform_pic'
6046 lt_prog_compiler_static='-Bstatic'
6051 lt_prog_compiler_pic='-pic'
6052 lt_prog_compiler_static='-Bstatic'
6056 lt_prog_compiler_can_build_shared=no
6061 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6062 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6065 # Check to make sure the PIC flag actually works.
6067 if test -n "$lt_prog_compiler_pic"; then
6069 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6070 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6071 if test "${lt_prog_compiler_pic_works+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 lt_prog_compiler_pic_works=no
6075 ac_outfile=conftest.$ac_objext
6076 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6077 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6078 # Insert the option either (1) after the last *FLAGS variable, or
6079 # (2) before a word containing "conftest.", or (3) at the end.
6080 # Note that $ac_compile itself does not contain backslashes and begins
6081 # with a dollar sign (not a hyphen), so the echo should work correctly.
6082 # The option is referenced via a variable to avoid confusing sed.
6083 lt_compile=`echo "$ac_compile" | $SED \
6084 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6086 -e 's:$: $lt_compiler_flag:'`
6087 (eval echo "\"\$as_me:6087: $lt_compile\"" >&5)
6088 (eval "$lt_compile" 2>conftest.err)
6090 cat conftest.err >&5
6091 echo "$as_me:6091: \$? = $ac_status" >&5
6092 if (exit $ac_status) && test -s "$ac_outfile"; then
6093 # The compiler can only warn and ignore the option if not recognized
6094 # So say no if there are warnings
6095 if test ! -s conftest.err; then
6096 lt_prog_compiler_pic_works=yes
6102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6103 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6105 if test x"$lt_prog_compiler_pic_works" = xyes; then
6106 case $lt_prog_compiler_pic in
6108 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6111 lt_prog_compiler_pic=
6112 lt_prog_compiler_can_build_shared=no
6117 # For platforms which do not support PIC, -DPIC is meaningless:
6119 lt_prog_compiler_pic=
6122 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6126 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6127 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6128 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 lt_cv_prog_compiler_c_o=no
6132 $rm -r conftest 2>/dev/null
6136 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6138 lt_compiler_flag="-o out/conftest2.$ac_objext"
6139 # Insert the option either (1) after the last *FLAGS variable, or
6140 # (2) before a word containing "conftest.", or (3) at the end.
6141 # Note that $ac_compile itself does not contain backslashes and begins
6142 # with a dollar sign (not a hyphen), so the echo should work correctly.
6143 lt_compile=`echo "$ac_compile" | $SED \
6144 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6146 -e 's:$: $lt_compiler_flag:'`
6147 (eval echo "\"\$as_me:6147: $lt_compile\"" >&5)
6148 (eval "$lt_compile" 2>out/conftest.err)
6150 cat out/conftest.err >&5
6151 echo "$as_me:6151: \$? = $ac_status" >&5
6152 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6154 # The compiler can only warn and ignore the option if not recognized
6155 # So say no if there are warnings
6156 if test ! -s out/conftest.err; then
6157 lt_cv_prog_compiler_c_o=yes
6162 # SGI C++ compiler will create directory out/ii_files/ for
6163 # template instantiation
6164 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6165 $rm out/* && rmdir out
6171 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6172 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6175 hard_links="nottested"
6176 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6177 # do not overwrite the value of need_locks provided by the user
6178 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6179 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6184 ln conftest.a conftest.b 2>&5 || hard_links=no
6185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6186 echo "$as_me:$LINENO: result: $hard_links" >&5
6187 echo "${ECHO_T}$hard_links" >&6
6188 if test "$hard_links" = no; then
6189 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6190 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6197 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6198 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6201 allow_undefined_flag=
6202 enable_shared_with_static_runtimes=no
6204 archive_expsym_cmds=
6205 old_archive_From_new_cmds=
6206 old_archive_from_expsyms_cmds=
6207 export_dynamic_flag_spec=
6208 whole_archive_flag_spec=
6209 thread_safe_flag_spec=
6210 hardcode_libdir_flag_spec=
6211 hardcode_libdir_flag_spec_ld=
6212 hardcode_libdir_separator=
6215 hardcode_shlibpath_var=unsupported
6216 link_all_deplibs=unknown
6217 hardcode_automatic=no
6220 always_export_symbols=no
6221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6222 # include_expsyms should be a list of space-separated symbols to be *always*
6223 # included in the symbol list
6225 # exclude_expsyms can be an extended regexp of symbols to exclude
6226 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6227 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6228 # as well as any symbol that contains `d'.
6229 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6230 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6231 # platforms (ab)use it in PIC code, but their linkers get confused if
6232 # the symbol is explicitly referenced. Since portable code cannot
6233 # rely on this symbol name, it's probably fine to never include it in
6234 # preloaded symbol tables.
6235 extract_expsyms_cmds=
6238 cygwin* | mingw* | pw32*)
6239 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6240 # When not using gcc, we currently assume that we are using
6241 # Microsoft Visual C++.
6242 if test "$GCC" != yes; then
6252 if test "$with_gnu_ld" = yes; then
6253 # If archive_cmds runs LD, not CC, wlarc should be empty
6256 # See if GNU ld supports shared libraries.
6258 aix3* | aix4* | aix5*)
6259 # On AIX/PPC, the GNU linker is very broken
6260 if test "$host_cpu" != ia64; then
6264 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6265 *** to be unable to reliably create shared libraries on AIX.
6266 *** Therefore, libtool is disabling shared libraries support. If you
6267 *** really care for shared libraries, you may want to modify your PATH
6268 *** so that a non-GNU linker is found, and then restart.
6275 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)'
6276 hardcode_libdir_flag_spec='-L$libdir'
6277 hardcode_minus_L=yes
6279 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6280 # that the semantics of dynamic libraries on AmigaOS, at least up
6281 # to version 4, is to share data among multiple programs linked
6282 # with the same dynamic library. Since this doesn't match the
6283 # behavior of shared libraries on other platforms, we can't use
6289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6290 allow_undefined_flag=unsupported
6291 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6292 # support --undefined. This deserves some investigation. FIXME
6293 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6299 cygwin* | mingw* | pw32*)
6300 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6301 # as there is no search path for DLLs.
6302 hardcode_libdir_flag_spec='-L$libdir'
6303 allow_undefined_flag=unsupported
6304 always_export_symbols=no
6305 enable_shared_with_static_runtimes=yes
6306 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6308 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6310 # If the export-symbols file already is a .def file (1st line
6311 # is EXPORTS), use it as is; otherwise, prepend...
6312 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6313 cp $export_symbols $output_objdir/$soname.def;
6315 echo EXPORTS > $output_objdir/$soname.def;
6316 cat $export_symbols >> $output_objdir/$soname.def;
6318 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6326 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6335 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6339 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6340 *** create shared libraries on Solaris systems. Therefore, libtool
6341 *** is disabling shared libraries support. We urge you to upgrade GNU
6342 *** binutils to release 2.9.1 or newer. Another option is to modify
6343 *** your PATH or compiler configuration so that the native linker is
6344 *** used, and then restart.
6347 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6356 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6359 hardcode_shlibpath_var=no
6363 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6364 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6365 archive_cmds="$tmp_archive_cmds"
6366 supports_anon_versioning=no
6367 case `$LD -v 2>/dev/null` in
6368 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6369 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6370 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6371 *\ 2.11.*) ;; # other 2.11 versions
6372 *) supports_anon_versioning=yes ;;
6374 if test $supports_anon_versioning = yes; then
6375 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6377 $echo "local: *; };" >> $output_objdir/$libname.ver~
6378 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6380 archive_expsym_cmds="$tmp_archive_cmds"
6388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6397 if test "$ld_shlibs" = yes; then
6398 runpath_var=LD_RUN_PATH
6399 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6400 export_dynamic_flag_spec='${wl}--export-dynamic'
6401 # ancient GNU ld didn't support --whole-archive et. al.
6402 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6403 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6405 whole_archive_flag_spec=
6409 # PORTME fill in a description of your system's linker (not GNU ld)
6412 allow_undefined_flag=unsupported
6413 always_export_symbols=yes
6414 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'
6415 # Note: this linker hardcodes the directories in LIBPATH if there
6416 # are no directories specified by -L.
6417 hardcode_minus_L=yes
6418 if test "$GCC" = yes && test -z "$link_static_flag"; then
6419 # Neither direct hardcoding nor static linking is supported with a
6421 hardcode_direct=unsupported
6426 if test "$host_cpu" = ia64; then
6427 # On IA64, the linker does run time linking by default, so we don't
6428 # have to do anything special.
6429 aix_use_runtimelinking=no
6430 exp_sym_flag='-Bexport'
6433 # If we're using GNU nm, then we don't want the "-C" option.
6434 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6435 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6436 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'
6438 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'
6440 aix_use_runtimelinking=no
6442 # Test if we are trying to use run time linking or normal
6443 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6444 # need to do runtime linking.
6445 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6446 for ld_flag in $LDFLAGS; do
6447 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6448 aix_use_runtimelinking=yes
6454 exp_sym_flag='-bexport'
6455 no_entry_flag='-bnoentry'
6458 # When large executables or shared objects are built, AIX ld can
6459 # have problems creating the table of contents. If linking a library
6460 # or program results in "error TOC overflow" add -mminimal-toc to
6461 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6462 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6466 hardcode_libdir_separator=':'
6467 link_all_deplibs=yes
6469 if test "$GCC" = yes; then
6470 case $host_os in aix4.012|aix4.012.*)
6471 # We only want to do this on AIX 4.2 and lower, the check
6472 # below for broken collect2 doesn't work under 4.3+
6473 collect2name=`${CC} -print-prog-name=collect2`
6474 if test -f "$collect2name" && \
6475 strings "$collect2name" | grep resolve_lib_name >/dev/null
6477 # We have reworked collect2
6480 # We have old collect2
6481 hardcode_direct=unsupported
6482 # It fails to find uninstalled libraries when the uninstalled
6483 # path is not listed in the libpath. Setting hardcode_minus_L
6484 # to unsupported forces relinking
6485 hardcode_minus_L=yes
6486 hardcode_libdir_flag_spec='-L$libdir'
6487 hardcode_libdir_separator=
6490 shared_flag='-shared'
6493 if test "$host_cpu" = ia64; then
6494 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6495 # chokes on -Wl,-G. The following line is correct:
6498 if test "$aix_use_runtimelinking" = yes; then
6499 shared_flag='${wl}-G'
6501 shared_flag='${wl}-bM:SRE'
6506 # It seems that -bexpall does not export symbols beginning with
6507 # underscore (_), so it is better to generate a list of symbols to export.
6508 always_export_symbols=yes
6509 if test "$aix_use_runtimelinking" = yes; then
6510 # Warning - without using the other runtime loading flags (-brtl),
6511 # -berok will link without error, but may produce a broken library.
6512 allow_undefined_flag='-berok'
6513 # Determine the default libpath from the value encoded in an empty executable.
6514 cat >conftest.$ac_ext <<_ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531 (eval $ac_link) 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_c_werror_flag"
6539 || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6552 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6554 # Check for a 64-bit object if we didn't find anything.
6555 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; }
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6562 rm -f conftest.err conftest.$ac_objext \
6563 conftest$ac_exeext conftest.$ac_ext
6564 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6567 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"
6569 if test "$host_cpu" = ia64; then
6570 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6571 allow_undefined_flag="-z nodefs"
6572 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"
6574 # Determine the default libpath from the value encoded in an empty executable.
6575 cat >conftest.$ac_ext <<_ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6590 rm -f conftest.$ac_objext conftest$ac_exeext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592 (eval $ac_link) 2>conftest.er1
6594 grep -v '^ *+' conftest.er1 >conftest.err
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -z "$ac_c_werror_flag"
6600 || test ! -s conftest.err'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6615 # Check for a 64-bit object if we didn't find anything.
6616 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; }
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6623 rm -f conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext conftest.$ac_ext
6625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6628 # Warning - without using the other run time loading flags,
6629 # -berok will link without error, but may produce a broken library.
6630 no_undefined_flag=' ${wl}-bernotok'
6631 allow_undefined_flag=' ${wl}-berok'
6632 # -bexpall does not export symbols beginning with underscore (_)
6633 always_export_symbols=yes
6634 # Exported symbols can be pulled into shared objects from archives
6635 whole_archive_flag_spec=' '
6636 archive_cmds_need_lc=yes
6637 # This is similar to how AIX traditionally builds it's shared libraries.
6638 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'
6644 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)'
6645 hardcode_libdir_flag_spec='-L$libdir'
6646 hardcode_minus_L=yes
6647 # see comment about different semantics on the GNU ld section
6652 export_dynamic_flag_spec=-rdynamic
6655 cygwin* | mingw* | pw32*)
6656 # When not using gcc, we currently assume that we are using
6657 # Microsoft Visual C++.
6658 # hardcode_libdir_flag_spec is actually meaningless, as there is
6659 # no search path for DLLs.
6660 hardcode_libdir_flag_spec=' '
6661 allow_undefined_flag=unsupported
6662 # Tell ltmain to make .lib files, not .a files.
6664 # Tell ltmain to make .dll files, not .so files.
6666 # FIXME: Setting linknames here is a bad hack.
6667 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6668 # The linker will automatically build a .lib file if we build a DLL.
6669 old_archive_From_new_cmds='true'
6670 # FIXME: Should let the user specify the lib program.
6671 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6672 fix_srcfile_path='`cygpath -w "$srcfile"`'
6673 enable_shared_with_static_runtimes=yes
6676 darwin* | rhapsody*)
6677 if test "$GXX" = yes ; then
6678 archive_cmds_need_lc=no
6680 rhapsody* | darwin1.[012])
6681 allow_undefined_flag='-undefined suppress'
6684 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6685 allow_undefined_flag='-flat_namespace -undefined suppress'
6687 case ${MACOSX_DEPLOYMENT_TARGET} in
6689 allow_undefined_flag='-flat_namespace -undefined suppress'
6692 allow_undefined_flag='-undefined dynamic_lookup'
6698 lt_int_apple_cc_single_mod=no
6699 output_verbose_link_cmd='echo'
6700 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6701 lt_int_apple_cc_single_mod=yes
6703 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6704 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6706 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'
6708 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6709 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6710 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6711 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}'
6713 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}'
6715 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}'
6717 hardcode_automatic=yes
6718 hardcode_shlibpath_var=unsupported
6719 whole_archive_flag_spec='-all_load $convenience'
6720 link_all_deplibs=yes
6727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6728 hardcode_libdir_flag_spec='-L$libdir'
6729 hardcode_shlibpath_var=no
6736 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6737 # support. Future versions do this automatically, but an explicit c++rt0.o
6738 # does not break anything, and helps significantly (at the cost of a little
6741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6742 hardcode_libdir_flag_spec='-R$libdir'
6744 hardcode_shlibpath_var=no
6747 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6751 hardcode_minus_L=yes
6752 hardcode_shlibpath_var=no
6755 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6756 freebsd* | kfreebsd*-gnu)
6757 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6758 hardcode_libdir_flag_spec='-R$libdir'
6760 hardcode_shlibpath_var=no
6764 if test "$GCC" = yes; then
6765 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'
6767 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'
6769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6770 hardcode_libdir_separator=:
6773 # hardcode_minus_L: Not really in the search PATH,
6774 # but as the default location of the library.
6775 hardcode_minus_L=yes
6776 export_dynamic_flag_spec='${wl}-E'
6780 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6783 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6786 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6792 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6799 if test "$with_gnu_ld" = no; then
6802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6803 hardcode_libdir_flag_spec_ld='+b $libdir'
6804 hardcode_libdir_separator=:
6806 hardcode_shlibpath_var=no
6809 hardcode_libdir_flag_spec='-L$libdir'
6811 hardcode_shlibpath_var=no
6813 # hardcode_minus_L: Not really in the search PATH,
6814 # but as the default location of the library.
6815 hardcode_minus_L=yes
6818 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6819 hardcode_libdir_separator=:
6821 export_dynamic_flag_spec='${wl}-E'
6823 # hardcode_minus_L: Not really in the search PATH,
6824 # but as the default location of the library.
6825 hardcode_minus_L=yes
6831 irix5* | irix6* | nonstopux*)
6832 if test "$GCC" = yes; then
6833 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'
6835 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'
6836 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6839 hardcode_libdir_separator=:
6840 link_all_deplibs=yes
6844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6847 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6849 hardcode_libdir_flag_spec='-R$libdir'
6851 hardcode_shlibpath_var=no
6855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6858 hardcode_libdir_separator=:
6859 hardcode_shlibpath_var=no
6864 hardcode_shlibpath_var=no
6865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6868 export_dynamic_flag_spec='${wl}-E'
6871 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6873 hardcode_libdir_flag_spec='-R$libdir'
6876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6884 hardcode_libdir_flag_spec='-L$libdir'
6885 hardcode_minus_L=yes
6886 allow_undefined_flag=unsupported
6887 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'
6888 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6892 if test "$GCC" = yes; then
6893 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6894 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'
6896 allow_undefined_flag=' -expect_unresolved \*'
6897 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'
6899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6900 hardcode_libdir_separator=:
6903 osf4* | osf5*) # as osf3* with the addition of -msym flag
6904 if test "$GCC" = yes; then
6905 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6906 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'
6907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6909 allow_undefined_flag=' -expect_unresolved \*'
6910 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'
6911 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6912 $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'
6914 # Both c and cxx compiler support -rpath directly
6915 hardcode_libdir_flag_spec='-rpath $libdir'
6917 hardcode_libdir_separator=:
6921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922 hardcode_shlibpath_var=no
6923 export_dynamic_flag_spec='${wl}-Bexport'
6924 runpath_var=LD_RUN_PATH
6925 hardcode_runpath_var=yes
6929 no_undefined_flag=' -z text'
6930 if test "$GCC" = yes; then
6931 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6932 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6933 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6935 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6936 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6937 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6939 hardcode_libdir_flag_spec='-R$libdir'
6940 hardcode_shlibpath_var=no
6942 solaris2.[0-5] | solaris2.[0-5].*) ;;
6943 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6944 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6946 link_all_deplibs=yes
6950 if test "x$host_vendor" = xsequent; then
6951 # Use $CC to link under sequent, because it throws in some extra .o
6952 # files that make .init and .fini sections work.
6953 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6955 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6957 hardcode_libdir_flag_spec='-L$libdir'
6959 hardcode_minus_L=yes
6960 hardcode_shlibpath_var=no
6964 case $host_vendor in
6966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967 hardcode_direct=yes # is this really true???
6970 ## LD is ld it makes a PLAMLIB
6971 ## CC just makes a GrossModule.
6972 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6973 reload_cmds='$CC -r -o $output$reload_objs'
6977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6978 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6981 runpath_var='LD_RUN_PATH'
6982 hardcode_shlibpath_var=no
6986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6987 hardcode_shlibpath_var=no
6988 export_dynamic_flag_spec='-Bexport'
6992 if test -d /usr/nec; then
6993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6994 hardcode_shlibpath_var=no
6995 runpath_var=LD_RUN_PATH
6996 hardcode_runpath_var=yes
7002 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7005 hardcode_shlibpath_var=no
7006 hardcode_runpath_var=yes
7007 runpath_var=LD_RUN_PATH
7010 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7011 no_undefined_flag='${wl}-z ${wl}text'
7012 if test "$GCC" = yes; then
7013 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7015 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7017 runpath_var='LD_RUN_PATH'
7018 hardcode_shlibpath_var=no
7022 no_undefined_flag=' -z text'
7023 # $CC -shared without GNU ld will not create a library from C++
7024 # object files and a static libstdc++, better avoid it by now
7025 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7026 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7027 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7028 hardcode_libdir_flag_spec=
7029 hardcode_shlibpath_var=no
7030 runpath_var='LD_RUN_PATH'
7034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7035 hardcode_libdir_flag_spec='-L$libdir'
7036 hardcode_shlibpath_var=no
7045 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7046 echo "${ECHO_T}$ld_shlibs" >&6
7047 test "$ld_shlibs" = no && can_build_shared=no
7049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7050 if test "$GCC" = yes; then
7051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7055 # Do we need to explicitly link libc?
7057 case "x$archive_cmds_need_lc" in
7059 # Assume -lc should be added
7060 archive_cmds_need_lc=yes
7062 if test "$enable_shared" = yes && test "$GCC" = yes; then
7063 case $archive_cmds in
7065 # FIXME: we may have to deal with multi-command sequences.
7068 # Test whether the compiler implicitly links with -lc since on some
7069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7070 # to ld, don't add -lc before -lgcc.
7071 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7072 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } 2>conftest.err; then
7083 libobjs=conftest.$ac_objext
7085 wl=$lt_prog_compiler_wl
7091 lt_save_allow_undefined_flag=$allow_undefined_flag
7092 allow_undefined_flag=
7093 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7094 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }
7099 archive_cmds_need_lc=no
7101 archive_cmds_need_lc=yes
7103 allow_undefined_flag=$lt_save_allow_undefined_flag
7105 cat conftest.err 1>&5
7108 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7109 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7116 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7117 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7119 libname_spec='lib$name'
7127 shlibpath_overrides_runpath=unknown
7129 dynamic_linker="$host_os ld.so"
7130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7131 if test "$GCC" = yes; then
7132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7133 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7134 # if the path contains ";" then we assume it to be the separator
7135 # otherwise default to the standard path separator (i.e. ":") - it is
7136 # assumed that no part of a normal pathname contains ";" but that should
7137 # okay in the real world where ";" in dirpaths is itself problematic.
7138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7143 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7145 need_lib_prefix=unknown
7146 hardcode_into_libs=no
7148 # when you set need_version to no, make sure it does not cause -set_version
7149 # flags to be left without arguments
7150 need_version=unknown
7155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7156 shlibpath_var=LIBPATH
7158 # AIX 3 has no versioning support, so we append a major version to the name.
7159 soname_spec='${libname}${release}${shared_ext}$major'
7166 hardcode_into_libs=yes
7167 if test "$host_cpu" = ia64; then
7168 # AIX 5 supports IA64
7169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7170 shlibpath_var=LD_LIBRARY_PATH
7172 # With GCC up to 2.95.x, collect2 would create an import file
7173 # for dependence libraries. The import file would start with
7174 # the line `#! .'. This would cause the generated library to
7175 # depend on `.', always an invalid library. This was fixed in
7176 # development snapshots of GCC prior to 3.0.
7178 aix4 | aix4.[01] | aix4.[01].*)
7179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7181 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7189 # soname into executable. Probably we can add versioning support to
7190 # collect2, so additional links can be useful in future.
7191 if test "$aix_use_runtimelinking" = yes; then
7192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7193 # instead of lib<name>.a to let people know that these are not
7194 # typical AIX shared libraries.
7195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7197 # We preserve .a as extension for shared libraries through AIX4.2
7198 # and later when we are not doing run time linking.
7199 library_names_spec='${libname}${release}.a $libname.a'
7200 soname_spec='${libname}${release}${shared_ext}$major'
7202 shlibpath_var=LIBPATH
7207 library_names_spec='$libname.ixlibrary $libname.a'
7208 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7209 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'
7213 library_names_spec='${libname}${shared_ext}'
7214 dynamic_linker="$host_os ld.so"
7215 shlibpath_var=LIBRARY_PATH
7221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7222 soname_spec='${libname}${release}${shared_ext}$major'
7223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7224 shlibpath_var=LD_LIBRARY_PATH
7225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7227 # the default ld.so.conf also contains /usr/contrib/lib and
7228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7229 # libtool to hard-code these into programs
7232 cygwin* | mingw* | pw32*)
7233 version_type=windows
7238 case $GCC,$host_os in
7239 yes,cygwin* | yes,mingw* | yes,pw32*)
7240 library_names_spec='$libname.dll.a'
7241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7242 postinstall_cmds='base_file=`basename \${file}`~
7243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7244 dldir=$destdir/`dirname \$dlpath`~
7245 test -d \$dldir || mkdir -p \$dldir~
7246 $install_prog $dir/$dlname \$dldir/$dlname'
7247 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7248 dlpath=$dir/\$dldll~
7250 shlibpath_overrides_runpath=yes
7254 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7255 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7256 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7259 # MinGW DLLs use traditional 'lib' prefix
7260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7262 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7263 # It is most probably a Windows format PATH printed by
7264 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7265 # path with ; separators, and with drive letters. We can handle the
7266 # drive letters (cygwin fileutils understands them), so leave them,
7267 # especially as we might pass files found there to a mingw objdump,
7268 # which wouldn't understand a cygwinified path. Ahh.
7269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7275 # pw32 DLLs use 'pw' prefix rather than 'lib'
7276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7282 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7284 supports_anon_versioning=no
7285 case `$LD -v 2>/dev/null` in
7286 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7287 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7288 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7289 *\ 2.11.*) ;; # other 2.11 versions
7290 *) supports_anon_versioning=yes ;;
7292 if test $supports_anon_versioning = yes; then
7293 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7295 $echo "local: *; };" >> $output_objdir/$libname.ver~
7296 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7298 $archive_expsym_cmds="$archive_cmds"
7306 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7309 dynamic_linker='Win32 ld.exe'
7310 # FIXME: first we should search . and the directory the executable is in
7314 darwin* | rhapsody*)
7315 dynamic_linker="$host_os dyld"
7319 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7320 soname_spec='${libname}${release}${major}$shared_ext'
7321 shlibpath_overrides_runpath=yes
7322 shlibpath_var=DYLD_LIBRARY_PATH
7323 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7324 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7325 if test "$GCC" = yes; then
7326 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"`
7328 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7330 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7338 soname_spec='${libname}${release}${shared_ext}$major'
7339 shlibpath_var=LD_LIBRARY_PATH
7350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7351 soname_spec='${libname}${release}${shared_ext}$major'
7352 shlibpath_var=LD_LIBRARY_PATH
7353 shlibpath_overrides_runpath=no
7354 hardcode_into_libs=yes
7355 dynamic_linker='GNU ld.so'
7359 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7360 version_type=freebsd-$objformat
7361 case $version_type in
7363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7372 shlibpath_var=LD_LIBRARY_PATH
7375 shlibpath_overrides_runpath=yes
7377 freebsd3.01* | freebsdelf3.01*)
7378 shlibpath_overrides_runpath=yes
7379 hardcode_into_libs=yes
7382 shlibpath_overrides_runpath=no
7383 hardcode_into_libs=yes
7392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7393 soname_spec='${libname}${release}${shared_ext}$major'
7394 shlibpath_var=LD_LIBRARY_PATH
7395 hardcode_into_libs=yes
7398 hpux9* | hpux10* | hpux11*)
7399 # Give a soname corresponding to the major version so that dld.sl refuses to
7400 # link against other versions.
7407 hardcode_into_libs=yes
7408 dynamic_linker="$host_os dld.so"
7409 shlibpath_var=LD_LIBRARY_PATH
7410 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7412 soname_spec='${libname}${release}${shared_ext}$major'
7413 if test "X$HPUX_IA64_MODE" = X32; then
7414 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7416 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7418 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7422 hardcode_into_libs=yes
7423 dynamic_linker="$host_os dld.sl"
7424 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7427 soname_spec='${libname}${release}${shared_ext}$major'
7428 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7433 dynamic_linker="$host_os dld.sl"
7434 shlibpath_var=SHLIB_PATH
7435 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7437 soname_spec='${libname}${release}${shared_ext}$major'
7440 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7441 postinstall_cmds='chmod 555 $lib'
7444 irix5* | irix6* | nonstopux*)
7446 nonstopux*) version_type=nonstopux ;;
7448 if test "$lt_cv_prog_gnu_ld" = yes; then
7456 soname_spec='${libname}${release}${shared_ext}$major'
7457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7459 irix5* | nonstopux*)
7463 case $LD in # libtool.m4 will add one of these switches to LD
7464 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7465 libsuff= shlibsuff= libmagic=32-bit;;
7466 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7467 libsuff=32 shlibsuff=N32 libmagic=N32;;
7468 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7469 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7470 *) libsuff= shlibsuff= libmagic=never-match;;
7474 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7475 shlibpath_overrides_runpath=no
7476 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7477 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7478 hardcode_into_libs=yes
7481 # No shared lib support for Linux oldld, aout, or coff.
7482 linux*oldld* | linux*aout* | linux*coff*)
7486 # This must be Linux ELF.
7491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7492 soname_spec='${libname}${release}${shared_ext}$major'
7493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7494 shlibpath_var=LD_LIBRARY_PATH
7495 shlibpath_overrides_runpath=no
7496 # This implies no fast_install, which is unacceptable.
7497 # Some rework will be needed to allow for fast_install
7498 # before this can be enabled.
7499 hardcode_into_libs=yes
7501 # Append ld.so.conf contents to the search path
7502 if test -f /etc/ld.so.conf; then
7503 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7504 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7507 case $host_cpu:$lt_cv_cc_64bit_output in
7508 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7509 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7510 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7514 # We used to test for /lib/ld.so.1 and disable shared libraries on
7515 # powerpc, because MkLinux only supported shared libraries with the
7516 # GNU dynamic linker. Since this was broken with cross compilers,
7517 # most powerpc-linux boxes support dynamic linking these days and
7518 # people can always --disable-shared, the test was removed, and we
7519 # assume the GNU/Linux dynamic linker is in use.
7520 dynamic_linker='GNU/Linux ld.so'
7522 # Find out which ABI we are using (multilib Linux x86_64 hack).
7526 echo '#line 7526 "configure"' > conftest.$ac_ext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; then
7532 case `/usr/bin/file conftest.$ac_objext` in
7543 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7544 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7552 soname_spec='${libname}${release}${shared_ext}$major'
7553 shlibpath_var=LD_LIBRARY_PATH
7554 shlibpath_overrides_runpath=no
7555 hardcode_into_libs=yes
7556 dynamic_linker='GNU ld.so'
7563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7566 dynamic_linker='NetBSD (a.out) ld.so'
7568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7569 soname_spec='${libname}${release}${shared_ext}$major'
7570 dynamic_linker='NetBSD ld.elf_so'
7572 shlibpath_var=LD_LIBRARY_PATH
7573 shlibpath_overrides_runpath=yes
7574 hardcode_into_libs=yes
7579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7580 shlibpath_var=LD_LIBRARY_PATH
7581 shlibpath_overrides_runpath=yes
7588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7589 soname_spec='${libname}${release}${shared_ext}$major'
7590 shlibpath_var=LD_LIBRARY_PATH
7591 shlibpath_overrides_runpath=yes
7598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7600 shlibpath_var=LD_LIBRARY_PATH
7601 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7603 openbsd2.[89] | openbsd2.[89].*)
7604 shlibpath_overrides_runpath=no
7607 shlibpath_overrides_runpath=yes
7611 shlibpath_overrides_runpath=yes
7616 libname_spec='$name'
7619 library_names_spec='$libname${shared_ext} $libname.a'
7620 dynamic_linker='OS/2 ld.exe'
7621 shlibpath_var=LIBPATH
7624 osf3* | osf4* | osf5*)
7628 soname_spec='${libname}${release}${shared_ext}$major'
7629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7630 shlibpath_var=LD_LIBRARY_PATH
7631 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7632 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7637 soname_spec='${libname}${release}${shared_ext}$major'
7638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7639 shlibpath_var=LD_LIBRARY_PATH
7646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7647 soname_spec='${libname}${release}${shared_ext}$major'
7648 shlibpath_var=LD_LIBRARY_PATH
7649 shlibpath_overrides_runpath=yes
7650 hardcode_into_libs=yes
7651 # ldd complains unless libraries are executable
7652 postinstall_cmds='chmod +x $lib'
7657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7658 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7659 shlibpath_var=LD_LIBRARY_PATH
7660 shlibpath_overrides_runpath=yes
7661 if test "$with_gnu_ld" = yes; then
7667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7670 soname_spec='${libname}${release}${shared_ext}$major'
7671 shlibpath_var=LD_LIBRARY_PATH
7672 case $host_vendor in
7674 shlibpath_overrides_runpath=no
7676 export_dynamic_flag_spec='${wl}-Blargedynsym'
7677 runpath_var=LD_RUN_PATH
7685 shlibpath_overrides_runpath=no
7686 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7692 if test -d /usr/nec ;then
7694 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7695 soname_spec='$libname${shared_ext}.$major'
7696 shlibpath_var=LD_LIBRARY_PATH
7702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703 soname_spec='${libname}${release}${shared_ext}$major'
7704 shlibpath_var=LD_LIBRARY_PATH
7711 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7712 echo "${ECHO_T}$dynamic_linker" >&6
7713 test "$dynamic_linker" = no && can_build_shared=no
7715 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7716 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7718 if test -n "$hardcode_libdir_flag_spec" || \
7719 test -n "$runpath_var " || \
7720 test "X$hardcode_automatic"="Xyes" ; then
7722 # We can hardcode non-existant directories.
7723 if test "$hardcode_direct" != no &&
7724 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7725 # have to relink, otherwise we might link with an installed library
7726 # when we should be linking with a yet-to-be-installed one
7727 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7728 test "$hardcode_minus_L" != no; then
7729 # Linking always hardcodes the temporary library directory.
7730 hardcode_action=relink
7732 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7733 hardcode_action=immediate
7736 # We cannot hardcode anything, or else we can only hardcode existing
7738 hardcode_action=unsupported
7740 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7741 echo "${ECHO_T}$hardcode_action" >&6
7743 if test "$hardcode_action" = relink; then
7744 # Fast installation is not supported
7745 enable_fast_install=no
7746 elif test "$shlibpath_overrides_runpath" = yes ||
7747 test "$enable_shared" = no; then
7748 # Fast installation is not necessary
7749 enable_fast_install=needless
7754 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7755 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7756 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7757 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7758 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7759 echo "$as_me:$LINENO: result: yes" >&5
7760 echo "${ECHO_T}yes" >&6
7762 # FIXME - insert some real tests, host_os isn't really good enough
7765 if test -n "$STRIP" ; then
7766 striplib="$STRIP -x"
7767 echo "$as_me:$LINENO: result: yes" >&5
7768 echo "${ECHO_T}yes" >&6
7770 echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6
7775 echo "$as_me:$LINENO: result: no" >&5
7776 echo "${ECHO_T}no" >&6
7781 if test "x$enable_dlopen" != xyes; then
7782 enable_dlopen=unknown
7783 enable_dlopen_self=unknown
7784 enable_dlopen_self_static=unknown
7791 lt_cv_dlopen="load_add_on"
7793 lt_cv_dlopen_self=yes
7797 lt_cv_dlopen="LoadLibrary"
7802 lt_cv_dlopen="dlopen"
7807 # if libdl is installed we need to link against it
7808 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7809 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 ac_check_lib_save_LIBS=$LIBS
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7822 /* Override any gcc2 internal prototype to avoid an error. */
7826 /* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>conftest.er1
7841 grep -v '^ *+' conftest.er1 >conftest.err
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_lib_dl_dlopen=yes
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 ac_cv_lib_dl_dlopen=no
7866 rm -f conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 LIBS=$ac_check_lib_save_LIBS
7870 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7871 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7872 if test $ac_cv_lib_dl_dlopen = yes; then
7873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7878 lt_cv_dlopen_self=yes
7885 echo "$as_me:$LINENO: checking for shl_load" >&5
7886 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7887 if test "${ac_cv_func_shl_load+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7898 #define shl_load innocuous_shl_load
7900 /* System header to define __stub macros and hopefully few prototypes,
7901 which can conflict with char shl_load (); below.
7902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7903 <limits.h> exists even on freestanding compilers. */
7906 # include <limits.h>
7908 # include <assert.h>
7913 /* Override any gcc2 internal prototype to avoid an error. */
7918 /* We use char because int might match the return type of a gcc2
7919 builtin and then its argument prototype would still apply. */
7921 /* The GNU C library defines this for functions which it implements
7922 to always fail with ENOSYS. Some functions are actually named
7923 something starting with __ and the normal name is an alias. */
7924 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7927 char (*f) () = shl_load;
7936 return f != shl_load;
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>conftest.er1
7945 grep -v '^ *+' conftest.er1 >conftest.err
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag"
7951 || test ! -s conftest.err'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; } &&
7957 { ac_try='test -s conftest$ac_exeext'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7963 ac_cv_func_shl_load=yes
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_cv_func_shl_load=no
7970 rm -f conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7973 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7974 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7975 if test $ac_cv_func_shl_load = yes; then
7976 lt_cv_dlopen="shl_load"
7978 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7979 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7980 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 ac_check_lib_save_LIBS=$LIBS
7985 cat >conftest.$ac_ext <<_ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7992 /* Override any gcc2 internal prototype to avoid an error. */
7996 /* We use char because int might match the return type of a gcc2
7997 builtin and then its argument prototype would still apply. */
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8009 (eval $ac_link) 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try='test -z "$ac_c_werror_flag"
8017 || test ! -s conftest.err'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; } &&
8023 { ac_try='test -s conftest$ac_exeext'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; }; then
8029 ac_cv_lib_dld_shl_load=yes
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_cv_lib_dld_shl_load=no
8036 rm -f conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
8038 LIBS=$ac_check_lib_save_LIBS
8040 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8041 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8042 if test $ac_cv_lib_dld_shl_load = yes; then
8043 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8045 echo "$as_me:$LINENO: checking for dlopen" >&5
8046 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8047 if test "${ac_cv_func_dlopen+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8058 #define dlopen innocuous_dlopen
8060 /* System header to define __stub macros and hopefully few prototypes,
8061 which can conflict with char dlopen (); below.
8062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8063 <limits.h> exists even on freestanding compilers. */
8066 # include <limits.h>
8068 # include <assert.h>
8073 /* Override any gcc2 internal prototype to avoid an error. */
8078 /* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
8081 /* The GNU C library defines this for functions which it implements
8082 to always fail with ENOSYS. Some functions are actually named
8083 something starting with __ and the normal name is an alias. */
8084 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8087 char (*f) () = dlopen;
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>conftest.er1
8105 grep -v '^ *+' conftest.er1 >conftest.err
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
8110 { ac_try='test -z "$ac_c_werror_flag"
8111 || test ! -s conftest.err'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest$ac_exeext'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 ac_cv_func_dlopen=yes
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_cv_func_dlopen=no
8130 rm -f conftest.err conftest.$ac_objext \
8131 conftest$ac_exeext conftest.$ac_ext
8133 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8134 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8135 if test $ac_cv_func_dlopen = yes; then
8136 lt_cv_dlopen="dlopen"
8138 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 ac_check_lib_save_LIBS=$LIBS
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8152 /* Override any gcc2 internal prototype to avoid an error. */
8156 /* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_lib_dl_dlopen=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_lib_dl_dlopen=no
8196 rm -f conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8198 LIBS=$ac_check_lib_save_LIBS
8200 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8201 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8202 if test $ac_cv_lib_dl_dlopen = yes; then
8203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8205 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8206 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8207 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 ac_check_lib_save_LIBS=$LIBS
8212 cat >conftest.$ac_ext <<_ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8219 /* Override any gcc2 internal prototype to avoid an error. */
8223 /* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>conftest.er1
8238 grep -v '^ *+' conftest.er1 >conftest.err
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -z "$ac_c_werror_flag"
8244 || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_cv_lib_svld_dlopen=yes
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 ac_cv_lib_svld_dlopen=no
8263 rm -f conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8267 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8268 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8269 if test $ac_cv_lib_svld_dlopen = yes; then
8270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8272 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8273 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8274 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 ac_check_lib_save_LIBS=$LIBS
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8286 /* Override any gcc2 internal prototype to avoid an error. */
8290 /* We use char because int might match the return type of a gcc2
8291 builtin and then its argument prototype would still apply. */
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8303 (eval $ac_link) 2>conftest.er1
8305 grep -v '^ *+' conftest.er1 >conftest.err
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -z "$ac_c_werror_flag"
8311 || test ! -s conftest.err'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_cv_lib_dld_dld_link=yes
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 ac_cv_lib_dld_dld_link=no
8330 rm -f conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8334 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8335 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8336 if test $ac_cv_lib_dld_dld_link = yes; then
8337 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8358 if test "x$lt_cv_dlopen" != xno; then
8364 case $lt_cv_dlopen in
8366 save_CPPFLAGS="$CPPFLAGS"
8367 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8369 save_LDFLAGS="$LDFLAGS"
8370 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8373 LIBS="$lt_cv_dlopen_libs $LIBS"
8375 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8376 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8377 if test "${lt_cv_dlopen_self+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 if test "$cross_compiling" = yes; then :
8381 lt_cv_dlopen_self=cross
8383 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8384 lt_status=$lt_dlunknown
8385 cat > conftest.$ac_ext <<EOF
8386 #line 8386 "configure"
8387 #include "confdefs.h"
8396 # define LT_DLGLOBAL RTLD_GLOBAL
8399 # define LT_DLGLOBAL DL_GLOBAL
8401 # define LT_DLGLOBAL 0
8405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8406 find out it does not work in some platform. */
8407 #ifndef LT_DLLAZY_OR_NOW
8409 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8412 # define LT_DLLAZY_OR_NOW DL_LAZY
8415 # define LT_DLLAZY_OR_NOW RTLD_NOW
8418 # define LT_DLLAZY_OR_NOW DL_NOW
8420 # define LT_DLLAZY_OR_NOW 0
8428 extern "C" void exit (int);
8431 void fnord() { int i=42;}
8434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8435 int status = $lt_dlunknown;
8439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8440 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8441 /* dlclose (self); */
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8452 (./conftest; exit; ) 2>/dev/null
8455 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8456 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8457 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8460 # compilation failed
8461 lt_cv_dlopen_self=no
8468 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8469 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8471 if test "x$lt_cv_dlopen_self" = xyes; then
8472 LDFLAGS="$LDFLAGS $link_static_flag"
8473 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8474 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8475 if test "${lt_cv_dlopen_self_static+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 if test "$cross_compiling" = yes; then :
8479 lt_cv_dlopen_self_static=cross
8481 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8482 lt_status=$lt_dlunknown
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8484 "configure"
8485 #include "confdefs.h"
8494 # define LT_DLGLOBAL RTLD_GLOBAL
8497 # define LT_DLGLOBAL DL_GLOBAL
8499 # define LT_DLGLOBAL 0
8503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8504 find out it does not work in some platform. */
8505 #ifndef LT_DLLAZY_OR_NOW
8507 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8510 # define LT_DLLAZY_OR_NOW DL_LAZY
8513 # define LT_DLLAZY_OR_NOW RTLD_NOW
8516 # define LT_DLLAZY_OR_NOW DL_NOW
8518 # define LT_DLLAZY_OR_NOW 0
8526 extern "C" void exit (int);
8529 void fnord() { int i=42;}
8532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8533 int status = $lt_dlunknown;
8537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8538 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8539 /* dlclose (self); */
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8550 (./conftest; exit; ) 2>/dev/null
8553 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8554 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8555 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8558 # compilation failed
8559 lt_cv_dlopen_self_static=no
8566 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8567 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8570 CPPFLAGS="$save_CPPFLAGS"
8571 LDFLAGS="$save_LDFLAGS"
8576 case $lt_cv_dlopen_self in
8577 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8578 *) enable_dlopen_self=unknown ;;
8581 case $lt_cv_dlopen_self_static in
8582 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8583 *) enable_dlopen_self_static=unknown ;;
8588 # Report which librarie types wil actually be built
8589 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8590 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8591 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8592 echo "${ECHO_T}$can_build_shared" >&6
8594 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8595 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8596 test "$can_build_shared" = "no" && enable_shared=no
8598 # On AIX, shared libraries and static libraries use the same namespace, and
8599 # are all built from PIC.
8602 test "$enable_shared" = yes && enable_static=no
8603 if test -n "$RANLIB"; then
8604 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8605 postinstall_cmds='$RANLIB $lib'
8610 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8611 test "$enable_shared" = yes && enable_static=no
8614 darwin* | rhapsody*)
8615 if test "$GCC" = yes; then
8616 archive_cmds_need_lc=no
8618 rhapsody* | darwin1.[012])
8619 allow_undefined_flag='-undefined suppress'
8622 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8623 allow_undefined_flag='-flat_namespace -undefined suppress'
8625 case ${MACOSX_DEPLOYMENT_TARGET} in
8627 allow_undefined_flag='-flat_namespace -undefined suppress'
8630 allow_undefined_flag='-undefined dynamic_lookup'
8636 output_verbose_link_cmd='echo'
8637 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8638 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8639 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8640 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}'
8641 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}'
8643 hardcode_automatic=yes
8644 hardcode_shlibpath_var=unsupported
8645 whole_archive_flag_spec='-all_load $convenience'
8646 link_all_deplibs=yes
8652 echo "$as_me:$LINENO: result: $enable_shared" >&5
8653 echo "${ECHO_T}$enable_shared" >&6
8655 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8656 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8657 # Make sure either enable_shared or enable_static is yes.
8658 test "$enable_shared" = yes || enable_static=yes
8659 echo "$as_me:$LINENO: result: $enable_static" >&5
8660 echo "${ECHO_T}$enable_static" >&6
8662 # The else clause should only fire when bootstrapping the
8663 # libtool distribution, otherwise you forgot to ship ltmain.sh
8664 # with your package, and you will get complaints that there are
8665 # no rules to generate ltmain.sh.
8666 if test -f "$ltmain"; then
8667 # See if we are running on zsh, and set the options which allow our commands through
8668 # without removal of \ escapes.
8669 if test -n "${ZSH_VERSION+set}" ; then
8670 setopt NO_GLOB_SUBST
8672 # Now quote all the things that may contain metacharacters while being
8673 # careful not to overquote the AC_SUBSTed values. We take copies of the
8674 # variables and quote the copies for generation of the libtool script.
8675 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8677 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8678 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8679 deplibs_check_method reload_flag reload_cmds need_locks \
8680 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8681 lt_cv_sys_global_symbol_to_c_name_address \
8682 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8683 old_postinstall_cmds old_postuninstall_cmds \
8687 lt_prog_compiler_wl \
8688 lt_prog_compiler_pic \
8689 lt_prog_compiler_static \
8690 lt_prog_compiler_no_builtin_flag \
8691 export_dynamic_flag_spec \
8692 thread_safe_flag_spec \
8693 whole_archive_flag_spec \
8694 enable_shared_with_static_runtimes \
8696 old_archive_from_new_cmds \
8701 compiler_lib_search_path \
8703 archive_expsym_cmds \
8705 postuninstall_cmds \
8706 old_archive_from_expsyms_cmds \
8707 allow_undefined_flag \
8709 export_symbols_cmds \
8710 hardcode_libdir_flag_spec \
8711 hardcode_libdir_flag_spec_ld \
8712 hardcode_libdir_separator \
8713 hardcode_automatic \
8715 module_expsym_cmds \
8716 lt_cv_prog_compiler_c_o \
8721 old_archive_cmds | \
8722 old_archive_from_new_cmds | \
8724 archive_expsym_cmds | \
8726 module_expsym_cmds | \
8727 old_archive_from_expsyms_cmds | \
8728 export_symbols_cmds | \
8729 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8730 postinstall_cmds | postuninstall_cmds | \
8731 old_postinstall_cmds | old_postuninstall_cmds | \
8732 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8733 # Double-quote double-evaled strings.
8734 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8737 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8743 *'\$0 --fallback-echo"')
8744 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8749 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8751 { echo "$as_me:$LINENO: creating $ofile" >&5
8752 echo "$as_me: creating $ofile" >&6;}
8754 cat <<__EOF__ >> "$cfgfile"
8757 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8758 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8759 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8761 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8762 # Free Software Foundation, Inc.
8764 # This file is part of GNU Libtool:
8765 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8767 # This program is free software; you can redistribute it and/or modify
8768 # it under the terms of the GNU General Public License as published by
8769 # the Free Software Foundation; either version 2 of the License, or
8770 # (at your option) any later version.
8772 # This program is distributed in the hope that it will be useful, but
8773 # WITHOUT ANY WARRANTY; without even the implied warranty of
8774 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8775 # General Public License for more details.
8777 # You should have received a copy of the GNU General Public License
8778 # along with this program; if not, write to the Free Software
8779 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8781 # As a special exception to the GNU General Public License, if you
8782 # distribute this file as part of a program that contains a
8783 # configuration script generated by Autoconf, you may include it under
8784 # the same distribution terms that you use for the rest of that program.
8786 # A sed program that does not truncate output.
8789 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8790 Xsed="$SED -e s/^X//"
8792 # The HP-UX ksh and POSIX shell print the target directory to stdout
8794 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8796 # The names of the tagged configurations supported by this script.
8799 # ### BEGIN LIBTOOL CONFIG
8801 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8803 # Shell to use when invoking shell scripts.
8806 # Whether or not to build shared libraries.
8807 build_libtool_libs=$enable_shared
8809 # Whether or not to build static libraries.
8810 build_old_libs=$enable_static
8812 # Whether or not to add -lc for building shared libraries.
8813 build_libtool_need_lc=$archive_cmds_need_lc
8815 # Whether or not to disallow shared libs when runtime libs are static
8816 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8818 # Whether or not to optimize for fast installation.
8819 fast_install=$enable_fast_install
8822 host_alias=$host_alias
8825 # An echo program that does not interpret backslashes.
8830 AR_FLAGS=$lt_AR_FLAGS
8835 # A language-specific compiler.
8838 # Is the compiler the GNU C compiler?
8844 # The linker used to build libraries.
8847 # Whether we need hard or soft links.
8850 # A BSD-compatible nm program.
8853 # A symbol stripping program
8856 # Used to examine libraries when file_magic_cmd begins "file"
8857 MAGIC_CMD=$MAGIC_CMD
8859 # Used on cygwin: DLL creation program.
8862 # Used on cygwin: object dumper.
8865 # Used on cygwin: assembler.
8868 # The name of the directory that contains temporary libtool files.
8871 # How to create reloadable object files.
8872 reload_flag=$lt_reload_flag
8873 reload_cmds=$lt_reload_cmds
8875 # How to pass a linker flag through the compiler.
8876 wl=$lt_lt_prog_compiler_wl
8878 # Object file suffix (normally "o").
8881 # Old archive suffix (normally "a").
8884 # Shared library suffix (normally ".so").
8887 # Executable file suffix (normally "").
8890 # Additional compiler flags for building library objects.
8891 pic_flag=$lt_lt_prog_compiler_pic
8894 # What is the maximum length of a command?
8895 max_cmd_len=$lt_cv_sys_max_cmd_len
8897 # Does compiler simultaneously support -c and -o options?
8898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8900 # Must we lock files when doing compilation ?
8901 need_locks=$lt_need_locks
8903 # Do we need the lib prefix for modules?
8904 need_lib_prefix=$need_lib_prefix
8906 # Do we need a version for libraries?
8907 need_version=$need_version
8909 # Whether dlopen is supported.
8910 dlopen_support=$enable_dlopen
8912 # Whether dlopen of programs is supported.
8913 dlopen_self=$enable_dlopen_self
8915 # Whether dlopen of statically linked programs is supported.
8916 dlopen_self_static=$enable_dlopen_self_static
8918 # Compiler flag to prevent dynamic linking.
8919 link_static_flag=$lt_lt_prog_compiler_static
8921 # Compiler flag to turn off builtin functions.
8922 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8924 # Compiler flag to allow reflexive dlopens.
8925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8927 # Compiler flag to generate shared objects directly from archives.
8928 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8930 # Compiler flag to generate thread-safe objects.
8931 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8933 # Library versioning type.
8934 version_type=$version_type
8936 # Format of library name prefix.
8937 libname_spec=$lt_libname_spec
8939 # List of archive names. First name is the real one, the rest are links.
8940 # The last name is the one that the linker finds with -lNAME.
8941 library_names_spec=$lt_library_names_spec
8943 # The coded name of the library, if different from the real name.
8944 soname_spec=$lt_soname_spec
8946 # Commands used to build and install an old-style archive.
8948 old_archive_cmds=$lt_old_archive_cmds
8949 old_postinstall_cmds=$lt_old_postinstall_cmds
8950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8952 # Create an old-style archive from a shared archive.
8953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8955 # Create a temporary old-style archive to link instead of a shared archive.
8956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8958 # Commands used to build and install a shared archive.
8959 archive_cmds=$lt_archive_cmds
8960 archive_expsym_cmds=$lt_archive_expsym_cmds
8961 postinstall_cmds=$lt_postinstall_cmds
8962 postuninstall_cmds=$lt_postuninstall_cmds
8964 # Commands used to build a loadable module (assumed same as above if empty)
8965 module_cmds=$lt_module_cmds
8966 module_expsym_cmds=$lt_module_expsym_cmds
8968 # Commands to strip libraries.
8969 old_striplib=$lt_old_striplib
8970 striplib=$lt_striplib
8972 # Dependencies to place before the objects being linked to create a
8974 predep_objects=$lt_predep_objects
8976 # Dependencies to place after the objects being linked to create a
8978 postdep_objects=$lt_postdep_objects
8980 # Dependencies to place before the objects being linked to create a
8984 # Dependencies to place after the objects being linked to create a
8986 postdeps=$lt_postdeps
8988 # The library search path used internally by the compiler when linking
8990 compiler_lib_search_path=$lt_compiler_lib_search_path
8992 # Method to check whether dependent libraries are shared objects.
8993 deplibs_check_method=$lt_deplibs_check_method
8995 # Command to use when deplibs_check_method == file_magic.
8996 file_magic_cmd=$lt_file_magic_cmd
8998 # Flag that allows shared libraries with undefined symbols to be built.
8999 allow_undefined_flag=$lt_allow_undefined_flag
9001 # Flag that forces no undefined symbols.
9002 no_undefined_flag=$lt_no_undefined_flag
9004 # Commands used to finish a libtool library installation in a directory.
9005 finish_cmds=$lt_finish_cmds
9007 # Same as above, but a single script fragment to be evaled but not shown.
9008 finish_eval=$lt_finish_eval
9010 # Take the output of nm and produce a listing of raw symbols and C names.
9011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9013 # Transform the output of nm in a proper C declaration
9014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9016 # Transform the output of nm in a C name address pair
9017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9019 # This is the shared library runtime path variable.
9020 runpath_var=$runpath_var
9022 # This is the shared library path variable.
9023 shlibpath_var=$shlibpath_var
9025 # Is shlibpath searched before the hard-coded library search path?
9026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9028 # How to hardcode a shared library path into an executable.
9029 hardcode_action=$hardcode_action
9031 # Whether we should hardcode library paths into libraries.
9032 hardcode_into_libs=$hardcode_into_libs
9034 # Flag to hardcode \$libdir into a binary during linking.
9035 # This must work even if \$libdir does not exist.
9036 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9038 # If ld is used when linking, flag to hardcode \$libdir into
9039 # a binary during linking. This must work even if \$libdir does
9041 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9043 # Whether we need a single -rpath flag with a separated argument.
9044 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9046 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9048 hardcode_direct=$hardcode_direct
9050 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9052 hardcode_minus_L=$hardcode_minus_L
9054 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9055 # the resulting binary.
9056 hardcode_shlibpath_var=$hardcode_shlibpath_var
9058 # Set to yes if building a shared library automatically hardcodes DIR into the library
9059 # and all subsequent libraries and executables linked against it.
9060 hardcode_automatic=$hardcode_automatic
9062 # Variables whose values should be saved in libtool wrapper scripts and
9063 # restored at relink time.
9064 variables_saved_for_relink="$variables_saved_for_relink"
9066 # Whether libtool must link a program against all its dependency libraries.
9067 link_all_deplibs=$link_all_deplibs
9069 # Compile-time system search path for libraries
9070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9072 # Run-time system search path for libraries
9073 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9075 # Fix the shell variable \$srcfile for the compiler.
9076 fix_srcfile_path="$fix_srcfile_path"
9078 # Set to yes if exported symbols are required.
9079 always_export_symbols=$always_export_symbols
9081 # The commands to list exported symbols.
9082 export_symbols_cmds=$lt_export_symbols_cmds
9084 # The commands to extract the exported symbol list from a shared archive.
9085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9087 # Symbols that should not be listed in the preloaded symbols.
9088 exclude_expsyms=$lt_exclude_expsyms
9090 # Symbols that must always be exported.
9091 include_expsyms=$lt_include_expsyms
9093 # ### END LIBTOOL CONFIG
9100 cat <<\EOF >> "$cfgfile"
9102 # AIX sometimes has problems with the GCC collect2 program. For some
9103 # reason, if we set the COLLECT_NAMES environment variable, the problems
9104 # vanish in a puff of smoke.
9105 if test "X${COLLECT_NAMES+set}" != Xset; then
9107 export COLLECT_NAMES
9113 # We use sed instead of cat because bash on DJGPP gets confused if
9114 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9115 # text mode, it properly converts lines to CR/LF. This bash problem
9116 # is reportedly fixed, but why not run on old versions too?
9117 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9119 mv -f "$cfgfile" "$ofile" || \
9120 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9124 # If there is no Makefile yet, we rely on a make rule to execute
9125 # `config.status --recheck' to rerun these tests and create the
9126 # libtool script then.
9127 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9128 if test -f "$ltmain_in"; then
9129 test -f Makefile && make "$ltmain"
9135 ac_cpp='$CPP $CPPFLAGS'
9136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9143 # Check whether --with-tags or --without-tags was given.
9144 if test "${with_tags+set}" = set; then
9145 withval="$with_tags"
9149 if test -f "$ltmain" && test -n "$tagnames"; then
9150 if test ! -f "${ofile}"; then
9151 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9152 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9155 if test -z "$LTCC"; then
9156 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9157 if test -z "$LTCC"; then
9158 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9159 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9162 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9166 # Extract list of available tagged configurations in $ofile.
9167 # Note that this assumes the entire list is on one line.
9168 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9171 for tagname in $tagnames; do
9173 # Check whether tagname contains only valid characters
9174 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9176 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9177 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9178 { (exit 1); exit 1; }; }
9182 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9184 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9185 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9186 { (exit 1); exit 1; }; }
9189 # Update the list of available tags.
9190 if test -n "$tagname"; then
9191 echo appending configuration tag \"$tagname\" to $ofile
9195 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9197 ac_cpp='$CXXCPP $CPPFLAGS'
9198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9205 archive_cmds_need_lc_CXX=no
9206 allow_undefined_flag_CXX=
9207 always_export_symbols_CXX=no
9208 archive_expsym_cmds_CXX=
9209 export_dynamic_flag_spec_CXX=
9210 hardcode_direct_CXX=no
9211 hardcode_libdir_flag_spec_CXX=
9212 hardcode_libdir_flag_spec_ld_CXX=
9213 hardcode_libdir_separator_CXX=
9214 hardcode_minus_L_CXX=no
9215 hardcode_automatic_CXX=no
9217 module_expsym_cmds_CXX=
9218 link_all_deplibs_CXX=unknown
9219 old_archive_cmds_CXX=$old_archive_cmds
9220 no_undefined_flag_CXX=
9221 whole_archive_flag_spec_CXX=
9222 enable_shared_with_static_runtimes_CXX=no
9224 # Dependencies to place before and after the object being linked:
9226 postdep_objects_CXX=
9229 compiler_lib_search_path_CXX=
9231 # Source file extension for C++ test sources.
9234 # Object file extension for compiled C++ test sources.
9238 # Code to be used in simple compile tests
9239 lt_simple_compile_test_code="int some_variable = 0;\n"
9241 # Code to be used in simple link tests
9242 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9244 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9246 # If no C compiler was specified, use CC.
9249 # Allow CC to be a program name with arguments.
9253 # Allow CC to be a program name with arguments.
9258 lt_save_with_gnu_ld=$with_gnu_ld
9259 lt_save_path_LD=$lt_cv_path_LD
9260 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9261 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9263 unset lt_cv_prog_gnu_ld
9265 if test -n "${lt_cv_path_LDCXX+set}"; then
9266 lt_cv_path_LD=$lt_cv_path_LDCXX
9270 test -z "${LDCXX+set}" || LD=$LDCXX
9274 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9276 # We don't want -fno-exception wen compiling C++ code, so set the
9277 # no_builtin_flag separately
9278 if test "$GXX" = yes; then
9279 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9281 lt_prog_compiler_no_builtin_flag_CXX=
9284 if test "$GXX" = yes; then
9285 # Set up default GNU C++ configuration
9288 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9289 if test "${with_gnu_ld+set}" = set; then
9290 withval="$with_gnu_ld"
9291 test "$withval" = no || with_gnu_ld=yes
9296 if test "$GCC" = yes; then
9297 # Check if gcc -print-prog-name=ld gives a path.
9298 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9299 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9302 # gcc leaves a trailing carriage return which upsets mingw
9303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9308 # Accept absolute paths.
9310 re_direlt='/[^/][^/]*/\.\./'
9311 # Canonicalize the pathname of ld
9312 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9313 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9314 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9316 test -z "$LD" && LD="$ac_prog"
9319 # If it fails, then pretend we aren't using GCC.
9323 # If it is relative, then search for the first ld in PATH.
9327 elif test "$with_gnu_ld" = yes; then
9328 echo "$as_me:$LINENO: checking for GNU ld" >&5
9329 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9331 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9332 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9334 if test "${lt_cv_path_LD+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 if test -z "$LD"; then
9338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9339 for ac_dir in $PATH; do
9341 test -z "$ac_dir" && ac_dir=.
9342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9343 lt_cv_path_LD="$ac_dir/$ac_prog"
9344 # Check to see if the program is GNU ld. I'd rather use --version,
9345 # but apparently some GNU ld's only accept -v.
9346 # Break only if it was the GNU/non-GNU ld that we prefer.
9347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9348 *GNU* | *'with BFD'*)
9349 test "$with_gnu_ld" != no && break
9352 test "$with_gnu_ld" != yes && break
9359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9364 if test -n "$LD"; then
9365 echo "$as_me:$LINENO: result: $LD" >&5
9366 echo "${ECHO_T}$LD" >&6
9368 echo "$as_me:$LINENO: result: no" >&5
9369 echo "${ECHO_T}no" >&6
9371 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9372 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9373 { (exit 1); exit 1; }; }
9374 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9375 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9376 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9380 case `$LD -v 2>&1 </dev/null` in
9381 *GNU* | *'with BFD'*)
9382 lt_cv_prog_gnu_ld=yes
9385 lt_cv_prog_gnu_ld=no
9389 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9390 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9391 with_gnu_ld=$lt_cv_prog_gnu_ld
9395 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9396 # archiving commands below assume that GNU ld is being used.
9397 if test "$with_gnu_ld" = yes; then
9398 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 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'
9401 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9404 # If archive_cmds runs LD, not CC, wlarc should be empty
9405 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9406 # investigate it a little bit more. (MM)
9409 # ancient GNU ld didn't support --whole-archive et. al.
9410 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9411 grep 'no-whole-archive' > /dev/null; then
9412 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9414 whole_archive_flag_spec_CXX=
9420 # A generic and very simple default shared library creation
9421 # command for GNU C++ for the case where it uses the native
9422 # linker, instead of GNU ld. If possible, this setting should
9423 # overridden to take advantage of the native linker features on
9424 # the platform it is being used on.
9425 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9428 # Commands to make compiler produce verbose output that lists
9429 # what "hidden" libraries, object files and flags are used when
9430 # linking a shared library.
9431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9439 # PORTME: fill in a description of your system's C++ link characteristics
9440 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9441 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9445 # FIXME: insert proper C++ library support
9449 if test "$host_cpu" = ia64; then
9450 # On IA64, the linker does run time linking by default, so we don't
9451 # have to do anything special.
9452 aix_use_runtimelinking=no
9453 exp_sym_flag='-Bexport'
9456 aix_use_runtimelinking=no
9458 # Test if we are trying to use run time linking or normal
9459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9460 # need to do runtime linking.
9461 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9462 for ld_flag in $LDFLAGS; do
9465 aix_use_runtimelinking=yes
9472 exp_sym_flag='-bexport'
9473 no_entry_flag='-bnoentry'
9476 # When large executables or shared objects are built, AIX ld can
9477 # have problems creating the table of contents. If linking a library
9478 # or program results in "error TOC overflow" add -mminimal-toc to
9479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9483 hardcode_direct_CXX=yes
9484 hardcode_libdir_separator_CXX=':'
9485 link_all_deplibs_CXX=yes
9487 if test "$GXX" = yes; then
9488 case $host_os in aix4.012|aix4.012.*)
9489 # We only want to do this on AIX 4.2 and lower, the check
9490 # below for broken collect2 doesn't work under 4.3+
9491 collect2name=`${CC} -print-prog-name=collect2`
9492 if test -f "$collect2name" && \
9493 strings "$collect2name" | grep resolve_lib_name >/dev/null
9495 # We have reworked collect2
9496 hardcode_direct_CXX=yes
9498 # We have old collect2
9499 hardcode_direct_CXX=unsupported
9500 # It fails to find uninstalled libraries when the uninstalled
9501 # path is not listed in the libpath. Setting hardcode_minus_L
9502 # to unsupported forces relinking
9503 hardcode_minus_L_CXX=yes
9504 hardcode_libdir_flag_spec_CXX='-L$libdir'
9505 hardcode_libdir_separator_CXX=
9508 shared_flag='-shared'
9511 if test "$host_cpu" = ia64; then
9512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9513 # chokes on -Wl,-G. The following line is correct:
9516 if test "$aix_use_runtimelinking" = yes; then
9517 shared_flag='${wl}-G'
9519 shared_flag='${wl}-bM:SRE'
9524 # It seems that -bexpall does not export symbols beginning with
9525 # underscore (_), so it is better to generate a list of symbols to export.
9526 always_export_symbols_CXX=yes
9527 if test "$aix_use_runtimelinking" = yes; then
9528 # Warning - without using the other runtime loading flags (-brtl),
9529 # -berok will link without error, but may produce a broken library.
9530 allow_undefined_flag_CXX='-berok'
9531 # Determine the default libpath from the value encoded in an empty executable.
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 2>conftest.er1
9551 grep -v '^ *+' conftest.er1 >conftest.err
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_cxx_werror_flag"
9557 || test ! -s conftest.err'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; } &&
9563 { ac_try='test -s conftest$ac_exeext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9572 # Check for a 64-bit object if we didn't find anything.
9573 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; }
9576 echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9580 rm -f conftest.err conftest.$ac_objext \
9581 conftest$ac_exeext conftest.$ac_ext
9582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9584 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9586 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"
9588 if test "$host_cpu" = ia64; then
9589 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9590 allow_undefined_flag_CXX="-z nodefs"
9591 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"
9593 # Determine the default libpath from the value encoded in an empty executable.
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611 (eval $ac_link) 2>conftest.er1
9613 grep -v '^ *+' conftest.er1 >conftest.err
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try='test -z "$ac_cxx_werror_flag"
9619 || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9634 # Check for a 64-bit object if we didn't find anything.
9635 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; }
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9642 rm -f conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9646 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9647 # Warning - without using the other run time loading flags,
9648 # -berok will link without error, but may produce a broken library.
9649 no_undefined_flag_CXX=' ${wl}-bernotok'
9650 allow_undefined_flag_CXX=' ${wl}-berok'
9651 # -bexpall does not export symbols beginning with underscore (_)
9652 always_export_symbols_CXX=yes
9653 # Exported symbols can be pulled into shared objects from archives
9654 whole_archive_flag_spec_CXX=' '
9655 archive_cmds_need_lc_CXX=yes
9656 # This is similar to how AIX traditionally builds it's shared libraries.
9657 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'
9662 case $cc_basename in
9664 # FIXME: insert proper C++ library support
9670 cygwin* | mingw* | pw32*)
9671 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9672 # as there is no search path for DLLs.
9673 hardcode_libdir_flag_spec_CXX='-L$libdir'
9674 allow_undefined_flag_CXX=unsupported
9675 always_export_symbols_CXX=no
9676 enable_shared_with_static_runtimes_CXX=yes
9678 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9679 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'
9680 # If the export-symbols file already is a .def file (1st line
9681 # is EXPORTS), use it as is; otherwise, prepend...
9682 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9683 cp $export_symbols $output_objdir/$soname.def;
9685 echo EXPORTS > $output_objdir/$soname.def;
9686 cat $export_symbols >> $output_objdir/$soname.def;
9688 $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'
9694 darwin* | rhapsody*)
9695 if test "$GXX" = yes; then
9696 archive_cmds_need_lc_CXX=no
9698 rhapsody* | darwin1.[012])
9699 allow_undefined_flag_CXX='-undefined suppress'
9702 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9703 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9705 case ${MACOSX_DEPLOYMENT_TARGET} in
9707 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9710 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9716 lt_int_apple_cc_single_mod=no
9717 output_verbose_link_cmd='echo'
9718 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9719 lt_int_apple_cc_single_mod=yes
9721 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9722 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9724 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'
9726 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9728 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9729 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9730 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}'
9732 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}'
9734 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}'
9735 hardcode_direct_CXX=no
9736 hardcode_automatic_CXX=yes
9737 hardcode_shlibpath_var_CXX=unsupported
9738 whole_archive_flag_spec_CXX='-all_load $convenience'
9739 link_all_deplibs_CXX=yes
9746 case $cc_basename in
9748 # FIXME: insert proper C++ library support
9752 # Green Hills C++ Compiler
9753 # FIXME: insert proper C++ library support
9757 # FIXME: insert proper C++ library support
9763 # C++ shared libraries reported to be fairly broken before switch to ELF
9767 archive_cmds_need_lc_CXX=no
9769 freebsd* | kfreebsd*-gnu)
9770 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9777 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9778 hardcode_libdir_separator_CXX=:
9779 export_dynamic_flag_spec_CXX='${wl}-E'
9780 hardcode_direct_CXX=yes
9781 hardcode_minus_L_CXX=yes # Not in the search PATH,
9782 # but as the default
9783 # location of the library.
9785 case $cc_basename in
9787 # FIXME: insert proper C++ library support
9791 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'
9792 # Commands to make compiler produce verbose output that lists
9793 # what "hidden" libraries, object files and flags are used when
9794 # linking a shared library.
9796 # There doesn't appear to be a way to prevent this compiler from
9797 # explicitly linking system object files so we need to strip them
9798 # from the output so that they don't get included in the library
9800 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'
9803 if test "$GXX" = yes; then
9804 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'
9806 # FIXME: insert proper C++ library support
9813 if test $with_gnu_ld = no; then
9816 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9817 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9818 hardcode_libdir_separator_CXX=:
9821 hardcode_libdir_flag_spec_CXX='-L$libdir'
9824 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9825 hardcode_libdir_separator_CXX=:
9826 export_dynamic_flag_spec_CXX='${wl}-E'
9832 hardcode_direct_CXX=no
9833 hardcode_shlibpath_var_CXX=no
9836 hardcode_direct_CXX=no
9837 hardcode_shlibpath_var_CXX=no
9838 hardcode_minus_L_CXX=yes # Not in the search PATH,
9839 # but as the default
9840 # location of the library.
9843 hardcode_direct_CXX=yes
9844 hardcode_minus_L_CXX=yes # Not in the search PATH,
9845 # but as the default
9846 # location of the library.
9850 case $cc_basename in
9852 # FIXME: insert proper C++ library support
9858 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9861 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9864 # Commands to make compiler produce verbose output that lists
9865 # what "hidden" libraries, object files and flags are used when
9866 # linking a shared library.
9868 # There doesn't appear to be a way to prevent this compiler from
9869 # explicitly linking system object files so we need to strip them
9870 # from the output so that they don't get included in the library
9872 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'
9875 if test "$GXX" = yes; then
9876 if test $with_gnu_ld = no; then
9879 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9882 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'
9887 # FIXME: insert proper C++ library support
9894 case $cc_basename in
9897 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'
9899 # Archives containing C++ object files must be created using
9900 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9901 # necessary to make sure instantiated templates are included
9903 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9906 if test "$GXX" = yes; then
9907 if test "$with_gnu_ld" = no; then
9908 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'
9910 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'
9913 link_all_deplibs_CXX=yes
9916 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9917 hardcode_libdir_separator_CXX=:
9920 case $cc_basename in
9922 # Kuck and Associates, Inc. (KAI) C++ Compiler
9924 # KCC will only create a shared library if the output file
9925 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9926 # to its proper name (with version) after linking.
9927 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'
9928 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'
9929 # Commands to make compiler produce verbose output that lists
9930 # what "hidden" libraries, object files and flags are used when
9931 # linking a shared library.
9933 # There doesn't appear to be a way to prevent this compiler from
9934 # explicitly linking system object files so we need to strip them
9935 # from the output so that they don't get included in the library
9937 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'
9939 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9940 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9942 # Archives containing C++ object files must be created using
9943 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9944 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9949 archive_cmds_need_lc_CXX=no
9950 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951 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'
9952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9954 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9959 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'
9961 runpath_var=LD_RUN_PATH
9962 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9963 hardcode_libdir_separator_CXX=:
9965 # Commands to make compiler produce verbose output that lists
9966 # what "hidden" libraries, object files and flags are used when
9967 # linking a shared library.
9969 # There doesn't appear to be a way to prevent this compiler from
9970 # explicitly linking system object files so we need to strip them
9971 # from the output so that they don't get included in the library
9973 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'
9978 # FIXME: insert proper C++ library support
9982 # FIXME: insert proper C++ library support
9986 case $cc_basename in
9988 # FIXME: insert proper C++ library support
9992 # FIXME: insert proper C++ library support
9998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9999 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10001 hardcode_libdir_flag_spec_CXX='-R$libdir'
10002 hardcode_direct_CXX=yes
10003 hardcode_shlibpath_var_CXX=no
10005 # Workaround some broken pre-1.5 toolchains
10006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10009 case $cc_basename in
10011 # Kuck and Associates, Inc. (KAI) C++ Compiler
10013 # KCC will only create a shared library if the output file
10014 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10015 # to its proper name (with version) after linking.
10016 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'
10018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10019 hardcode_libdir_separator_CXX=:
10021 # Archives containing C++ object files must be created using
10022 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10023 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10027 # Rational C++ 2.4.1
10028 # FIXME: insert proper C++ library support
10032 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10033 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'
10035 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10036 hardcode_libdir_separator_CXX=:
10038 # Commands to make compiler produce verbose output that lists
10039 # what "hidden" libraries, object files and flags are used when
10040 # linking a shared library.
10042 # There doesn't appear to be a way to prevent this compiler from
10043 # explicitly linking system object files so we need to strip them
10044 # from the output so that they don't get included in the library
10046 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'
10049 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10050 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10051 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'
10053 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10054 hardcode_libdir_separator_CXX=:
10056 # Commands to make compiler produce verbose output that lists
10057 # what "hidden" libraries, object files and flags are used when
10058 # linking a shared library.
10059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10062 # FIXME: insert proper C++ library support
10069 case $cc_basename in
10071 # Kuck and Associates, Inc. (KAI) C++ Compiler
10073 # KCC will only create a shared library if the output file
10074 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10075 # to its proper name (with version) after linking.
10076 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'
10078 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10079 hardcode_libdir_separator_CXX=:
10081 # Archives containing C++ object files must be created using
10082 # the KAI C++ compiler.
10083 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10086 # Rational C++ 2.4.1
10087 # FIXME: insert proper C++ library support
10091 allow_undefined_flag_CXX=' -expect_unresolved \*'
10092 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'
10093 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10094 echo "-hidden">> $lib.exp~
10095 $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~
10098 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10099 hardcode_libdir_separator_CXX=:
10101 # Commands to make compiler produce verbose output that lists
10102 # what "hidden" libraries, object files and flags are used when
10103 # linking a shared library.
10105 # There doesn't appear to be a way to prevent this compiler from
10106 # explicitly linking system object files so we need to strip them
10107 # from the output so that they don't get included in the library
10109 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'
10112 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10113 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10114 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'
10116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10117 hardcode_libdir_separator_CXX=:
10119 # Commands to make compiler produce verbose output that lists
10120 # what "hidden" libraries, object files and flags are used when
10121 # linking a shared library.
10122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10125 # FIXME: insert proper C++ library support
10132 # FIXME: insert proper C++ library support
10136 archive_cmds_need_lc_CXX=no
10137 case $cc_basename in
10139 # FIXME: insert proper C++ library support
10143 # FIXME: insert proper C++ library support
10149 case $cc_basename in
10152 # FIXME: insert proper C++ library support
10157 # FIXME: insert proper C++ library support
10161 # FIXME: insert proper C++ library support
10167 case $cc_basename in
10169 # Sun C++ 4.2, 5.x and Centerline C++
10170 no_undefined_flag_CXX=' -zdefs'
10171 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10172 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10173 $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'
10175 hardcode_libdir_flag_spec_CXX='-R$libdir'
10176 hardcode_shlibpath_var_CXX=no
10178 solaris2.0-5 | solaris2.0-5.*) ;;
10180 # The C++ compiler is used as linker so we must use $wl
10181 # flag to pass the commands to the underlying system
10183 # Supported since Solaris 2.6 (maybe 2.5.1?)
10184 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10187 link_all_deplibs_CXX=yes
10189 # Commands to make compiler produce verbose output that lists
10190 # what "hidden" libraries, object files and flags are used when
10191 # linking a shared library.
10193 # There doesn't appear to be a way to prevent this compiler from
10194 # explicitly linking system object files so we need to strip them
10195 # from the output so that they don't get included in the library
10197 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'
10199 # Archives containing C++ object files must be created using
10200 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10201 # necessary to make sure instantiated templates are included
10203 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10206 # Green Hills C++ Compiler
10207 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10209 # The C++ compiler must be used to create the archive.
10210 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10213 # GNU C++ compiler with Solaris linker
10214 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10215 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10216 if $CC --version | grep -v '^2\.7' > /dev/null; then
10217 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10218 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10219 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10221 # Commands to make compiler produce verbose output that lists
10222 # what "hidden" libraries, object files and flags are used when
10223 # linking a shared library.
10224 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10226 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10228 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10229 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10230 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10232 # Commands to make compiler produce verbose output that lists
10233 # what "hidden" libraries, object files and flags are used when
10234 # linking a shared library.
10235 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10238 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10243 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10244 archive_cmds_need_lc_CXX=no
10247 case $cc_basename in
10249 # NonStop-UX NCC 3.20
10250 # FIXME: insert proper C++ library support
10254 # FIXME: insert proper C++ library support
10260 # FIXME: insert proper C++ library support
10264 # FIXME: insert proper C++ library support
10268 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10269 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10270 test "$ld_shlibs_CXX" = no && can_build_shared=no
10276 cat > conftest.$ac_ext <<EOF
10280 Foo (void) { a = 0; }
10286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287 (eval $ac_compile) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; then
10291 # Parse the compiler output and extract the necessary
10292 # objects, libraries and library flags.
10294 # Sentinel used to keep track of whether or not we are before
10295 # the conftest object file.
10296 pre_test_object_deps_done=no
10298 # The `*' in the case matches for architectures that use `case' in
10299 # $output_verbose_cmd can trigger glob expansion during the loop
10300 # eval without this substitution.
10301 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10303 for p in `eval $output_verbose_link_cmd`; do
10307 # Some compilers place space between "-{L,R}" and the path.
10308 # Remove the space.
10309 if test $p = "-L" \
10310 || test $p = "-R"; then
10317 if test "$pre_test_object_deps_done" = no; then
10320 # Internal compiler library paths should come after those
10321 # provided the user. The postdeps already come after the
10322 # user supplied libs so there is no need to process them.
10323 if test -z "$compiler_lib_search_path_CXX"; then
10324 compiler_lib_search_path_CXX="${prev}${p}"
10326 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10329 # The "-l" case would never come before the object being
10330 # linked, so don't bother handling this case.
10333 if test -z "$postdeps_CXX"; then
10334 postdeps_CXX="${prev}${p}"
10336 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10342 # This assumes that the test object file only shows up
10343 # once in the compiler output.
10344 if test "$p" = "conftest.$objext"; then
10345 pre_test_object_deps_done=yes
10349 if test "$pre_test_object_deps_done" = no; then
10350 if test -z "$predep_objects_CXX"; then
10351 predep_objects_CXX="$p"
10353 predep_objects_CXX="$predep_objects_CXX $p"
10356 if test -z "$postdep_objects_CXX"; then
10357 postdep_objects_CXX="$p"
10359 postdep_objects_CXX="$postdep_objects_CXX $p"
10364 *) ;; # Ignore the rest.
10372 echo "libtool.m4: error: problem compiling CXX test program"
10375 $rm -f confest.$objext
10377 case " $postdeps_CXX " in
10378 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10381 lt_prog_compiler_wl_CXX=
10382 lt_prog_compiler_pic_CXX=
10383 lt_prog_compiler_static_CXX=
10385 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10386 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10388 # C++ specific cases for pic, static, wl, etc.
10389 if test "$GXX" = yes; then
10390 lt_prog_compiler_wl_CXX='-Wl,'
10391 lt_prog_compiler_static_CXX='-static'
10395 # All AIX code is PIC.
10396 if test "$host_cpu" = ia64; then
10397 # AIX 5 now supports IA64 processor
10398 lt_prog_compiler_static_CXX='-Bstatic'
10402 # FIXME: we need at least 68020 code to build shared libraries, but
10403 # adding the `-m68020' flag to GCC prevents building anything better,
10405 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10407 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10408 # PIC is the default for these OSes.
10410 mingw* | os2* | pw32*)
10411 # This hack is so that the source file can tell whether it is being
10412 # built for inclusion in a dll (and should export symbols for example).
10413 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10415 darwin* | rhapsody*)
10416 # PIC is the default on this platform
10417 # Common symbols not allowed in MH_DYLIB files
10418 lt_prog_compiler_pic_CXX='-fno-common'
10421 # DJGPP does not support shared libraries at all
10422 lt_prog_compiler_pic_CXX=
10425 if test -d /usr/nec; then
10426 lt_prog_compiler_pic_CXX=-Kconform_pic
10430 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10431 # not for PA HP-UX.
10432 case "$host_cpu" in
10436 lt_prog_compiler_pic_CXX='-fPIC'
10441 lt_prog_compiler_pic_CXX='-fPIC'
10447 # All AIX code is PIC.
10448 if test "$host_cpu" = ia64; then
10449 # AIX 5 now supports IA64 processor
10450 lt_prog_compiler_static_CXX='-Bstatic'
10452 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10456 case $cc_basename in
10458 # Green Hills C++ Compiler
10459 # _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"
10464 case $cc_basename in
10466 lt_prog_compiler_pic_CXX='-KPIC'
10469 # Green Hills C++ Compiler
10470 lt_prog_compiler_pic_CXX='-pic'
10476 freebsd* | kfreebsd*-gnu)
10477 # FreeBSD uses GNU C++
10479 hpux9* | hpux10* | hpux11*)
10480 case $cc_basename in
10482 lt_prog_compiler_wl_CXX='-Wl,'
10483 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10484 if test "$host_cpu" != ia64; then
10485 lt_prog_compiler_pic_CXX='+Z'
10489 lt_prog_compiler_wl_CXX='-Wl,'
10490 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10491 case "$host_cpu" in
10496 lt_prog_compiler_pic_CXX='+Z'
10504 irix5* | irix6* | nonstopux*)
10505 case $cc_basename in
10507 lt_prog_compiler_wl_CXX='-Wl,'
10508 lt_prog_compiler_static_CXX='-non_shared'
10509 # CC pic flag -KPIC is the default.
10516 case $cc_basename in
10519 lt_prog_compiler_wl_CXX='--backend -Wl,'
10520 lt_prog_compiler_pic_CXX='-fPIC'
10524 lt_prog_compiler_wl_CXX='-Wl,'
10525 lt_prog_compiler_pic_CXX='-KPIC'
10526 lt_prog_compiler_static_CXX='-static'
10530 # Make sure the PIC flag is empty. It appears that all Alpha
10531 # Linux and Compaq Tru64 Unix objects are PIC.
10532 lt_prog_compiler_pic_CXX=
10533 lt_prog_compiler_static_CXX='-non_shared'
10544 case $cc_basename in
10546 lt_prog_compiler_pic_CXX='-W c,exportall'
10554 osf3* | osf4* | osf5*)
10555 case $cc_basename in
10557 lt_prog_compiler_wl_CXX='--backend -Wl,'
10560 # Rational C++ 2.4.1
10561 lt_prog_compiler_pic_CXX='-pic'
10564 # Digital/Compaq C++
10565 lt_prog_compiler_wl_CXX='-Wl,'
10566 # Make sure the PIC flag is empty. It appears that all Alpha
10567 # Linux and Compaq Tru64 Unix objects are PIC.
10568 lt_prog_compiler_pic_CXX=
10569 lt_prog_compiler_static_CXX='-non_shared'
10578 case $cc_basename in
10580 lt_prog_compiler_pic_CXX='-fPIC'
10587 case $cc_basename in
10589 # Sun C++ 4.2, 5.x and Centerline C++
10590 lt_prog_compiler_pic_CXX='-KPIC'
10591 lt_prog_compiler_static_CXX='-Bstatic'
10592 lt_prog_compiler_wl_CXX='-Qoption ld '
10595 # Green Hills C++ Compiler
10596 lt_prog_compiler_pic_CXX='-PIC'
10603 case $cc_basename in
10606 lt_prog_compiler_pic_CXX='-pic'
10607 lt_prog_compiler_static_CXX='-Bstatic'
10611 lt_prog_compiler_pic_CXX='-pic'
10618 case $cc_basename in
10620 # NonStop-UX NCC 3.20
10621 lt_prog_compiler_pic_CXX='-KPIC'
10632 lt_prog_compiler_can_build_shared_CXX=no
10637 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10638 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10641 # Check to make sure the PIC flag actually works.
10643 if test -n "$lt_prog_compiler_pic_CXX"; then
10645 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10646 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10647 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 lt_prog_compiler_pic_works_CXX=no
10651 ac_outfile=conftest.$ac_objext
10652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10653 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10654 # Insert the option either (1) after the last *FLAGS variable, or
10655 # (2) before a word containing "conftest.", or (3) at the end.
10656 # Note that $ac_compile itself does not contain backslashes and begins
10657 # with a dollar sign (not a hyphen), so the echo should work correctly.
10658 # The option is referenced via a variable to avoid confusing sed.
10659 lt_compile=`echo "$ac_compile" | $SED \
10660 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10662 -e 's:$: $lt_compiler_flag:'`
10663 (eval echo "\"\$as_me:10663: $lt_compile\"" >&5)
10664 (eval "$lt_compile" 2>conftest.err)
10666 cat conftest.err >&5
10667 echo "$as_me:10667: \$? = $ac_status" >&5
10668 if (exit $ac_status) && test -s "$ac_outfile"; then
10669 # The compiler can only warn and ignore the option if not recognized
10670 # So say no if there are warnings
10671 if test ! -s conftest.err; then
10672 lt_prog_compiler_pic_works_CXX=yes
10678 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10679 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10681 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10682 case $lt_prog_compiler_pic_CXX in
10684 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10687 lt_prog_compiler_pic_CXX=
10688 lt_prog_compiler_can_build_shared_CXX=no
10693 # For platforms which do not support PIC, -DPIC is meaningless:
10695 lt_prog_compiler_pic_CXX=
10698 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10702 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10704 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 lt_cv_prog_compiler_c_o_CXX=no
10708 $rm -r conftest 2>/dev/null
10712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10714 lt_compiler_flag="-o out/conftest2.$ac_objext"
10715 # Insert the option either (1) after the last *FLAGS variable, or
10716 # (2) before a word containing "conftest.", or (3) at the end.
10717 # Note that $ac_compile itself does not contain backslashes and begins
10718 # with a dollar sign (not a hyphen), so the echo should work correctly.
10719 lt_compile=`echo "$ac_compile" | $SED \
10720 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10722 -e 's:$: $lt_compiler_flag:'`
10723 (eval echo "\"\$as_me:10723: $lt_compile\"" >&5)
10724 (eval "$lt_compile" 2>out/conftest.err)
10726 cat out/conftest.err >&5
10727 echo "$as_me:10727: \$? = $ac_status" >&5
10728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10730 # The compiler can only warn and ignore the option if not recognized
10731 # So say no if there are warnings
10732 if test ! -s out/conftest.err; then
10733 lt_cv_prog_compiler_c_o_CXX=yes
10738 # SGI C++ compiler will create directory out/ii_files/ for
10739 # template instantiation
10740 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10741 $rm out/* && rmdir out
10747 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10748 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10751 hard_links="nottested"
10752 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10753 # do not overwrite the value of need_locks provided by the user
10754 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10755 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10758 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10760 ln conftest.a conftest.b 2>&5 || hard_links=no
10761 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10762 echo "$as_me:$LINENO: result: $hard_links" >&5
10763 echo "${ECHO_T}$hard_links" >&6
10764 if test "$hard_links" = no; then
10765 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10766 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10773 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10774 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10776 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10779 # If we're using GNU nm, then we don't want the "-C" option.
10780 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10781 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10782 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'
10784 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'
10788 export_symbols_cmds_CXX="$ltdll_cmds"
10791 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10794 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10798 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10799 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10800 test "$ld_shlibs_CXX" = no && can_build_shared=no
10802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10803 if test "$GCC" = yes; then
10804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10808 # Do we need to explicitly link libc?
10810 case "x$archive_cmds_need_lc_CXX" in
10812 # Assume -lc should be added
10813 archive_cmds_need_lc_CXX=yes
10815 if test "$enable_shared" = yes && test "$GCC" = yes; then
10816 case $archive_cmds_CXX in
10818 # FIXME: we may have to deal with multi-command sequences.
10821 # Test whether the compiler implicitly links with -lc since on some
10822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10823 # to ld, don't add -lc before -lgcc.
10824 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10825 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10827 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10830 (eval $ac_compile) 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } 2>conftest.err; then
10836 libobjs=conftest.$ac_objext
10838 wl=$lt_prog_compiler_wl_CXX
10844 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10845 allow_undefined_flag_CXX=
10846 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10847 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }
10852 archive_cmds_need_lc_CXX=no
10854 archive_cmds_need_lc_CXX=yes
10856 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10858 cat conftest.err 1>&5
10861 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10862 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10869 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10870 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10871 library_names_spec=
10872 libname_spec='lib$name'
10876 postuninstall_cmds=
10880 shlibpath_overrides_runpath=unknown
10882 dynamic_linker="$host_os ld.so"
10883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10884 if test "$GCC" = yes; then
10885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10886 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10887 # if the path contains ";" then we assume it to be the separator
10888 # otherwise default to the standard path separator (i.e. ":") - it is
10889 # assumed that no part of a normal pathname contains ";" but that should
10890 # okay in the real world where ";" in dirpaths is itself problematic.
10891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10898 need_lib_prefix=unknown
10899 hardcode_into_libs=no
10901 # when you set need_version to no, make sure it does not cause -set_version
10902 # flags to be left without arguments
10903 need_version=unknown
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10909 shlibpath_var=LIBPATH
10911 # AIX 3 has no versioning support, so we append a major version to the name.
10912 soname_spec='${libname}${release}${shared_ext}$major'
10919 hardcode_into_libs=yes
10920 if test "$host_cpu" = ia64; then
10921 # AIX 5 supports IA64
10922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10923 shlibpath_var=LD_LIBRARY_PATH
10925 # With GCC up to 2.95.x, collect2 would create an import file
10926 # for dependence libraries. The import file would start with
10927 # the line `#! .'. This would cause the generated library to
10928 # depend on `.', always an invalid library. This was fixed in
10929 # development snapshots of GCC prior to 3.0.
10931 aix4 | aix4.[01] | aix4.[01].*)
10932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10934 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10937 can_build_shared=no
10941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10942 # soname into executable. Probably we can add versioning support to
10943 # collect2, so additional links can be useful in future.
10944 if test "$aix_use_runtimelinking" = yes; then
10945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10946 # instead of lib<name>.a to let people know that these are not
10947 # typical AIX shared libraries.
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 # We preserve .a as extension for shared libraries through AIX4.2
10951 # and later when we are not doing run time linking.
10952 library_names_spec='${libname}${release}.a $libname.a'
10953 soname_spec='${libname}${release}${shared_ext}$major'
10955 shlibpath_var=LIBPATH
10960 library_names_spec='$libname.ixlibrary $libname.a'
10961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10962 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'
10966 library_names_spec='${libname}${shared_ext}'
10967 dynamic_linker="$host_os ld.so"
10968 shlibpath_var=LIBRARY_PATH
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10977 shlibpath_var=LD_LIBRARY_PATH
10978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10980 # the default ld.so.conf also contains /usr/contrib/lib and
10981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10982 # libtool to hard-code these into programs
10985 cygwin* | mingw* | pw32*)
10986 version_type=windows
10991 case $GCC,$host_os in
10992 yes,cygwin* | yes,mingw* | yes,pw32*)
10993 library_names_spec='$libname.dll.a'
10994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10995 postinstall_cmds='base_file=`basename \${file}`~
10996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10997 dldir=$destdir/`dirname \$dlpath`~
10998 test -d \$dldir || mkdir -p \$dldir~
10999 $install_prog $dir/$dlname \$dldir/$dlname'
11000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11001 dlpath=$dir/\$dldll~
11003 shlibpath_overrides_runpath=yes
11007 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11008 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11009 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11012 # MinGW DLLs use traditional 'lib' prefix
11013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11014 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11015 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11016 # It is most probably a Windows format PATH printed by
11017 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11018 # path with ; separators, and with drive letters. We can handle the
11019 # drive letters (cygwin fileutils understands them), so leave them,
11020 # especially as we might pass files found there to a mingw objdump,
11021 # which wouldn't understand a cygwinified path. Ahh.
11022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11028 # pw32 DLLs use 'pw' prefix rather than 'lib'
11029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11035 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11037 supports_anon_versioning=no
11038 case `$LD -v 2>/dev/null` in
11039 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11040 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11041 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11042 *\ 2.11.*) ;; # other 2.11 versions
11043 *) supports_anon_versioning=yes ;;
11045 if test $supports_anon_versioning = yes; then
11046 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11048 $echo "local: *; };" >> $output_objdir/$libname.ver~
11049 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11051 $archive_expsym_cmds="$archive_cmds"
11059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11062 dynamic_linker='Win32 ld.exe'
11063 # FIXME: first we should search . and the directory the executable is in
11067 darwin* | rhapsody*)
11068 dynamic_linker="$host_os dyld"
11069 version_type=darwin
11072 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11073 soname_spec='${libname}${release}${major}$shared_ext'
11074 shlibpath_overrides_runpath=yes
11075 shlibpath_var=DYLD_LIBRARY_PATH
11076 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11077 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11078 if test "$GCC" = yes; then
11079 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"`
11081 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11083 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 shlibpath_var=LD_LIBRARY_PATH
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath=no
11107 hardcode_into_libs=yes
11108 dynamic_linker='GNU ld.so'
11112 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11113 version_type=freebsd-$objformat
11114 case $version_type in
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11125 shlibpath_var=LD_LIBRARY_PATH
11128 shlibpath_overrides_runpath=yes
11130 freebsd3.01* | freebsdelf3.01*)
11131 shlibpath_overrides_runpath=yes
11132 hardcode_into_libs=yes
11135 shlibpath_overrides_runpath=no
11136 hardcode_into_libs=yes
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 hardcode_into_libs=yes
11151 hpux9* | hpux10* | hpux11*)
11152 # Give a soname corresponding to the major version so that dld.sl refuses to
11153 # link against other versions.
11157 case "$host_cpu" in
11160 hardcode_into_libs=yes
11161 dynamic_linker="$host_os dld.so"
11162 shlibpath_var=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 if test "X$HPUX_IA64_MODE" = X32; then
11167 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11169 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11175 hardcode_into_libs=yes
11176 dynamic_linker="$host_os dld.sl"
11177 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11186 dynamic_linker="$host_os dld.sl"
11187 shlibpath_var=SHLIB_PATH
11188 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 soname_spec='${libname}${release}${shared_ext}$major'
11193 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11194 postinstall_cmds='chmod 555 $lib'
11197 irix5* | irix6* | nonstopux*)
11199 nonstopux*) version_type=nonstopux ;;
11201 if test "$lt_cv_prog_gnu_ld" = yes; then
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11212 irix5* | nonstopux*)
11213 libsuff= shlibsuff=
11216 case $LD in # libtool.m4 will add one of these switches to LD
11217 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11218 libsuff= shlibsuff= libmagic=32-bit;;
11219 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11220 libsuff=32 shlibsuff=N32 libmagic=N32;;
11221 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11222 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11223 *) libsuff= shlibsuff= libmagic=never-match;;
11227 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11228 shlibpath_overrides_runpath=no
11229 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11230 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11231 hardcode_into_libs=yes
11234 # No shared lib support for Linux oldld, aout, or coff.
11235 linux*oldld* | linux*aout* | linux*coff*)
11239 # This must be Linux ELF.
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11247 shlibpath_var=LD_LIBRARY_PATH
11248 shlibpath_overrides_runpath=no
11249 # This implies no fast_install, which is unacceptable.
11250 # Some rework will be needed to allow for fast_install
11251 # before this can be enabled.
11252 hardcode_into_libs=yes
11254 # Append ld.so.conf contents to the search path
11255 if test -f /etc/ld.so.conf; then
11256 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11257 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11260 case $host_cpu:$lt_cv_cc_64bit_output in
11261 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
11262 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
11263 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
11267 # We used to test for /lib/ld.so.1 and disable shared libraries on
11268 # powerpc, because MkLinux only supported shared libraries with the
11269 # GNU dynamic linker. Since this was broken with cross compilers,
11270 # most powerpc-linux boxes support dynamic linking these days and
11271 # people can always --disable-shared, the test was removed, and we
11272 # assume the GNU/Linux dynamic linker is in use.
11273 dynamic_linker='GNU/Linux ld.so'
11275 # Find out which ABI we are using (multilib Linux x86_64 hack).
11277 case "$host_cpu" in
11279 echo '#line 11279 "configure"' > conftest.$ac_ext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11281 (eval $ac_compile) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; then
11285 case `/usr/bin/file conftest.$ac_objext` in
11296 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11297 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=no
11308 hardcode_into_libs=yes
11309 dynamic_linker='GNU ld.so'
11316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11319 dynamic_linker='NetBSD (a.out) ld.so'
11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 dynamic_linker='NetBSD ld.elf_so'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=yes
11327 hardcode_into_libs=yes
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 shlibpath_overrides_runpath=yes
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11356 openbsd2.[89] | openbsd2.[89].*)
11357 shlibpath_overrides_runpath=no
11360 shlibpath_overrides_runpath=yes
11364 shlibpath_overrides_runpath=yes
11369 libname_spec='$name'
11372 library_names_spec='$libname${shared_ext} $libname.a'
11373 dynamic_linker='OS/2 ld.exe'
11374 shlibpath_var=LIBPATH
11377 osf3* | osf4* | osf5*)
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 shlibpath_var=LD_LIBRARY_PATH
11384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392 shlibpath_var=LD_LIBRARY_PATH
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11400 soname_spec='${libname}${release}${shared_ext}$major'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=yes
11403 hardcode_into_libs=yes
11404 # ldd complains unless libraries are executable
11405 postinstall_cmds='chmod +x $lib'
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11412 shlibpath_var=LD_LIBRARY_PATH
11413 shlibpath_overrides_runpath=yes
11414 if test "$with_gnu_ld" = yes; then
11420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 case $host_vendor in
11427 shlibpath_overrides_runpath=no
11429 export_dynamic_flag_spec='${wl}-Blargedynsym'
11430 runpath_var=LD_RUN_PATH
11438 shlibpath_overrides_runpath=no
11439 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11445 if test -d /usr/nec ;then
11447 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11448 soname_spec='$libname${shared_ext}.$major'
11449 shlibpath_var=LD_LIBRARY_PATH
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 shlibpath_var=LD_LIBRARY_PATH
11464 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11465 echo "${ECHO_T}$dynamic_linker" >&6
11466 test "$dynamic_linker" = no && can_build_shared=no
11468 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11469 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11470 hardcode_action_CXX=
11471 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11472 test -n "$runpath_var CXX" || \
11473 test "X$hardcode_automatic_CXX"="Xyes" ; then
11475 # We can hardcode non-existant directories.
11476 if test "$hardcode_direct_CXX" != no &&
11477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11478 # have to relink, otherwise we might link with an installed library
11479 # when we should be linking with a yet-to-be-installed one
11480 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11481 test "$hardcode_minus_L_CXX" != no; then
11482 # Linking always hardcodes the temporary library directory.
11483 hardcode_action_CXX=relink
11485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11486 hardcode_action_CXX=immediate
11489 # We cannot hardcode anything, or else we can only hardcode existing
11491 hardcode_action_CXX=unsupported
11493 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11494 echo "${ECHO_T}$hardcode_action_CXX" >&6
11496 if test "$hardcode_action_CXX" = relink; then
11497 # Fast installation is not supported
11498 enable_fast_install=no
11499 elif test "$shlibpath_overrides_runpath" = yes ||
11500 test "$enable_shared" = no; then
11501 # Fast installation is not necessary
11502 enable_fast_install=needless
11507 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11508 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11509 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11510 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11511 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11512 echo "$as_me:$LINENO: result: yes" >&5
11513 echo "${ECHO_T}yes" >&6
11515 # FIXME - insert some real tests, host_os isn't really good enough
11518 if test -n "$STRIP" ; then
11519 striplib="$STRIP -x"
11520 echo "$as_me:$LINENO: result: yes" >&5
11521 echo "${ECHO_T}yes" >&6
11523 echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6
11528 echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6
11534 if test "x$enable_dlopen" != xyes; then
11535 enable_dlopen=unknown
11536 enable_dlopen_self=unknown
11537 enable_dlopen_self_static=unknown
11544 lt_cv_dlopen="load_add_on"
11546 lt_cv_dlopen_self=yes
11550 lt_cv_dlopen="LoadLibrary"
11555 lt_cv_dlopen="dlopen"
11560 # if libdl is installed we need to link against it
11561 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11562 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11563 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 ac_check_lib_save_LIBS=$LIBS
11568 cat >conftest.$ac_ext <<_ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11575 /* Override any gcc2 internal prototype to avoid an error. */
11579 /* We use char because int might match the return type of a gcc2
11580 builtin and then its argument prototype would still apply. */
11590 rm -f conftest.$ac_objext conftest$ac_exeext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11592 (eval $ac_link) 2>conftest.er1
11594 grep -v '^ *+' conftest.er1 >conftest.err
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_cxx_werror_flag"
11600 || test ! -s conftest.err'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; } &&
11606 { ac_try='test -s conftest$ac_exeext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 ac_cv_lib_dl_dlopen=yes
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11617 ac_cv_lib_dl_dlopen=no
11619 rm -f conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 LIBS=$ac_check_lib_save_LIBS
11623 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11625 if test $ac_cv_lib_dl_dlopen = yes; then
11626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11629 lt_cv_dlopen="dyld"
11631 lt_cv_dlopen_self=yes
11638 echo "$as_me:$LINENO: checking for shl_load" >&5
11639 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11640 if test "${ac_cv_func_shl_load+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11651 #define shl_load innocuous_shl_load
11653 /* System header to define __stub macros and hopefully few prototypes,
11654 which can conflict with char shl_load (); below.
11655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11656 <limits.h> exists even on freestanding compilers. */
11659 # include <limits.h>
11661 # include <assert.h>
11666 /* Override any gcc2 internal prototype to avoid an error. */
11671 /* We use char because int might match the return type of a gcc2
11672 builtin and then its argument prototype would still apply. */
11674 /* The GNU C library defines this for functions which it implements
11675 to always fail with ENOSYS. Some functions are actually named
11676 something starting with __ and the normal name is an alias. */
11677 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11680 char (*f) () = shl_load;
11689 return f != shl_load;
11694 rm -f conftest.$ac_objext conftest$ac_exeext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11696 (eval $ac_link) 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -z "$ac_cxx_werror_flag"
11704 || test ! -s conftest.err'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 ac_cv_func_shl_load=yes
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 ac_cv_func_shl_load=no
11723 rm -f conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11726 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11727 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11728 if test $ac_cv_func_shl_load = yes; then
11729 lt_cv_dlopen="shl_load"
11731 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11732 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11733 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 ac_check_lib_save_LIBS=$LIBS
11738 cat >conftest.$ac_ext <<_ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11745 /* Override any gcc2 internal prototype to avoid an error. */
11749 /* We use char because int might match the return type of a gcc2
11750 builtin and then its argument prototype would still apply. */
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11762 (eval $ac_link) 2>conftest.er1
11764 grep -v '^ *+' conftest.er1 >conftest.err
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_cxx_werror_flag"
11770 || test ! -s conftest.err'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; } &&
11776 { ac_try='test -s conftest$ac_exeext'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 ac_cv_lib_dld_shl_load=yes
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 ac_cv_lib_dld_shl_load=no
11789 rm -f conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_lib_save_LIBS
11793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11794 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11795 if test $ac_cv_lib_dld_shl_load = yes; then
11796 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11798 echo "$as_me:$LINENO: checking for dlopen" >&5
11799 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11800 if test "${ac_cv_func_dlopen+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11811 #define dlopen innocuous_dlopen
11813 /* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char dlopen (); below.
11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816 <limits.h> exists even on freestanding compilers. */
11819 # include <limits.h>
11821 # include <assert.h>
11826 /* Override any gcc2 internal prototype to avoid an error. */
11831 /* We use char because int might match the return type of a gcc2
11832 builtin and then its argument prototype would still apply. */
11834 /* The GNU C library defines this for functions which it implements
11835 to always fail with ENOSYS. Some functions are actually named
11836 something starting with __ and the normal name is an alias. */
11837 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11840 char (*f) () = dlopen;
11849 return f != dlopen;
11854 rm -f conftest.$ac_objext conftest$ac_exeext
11855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11856 (eval $ac_link) 2>conftest.er1
11858 grep -v '^ *+' conftest.er1 >conftest.err
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } &&
11863 { ac_try='test -z "$ac_cxx_werror_flag"
11864 || test ! -s conftest.err'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_func_dlopen=yes
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11881 ac_cv_func_dlopen=no
11883 rm -f conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11886 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11887 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11888 if test $ac_cv_func_dlopen = yes; then
11889 lt_cv_dlopen="dlopen"
11891 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11892 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 ac_check_lib_save_LIBS=$LIBS
11898 cat >conftest.$ac_ext <<_ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11905 /* Override any gcc2 internal prototype to avoid an error. */
11909 /* We use char because int might match the return type of a gcc2
11910 builtin and then its argument prototype would still apply. */
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922 (eval $ac_link) 2>conftest.er1
11924 grep -v '^ *+' conftest.er1 >conftest.err
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -z "$ac_cxx_werror_flag"
11930 || test ! -s conftest.err'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest$ac_exeext'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 ac_cv_lib_dl_dlopen=yes
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 ac_cv_lib_dl_dlopen=no
11949 rm -f conftest.err conftest.$ac_objext \
11950 conftest$ac_exeext conftest.$ac_ext
11951 LIBS=$ac_check_lib_save_LIBS
11953 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11954 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11955 if test $ac_cv_lib_dl_dlopen = yes; then
11956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11958 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11959 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11960 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 ac_check_lib_save_LIBS=$LIBS
11964 LIBS="-lsvld $LIBS"
11965 cat >conftest.$ac_ext <<_ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11972 /* Override any gcc2 internal prototype to avoid an error. */
11976 /* We use char because int might match the return type of a gcc2
11977 builtin and then its argument prototype would still apply. */
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989 (eval $ac_link) 2>conftest.er1
11991 grep -v '^ *+' conftest.er1 >conftest.err
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -z "$ac_cxx_werror_flag"
11997 || test ! -s conftest.err'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; } &&
12003 { ac_try='test -s conftest$ac_exeext'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009 ac_cv_lib_svld_dlopen=yes
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12014 ac_cv_lib_svld_dlopen=no
12016 rm -f conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12020 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12021 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12022 if test $ac_cv_lib_svld_dlopen = yes; then
12023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12025 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12026 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12027 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 ac_check_lib_save_LIBS=$LIBS
12032 cat >conftest.$ac_ext <<_ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12039 /* Override any gcc2 internal prototype to avoid an error. */
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -z "$ac_cxx_werror_flag"
12064 || test ! -s conftest.err'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; } &&
12070 { ac_try='test -s conftest$ac_exeext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_lib_dld_dld_link=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_cv_lib_dld_dld_link=no
12083 rm -f conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12087 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12089 if test $ac_cv_lib_dld_dld_link = yes; then
12090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12111 if test "x$lt_cv_dlopen" != xno; then
12117 case $lt_cv_dlopen in
12119 save_CPPFLAGS="$CPPFLAGS"
12120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12122 save_LDFLAGS="$LDFLAGS"
12123 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12126 LIBS="$lt_cv_dlopen_libs $LIBS"
12128 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12130 if test "${lt_cv_dlopen_self+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 if test "$cross_compiling" = yes; then :
12134 lt_cv_dlopen_self=cross
12136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12137 lt_status=$lt_dlunknown
12138 cat > conftest.$ac_ext <<EOF
12139 #line 12139 "configure"
12140 #include "confdefs.h"
12149 # define LT_DLGLOBAL RTLD_GLOBAL
12152 # define LT_DLGLOBAL DL_GLOBAL
12154 # define LT_DLGLOBAL 0
12158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12159 find out it does not work in some platform. */
12160 #ifndef LT_DLLAZY_OR_NOW
12162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12165 # define LT_DLLAZY_OR_NOW DL_LAZY
12168 # define LT_DLLAZY_OR_NOW RTLD_NOW
12171 # define LT_DLLAZY_OR_NOW DL_NOW
12173 # define LT_DLLAZY_OR_NOW 0
12181 extern "C" void exit (int);
12184 void fnord() { int i=42;}
12187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12188 int status = $lt_dlunknown;
12192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12194 /* dlclose (self); */
12200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12201 (eval $ac_link) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12205 (./conftest; exit; ) 2>/dev/null
12207 case x$lt_status in
12208 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12209 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12210 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12213 # compilation failed
12214 lt_cv_dlopen_self=no
12221 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12222 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12224 if test "x$lt_cv_dlopen_self" = xyes; then
12225 LDFLAGS="$LDFLAGS $link_static_flag"
12226 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12227 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12228 if test "${lt_cv_dlopen_self_static+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 if test "$cross_compiling" = yes; then :
12232 lt_cv_dlopen_self_static=cross
12234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12235 lt_status=$lt_dlunknown
12236 cat > conftest.$ac_ext <<EOF
12237 #line 12237 "configure"
12238 #include "confdefs.h"
12247 # define LT_DLGLOBAL RTLD_GLOBAL
12250 # define LT_DLGLOBAL DL_GLOBAL
12252 # define LT_DLGLOBAL 0
12256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12257 find out it does not work in some platform. */
12258 #ifndef LT_DLLAZY_OR_NOW
12260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12263 # define LT_DLLAZY_OR_NOW DL_LAZY
12266 # define LT_DLLAZY_OR_NOW RTLD_NOW
12269 # define LT_DLLAZY_OR_NOW DL_NOW
12271 # define LT_DLLAZY_OR_NOW 0
12279 extern "C" void exit (int);
12282 void fnord() { int i=42;}
12285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12286 int status = $lt_dlunknown;
12290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12292 /* dlclose (self); */
12298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12303 (./conftest; exit; ) 2>/dev/null
12305 case x$lt_status in
12306 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12307 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12308 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12311 # compilation failed
12312 lt_cv_dlopen_self_static=no
12319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12320 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12323 CPPFLAGS="$save_CPPFLAGS"
12324 LDFLAGS="$save_LDFLAGS"
12329 case $lt_cv_dlopen_self in
12330 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12331 *) enable_dlopen_self=unknown ;;
12334 case $lt_cv_dlopen_self_static in
12335 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12336 *) enable_dlopen_self_static=unknown ;;
12341 # The else clause should only fire when bootstrapping the
12342 # libtool distribution, otherwise you forgot to ship ltmain.sh
12343 # with your package, and you will get complaints that there are
12344 # no rules to generate ltmain.sh.
12345 if test -f "$ltmain"; then
12346 # See if we are running on zsh, and set the options which allow our commands through
12347 # without removal of \ escapes.
12348 if test -n "${ZSH_VERSION+set}" ; then
12349 setopt NO_GLOB_SUBST
12351 # Now quote all the things that may contain metacharacters while being
12352 # careful not to overquote the AC_SUBSTed values. We take copies of the
12353 # variables and quote the copies for generation of the libtool script.
12354 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12356 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12357 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12358 deplibs_check_method reload_flag reload_cmds need_locks \
12359 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12360 lt_cv_sys_global_symbol_to_c_name_address \
12361 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12362 old_postinstall_cmds old_postuninstall_cmds \
12366 lt_prog_compiler_wl_CXX \
12367 lt_prog_compiler_pic_CXX \
12368 lt_prog_compiler_static_CXX \
12369 lt_prog_compiler_no_builtin_flag_CXX \
12370 export_dynamic_flag_spec_CXX \
12371 thread_safe_flag_spec_CXX \
12372 whole_archive_flag_spec_CXX \
12373 enable_shared_with_static_runtimes_CXX \
12374 old_archive_cmds_CXX \
12375 old_archive_from_new_cmds_CXX \
12376 predep_objects_CXX \
12377 postdep_objects_CXX \
12380 compiler_lib_search_path_CXX \
12382 archive_expsym_cmds_CXX \
12383 postinstall_cmds_CXX \
12384 postuninstall_cmds_CXX \
12385 old_archive_from_expsyms_cmds_CXX \
12386 allow_undefined_flag_CXX \
12387 no_undefined_flag_CXX \
12388 export_symbols_cmds_CXX \
12389 hardcode_libdir_flag_spec_CXX \
12390 hardcode_libdir_flag_spec_ld_CXX \
12391 hardcode_libdir_separator_CXX \
12392 hardcode_automatic_CXX \
12394 module_expsym_cmds_CXX \
12395 lt_cv_prog_compiler_c_o_CXX \
12396 exclude_expsyms_CXX \
12397 include_expsyms_CXX; do
12400 old_archive_cmds_CXX | \
12401 old_archive_from_new_cmds_CXX | \
12402 archive_cmds_CXX | \
12403 archive_expsym_cmds_CXX | \
12404 module_cmds_CXX | \
12405 module_expsym_cmds_CXX | \
12406 old_archive_from_expsyms_cmds_CXX | \
12407 export_symbols_cmds_CXX | \
12408 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12409 postinstall_cmds | postuninstall_cmds | \
12410 old_postinstall_cmds | old_postuninstall_cmds | \
12411 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12412 # Double-quote double-evaled strings.
12413 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12416 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12422 *'\$0 --fallback-echo"')
12423 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12429 cat <<__EOF__ >> "$cfgfile"
12430 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12432 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12434 # Shell to use when invoking shell scripts.
12437 # Whether or not to build shared libraries.
12438 build_libtool_libs=$enable_shared
12440 # Whether or not to build static libraries.
12441 build_old_libs=$enable_static
12443 # Whether or not to add -lc for building shared libraries.
12444 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12446 # Whether or not to disallow shared libs when runtime libs are static
12447 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12449 # Whether or not to optimize for fast installation.
12450 fast_install=$enable_fast_install
12453 host_alias=$host_alias
12456 # An echo program that does not interpret backslashes.
12461 AR_FLAGS=$lt_AR_FLAGS
12466 # A language-specific compiler.
12467 CC=$lt_compiler_CXX
12469 # Is the compiler the GNU C compiler?
12475 # The linker used to build libraries.
12478 # Whether we need hard or soft links.
12481 # A BSD-compatible nm program.
12484 # A symbol stripping program
12487 # Used to examine libraries when file_magic_cmd begins "file"
12488 MAGIC_CMD=$MAGIC_CMD
12490 # Used on cygwin: DLL creation program.
12493 # Used on cygwin: object dumper.
12496 # Used on cygwin: assembler.
12499 # The name of the directory that contains temporary libtool files.
12502 # How to create reloadable object files.
12503 reload_flag=$lt_reload_flag
12504 reload_cmds=$lt_reload_cmds
12506 # How to pass a linker flag through the compiler.
12507 wl=$lt_lt_prog_compiler_wl_CXX
12509 # Object file suffix (normally "o").
12510 objext="$ac_objext"
12512 # Old archive suffix (normally "a").
12515 # Shared library suffix (normally ".so").
12518 # Executable file suffix (normally "").
12521 # Additional compiler flags for building library objects.
12522 pic_flag=$lt_lt_prog_compiler_pic_CXX
12525 # What is the maximum length of a command?
12526 max_cmd_len=$lt_cv_sys_max_cmd_len
12528 # Does compiler simultaneously support -c and -o options?
12529 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12531 # Must we lock files when doing compilation ?
12532 need_locks=$lt_need_locks
12534 # Do we need the lib prefix for modules?
12535 need_lib_prefix=$need_lib_prefix
12537 # Do we need a version for libraries?
12538 need_version=$need_version
12540 # Whether dlopen is supported.
12541 dlopen_support=$enable_dlopen
12543 # Whether dlopen of programs is supported.
12544 dlopen_self=$enable_dlopen_self
12546 # Whether dlopen of statically linked programs is supported.
12547 dlopen_self_static=$enable_dlopen_self_static
12549 # Compiler flag to prevent dynamic linking.
12550 link_static_flag=$lt_lt_prog_compiler_static_CXX
12552 # Compiler flag to turn off builtin functions.
12553 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12555 # Compiler flag to allow reflexive dlopens.
12556 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12558 # Compiler flag to generate shared objects directly from archives.
12559 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12561 # Compiler flag to generate thread-safe objects.
12562 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12564 # Library versioning type.
12565 version_type=$version_type
12567 # Format of library name prefix.
12568 libname_spec=$lt_libname_spec
12570 # List of archive names. First name is the real one, the rest are links.
12571 # The last name is the one that the linker finds with -lNAME.
12572 library_names_spec=$lt_library_names_spec
12574 # The coded name of the library, if different from the real name.
12575 soname_spec=$lt_soname_spec
12577 # Commands used to build and install an old-style archive.
12579 old_archive_cmds=$lt_old_archive_cmds_CXX
12580 old_postinstall_cmds=$lt_old_postinstall_cmds
12581 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12583 # Create an old-style archive from a shared archive.
12584 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12586 # Create a temporary old-style archive to link instead of a shared archive.
12587 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12589 # Commands used to build and install a shared archive.
12590 archive_cmds=$lt_archive_cmds_CXX
12591 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12592 postinstall_cmds=$lt_postinstall_cmds
12593 postuninstall_cmds=$lt_postuninstall_cmds
12595 # Commands used to build a loadable module (assumed same as above if empty)
12596 module_cmds=$lt_module_cmds_CXX
12597 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12599 # Commands to strip libraries.
12600 old_striplib=$lt_old_striplib
12601 striplib=$lt_striplib
12603 # Dependencies to place before the objects being linked to create a
12605 predep_objects=$lt_predep_objects_CXX
12607 # Dependencies to place after the objects being linked to create a
12609 postdep_objects=$lt_postdep_objects_CXX
12611 # Dependencies to place before the objects being linked to create a
12613 predeps=$lt_predeps_CXX
12615 # Dependencies to place after the objects being linked to create a
12617 postdeps=$lt_postdeps_CXX
12619 # The library search path used internally by the compiler when linking
12620 # a shared library.
12621 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12623 # Method to check whether dependent libraries are shared objects.
12624 deplibs_check_method=$lt_deplibs_check_method
12626 # Command to use when deplibs_check_method == file_magic.
12627 file_magic_cmd=$lt_file_magic_cmd
12629 # Flag that allows shared libraries with undefined symbols to be built.
12630 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12632 # Flag that forces no undefined symbols.
12633 no_undefined_flag=$lt_no_undefined_flag_CXX
12635 # Commands used to finish a libtool library installation in a directory.
12636 finish_cmds=$lt_finish_cmds
12638 # Same as above, but a single script fragment to be evaled but not shown.
12639 finish_eval=$lt_finish_eval
12641 # Take the output of nm and produce a listing of raw symbols and C names.
12642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12644 # Transform the output of nm in a proper C declaration
12645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12647 # Transform the output of nm in a C name address pair
12648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12650 # This is the shared library runtime path variable.
12651 runpath_var=$runpath_var
12653 # This is the shared library path variable.
12654 shlibpath_var=$shlibpath_var
12656 # Is shlibpath searched before the hard-coded library search path?
12657 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12659 # How to hardcode a shared library path into an executable.
12660 hardcode_action=$hardcode_action_CXX
12662 # Whether we should hardcode library paths into libraries.
12663 hardcode_into_libs=$hardcode_into_libs
12665 # Flag to hardcode \$libdir into a binary during linking.
12666 # This must work even if \$libdir does not exist.
12667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12669 # If ld is used when linking, flag to hardcode \$libdir into
12670 # a binary during linking. This must work even if \$libdir does
12672 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12674 # Whether we need a single -rpath flag with a separated argument.
12675 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12677 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12678 # resulting binary.
12679 hardcode_direct=$hardcode_direct_CXX
12681 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12682 # resulting binary.
12683 hardcode_minus_L=$hardcode_minus_L_CXX
12685 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12686 # the resulting binary.
12687 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12689 # Set to yes if building a shared library automatically hardcodes DIR into the library
12690 # and all subsequent libraries and executables linked against it.
12691 hardcode_automatic=$hardcode_automatic_CXX
12693 # Variables whose values should be saved in libtool wrapper scripts and
12694 # restored at relink time.
12695 variables_saved_for_relink="$variables_saved_for_relink"
12697 # Whether libtool must link a program against all its dependency libraries.
12698 link_all_deplibs=$link_all_deplibs_CXX
12700 # Compile-time system search path for libraries
12701 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12703 # Run-time system search path for libraries
12704 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12706 # Fix the shell variable \$srcfile for the compiler.
12707 fix_srcfile_path="$fix_srcfile_path_CXX"
12709 # Set to yes if exported symbols are required.
12710 always_export_symbols=$always_export_symbols_CXX
12712 # The commands to list exported symbols.
12713 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12715 # The commands to extract the exported symbol list from a shared archive.
12716 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12718 # Symbols that should not be listed in the preloaded symbols.
12719 exclude_expsyms=$lt_exclude_expsyms_CXX
12721 # Symbols that must always be exported.
12722 include_expsyms=$lt_include_expsyms_CXX
12724 # ### END LIBTOOL TAG CONFIG: $tagname
12730 # If there is no Makefile yet, we rely on a make rule to execute
12731 # `config.status --recheck' to rerun these tests and create the
12732 # libtool script then.
12733 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12734 if test -f "$ltmain_in"; then
12735 test -f Makefile && make "$ltmain"
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12750 with_gnu_ldcxx=$with_gnu_ld
12751 with_gnu_ld=$lt_save_with_gnu_ld
12752 lt_cv_path_LDCXX=$lt_cv_path_LD
12753 lt_cv_path_LD=$lt_save_path_LD
12754 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12755 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12763 if test -n "$F77" && test "X$F77" != "Xno"; then
12766 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12767 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12771 archive_cmds_need_lc_F77=no
12772 allow_undefined_flag_F77=
12773 always_export_symbols_F77=no
12774 archive_expsym_cmds_F77=
12775 export_dynamic_flag_spec_F77=
12776 hardcode_direct_F77=no
12777 hardcode_libdir_flag_spec_F77=
12778 hardcode_libdir_flag_spec_ld_F77=
12779 hardcode_libdir_separator_F77=
12780 hardcode_minus_L_F77=no
12781 hardcode_automatic_F77=no
12783 module_expsym_cmds_F77=
12784 link_all_deplibs_F77=unknown
12785 old_archive_cmds_F77=$old_archive_cmds
12786 no_undefined_flag_F77=
12787 whole_archive_flag_spec_F77=
12788 enable_shared_with_static_runtimes_F77=no
12790 # Source file extension for f77 test sources.
12793 # Object file extension for compiled f77 test sources.
12797 # Code to be used in simple compile tests
12798 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12800 # Code to be used in simple link tests
12801 lt_simple_link_test_code=" program t\n end\n"
12803 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12805 # If no C compiler was specified, use CC.
12808 # Allow CC to be a program name with arguments.
12812 # Allow CC to be a program name with arguments.
12817 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12819 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12820 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12821 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12822 echo "${ECHO_T}$can_build_shared" >&6
12824 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12825 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12826 test "$can_build_shared" = "no" && enable_shared=no
12828 # On AIX, shared libraries and static libraries use the same namespace, and
12829 # are all built from PIC.
12832 test "$enable_shared" = yes && enable_static=no
12833 if test -n "$RANLIB"; then
12834 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12835 postinstall_cmds='$RANLIB $lib'
12839 test "$enable_shared" = yes && enable_static=no
12842 echo "$as_me:$LINENO: result: $enable_shared" >&5
12843 echo "${ECHO_T}$enable_shared" >&6
12845 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12846 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12847 # Make sure either enable_shared or enable_static is yes.
12848 test "$enable_shared" = yes || enable_static=yes
12849 echo "$as_me:$LINENO: result: $enable_static" >&5
12850 echo "${ECHO_T}$enable_static" >&6
12852 test "$ld_shlibs_F77" = no && can_build_shared=no
12857 lt_prog_compiler_wl_F77=
12858 lt_prog_compiler_pic_F77=
12859 lt_prog_compiler_static_F77=
12861 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12862 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12864 if test "$GCC" = yes; then
12865 lt_prog_compiler_wl_F77='-Wl,'
12866 lt_prog_compiler_static_F77='-static'
12870 # All AIX code is PIC.
12871 if test "$host_cpu" = ia64; then
12872 # AIX 5 now supports IA64 processor
12873 lt_prog_compiler_static_F77='-Bstatic'
12878 # FIXME: we need at least 68020 code to build shared libraries, but
12879 # adding the `-m68020' flag to GCC prevents building anything better,
12881 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12884 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12885 # PIC is the default for these OSes.
12888 mingw* | pw32* | os2*)
12889 # This hack is so that the source file can tell whether it is being
12890 # built for inclusion in a dll (and should export symbols for example).
12891 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12894 darwin* | rhapsody*)
12895 # PIC is the default on this platform
12896 # Common symbols not allowed in MH_DYLIB files
12897 lt_prog_compiler_pic_F77='-fno-common'
12901 # Just because we use GCC doesn't mean we suddenly get shared libraries
12902 # on systems that don't support them.
12903 lt_prog_compiler_can_build_shared_F77=no
12908 if test -d /usr/nec; then
12909 lt_prog_compiler_pic_F77=-Kconform_pic
12914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12915 # not for PA HP-UX.
12916 case "$host_cpu" in
12921 lt_prog_compiler_pic_F77='-fPIC'
12927 lt_prog_compiler_pic_F77='-fPIC'
12931 # PORTME Check for flag to pass linker flags through the system compiler.
12934 lt_prog_compiler_wl_F77='-Wl,'
12935 if test "$host_cpu" = ia64; then
12936 # AIX 5 now supports IA64 processor
12937 lt_prog_compiler_static_F77='-Bstatic'
12939 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12943 mingw* | pw32* | os2*)
12944 # This hack is so that the source file can tell whether it is being
12945 # built for inclusion in a dll (and should export symbols for example).
12946 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12949 hpux9* | hpux10* | hpux11*)
12950 lt_prog_compiler_wl_F77='-Wl,'
12951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12952 # not for PA HP-UX.
12953 case "$host_cpu" in
12958 lt_prog_compiler_pic_F77='+Z'
12961 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12962 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12965 irix5* | irix6* | nonstopux*)
12966 lt_prog_compiler_wl_F77='-Wl,'
12967 # PIC (with -KPIC) is the default.
12968 lt_prog_compiler_static_F77='-non_shared'
12972 lt_prog_compiler_pic_F77='-KPIC'
12973 lt_prog_compiler_static_F77='-Bstatic'
12979 lt_prog_compiler_wl_F77='-Wl,'
12980 lt_prog_compiler_pic_F77='-KPIC'
12981 lt_prog_compiler_static_F77='-static'
12984 lt_prog_compiler_wl_F77='-Wl,'
12985 # All Alpha code is PIC.
12986 lt_prog_compiler_static_F77='-non_shared'
12991 osf3* | osf4* | osf5*)
12992 lt_prog_compiler_wl_F77='-Wl,'
12993 # All OSF/1 code is PIC.
12994 lt_prog_compiler_static_F77='-non_shared'
12998 lt_prog_compiler_pic_F77='-Kpic'
12999 lt_prog_compiler_static_F77='-dn'
13003 lt_prog_compiler_wl_F77='-Wl,'
13004 lt_prog_compiler_pic_F77='-KPIC'
13005 lt_prog_compiler_static_F77='-Bstatic'
13009 lt_prog_compiler_wl_F77='-Qoption ld '
13010 lt_prog_compiler_pic_F77='-PIC'
13011 lt_prog_compiler_static_F77='-Bstatic'
13014 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13015 lt_prog_compiler_wl_F77='-Wl,'
13016 lt_prog_compiler_pic_F77='-KPIC'
13017 lt_prog_compiler_static_F77='-Bstatic'
13021 if test -d /usr/nec ;then
13022 lt_prog_compiler_pic_F77='-Kconform_pic'
13023 lt_prog_compiler_static_F77='-Bstatic'
13028 lt_prog_compiler_pic_F77='-pic'
13029 lt_prog_compiler_static_F77='-Bstatic'
13033 lt_prog_compiler_can_build_shared_F77=no
13038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13039 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13042 # Check to make sure the PIC flag actually works.
13044 if test -n "$lt_prog_compiler_pic_F77"; then
13046 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13048 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 lt_prog_compiler_pic_works_F77=no
13052 ac_outfile=conftest.$ac_objext
13053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13054 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13055 # Insert the option either (1) after the last *FLAGS variable, or
13056 # (2) before a word containing "conftest.", or (3) at the end.
13057 # Note that $ac_compile itself does not contain backslashes and begins
13058 # with a dollar sign (not a hyphen), so the echo should work correctly.
13059 # The option is referenced via a variable to avoid confusing sed.
13060 lt_compile=`echo "$ac_compile" | $SED \
13061 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13063 -e 's:$: $lt_compiler_flag:'`
13064 (eval echo "\"\$as_me:13064: $lt_compile\"" >&5)
13065 (eval "$lt_compile" 2>conftest.err)
13067 cat conftest.err >&5
13068 echo "$as_me:13068: \$? = $ac_status" >&5
13069 if (exit $ac_status) && test -s "$ac_outfile"; then
13070 # The compiler can only warn and ignore the option if not recognized
13071 # So say no if there are warnings
13072 if test ! -s conftest.err; then
13073 lt_prog_compiler_pic_works_F77=yes
13079 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13080 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13082 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13083 case $lt_prog_compiler_pic_F77 in
13085 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13088 lt_prog_compiler_pic_F77=
13089 lt_prog_compiler_can_build_shared_F77=no
13094 # For platforms which do not support PIC, -DPIC is meaningless:
13096 lt_prog_compiler_pic_F77=
13099 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13103 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13105 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 lt_cv_prog_compiler_c_o_F77=no
13109 $rm -r conftest 2>/dev/null
13113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13115 lt_compiler_flag="-o out/conftest2.$ac_objext"
13116 # Insert the option either (1) after the last *FLAGS variable, or
13117 # (2) before a word containing "conftest.", or (3) at the end.
13118 # Note that $ac_compile itself does not contain backslashes and begins
13119 # with a dollar sign (not a hyphen), so the echo should work correctly.
13120 lt_compile=`echo "$ac_compile" | $SED \
13121 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13123 -e 's:$: $lt_compiler_flag:'`
13124 (eval echo "\"\$as_me:13124: $lt_compile\"" >&5)
13125 (eval "$lt_compile" 2>out/conftest.err)
13127 cat out/conftest.err >&5
13128 echo "$as_me:13128: \$? = $ac_status" >&5
13129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13131 # The compiler can only warn and ignore the option if not recognized
13132 # So say no if there are warnings
13133 if test ! -s out/conftest.err; then
13134 lt_cv_prog_compiler_c_o_F77=yes
13139 # SGI C++ compiler will create directory out/ii_files/ for
13140 # template instantiation
13141 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13142 $rm out/* && rmdir out
13148 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13152 hard_links="nottested"
13153 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13154 # do not overwrite the value of need_locks provided by the user
13155 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13161 ln conftest.a conftest.b 2>&5 || hard_links=no
13162 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13163 echo "$as_me:$LINENO: result: $hard_links" >&5
13164 echo "${ECHO_T}$hard_links" >&6
13165 if test "$hard_links" = no; then
13166 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13174 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13178 allow_undefined_flag_F77=
13179 enable_shared_with_static_runtimes_F77=no
13181 archive_expsym_cmds_F77=
13182 old_archive_From_new_cmds_F77=
13183 old_archive_from_expsyms_cmds_F77=
13184 export_dynamic_flag_spec_F77=
13185 whole_archive_flag_spec_F77=
13186 thread_safe_flag_spec_F77=
13187 hardcode_libdir_flag_spec_F77=
13188 hardcode_libdir_flag_spec_ld_F77=
13189 hardcode_libdir_separator_F77=
13190 hardcode_direct_F77=no
13191 hardcode_minus_L_F77=no
13192 hardcode_shlibpath_var_F77=unsupported
13193 link_all_deplibs_F77=unknown
13194 hardcode_automatic_F77=no
13196 module_expsym_cmds_F77=
13197 always_export_symbols_F77=no
13198 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13199 # include_expsyms should be a list of space-separated symbols to be *always*
13200 # included in the symbol list
13201 include_expsyms_F77=
13202 # exclude_expsyms can be an extended regexp of symbols to exclude
13203 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13204 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13205 # as well as any symbol that contains `d'.
13206 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13207 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13208 # platforms (ab)use it in PIC code, but their linkers get confused if
13209 # the symbol is explicitly referenced. Since portable code cannot
13210 # rely on this symbol name, it's probably fine to never include it in
13211 # preloaded symbol tables.
13212 extract_expsyms_cmds=
13215 cygwin* | mingw* | pw32*)
13216 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13217 # When not using gcc, we currently assume that we are using
13218 # Microsoft Visual C++.
13219 if test "$GCC" != yes; then
13229 if test "$with_gnu_ld" = yes; then
13230 # If archive_cmds runs LD, not CC, wlarc should be empty
13233 # See if GNU ld supports shared libraries.
13235 aix3* | aix4* | aix5*)
13236 # On AIX/PPC, the GNU linker is very broken
13237 if test "$host_cpu" != ia64; then
13241 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13242 *** to be unable to reliably create shared libraries on AIX.
13243 *** Therefore, libtool is disabling shared libraries support. If you
13244 *** really care for shared libraries, you may want to modify your PATH
13245 *** so that a non-GNU linker is found, and then restart.
13252 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)'
13253 hardcode_libdir_flag_spec_F77='-L$libdir'
13254 hardcode_minus_L_F77=yes
13256 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13257 # that the semantics of dynamic libraries on AmigaOS, at least up
13258 # to version 4, is to share data among multiple programs linked
13259 # with the same dynamic library. Since this doesn't match the
13260 # behavior of shared libraries on other platforms, we can't use
13266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13267 allow_undefined_flag_F77=unsupported
13268 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13269 # support --undefined. This deserves some investigation. FIXME
13270 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13276 cygwin* | mingw* | pw32*)
13277 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13278 # as there is no search path for DLLs.
13279 hardcode_libdir_flag_spec_F77='-L$libdir'
13280 allow_undefined_flag_F77=unsupported
13281 always_export_symbols_F77=no
13282 enable_shared_with_static_runtimes_F77=yes
13283 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13285 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13286 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13287 # If the export-symbols file already is a .def file (1st line
13288 # is EXPORTS), use it as is; otherwise, prepend...
13289 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13290 cp $export_symbols $output_objdir/$soname.def;
13292 echo EXPORTS > $output_objdir/$soname.def;
13293 cat $export_symbols >> $output_objdir/$soname.def;
13295 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13303 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13306 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13307 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13312 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13316 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13317 *** create shared libraries on Solaris systems. Therefore, libtool
13318 *** is disabling shared libraries support. We urge you to upgrade GNU
13319 *** binutils to release 2.9.1 or newer. Another option is to modify
13320 *** your PATH or compiler configuration so that the native linker is
13321 *** used, and then restart.
13324 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13325 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13326 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13333 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13335 hardcode_direct_F77=yes
13336 hardcode_shlibpath_var_F77=no
13340 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13341 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342 archive_cmds_F77="$tmp_archive_cmds"
13343 supports_anon_versioning=no
13344 case `$LD -v 2>/dev/null` in
13345 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13346 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13347 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13348 *\ 2.11.*) ;; # other 2.11 versions
13349 *) supports_anon_versioning=yes ;;
13351 if test $supports_anon_versioning = yes; then
13352 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13354 $echo "local: *; };" >> $output_objdir/$libname.ver~
13355 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13357 archive_expsym_cmds_F77="$tmp_archive_cmds"
13365 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13366 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13367 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13374 if test "$ld_shlibs_F77" = yes; then
13375 runpath_var=LD_RUN_PATH
13376 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13377 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13378 # ancient GNU ld didn't support --whole-archive et. al.
13379 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13380 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13382 whole_archive_flag_spec_F77=
13386 # PORTME fill in a description of your system's linker (not GNU ld)
13389 allow_undefined_flag_F77=unsupported
13390 always_export_symbols_F77=yes
13391 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'
13392 # Note: this linker hardcodes the directories in LIBPATH if there
13393 # are no directories specified by -L.
13394 hardcode_minus_L_F77=yes
13395 if test "$GCC" = yes && test -z "$link_static_flag"; then
13396 # Neither direct hardcoding nor static linking is supported with a
13398 hardcode_direct_F77=unsupported
13403 if test "$host_cpu" = ia64; then
13404 # On IA64, the linker does run time linking by default, so we don't
13405 # have to do anything special.
13406 aix_use_runtimelinking=no
13407 exp_sym_flag='-Bexport'
13410 # If we're using GNU nm, then we don't want the "-C" option.
13411 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13412 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13413 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'
13415 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'
13417 aix_use_runtimelinking=no
13419 # Test if we are trying to use run time linking or normal
13420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13421 # need to do runtime linking.
13422 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13423 for ld_flag in $LDFLAGS; do
13424 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13425 aix_use_runtimelinking=yes
13431 exp_sym_flag='-bexport'
13432 no_entry_flag='-bnoentry'
13435 # When large executables or shared objects are built, AIX ld can
13436 # have problems creating the table of contents. If linking a library
13437 # or program results in "error TOC overflow" add -mminimal-toc to
13438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13441 archive_cmds_F77=''
13442 hardcode_direct_F77=yes
13443 hardcode_libdir_separator_F77=':'
13444 link_all_deplibs_F77=yes
13446 if test "$GCC" = yes; then
13447 case $host_os in aix4.012|aix4.012.*)
13448 # We only want to do this on AIX 4.2 and lower, the check
13449 # below for broken collect2 doesn't work under 4.3+
13450 collect2name=`${CC} -print-prog-name=collect2`
13451 if test -f "$collect2name" && \
13452 strings "$collect2name" | grep resolve_lib_name >/dev/null
13454 # We have reworked collect2
13455 hardcode_direct_F77=yes
13457 # We have old collect2
13458 hardcode_direct_F77=unsupported
13459 # It fails to find uninstalled libraries when the uninstalled
13460 # path is not listed in the libpath. Setting hardcode_minus_L
13461 # to unsupported forces relinking
13462 hardcode_minus_L_F77=yes
13463 hardcode_libdir_flag_spec_F77='-L$libdir'
13464 hardcode_libdir_separator_F77=
13467 shared_flag='-shared'
13470 if test "$host_cpu" = ia64; then
13471 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13472 # chokes on -Wl,-G. The following line is correct:
13475 if test "$aix_use_runtimelinking" = yes; then
13476 shared_flag='${wl}-G'
13478 shared_flag='${wl}-bM:SRE'
13483 # It seems that -bexpall does not export symbols beginning with
13484 # underscore (_), so it is better to generate a list of symbols to export.
13485 always_export_symbols_F77=yes
13486 if test "$aix_use_runtimelinking" = yes; then
13487 # Warning - without using the other runtime loading flags (-brtl),
13488 # -berok will link without error, but may produce a broken library.
13489 allow_undefined_flag_F77='-berok'
13490 # Determine the default libpath from the value encoded in an empty executable.
13491 cat >conftest.$ac_ext <<_ACEOF
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13498 (eval $ac_link) 2>conftest.er1
13500 grep -v '^ *+' conftest.er1 >conftest.err
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -z "$ac_f77_werror_flag"
13506 || test ! -s conftest.err'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; } &&
13512 { ac_try='test -s conftest$ac_exeext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13521 # Check for a 64-bit object if we didn't find anything.
13522 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; }
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13529 rm -f conftest.err conftest.$ac_objext \
13530 conftest$ac_exeext conftest.$ac_ext
13531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13533 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13534 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"
13536 if test "$host_cpu" = ia64; then
13537 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13538 allow_undefined_flag_F77="-z nodefs"
13539 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"
13541 # Determine the default libpath from the value encoded in an empty executable.
13542 cat >conftest.$ac_ext <<_ACEOF
13547 rm -f conftest.$ac_objext conftest$ac_exeext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13549 (eval $ac_link) 2>conftest.er1
13551 grep -v '^ *+' conftest.er1 >conftest.err
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_f77_werror_flag"
13557 || test ! -s conftest.err'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest$ac_exeext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13572 # Check for a 64-bit object if we didn't find anything.
13573 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; }
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13580 rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13584 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13585 # Warning - without using the other run time loading flags,
13586 # -berok will link without error, but may produce a broken library.
13587 no_undefined_flag_F77=' ${wl}-bernotok'
13588 allow_undefined_flag_F77=' ${wl}-berok'
13589 # -bexpall does not export symbols beginning with underscore (_)
13590 always_export_symbols_F77=yes
13591 # Exported symbols can be pulled into shared objects from archives
13592 whole_archive_flag_spec_F77=' '
13593 archive_cmds_need_lc_F77=yes
13594 # This is similar to how AIX traditionally builds it's shared libraries.
13595 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'
13601 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)'
13602 hardcode_libdir_flag_spec_F77='-L$libdir'
13603 hardcode_minus_L_F77=yes
13604 # see comment about different semantics on the GNU ld section
13609 export_dynamic_flag_spec_F77=-rdynamic
13612 cygwin* | mingw* | pw32*)
13613 # When not using gcc, we currently assume that we are using
13614 # Microsoft Visual C++.
13615 # hardcode_libdir_flag_spec is actually meaningless, as there is
13616 # no search path for DLLs.
13617 hardcode_libdir_flag_spec_F77=' '
13618 allow_undefined_flag_F77=unsupported
13619 # Tell ltmain to make .lib files, not .a files.
13621 # Tell ltmain to make .dll files, not .so files.
13623 # FIXME: Setting linknames here is a bad hack.
13624 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13625 # The linker will automatically build a .lib file if we build a DLL.
13626 old_archive_From_new_cmds_F77='true'
13627 # FIXME: Should let the user specify the lib program.
13628 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13629 fix_srcfile_path='`cygpath -w "$srcfile"`'
13630 enable_shared_with_static_runtimes_F77=yes
13633 darwin* | rhapsody*)
13634 if test "$GXX" = yes ; then
13635 archive_cmds_need_lc_F77=no
13637 rhapsody* | darwin1.[012])
13638 allow_undefined_flag_F77='-undefined suppress'
13641 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13642 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13644 case ${MACOSX_DEPLOYMENT_TARGET} in
13646 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13649 allow_undefined_flag_F77='-undefined dynamic_lookup'
13655 lt_int_apple_cc_single_mod=no
13656 output_verbose_link_cmd='echo'
13657 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13658 lt_int_apple_cc_single_mod=yes
13660 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13661 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13663 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'
13665 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13667 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13668 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}'
13670 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}'
13672 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}'
13673 hardcode_direct_F77=no
13674 hardcode_automatic_F77=yes
13675 hardcode_shlibpath_var_F77=unsupported
13676 whole_archive_flag_spec_F77='-all_load $convenience'
13677 link_all_deplibs_F77=yes
13684 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13685 hardcode_libdir_flag_spec_F77='-L$libdir'
13686 hardcode_shlibpath_var_F77=no
13693 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13694 # support. Future versions do this automatically, but an explicit c++rt0.o
13695 # does not break anything, and helps significantly (at the cost of a little
13698 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13699 hardcode_libdir_flag_spec_F77='-R$libdir'
13700 hardcode_direct_F77=yes
13701 hardcode_shlibpath_var_F77=no
13704 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13706 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13707 hardcode_direct_F77=yes
13708 hardcode_minus_L_F77=yes
13709 hardcode_shlibpath_var_F77=no
13712 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13713 freebsd* | kfreebsd*-gnu)
13714 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13715 hardcode_libdir_flag_spec_F77='-R$libdir'
13716 hardcode_direct_F77=yes
13717 hardcode_shlibpath_var_F77=no
13721 if test "$GCC" = yes; then
13722 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'
13724 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'
13726 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13727 hardcode_libdir_separator_F77=:
13728 hardcode_direct_F77=yes
13730 # hardcode_minus_L: Not really in the search PATH,
13731 # but as the default location of the library.
13732 hardcode_minus_L_F77=yes
13733 export_dynamic_flag_spec_F77='${wl}-E'
13737 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13738 case "$host_cpu" in
13740 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13747 case "$host_cpu" in
13749 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13752 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13756 if test "$with_gnu_ld" = no; then
13757 case "$host_cpu" in
13759 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13760 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13761 hardcode_libdir_separator_F77=:
13762 hardcode_direct_F77=no
13763 hardcode_shlibpath_var_F77=no
13766 hardcode_libdir_flag_spec_F77='-L$libdir'
13767 hardcode_direct_F77=no
13768 hardcode_shlibpath_var_F77=no
13770 # hardcode_minus_L: Not really in the search PATH,
13771 # but as the default location of the library.
13772 hardcode_minus_L_F77=yes
13775 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13776 hardcode_libdir_separator_F77=:
13777 hardcode_direct_F77=yes
13778 export_dynamic_flag_spec_F77='${wl}-E'
13780 # hardcode_minus_L: Not really in the search PATH,
13781 # but as the default location of the library.
13782 hardcode_minus_L_F77=yes
13788 irix5* | irix6* | nonstopux*)
13789 if test "$GCC" = yes; then
13790 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'
13792 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'
13793 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13795 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13796 hardcode_libdir_separator_F77=:
13797 link_all_deplibs_F77=yes
13801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13802 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13804 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13806 hardcode_libdir_flag_spec_F77='-R$libdir'
13807 hardcode_direct_F77=yes
13808 hardcode_shlibpath_var_F77=no
13812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13813 hardcode_direct_F77=yes
13814 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13815 hardcode_libdir_separator_F77=:
13816 hardcode_shlibpath_var_F77=no
13820 hardcode_direct_F77=yes
13821 hardcode_shlibpath_var_F77=no
13822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13823 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13824 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13825 export_dynamic_flag_spec_F77='${wl}-E'
13828 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13829 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13830 hardcode_libdir_flag_spec_F77='-R$libdir'
13833 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13834 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13841 hardcode_libdir_flag_spec_F77='-L$libdir'
13842 hardcode_minus_L_F77=yes
13843 allow_undefined_flag_F77=unsupported
13844 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'
13845 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13849 if test "$GCC" = yes; then
13850 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13851 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'
13853 allow_undefined_flag_F77=' -expect_unresolved \*'
13854 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'
13856 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13857 hardcode_libdir_separator_F77=:
13860 osf4* | osf5*) # as osf3* with the addition of -msym flag
13861 if test "$GCC" = yes; then
13862 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13863 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'
13864 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13866 allow_undefined_flag_F77=' -expect_unresolved \*'
13867 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'
13868 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~
13869 $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'
13871 # Both c and cxx compiler support -rpath directly
13872 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13874 hardcode_libdir_separator_F77=:
13878 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13879 hardcode_shlibpath_var_F77=no
13880 export_dynamic_flag_spec_F77='${wl}-Bexport'
13881 runpath_var=LD_RUN_PATH
13882 hardcode_runpath_var=yes
13886 no_undefined_flag_F77=' -z text'
13887 if test "$GCC" = yes; then
13888 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13889 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13890 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13892 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13893 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13896 hardcode_libdir_flag_spec_F77='-R$libdir'
13897 hardcode_shlibpath_var_F77=no
13899 solaris2.[0-5] | solaris2.[0-5].*) ;;
13900 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13901 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13903 link_all_deplibs_F77=yes
13907 if test "x$host_vendor" = xsequent; then
13908 # Use $CC to link under sequent, because it throws in some extra .o
13909 # files that make .init and .fini sections work.
13910 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13912 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13914 hardcode_libdir_flag_spec_F77='-L$libdir'
13915 hardcode_direct_F77=yes
13916 hardcode_minus_L_F77=yes
13917 hardcode_shlibpath_var_F77=no
13921 case $host_vendor in
13923 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13924 hardcode_direct_F77=yes # is this really true???
13927 ## LD is ld it makes a PLAMLIB
13928 ## CC just makes a GrossModule.
13929 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13930 reload_cmds_F77='$CC -r -o $output$reload_objs'
13931 hardcode_direct_F77=no
13934 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13935 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13938 runpath_var='LD_RUN_PATH'
13939 hardcode_shlibpath_var_F77=no
13943 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13944 hardcode_shlibpath_var_F77=no
13945 export_dynamic_flag_spec_F77='-Bexport'
13949 if test -d /usr/nec; then
13950 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13951 hardcode_shlibpath_var_F77=no
13952 runpath_var=LD_RUN_PATH
13953 hardcode_runpath_var=yes
13959 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13960 hardcode_direct_F77=yes
13961 hardcode_minus_L_F77=no
13962 hardcode_shlibpath_var_F77=no
13963 hardcode_runpath_var=yes
13964 runpath_var=LD_RUN_PATH
13967 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13968 no_undefined_flag_F77='${wl}-z ${wl}text'
13969 if test "$GCC" = yes; then
13970 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13972 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13974 runpath_var='LD_RUN_PATH'
13975 hardcode_shlibpath_var_F77=no
13979 no_undefined_flag_F77=' -z text'
13980 # $CC -shared without GNU ld will not create a library from C++
13981 # object files and a static libstdc++, better avoid it by now
13982 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13983 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13984 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13985 hardcode_libdir_flag_spec_F77=
13986 hardcode_shlibpath_var_F77=no
13987 runpath_var='LD_RUN_PATH'
13991 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13992 hardcode_libdir_flag_spec_F77='-L$libdir'
13993 hardcode_shlibpath_var_F77=no
14002 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14003 echo "${ECHO_T}$ld_shlibs_F77" >&6
14004 test "$ld_shlibs_F77" = no && can_build_shared=no
14006 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14007 if test "$GCC" = yes; then
14008 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14012 # Do we need to explicitly link libc?
14014 case "x$archive_cmds_need_lc_F77" in
14016 # Assume -lc should be added
14017 archive_cmds_need_lc_F77=yes
14019 if test "$enable_shared" = yes && test "$GCC" = yes; then
14020 case $archive_cmds_F77 in
14022 # FIXME: we may have to deal with multi-command sequences.
14025 # Test whether the compiler implicitly links with -lc since on some
14026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14027 # to ld, don't add -lc before -lgcc.
14028 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14029 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14034 (eval $ac_compile) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } 2>conftest.err; then
14040 libobjs=conftest.$ac_objext
14042 wl=$lt_prog_compiler_wl_F77
14048 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14049 allow_undefined_flag_F77=
14050 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14051 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }
14056 archive_cmds_need_lc_F77=no
14058 archive_cmds_need_lc_F77=yes
14060 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14062 cat conftest.err 1>&5
14065 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14066 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14073 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14074 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14075 library_names_spec=
14076 libname_spec='lib$name'
14080 postuninstall_cmds=
14084 shlibpath_overrides_runpath=unknown
14086 dynamic_linker="$host_os ld.so"
14087 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14088 if test "$GCC" = yes; then
14089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14090 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14091 # if the path contains ";" then we assume it to be the separator
14092 # otherwise default to the standard path separator (i.e. ":") - it is
14093 # assumed that no part of a normal pathname contains ";" but that should
14094 # okay in the real world where ";" in dirpaths is itself problematic.
14095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14102 need_lib_prefix=unknown
14103 hardcode_into_libs=no
14105 # when you set need_version to no, make sure it does not cause -set_version
14106 # flags to be left without arguments
14107 need_version=unknown
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14113 shlibpath_var=LIBPATH
14115 # AIX 3 has no versioning support, so we append a major version to the name.
14116 soname_spec='${libname}${release}${shared_ext}$major'
14123 hardcode_into_libs=yes
14124 if test "$host_cpu" = ia64; then
14125 # AIX 5 supports IA64
14126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14127 shlibpath_var=LD_LIBRARY_PATH
14129 # With GCC up to 2.95.x, collect2 would create an import file
14130 # for dependence libraries. The import file would start with
14131 # the line `#! .'. This would cause the generated library to
14132 # depend on `.', always an invalid library. This was fixed in
14133 # development snapshots of GCC prior to 3.0.
14135 aix4 | aix4.[01] | aix4.[01].*)
14136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14141 can_build_shared=no
14145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14146 # soname into executable. Probably we can add versioning support to
14147 # collect2, so additional links can be useful in future.
14148 if test "$aix_use_runtimelinking" = yes; then
14149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14150 # instead of lib<name>.a to let people know that these are not
14151 # typical AIX shared libraries.
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 # We preserve .a as extension for shared libraries through AIX4.2
14155 # and later when we are not doing run time linking.
14156 library_names_spec='${libname}${release}.a $libname.a'
14157 soname_spec='${libname}${release}${shared_ext}$major'
14159 shlibpath_var=LIBPATH
14164 library_names_spec='$libname.ixlibrary $libname.a'
14165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14166 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'
14170 library_names_spec='${libname}${shared_ext}'
14171 dynamic_linker="$host_os ld.so"
14172 shlibpath_var=LIBRARY_PATH
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179 soname_spec='${libname}${release}${shared_ext}$major'
14180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14181 shlibpath_var=LD_LIBRARY_PATH
14182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14184 # the default ld.so.conf also contains /usr/contrib/lib and
14185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14186 # libtool to hard-code these into programs
14189 cygwin* | mingw* | pw32*)
14190 version_type=windows
14195 case $GCC,$host_os in
14196 yes,cygwin* | yes,mingw* | yes,pw32*)
14197 library_names_spec='$libname.dll.a'
14198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14199 postinstall_cmds='base_file=`basename \${file}`~
14200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14201 dldir=$destdir/`dirname \$dlpath`~
14202 test -d \$dldir || mkdir -p \$dldir~
14203 $install_prog $dir/$dlname \$dldir/$dlname'
14204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14205 dlpath=$dir/\$dldll~
14207 shlibpath_overrides_runpath=yes
14211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14216 # MinGW DLLs use traditional 'lib' prefix
14217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14220 # It is most probably a Windows format PATH printed by
14221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14222 # path with ; separators, and with drive letters. We can handle the
14223 # drive letters (cygwin fileutils understands them), so leave them,
14224 # especially as we might pass files found there to a mingw objdump,
14225 # which wouldn't understand a cygwinified path. Ahh.
14226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14232 # pw32 DLLs use 'pw' prefix rather than 'lib'
14233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14239 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14241 supports_anon_versioning=no
14242 case `$LD -v 2>/dev/null` in
14243 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14244 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14245 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14246 *\ 2.11.*) ;; # other 2.11 versions
14247 *) supports_anon_versioning=yes ;;
14249 if test $supports_anon_versioning = yes; then
14250 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14252 $echo "local: *; };" >> $output_objdir/$libname.ver~
14253 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14255 $archive_expsym_cmds="$archive_cmds"
14263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14266 dynamic_linker='Win32 ld.exe'
14267 # FIXME: first we should search . and the directory the executable is in
14271 darwin* | rhapsody*)
14272 dynamic_linker="$host_os dyld"
14273 version_type=darwin
14276 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14277 soname_spec='${libname}${release}${major}$shared_ext'
14278 shlibpath_overrides_runpath=yes
14279 shlibpath_var=DYLD_LIBRARY_PATH
14280 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14281 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14282 if test "$GCC" = yes; then
14283 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"`
14285 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14295 soname_spec='${libname}${release}${shared_ext}$major'
14296 shlibpath_var=LD_LIBRARY_PATH
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14308 soname_spec='${libname}${release}${shared_ext}$major'
14309 shlibpath_var=LD_LIBRARY_PATH
14310 shlibpath_overrides_runpath=no
14311 hardcode_into_libs=yes
14312 dynamic_linker='GNU ld.so'
14316 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14317 version_type=freebsd-$objformat
14318 case $version_type in
14320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14329 shlibpath_var=LD_LIBRARY_PATH
14332 shlibpath_overrides_runpath=yes
14334 freebsd3.01* | freebsdelf3.01*)
14335 shlibpath_overrides_runpath=yes
14336 hardcode_into_libs=yes
14339 shlibpath_overrides_runpath=no
14340 hardcode_into_libs=yes
14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14350 soname_spec='${libname}${release}${shared_ext}$major'
14351 shlibpath_var=LD_LIBRARY_PATH
14352 hardcode_into_libs=yes
14355 hpux9* | hpux10* | hpux11*)
14356 # Give a soname corresponding to the major version so that dld.sl refuses to
14357 # link against other versions.
14361 case "$host_cpu" in
14364 hardcode_into_libs=yes
14365 dynamic_linker="$host_os dld.so"
14366 shlibpath_var=LD_LIBRARY_PATH
14367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 if test "X$HPUX_IA64_MODE" = X32; then
14371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14379 hardcode_into_libs=yes
14380 dynamic_linker="$host_os dld.sl"
14381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384 soname_spec='${libname}${release}${shared_ext}$major'
14385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14390 dynamic_linker="$host_os dld.sl"
14391 shlibpath_var=SHLIB_PATH
14392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394 soname_spec='${libname}${release}${shared_ext}$major'
14397 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14398 postinstall_cmds='chmod 555 $lib'
14401 irix5* | irix6* | nonstopux*)
14403 nonstopux*) version_type=nonstopux ;;
14405 if test "$lt_cv_prog_gnu_ld" = yes; then
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14416 irix5* | nonstopux*)
14417 libsuff= shlibsuff=
14420 case $LD in # libtool.m4 will add one of these switches to LD
14421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14422 libsuff= shlibsuff= libmagic=32-bit;;
14423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14424 libsuff=32 shlibsuff=N32 libmagic=N32;;
14425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14427 *) libsuff= shlibsuff= libmagic=never-match;;
14431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14432 shlibpath_overrides_runpath=no
14433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14435 hardcode_into_libs=yes
14438 # No shared lib support for Linux oldld, aout, or coff.
14439 linux*oldld* | linux*aout* | linux*coff*)
14443 # This must be Linux ELF.
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 shlibpath_overrides_runpath=no
14453 # This implies no fast_install, which is unacceptable.
14454 # Some rework will be needed to allow for fast_install
14455 # before this can be enabled.
14456 hardcode_into_libs=yes
14458 # Append ld.so.conf contents to the search path
14459 if test -f /etc/ld.so.conf; then
14460 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14461 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14464 case $host_cpu:$lt_cv_cc_64bit_output in
14465 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
14466 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
14467 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
14471 # We used to test for /lib/ld.so.1 and disable shared libraries on
14472 # powerpc, because MkLinux only supported shared libraries with the
14473 # GNU dynamic linker. Since this was broken with cross compilers,
14474 # most powerpc-linux boxes support dynamic linking these days and
14475 # people can always --disable-shared, the test was removed, and we
14476 # assume the GNU/Linux dynamic linker is in use.
14477 dynamic_linker='GNU/Linux ld.so'
14479 # Find out which ABI we are using (multilib Linux x86_64 hack).
14481 case "$host_cpu" in
14483 echo '#line 14483 "configure"' > conftest.$ac_ext
14484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14485 (eval $ac_compile) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; then
14489 case `/usr/bin/file conftest.$ac_objext` in
14500 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14501 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 shlibpath_var=LD_LIBRARY_PATH
14511 shlibpath_overrides_runpath=no
14512 hardcode_into_libs=yes
14513 dynamic_linker='GNU ld.so'
14520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14523 dynamic_linker='NetBSD (a.out) ld.so'
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14526 soname_spec='${libname}${release}${shared_ext}$major'
14527 dynamic_linker='NetBSD ld.elf_so'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 shlibpath_overrides_runpath=yes
14531 hardcode_into_libs=yes
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537 shlibpath_var=LD_LIBRARY_PATH
14538 shlibpath_overrides_runpath=yes
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=yes
14555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14560 openbsd2.[89] | openbsd2.[89].*)
14561 shlibpath_overrides_runpath=no
14564 shlibpath_overrides_runpath=yes
14568 shlibpath_overrides_runpath=yes
14573 libname_spec='$name'
14576 library_names_spec='$libname${shared_ext} $libname.a'
14577 dynamic_linker='OS/2 ld.exe'
14578 shlibpath_var=LIBPATH
14581 osf3* | osf4* | osf5*)
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587 shlibpath_var=LD_LIBRARY_PATH
14588 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14589 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596 shlibpath_var=LD_LIBRARY_PATH
14603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14604 soname_spec='${libname}${release}${shared_ext}$major'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=yes
14607 hardcode_into_libs=yes
14608 # ldd complains unless libraries are executable
14609 postinstall_cmds='chmod +x $lib'
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 shlibpath_overrides_runpath=yes
14618 if test "$with_gnu_ld" = yes; then
14624 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 soname_spec='${libname}${release}${shared_ext}$major'
14628 shlibpath_var=LD_LIBRARY_PATH
14629 case $host_vendor in
14631 shlibpath_overrides_runpath=no
14633 export_dynamic_flag_spec='${wl}-Blargedynsym'
14634 runpath_var=LD_RUN_PATH
14642 shlibpath_overrides_runpath=no
14643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14649 if test -d /usr/nec ;then
14651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14652 soname_spec='$libname${shared_ext}.$major'
14653 shlibpath_var=LD_LIBRARY_PATH
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 shlibpath_var=LD_LIBRARY_PATH
14668 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14669 echo "${ECHO_T}$dynamic_linker" >&6
14670 test "$dynamic_linker" = no && can_build_shared=no
14672 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14673 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14674 hardcode_action_F77=
14675 if test -n "$hardcode_libdir_flag_spec_F77" || \
14676 test -n "$runpath_var F77" || \
14677 test "X$hardcode_automatic_F77"="Xyes" ; then
14679 # We can hardcode non-existant directories.
14680 if test "$hardcode_direct_F77" != no &&
14681 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14682 # have to relink, otherwise we might link with an installed library
14683 # when we should be linking with a yet-to-be-installed one
14684 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14685 test "$hardcode_minus_L_F77" != no; then
14686 # Linking always hardcodes the temporary library directory.
14687 hardcode_action_F77=relink
14689 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14690 hardcode_action_F77=immediate
14693 # We cannot hardcode anything, or else we can only hardcode existing
14695 hardcode_action_F77=unsupported
14697 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14698 echo "${ECHO_T}$hardcode_action_F77" >&6
14700 if test "$hardcode_action_F77" = relink; then
14701 # Fast installation is not supported
14702 enable_fast_install=no
14703 elif test "$shlibpath_overrides_runpath" = yes ||
14704 test "$enable_shared" = no; then
14705 # Fast installation is not necessary
14706 enable_fast_install=needless
14711 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14712 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14713 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14714 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14715 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14716 echo "$as_me:$LINENO: result: yes" >&5
14717 echo "${ECHO_T}yes" >&6
14719 # FIXME - insert some real tests, host_os isn't really good enough
14722 if test -n "$STRIP" ; then
14723 striplib="$STRIP -x"
14724 echo "$as_me:$LINENO: result: yes" >&5
14725 echo "${ECHO_T}yes" >&6
14727 echo "$as_me:$LINENO: result: no" >&5
14728 echo "${ECHO_T}no" >&6
14732 echo "$as_me:$LINENO: result: no" >&5
14733 echo "${ECHO_T}no" >&6
14740 # The else clause should only fire when bootstrapping the
14741 # libtool distribution, otherwise you forgot to ship ltmain.sh
14742 # with your package, and you will get complaints that there are
14743 # no rules to generate ltmain.sh.
14744 if test -f "$ltmain"; then
14745 # See if we are running on zsh, and set the options which allow our commands through
14746 # without removal of \ escapes.
14747 if test -n "${ZSH_VERSION+set}" ; then
14748 setopt NO_GLOB_SUBST
14750 # Now quote all the things that may contain metacharacters while being
14751 # careful not to overquote the AC_SUBSTed values. We take copies of the
14752 # variables and quote the copies for generation of the libtool script.
14753 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14755 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14756 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14757 deplibs_check_method reload_flag reload_cmds need_locks \
14758 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14759 lt_cv_sys_global_symbol_to_c_name_address \
14760 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14761 old_postinstall_cmds old_postuninstall_cmds \
14765 lt_prog_compiler_wl_F77 \
14766 lt_prog_compiler_pic_F77 \
14767 lt_prog_compiler_static_F77 \
14768 lt_prog_compiler_no_builtin_flag_F77 \
14769 export_dynamic_flag_spec_F77 \
14770 thread_safe_flag_spec_F77 \
14771 whole_archive_flag_spec_F77 \
14772 enable_shared_with_static_runtimes_F77 \
14773 old_archive_cmds_F77 \
14774 old_archive_from_new_cmds_F77 \
14775 predep_objects_F77 \
14776 postdep_objects_F77 \
14779 compiler_lib_search_path_F77 \
14781 archive_expsym_cmds_F77 \
14782 postinstall_cmds_F77 \
14783 postuninstall_cmds_F77 \
14784 old_archive_from_expsyms_cmds_F77 \
14785 allow_undefined_flag_F77 \
14786 no_undefined_flag_F77 \
14787 export_symbols_cmds_F77 \
14788 hardcode_libdir_flag_spec_F77 \
14789 hardcode_libdir_flag_spec_ld_F77 \
14790 hardcode_libdir_separator_F77 \
14791 hardcode_automatic_F77 \
14793 module_expsym_cmds_F77 \
14794 lt_cv_prog_compiler_c_o_F77 \
14795 exclude_expsyms_F77 \
14796 include_expsyms_F77; do
14799 old_archive_cmds_F77 | \
14800 old_archive_from_new_cmds_F77 | \
14801 archive_cmds_F77 | \
14802 archive_expsym_cmds_F77 | \
14803 module_cmds_F77 | \
14804 module_expsym_cmds_F77 | \
14805 old_archive_from_expsyms_cmds_F77 | \
14806 export_symbols_cmds_F77 | \
14807 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14808 postinstall_cmds | postuninstall_cmds | \
14809 old_postinstall_cmds | old_postuninstall_cmds | \
14810 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14811 # Double-quote double-evaled strings.
14812 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14815 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14821 *'\$0 --fallback-echo"')
14822 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14828 cat <<__EOF__ >> "$cfgfile"
14829 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14831 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14833 # Shell to use when invoking shell scripts.
14836 # Whether or not to build shared libraries.
14837 build_libtool_libs=$enable_shared
14839 # Whether or not to build static libraries.
14840 build_old_libs=$enable_static
14842 # Whether or not to add -lc for building shared libraries.
14843 build_libtool_need_lc=$archive_cmds_need_lc_F77
14845 # Whether or not to disallow shared libs when runtime libs are static
14846 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14848 # Whether or not to optimize for fast installation.
14849 fast_install=$enable_fast_install
14852 host_alias=$host_alias
14855 # An echo program that does not interpret backslashes.
14860 AR_FLAGS=$lt_AR_FLAGS
14865 # A language-specific compiler.
14866 CC=$lt_compiler_F77
14868 # Is the compiler the GNU C compiler?
14874 # The linker used to build libraries.
14877 # Whether we need hard or soft links.
14880 # A BSD-compatible nm program.
14883 # A symbol stripping program
14886 # Used to examine libraries when file_magic_cmd begins "file"
14887 MAGIC_CMD=$MAGIC_CMD
14889 # Used on cygwin: DLL creation program.
14892 # Used on cygwin: object dumper.
14895 # Used on cygwin: assembler.
14898 # The name of the directory that contains temporary libtool files.
14901 # How to create reloadable object files.
14902 reload_flag=$lt_reload_flag
14903 reload_cmds=$lt_reload_cmds
14905 # How to pass a linker flag through the compiler.
14906 wl=$lt_lt_prog_compiler_wl_F77
14908 # Object file suffix (normally "o").
14909 objext="$ac_objext"
14911 # Old archive suffix (normally "a").
14914 # Shared library suffix (normally ".so").
14917 # Executable file suffix (normally "").
14920 # Additional compiler flags for building library objects.
14921 pic_flag=$lt_lt_prog_compiler_pic_F77
14924 # What is the maximum length of a command?
14925 max_cmd_len=$lt_cv_sys_max_cmd_len
14927 # Does compiler simultaneously support -c and -o options?
14928 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14930 # Must we lock files when doing compilation ?
14931 need_locks=$lt_need_locks
14933 # Do we need the lib prefix for modules?
14934 need_lib_prefix=$need_lib_prefix
14936 # Do we need a version for libraries?
14937 need_version=$need_version
14939 # Whether dlopen is supported.
14940 dlopen_support=$enable_dlopen
14942 # Whether dlopen of programs is supported.
14943 dlopen_self=$enable_dlopen_self
14945 # Whether dlopen of statically linked programs is supported.
14946 dlopen_self_static=$enable_dlopen_self_static
14948 # Compiler flag to prevent dynamic linking.
14949 link_static_flag=$lt_lt_prog_compiler_static_F77
14951 # Compiler flag to turn off builtin functions.
14952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14954 # Compiler flag to allow reflexive dlopens.
14955 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14957 # Compiler flag to generate shared objects directly from archives.
14958 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14960 # Compiler flag to generate thread-safe objects.
14961 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14963 # Library versioning type.
14964 version_type=$version_type
14966 # Format of library name prefix.
14967 libname_spec=$lt_libname_spec
14969 # List of archive names. First name is the real one, the rest are links.
14970 # The last name is the one that the linker finds with -lNAME.
14971 library_names_spec=$lt_library_names_spec
14973 # The coded name of the library, if different from the real name.
14974 soname_spec=$lt_soname_spec
14976 # Commands used to build and install an old-style archive.
14978 old_archive_cmds=$lt_old_archive_cmds_F77
14979 old_postinstall_cmds=$lt_old_postinstall_cmds
14980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14982 # Create an old-style archive from a shared archive.
14983 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14985 # Create a temporary old-style archive to link instead of a shared archive.
14986 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14988 # Commands used to build and install a shared archive.
14989 archive_cmds=$lt_archive_cmds_F77
14990 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14991 postinstall_cmds=$lt_postinstall_cmds
14992 postuninstall_cmds=$lt_postuninstall_cmds
14994 # Commands used to build a loadable module (assumed same as above if empty)
14995 module_cmds=$lt_module_cmds_F77
14996 module_expsym_cmds=$lt_module_expsym_cmds_F77
14998 # Commands to strip libraries.
14999 old_striplib=$lt_old_striplib
15000 striplib=$lt_striplib
15002 # Dependencies to place before the objects being linked to create a
15004 predep_objects=$lt_predep_objects_F77
15006 # Dependencies to place after the objects being linked to create a
15008 postdep_objects=$lt_postdep_objects_F77
15010 # Dependencies to place before the objects being linked to create a
15012 predeps=$lt_predeps_F77
15014 # Dependencies to place after the objects being linked to create a
15016 postdeps=$lt_postdeps_F77
15018 # The library search path used internally by the compiler when linking
15019 # a shared library.
15020 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15022 # Method to check whether dependent libraries are shared objects.
15023 deplibs_check_method=$lt_deplibs_check_method
15025 # Command to use when deplibs_check_method == file_magic.
15026 file_magic_cmd=$lt_file_magic_cmd
15028 # Flag that allows shared libraries with undefined symbols to be built.
15029 allow_undefined_flag=$lt_allow_undefined_flag_F77
15031 # Flag that forces no undefined symbols.
15032 no_undefined_flag=$lt_no_undefined_flag_F77
15034 # Commands used to finish a libtool library installation in a directory.
15035 finish_cmds=$lt_finish_cmds
15037 # Same as above, but a single script fragment to be evaled but not shown.
15038 finish_eval=$lt_finish_eval
15040 # Take the output of nm and produce a listing of raw symbols and C names.
15041 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15043 # Transform the output of nm in a proper C declaration
15044 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15046 # Transform the output of nm in a C name address pair
15047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15049 # This is the shared library runtime path variable.
15050 runpath_var=$runpath_var
15052 # This is the shared library path variable.
15053 shlibpath_var=$shlibpath_var
15055 # Is shlibpath searched before the hard-coded library search path?
15056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15058 # How to hardcode a shared library path into an executable.
15059 hardcode_action=$hardcode_action_F77
15061 # Whether we should hardcode library paths into libraries.
15062 hardcode_into_libs=$hardcode_into_libs
15064 # Flag to hardcode \$libdir into a binary during linking.
15065 # This must work even if \$libdir does not exist.
15066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15068 # If ld is used when linking, flag to hardcode \$libdir into
15069 # a binary during linking. This must work even if \$libdir does
15071 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15073 # Whether we need a single -rpath flag with a separated argument.
15074 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15076 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15077 # resulting binary.
15078 hardcode_direct=$hardcode_direct_F77
15080 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15081 # resulting binary.
15082 hardcode_minus_L=$hardcode_minus_L_F77
15084 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15085 # the resulting binary.
15086 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15088 # Set to yes if building a shared library automatically hardcodes DIR into the library
15089 # and all subsequent libraries and executables linked against it.
15090 hardcode_automatic=$hardcode_automatic_F77
15092 # Variables whose values should be saved in libtool wrapper scripts and
15093 # restored at relink time.
15094 variables_saved_for_relink="$variables_saved_for_relink"
15096 # Whether libtool must link a program against all its dependency libraries.
15097 link_all_deplibs=$link_all_deplibs_F77
15099 # Compile-time system search path for libraries
15100 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15102 # Run-time system search path for libraries
15103 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15105 # Fix the shell variable \$srcfile for the compiler.
15106 fix_srcfile_path="$fix_srcfile_path_F77"
15108 # Set to yes if exported symbols are required.
15109 always_export_symbols=$always_export_symbols_F77
15111 # The commands to list exported symbols.
15112 export_symbols_cmds=$lt_export_symbols_cmds_F77
15114 # The commands to extract the exported symbol list from a shared archive.
15115 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15117 # Symbols that should not be listed in the preloaded symbols.
15118 exclude_expsyms=$lt_exclude_expsyms_F77
15120 # Symbols that must always be exported.
15121 include_expsyms=$lt_include_expsyms_F77
15123 # ### END LIBTOOL TAG CONFIG: $tagname
15129 # If there is no Makefile yet, we rely on a make rule to execute
15130 # `config.status --recheck' to rerun these tests and create the
15131 # libtool script then.
15132 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15133 if test -f "$ltmain_in"; then
15134 test -f Makefile && make "$ltmain"
15140 ac_cpp='$CPP $CPPFLAGS'
15141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15153 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15157 # Source file extension for Java test sources.
15160 # Object file extension for compiled Java test sources.
15164 # Code to be used in simple compile tests
15165 lt_simple_compile_test_code="class foo {}\n"
15167 # Code to be used in simple link tests
15168 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15172 # If no C compiler was specified, use CC.
15175 # Allow CC to be a program name with arguments.
15179 # Allow CC to be a program name with arguments.
15185 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15186 archive_cmds_need_lc_GCJ=no
15189 lt_prog_compiler_no_builtin_flag_GCJ=
15191 if test "$GCC" = yes; then
15192 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15195 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15196 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15197 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 lt_cv_prog_compiler_rtti_exceptions=no
15201 ac_outfile=conftest.$ac_objext
15202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15203 lt_compiler_flag="-fno-rtti -fno-exceptions"
15204 # Insert the option either (1) after the last *FLAGS variable, or
15205 # (2) before a word containing "conftest.", or (3) at the end.
15206 # Note that $ac_compile itself does not contain backslashes and begins
15207 # with a dollar sign (not a hyphen), so the echo should work correctly.
15208 # The option is referenced via a variable to avoid confusing sed.
15209 lt_compile=`echo "$ac_compile" | $SED \
15210 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15212 -e 's:$: $lt_compiler_flag:'`
15213 (eval echo "\"\$as_me:15213: $lt_compile\"" >&5)
15214 (eval "$lt_compile" 2>conftest.err)
15216 cat conftest.err >&5
15217 echo "$as_me:15217: \$? = $ac_status" >&5
15218 if (exit $ac_status) && test -s "$ac_outfile"; then
15219 # The compiler can only warn and ignore the option if not recognized
15220 # So say no if there are warnings
15221 if test ! -s conftest.err; then
15222 lt_cv_prog_compiler_rtti_exceptions=yes
15228 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15229 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15231 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15232 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15239 lt_prog_compiler_wl_GCJ=
15240 lt_prog_compiler_pic_GCJ=
15241 lt_prog_compiler_static_GCJ=
15243 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15244 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15246 if test "$GCC" = yes; then
15247 lt_prog_compiler_wl_GCJ='-Wl,'
15248 lt_prog_compiler_static_GCJ='-static'
15252 # All AIX code is PIC.
15253 if test "$host_cpu" = ia64; then
15254 # AIX 5 now supports IA64 processor
15255 lt_prog_compiler_static_GCJ='-Bstatic'
15260 # FIXME: we need at least 68020 code to build shared libraries, but
15261 # adding the `-m68020' flag to GCC prevents building anything better,
15263 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15266 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15267 # PIC is the default for these OSes.
15270 mingw* | pw32* | os2*)
15271 # This hack is so that the source file can tell whether it is being
15272 # built for inclusion in a dll (and should export symbols for example).
15273 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15276 darwin* | rhapsody*)
15277 # PIC is the default on this platform
15278 # Common symbols not allowed in MH_DYLIB files
15279 lt_prog_compiler_pic_GCJ='-fno-common'
15283 # Just because we use GCC doesn't mean we suddenly get shared libraries
15284 # on systems that don't support them.
15285 lt_prog_compiler_can_build_shared_GCJ=no
15290 if test -d /usr/nec; then
15291 lt_prog_compiler_pic_GCJ=-Kconform_pic
15296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15297 # not for PA HP-UX.
15298 case "$host_cpu" in
15303 lt_prog_compiler_pic_GCJ='-fPIC'
15309 lt_prog_compiler_pic_GCJ='-fPIC'
15313 # PORTME Check for flag to pass linker flags through the system compiler.
15316 lt_prog_compiler_wl_GCJ='-Wl,'
15317 if test "$host_cpu" = ia64; then
15318 # AIX 5 now supports IA64 processor
15319 lt_prog_compiler_static_GCJ='-Bstatic'
15321 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15325 mingw* | pw32* | os2*)
15326 # This hack is so that the source file can tell whether it is being
15327 # built for inclusion in a dll (and should export symbols for example).
15328 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15331 hpux9* | hpux10* | hpux11*)
15332 lt_prog_compiler_wl_GCJ='-Wl,'
15333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15334 # not for PA HP-UX.
15335 case "$host_cpu" in
15340 lt_prog_compiler_pic_GCJ='+Z'
15343 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15344 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15347 irix5* | irix6* | nonstopux*)
15348 lt_prog_compiler_wl_GCJ='-Wl,'
15349 # PIC (with -KPIC) is the default.
15350 lt_prog_compiler_static_GCJ='-non_shared'
15354 lt_prog_compiler_pic_GCJ='-KPIC'
15355 lt_prog_compiler_static_GCJ='-Bstatic'
15361 lt_prog_compiler_wl_GCJ='-Wl,'
15362 lt_prog_compiler_pic_GCJ='-KPIC'
15363 lt_prog_compiler_static_GCJ='-static'
15366 lt_prog_compiler_wl_GCJ='-Wl,'
15367 # All Alpha code is PIC.
15368 lt_prog_compiler_static_GCJ='-non_shared'
15373 osf3* | osf4* | osf5*)
15374 lt_prog_compiler_wl_GCJ='-Wl,'
15375 # All OSF/1 code is PIC.
15376 lt_prog_compiler_static_GCJ='-non_shared'
15380 lt_prog_compiler_pic_GCJ='-Kpic'
15381 lt_prog_compiler_static_GCJ='-dn'
15385 lt_prog_compiler_wl_GCJ='-Wl,'
15386 lt_prog_compiler_pic_GCJ='-KPIC'
15387 lt_prog_compiler_static_GCJ='-Bstatic'
15391 lt_prog_compiler_wl_GCJ='-Qoption ld '
15392 lt_prog_compiler_pic_GCJ='-PIC'
15393 lt_prog_compiler_static_GCJ='-Bstatic'
15396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15397 lt_prog_compiler_wl_GCJ='-Wl,'
15398 lt_prog_compiler_pic_GCJ='-KPIC'
15399 lt_prog_compiler_static_GCJ='-Bstatic'
15403 if test -d /usr/nec ;then
15404 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15405 lt_prog_compiler_static_GCJ='-Bstatic'
15410 lt_prog_compiler_pic_GCJ='-pic'
15411 lt_prog_compiler_static_GCJ='-Bstatic'
15415 lt_prog_compiler_can_build_shared_GCJ=no
15420 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15421 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15424 # Check to make sure the PIC flag actually works.
15426 if test -n "$lt_prog_compiler_pic_GCJ"; then
15428 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15429 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15430 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15433 lt_prog_compiler_pic_works_GCJ=no
15434 ac_outfile=conftest.$ac_objext
15435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15436 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15437 # Insert the option either (1) after the last *FLAGS variable, or
15438 # (2) before a word containing "conftest.", or (3) at the end.
15439 # Note that $ac_compile itself does not contain backslashes and begins
15440 # with a dollar sign (not a hyphen), so the echo should work correctly.
15441 # The option is referenced via a variable to avoid confusing sed.
15442 lt_compile=`echo "$ac_compile" | $SED \
15443 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15445 -e 's:$: $lt_compiler_flag:'`
15446 (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
15447 (eval "$lt_compile" 2>conftest.err)
15449 cat conftest.err >&5
15450 echo "$as_me:15450: \$? = $ac_status" >&5
15451 if (exit $ac_status) && test -s "$ac_outfile"; then
15452 # The compiler can only warn and ignore the option if not recognized
15453 # So say no if there are warnings
15454 if test ! -s conftest.err; then
15455 lt_prog_compiler_pic_works_GCJ=yes
15461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15462 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15464 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15465 case $lt_prog_compiler_pic_GCJ in
15467 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15470 lt_prog_compiler_pic_GCJ=
15471 lt_prog_compiler_can_build_shared_GCJ=no
15476 # For platforms which do not support PIC, -DPIC is meaningless:
15478 lt_prog_compiler_pic_GCJ=
15481 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15485 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15486 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15487 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 lt_cv_prog_compiler_c_o_GCJ=no
15491 $rm -r conftest 2>/dev/null
15495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15497 lt_compiler_flag="-o out/conftest2.$ac_objext"
15498 # Insert the option either (1) after the last *FLAGS variable, or
15499 # (2) before a word containing "conftest.", or (3) at the end.
15500 # Note that $ac_compile itself does not contain backslashes and begins
15501 # with a dollar sign (not a hyphen), so the echo should work correctly.
15502 lt_compile=`echo "$ac_compile" | $SED \
15503 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15505 -e 's:$: $lt_compiler_flag:'`
15506 (eval echo "\"\$as_me:15506: $lt_compile\"" >&5)
15507 (eval "$lt_compile" 2>out/conftest.err)
15509 cat out/conftest.err >&5
15510 echo "$as_me:15510: \$? = $ac_status" >&5
15511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15513 # The compiler can only warn and ignore the option if not recognized
15514 # So say no if there are warnings
15515 if test ! -s out/conftest.err; then
15516 lt_cv_prog_compiler_c_o_GCJ=yes
15521 # SGI C++ compiler will create directory out/ii_files/ for
15522 # template instantiation
15523 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15524 $rm out/* && rmdir out
15530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15531 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15534 hard_links="nottested"
15535 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15536 # do not overwrite the value of need_locks provided by the user
15537 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15538 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15543 ln conftest.a conftest.b 2>&5 || hard_links=no
15544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15545 echo "$as_me:$LINENO: result: $hard_links" >&5
15546 echo "${ECHO_T}$hard_links" >&6
15547 if test "$hard_links" = no; then
15548 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15549 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15556 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15560 allow_undefined_flag_GCJ=
15561 enable_shared_with_static_runtimes_GCJ=no
15563 archive_expsym_cmds_GCJ=
15564 old_archive_From_new_cmds_GCJ=
15565 old_archive_from_expsyms_cmds_GCJ=
15566 export_dynamic_flag_spec_GCJ=
15567 whole_archive_flag_spec_GCJ=
15568 thread_safe_flag_spec_GCJ=
15569 hardcode_libdir_flag_spec_GCJ=
15570 hardcode_libdir_flag_spec_ld_GCJ=
15571 hardcode_libdir_separator_GCJ=
15572 hardcode_direct_GCJ=no
15573 hardcode_minus_L_GCJ=no
15574 hardcode_shlibpath_var_GCJ=unsupported
15575 link_all_deplibs_GCJ=unknown
15576 hardcode_automatic_GCJ=no
15578 module_expsym_cmds_GCJ=
15579 always_export_symbols_GCJ=no
15580 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15581 # include_expsyms should be a list of space-separated symbols to be *always*
15582 # included in the symbol list
15583 include_expsyms_GCJ=
15584 # exclude_expsyms can be an extended regexp of symbols to exclude
15585 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15586 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15587 # as well as any symbol that contains `d'.
15588 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15589 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15590 # platforms (ab)use it in PIC code, but their linkers get confused if
15591 # the symbol is explicitly referenced. Since portable code cannot
15592 # rely on this symbol name, it's probably fine to never include it in
15593 # preloaded symbol tables.
15594 extract_expsyms_cmds=
15597 cygwin* | mingw* | pw32*)
15598 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15599 # When not using gcc, we currently assume that we are using
15600 # Microsoft Visual C++.
15601 if test "$GCC" != yes; then
15611 if test "$with_gnu_ld" = yes; then
15612 # If archive_cmds runs LD, not CC, wlarc should be empty
15615 # See if GNU ld supports shared libraries.
15617 aix3* | aix4* | aix5*)
15618 # On AIX/PPC, the GNU linker is very broken
15619 if test "$host_cpu" != ia64; then
15623 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15624 *** to be unable to reliably create shared libraries on AIX.
15625 *** Therefore, libtool is disabling shared libraries support. If you
15626 *** really care for shared libraries, you may want to modify your PATH
15627 *** so that a non-GNU linker is found, and then restart.
15634 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)'
15635 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15636 hardcode_minus_L_GCJ=yes
15638 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15639 # that the semantics of dynamic libraries on AmigaOS, at least up
15640 # to version 4, is to share data among multiple programs linked
15641 # with the same dynamic library. Since this doesn't match the
15642 # behavior of shared libraries on other platforms, we can't use
15648 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15649 allow_undefined_flag_GCJ=unsupported
15650 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15651 # support --undefined. This deserves some investigation. FIXME
15652 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15658 cygwin* | mingw* | pw32*)
15659 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15660 # as there is no search path for DLLs.
15661 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15662 allow_undefined_flag_GCJ=unsupported
15663 always_export_symbols_GCJ=no
15664 enable_shared_with_static_runtimes_GCJ=yes
15665 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15667 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15668 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15669 # If the export-symbols file already is a .def file (1st line
15670 # is EXPORTS), use it as is; otherwise, prepend...
15671 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15672 cp $export_symbols $output_objdir/$soname.def;
15674 echo EXPORTS > $output_objdir/$soname.def;
15675 cat $export_symbols >> $output_objdir/$soname.def;
15677 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15685 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15688 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15689 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15694 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15698 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15699 *** create shared libraries on Solaris systems. Therefore, libtool
15700 *** is disabling shared libraries support. We urge you to upgrade GNU
15701 *** binutils to release 2.9.1 or newer. Another option is to modify
15702 *** your PATH or compiler configuration so that the native linker is
15703 *** used, and then restart.
15706 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15707 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15708 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15715 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15717 hardcode_direct_GCJ=yes
15718 hardcode_shlibpath_var_GCJ=no
15722 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15723 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15724 archive_cmds_GCJ="$tmp_archive_cmds"
15725 supports_anon_versioning=no
15726 case `$LD -v 2>/dev/null` in
15727 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15728 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15729 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15730 *\ 2.11.*) ;; # other 2.11 versions
15731 *) supports_anon_versioning=yes ;;
15733 if test $supports_anon_versioning = yes; then
15734 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15735 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15736 $echo "local: *; };" >> $output_objdir/$libname.ver~
15737 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15739 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15748 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15749 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15756 if test "$ld_shlibs_GCJ" = yes; then
15757 runpath_var=LD_RUN_PATH
15758 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15759 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15760 # ancient GNU ld didn't support --whole-archive et. al.
15761 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15762 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15764 whole_archive_flag_spec_GCJ=
15768 # PORTME fill in a description of your system's linker (not GNU ld)
15771 allow_undefined_flag_GCJ=unsupported
15772 always_export_symbols_GCJ=yes
15773 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'
15774 # Note: this linker hardcodes the directories in LIBPATH if there
15775 # are no directories specified by -L.
15776 hardcode_minus_L_GCJ=yes
15777 if test "$GCC" = yes && test -z "$link_static_flag"; then
15778 # Neither direct hardcoding nor static linking is supported with a
15780 hardcode_direct_GCJ=unsupported
15785 if test "$host_cpu" = ia64; then
15786 # On IA64, the linker does run time linking by default, so we don't
15787 # have to do anything special.
15788 aix_use_runtimelinking=no
15789 exp_sym_flag='-Bexport'
15792 # If we're using GNU nm, then we don't want the "-C" option.
15793 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15794 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15795 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'
15797 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'
15799 aix_use_runtimelinking=no
15801 # Test if we are trying to use run time linking or normal
15802 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15803 # need to do runtime linking.
15804 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15805 for ld_flag in $LDFLAGS; do
15806 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15807 aix_use_runtimelinking=yes
15813 exp_sym_flag='-bexport'
15814 no_entry_flag='-bnoentry'
15817 # When large executables or shared objects are built, AIX ld can
15818 # have problems creating the table of contents. If linking a library
15819 # or program results in "error TOC overflow" add -mminimal-toc to
15820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15823 archive_cmds_GCJ=''
15824 hardcode_direct_GCJ=yes
15825 hardcode_libdir_separator_GCJ=':'
15826 link_all_deplibs_GCJ=yes
15828 if test "$GCC" = yes; then
15829 case $host_os in aix4.012|aix4.012.*)
15830 # We only want to do this on AIX 4.2 and lower, the check
15831 # below for broken collect2 doesn't work under 4.3+
15832 collect2name=`${CC} -print-prog-name=collect2`
15833 if test -f "$collect2name" && \
15834 strings "$collect2name" | grep resolve_lib_name >/dev/null
15836 # We have reworked collect2
15837 hardcode_direct_GCJ=yes
15839 # We have old collect2
15840 hardcode_direct_GCJ=unsupported
15841 # It fails to find uninstalled libraries when the uninstalled
15842 # path is not listed in the libpath. Setting hardcode_minus_L
15843 # to unsupported forces relinking
15844 hardcode_minus_L_GCJ=yes
15845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15846 hardcode_libdir_separator_GCJ=
15849 shared_flag='-shared'
15852 if test "$host_cpu" = ia64; then
15853 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15854 # chokes on -Wl,-G. The following line is correct:
15857 if test "$aix_use_runtimelinking" = yes; then
15858 shared_flag='${wl}-G'
15860 shared_flag='${wl}-bM:SRE'
15865 # It seems that -bexpall does not export symbols beginning with
15866 # underscore (_), so it is better to generate a list of symbols to export.
15867 always_export_symbols_GCJ=yes
15868 if test "$aix_use_runtimelinking" = yes; then
15869 # Warning - without using the other runtime loading flags (-brtl),
15870 # -berok will link without error, but may produce a broken library.
15871 allow_undefined_flag_GCJ='-berok'
15872 # Determine the default libpath from the value encoded in an empty executable.
15873 cat >conftest.$ac_ext <<_ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15890 (eval $ac_link) 2>conftest.er1
15892 grep -v '^ *+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
15897 { ac_try='test -z "$ac_c_werror_flag"
15898 || test ! -s conftest.err'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest$ac_exeext'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15911 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15913 # Check for a 64-bit object if we didn't find anything.
15914 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; }
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15921 rm -f conftest.err conftest.$ac_objext \
15922 conftest$ac_exeext conftest.$ac_ext
15923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15925 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15926 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"
15928 if test "$host_cpu" = ia64; then
15929 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15930 allow_undefined_flag_GCJ="-z nodefs"
15931 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"
15933 # Determine the default libpath from the value encoded in an empty executable.
15934 cat >conftest.$ac_ext <<_ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest$ac_exeext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15974 # Check for a 64-bit object if we didn't find anything.
15975 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; }
15978 echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15982 rm -f conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15986 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15987 # Warning - without using the other run time loading flags,
15988 # -berok will link without error, but may produce a broken library.
15989 no_undefined_flag_GCJ=' ${wl}-bernotok'
15990 allow_undefined_flag_GCJ=' ${wl}-berok'
15991 # -bexpall does not export symbols beginning with underscore (_)
15992 always_export_symbols_GCJ=yes
15993 # Exported symbols can be pulled into shared objects from archives
15994 whole_archive_flag_spec_GCJ=' '
15995 archive_cmds_need_lc_GCJ=yes
15996 # This is similar to how AIX traditionally builds it's shared libraries.
15997 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'
16003 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)'
16004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16005 hardcode_minus_L_GCJ=yes
16006 # see comment about different semantics on the GNU ld section
16011 export_dynamic_flag_spec_GCJ=-rdynamic
16014 cygwin* | mingw* | pw32*)
16015 # When not using gcc, we currently assume that we are using
16016 # Microsoft Visual C++.
16017 # hardcode_libdir_flag_spec is actually meaningless, as there is
16018 # no search path for DLLs.
16019 hardcode_libdir_flag_spec_GCJ=' '
16020 allow_undefined_flag_GCJ=unsupported
16021 # Tell ltmain to make .lib files, not .a files.
16023 # Tell ltmain to make .dll files, not .so files.
16025 # FIXME: Setting linknames here is a bad hack.
16026 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16027 # The linker will automatically build a .lib file if we build a DLL.
16028 old_archive_From_new_cmds_GCJ='true'
16029 # FIXME: Should let the user specify the lib program.
16030 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16031 fix_srcfile_path='`cygpath -w "$srcfile"`'
16032 enable_shared_with_static_runtimes_GCJ=yes
16035 darwin* | rhapsody*)
16036 if test "$GXX" = yes ; then
16037 archive_cmds_need_lc_GCJ=no
16039 rhapsody* | darwin1.[012])
16040 allow_undefined_flag_GCJ='-undefined suppress'
16043 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16044 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16046 case ${MACOSX_DEPLOYMENT_TARGET} in
16048 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16051 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16057 lt_int_apple_cc_single_mod=no
16058 output_verbose_link_cmd='echo'
16059 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16060 lt_int_apple_cc_single_mod=yes
16062 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16063 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16065 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'
16067 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16068 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16069 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16070 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}'
16072 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}'
16074 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}'
16075 hardcode_direct_GCJ=no
16076 hardcode_automatic_GCJ=yes
16077 hardcode_shlibpath_var_GCJ=unsupported
16078 whole_archive_flag_spec_GCJ='-all_load $convenience'
16079 link_all_deplibs_GCJ=yes
16086 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16088 hardcode_shlibpath_var_GCJ=no
16095 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16096 # support. Future versions do this automatically, but an explicit c++rt0.o
16097 # does not break anything, and helps significantly (at the cost of a little
16100 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16101 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16102 hardcode_direct_GCJ=yes
16103 hardcode_shlibpath_var_GCJ=no
16106 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16108 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16109 hardcode_direct_GCJ=yes
16110 hardcode_minus_L_GCJ=yes
16111 hardcode_shlibpath_var_GCJ=no
16114 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16115 freebsd* | kfreebsd*-gnu)
16116 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16117 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16118 hardcode_direct_GCJ=yes
16119 hardcode_shlibpath_var_GCJ=no
16123 if test "$GCC" = yes; then
16124 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'
16126 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'
16128 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16129 hardcode_libdir_separator_GCJ=:
16130 hardcode_direct_GCJ=yes
16132 # hardcode_minus_L: Not really in the search PATH,
16133 # but as the default location of the library.
16134 hardcode_minus_L_GCJ=yes
16135 export_dynamic_flag_spec_GCJ='${wl}-E'
16139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16140 case "$host_cpu" in
16142 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16149 case "$host_cpu" in
16151 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16154 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16158 if test "$with_gnu_ld" = no; then
16159 case "$host_cpu" in
16161 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16162 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16163 hardcode_libdir_separator_GCJ=:
16164 hardcode_direct_GCJ=no
16165 hardcode_shlibpath_var_GCJ=no
16168 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16169 hardcode_direct_GCJ=no
16170 hardcode_shlibpath_var_GCJ=no
16172 # hardcode_minus_L: Not really in the search PATH,
16173 # but as the default location of the library.
16174 hardcode_minus_L_GCJ=yes
16177 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16178 hardcode_libdir_separator_GCJ=:
16179 hardcode_direct_GCJ=yes
16180 export_dynamic_flag_spec_GCJ='${wl}-E'
16182 # hardcode_minus_L: Not really in the search PATH,
16183 # but as the default location of the library.
16184 hardcode_minus_L_GCJ=yes
16190 irix5* | irix6* | nonstopux*)
16191 if test "$GCC" = yes; then
16192 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'
16194 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'
16195 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16197 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16198 hardcode_libdir_separator_GCJ=:
16199 link_all_deplibs_GCJ=yes
16203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16204 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16206 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16208 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16209 hardcode_direct_GCJ=yes
16210 hardcode_shlibpath_var_GCJ=no
16214 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16215 hardcode_direct_GCJ=yes
16216 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16217 hardcode_libdir_separator_GCJ=:
16218 hardcode_shlibpath_var_GCJ=no
16222 hardcode_direct_GCJ=yes
16223 hardcode_shlibpath_var_GCJ=no
16224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16225 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16226 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16227 export_dynamic_flag_spec_GCJ='${wl}-E'
16230 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16231 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16232 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16235 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16236 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16243 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16244 hardcode_minus_L_GCJ=yes
16245 allow_undefined_flag_GCJ=unsupported
16246 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'
16247 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16251 if test "$GCC" = yes; then
16252 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16253 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'
16255 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16256 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'
16258 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16259 hardcode_libdir_separator_GCJ=:
16262 osf4* | osf5*) # as osf3* with the addition of -msym flag
16263 if test "$GCC" = yes; then
16264 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16265 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'
16266 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16268 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16269 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'
16270 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~
16271 $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'
16273 # Both c and cxx compiler support -rpath directly
16274 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16276 hardcode_libdir_separator_GCJ=:
16280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16281 hardcode_shlibpath_var_GCJ=no
16282 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16283 runpath_var=LD_RUN_PATH
16284 hardcode_runpath_var=yes
16288 no_undefined_flag_GCJ=' -z text'
16289 if test "$GCC" = yes; then
16290 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16291 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16292 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16294 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16295 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16296 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16298 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16299 hardcode_shlibpath_var_GCJ=no
16301 solaris2.[0-5] | solaris2.[0-5].*) ;;
16302 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16303 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16305 link_all_deplibs_GCJ=yes
16309 if test "x$host_vendor" = xsequent; then
16310 # Use $CC to link under sequent, because it throws in some extra .o
16311 # files that make .init and .fini sections work.
16312 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16316 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16317 hardcode_direct_GCJ=yes
16318 hardcode_minus_L_GCJ=yes
16319 hardcode_shlibpath_var_GCJ=no
16323 case $host_vendor in
16325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16326 hardcode_direct_GCJ=yes # is this really true???
16329 ## LD is ld it makes a PLAMLIB
16330 ## CC just makes a GrossModule.
16331 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16332 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16333 hardcode_direct_GCJ=no
16336 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16337 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16340 runpath_var='LD_RUN_PATH'
16341 hardcode_shlibpath_var_GCJ=no
16345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16346 hardcode_shlibpath_var_GCJ=no
16347 export_dynamic_flag_spec_GCJ='-Bexport'
16351 if test -d /usr/nec; then
16352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16353 hardcode_shlibpath_var_GCJ=no
16354 runpath_var=LD_RUN_PATH
16355 hardcode_runpath_var=yes
16361 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16362 hardcode_direct_GCJ=yes
16363 hardcode_minus_L_GCJ=no
16364 hardcode_shlibpath_var_GCJ=no
16365 hardcode_runpath_var=yes
16366 runpath_var=LD_RUN_PATH
16369 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16370 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16371 if test "$GCC" = yes; then
16372 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16374 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16376 runpath_var='LD_RUN_PATH'
16377 hardcode_shlibpath_var_GCJ=no
16381 no_undefined_flag_GCJ=' -z text'
16382 # $CC -shared without GNU ld will not create a library from C++
16383 # object files and a static libstdc++, better avoid it by now
16384 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16386 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16387 hardcode_libdir_flag_spec_GCJ=
16388 hardcode_shlibpath_var_GCJ=no
16389 runpath_var='LD_RUN_PATH'
16393 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395 hardcode_shlibpath_var_GCJ=no
16404 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16405 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16406 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16409 if test "$GCC" = yes; then
16410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16414 # Do we need to explicitly link libc?
16416 case "x$archive_cmds_need_lc_GCJ" in
16418 # Assume -lc should be added
16419 archive_cmds_need_lc_GCJ=yes
16421 if test "$enable_shared" = yes && test "$GCC" = yes; then
16422 case $archive_cmds_GCJ in
16424 # FIXME: we may have to deal with multi-command sequences.
16427 # Test whether the compiler implicitly links with -lc since on some
16428 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16429 # to ld, don't add -lc before -lgcc.
16430 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16431 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16436 (eval $ac_compile) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } 2>conftest.err; then
16442 libobjs=conftest.$ac_objext
16444 wl=$lt_prog_compiler_wl_GCJ
16450 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16451 allow_undefined_flag_GCJ=
16452 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16453 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }
16458 archive_cmds_need_lc_GCJ=no
16460 archive_cmds_need_lc_GCJ=yes
16462 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16464 cat conftest.err 1>&5
16467 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16468 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16475 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16476 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16477 library_names_spec=
16478 libname_spec='lib$name'
16482 postuninstall_cmds=
16486 shlibpath_overrides_runpath=unknown
16488 dynamic_linker="$host_os ld.so"
16489 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16490 if test "$GCC" = yes; then
16491 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16492 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16493 # if the path contains ";" then we assume it to be the separator
16494 # otherwise default to the standard path separator (i.e. ":") - it is
16495 # assumed that no part of a normal pathname contains ";" but that should
16496 # okay in the real world where ";" in dirpaths is itself problematic.
16497 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16502 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16504 need_lib_prefix=unknown
16505 hardcode_into_libs=no
16507 # when you set need_version to no, make sure it does not cause -set_version
16508 # flags to be left without arguments
16509 need_version=unknown
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16515 shlibpath_var=LIBPATH
16517 # AIX 3 has no versioning support, so we append a major version to the name.
16518 soname_spec='${libname}${release}${shared_ext}$major'
16525 hardcode_into_libs=yes
16526 if test "$host_cpu" = ia64; then
16527 # AIX 5 supports IA64
16528 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16529 shlibpath_var=LD_LIBRARY_PATH
16531 # With GCC up to 2.95.x, collect2 would create an import file
16532 # for dependence libraries. The import file would start with
16533 # the line `#! .'. This would cause the generated library to
16534 # depend on `.', always an invalid library. This was fixed in
16535 # development snapshots of GCC prior to 3.0.
16537 aix4 | aix4.[01] | aix4.[01].*)
16538 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16540 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16543 can_build_shared=no
16547 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16548 # soname into executable. Probably we can add versioning support to
16549 # collect2, so additional links can be useful in future.
16550 if test "$aix_use_runtimelinking" = yes; then
16551 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16552 # instead of lib<name>.a to let people know that these are not
16553 # typical AIX shared libraries.
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 # We preserve .a as extension for shared libraries through AIX4.2
16557 # and later when we are not doing run time linking.
16558 library_names_spec='${libname}${release}.a $libname.a'
16559 soname_spec='${libname}${release}${shared_ext}$major'
16561 shlibpath_var=LIBPATH
16566 library_names_spec='$libname.ixlibrary $libname.a'
16567 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16568 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'
16572 library_names_spec='${libname}${shared_ext}'
16573 dynamic_linker="$host_os ld.so"
16574 shlibpath_var=LIBRARY_PATH
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16585 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16586 # the default ld.so.conf also contains /usr/contrib/lib and
16587 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16588 # libtool to hard-code these into programs
16591 cygwin* | mingw* | pw32*)
16592 version_type=windows
16597 case $GCC,$host_os in
16598 yes,cygwin* | yes,mingw* | yes,pw32*)
16599 library_names_spec='$libname.dll.a'
16600 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16601 postinstall_cmds='base_file=`basename \${file}`~
16602 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16603 dldir=$destdir/`dirname \$dlpath`~
16604 test -d \$dldir || mkdir -p \$dldir~
16605 $install_prog $dir/$dlname \$dldir/$dlname'
16606 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16607 dlpath=$dir/\$dldll~
16609 shlibpath_overrides_runpath=yes
16613 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16614 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16615 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16618 # MinGW DLLs use traditional 'lib' prefix
16619 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16620 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16621 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16622 # It is most probably a Windows format PATH printed by
16623 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16624 # path with ; separators, and with drive letters. We can handle the
16625 # drive letters (cygwin fileutils understands them), so leave them,
16626 # especially as we might pass files found there to a mingw objdump,
16627 # which wouldn't understand a cygwinified path. Ahh.
16628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16634 # pw32 DLLs use 'pw' prefix rather than 'lib'
16635 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16641 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16643 supports_anon_versioning=no
16644 case `$LD -v 2>/dev/null` in
16645 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16646 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16647 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16648 *\ 2.11.*) ;; # other 2.11 versions
16649 *) supports_anon_versioning=yes ;;
16651 if test $supports_anon_versioning = yes; then
16652 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16653 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16654 $echo "local: *; };" >> $output_objdir/$libname.ver~
16655 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16657 $archive_expsym_cmds="$archive_cmds"
16665 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16668 dynamic_linker='Win32 ld.exe'
16669 # FIXME: first we should search . and the directory the executable is in
16673 darwin* | rhapsody*)
16674 dynamic_linker="$host_os dyld"
16675 version_type=darwin
16678 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16679 soname_spec='${libname}${release}${major}$shared_ext'
16680 shlibpath_overrides_runpath=yes
16681 shlibpath_var=DYLD_LIBRARY_PATH
16682 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16683 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16684 if test "$GCC" = yes; then
16685 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"`
16687 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16697 soname_spec='${libname}${release}${shared_ext}$major'
16698 shlibpath_var=LD_LIBRARY_PATH
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16710 soname_spec='${libname}${release}${shared_ext}$major'
16711 shlibpath_var=LD_LIBRARY_PATH
16712 shlibpath_overrides_runpath=no
16713 hardcode_into_libs=yes
16714 dynamic_linker='GNU ld.so'
16718 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16719 version_type=freebsd-$objformat
16720 case $version_type in
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16731 shlibpath_var=LD_LIBRARY_PATH
16734 shlibpath_overrides_runpath=yes
16736 freebsd3.01* | freebsdelf3.01*)
16737 shlibpath_overrides_runpath=yes
16738 hardcode_into_libs=yes
16741 shlibpath_overrides_runpath=no
16742 hardcode_into_libs=yes
16751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16752 soname_spec='${libname}${release}${shared_ext}$major'
16753 shlibpath_var=LD_LIBRARY_PATH
16754 hardcode_into_libs=yes
16757 hpux9* | hpux10* | hpux11*)
16758 # Give a soname corresponding to the major version so that dld.sl refuses to
16759 # link against other versions.
16763 case "$host_cpu" in
16766 hardcode_into_libs=yes
16767 dynamic_linker="$host_os dld.so"
16768 shlibpath_var=LD_LIBRARY_PATH
16769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16771 soname_spec='${libname}${release}${shared_ext}$major'
16772 if test "X$HPUX_IA64_MODE" = X32; then
16773 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16775 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16781 hardcode_into_libs=yes
16782 dynamic_linker="$host_os dld.sl"
16783 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16792 dynamic_linker="$host_os dld.sl"
16793 shlibpath_var=SHLIB_PATH
16794 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796 soname_spec='${libname}${release}${shared_ext}$major'
16799 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16800 postinstall_cmds='chmod 555 $lib'
16803 irix5* | irix6* | nonstopux*)
16805 nonstopux*) version_type=nonstopux ;;
16807 if test "$lt_cv_prog_gnu_ld" = yes; then
16815 soname_spec='${libname}${release}${shared_ext}$major'
16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16818 irix5* | nonstopux*)
16819 libsuff= shlibsuff=
16822 case $LD in # libtool.m4 will add one of these switches to LD
16823 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16824 libsuff= shlibsuff= libmagic=32-bit;;
16825 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16826 libsuff=32 shlibsuff=N32 libmagic=N32;;
16827 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16828 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16829 *) libsuff= shlibsuff= libmagic=never-match;;
16833 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16834 shlibpath_overrides_runpath=no
16835 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16836 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16837 hardcode_into_libs=yes
16840 # No shared lib support for Linux oldld, aout, or coff.
16841 linux*oldld* | linux*aout* | linux*coff*)
16845 # This must be Linux ELF.
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 shlibpath_overrides_runpath=no
16855 # This implies no fast_install, which is unacceptable.
16856 # Some rework will be needed to allow for fast_install
16857 # before this can be enabled.
16858 hardcode_into_libs=yes
16860 # Append ld.so.conf contents to the search path
16861 if test -f /etc/ld.so.conf; then
16862 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16863 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16866 case $host_cpu:$lt_cv_cc_64bit_output in
16867 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
16868 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
16869 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
16873 # We used to test for /lib/ld.so.1 and disable shared libraries on
16874 # powerpc, because MkLinux only supported shared libraries with the
16875 # GNU dynamic linker. Since this was broken with cross compilers,
16876 # most powerpc-linux boxes support dynamic linking these days and
16877 # people can always --disable-shared, the test was removed, and we
16878 # assume the GNU/Linux dynamic linker is in use.
16879 dynamic_linker='GNU/Linux ld.so'
16881 # Find out which ABI we are using (multilib Linux x86_64 hack).
16883 case "$host_cpu" in
16885 echo '#line 16885 "configure"' > conftest.$ac_ext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887 (eval $ac_compile) 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; then
16891 case `/usr/bin/file conftest.$ac_objext` in
16902 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16903 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 shlibpath_overrides_runpath=no
16914 hardcode_into_libs=yes
16915 dynamic_linker='GNU ld.so'
16922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16925 dynamic_linker='NetBSD (a.out) ld.so'
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 dynamic_linker='NetBSD ld.elf_so'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 shlibpath_overrides_runpath=yes
16933 hardcode_into_libs=yes
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 shlibpath_var=LD_LIBRARY_PATH
16940 shlibpath_overrides_runpath=yes
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948 soname_spec='${libname}${release}${shared_ext}$major'
16949 shlibpath_var=LD_LIBRARY_PATH
16950 shlibpath_overrides_runpath=yes
16957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16959 shlibpath_var=LD_LIBRARY_PATH
16960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16962 openbsd2.[89] | openbsd2.[89].*)
16963 shlibpath_overrides_runpath=no
16966 shlibpath_overrides_runpath=yes
16970 shlibpath_overrides_runpath=yes
16975 libname_spec='$name'
16978 library_names_spec='$libname${shared_ext} $libname.a'
16979 dynamic_linker='OS/2 ld.exe'
16980 shlibpath_var=LIBPATH
16983 osf3* | osf4* | osf5*)
16987 soname_spec='${libname}${release}${shared_ext}$major'
16988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16989 shlibpath_var=LD_LIBRARY_PATH
16990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16991 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16996 soname_spec='${libname}${release}${shared_ext}$major'
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 shlibpath_var=LD_LIBRARY_PATH
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 shlibpath_var=LD_LIBRARY_PATH
17008 shlibpath_overrides_runpath=yes
17009 hardcode_into_libs=yes
17010 # ldd complains unless libraries are executable
17011 postinstall_cmds='chmod +x $lib'
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 shlibpath_overrides_runpath=yes
17020 if test "$with_gnu_ld" = yes; then
17026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17029 soname_spec='${libname}${release}${shared_ext}$major'
17030 shlibpath_var=LD_LIBRARY_PATH
17031 case $host_vendor in
17033 shlibpath_overrides_runpath=no
17035 export_dynamic_flag_spec='${wl}-Blargedynsym'
17036 runpath_var=LD_RUN_PATH
17044 shlibpath_overrides_runpath=no
17045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17051 if test -d /usr/nec ;then
17053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17054 soname_spec='$libname${shared_ext}.$major'
17055 shlibpath_var=LD_LIBRARY_PATH
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 shlibpath_var=LD_LIBRARY_PATH
17070 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17071 echo "${ECHO_T}$dynamic_linker" >&6
17072 test "$dynamic_linker" = no && can_build_shared=no
17074 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17075 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17076 hardcode_action_GCJ=
17077 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17078 test -n "$runpath_var GCJ" || \
17079 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17081 # We can hardcode non-existant directories.
17082 if test "$hardcode_direct_GCJ" != no &&
17083 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17084 # have to relink, otherwise we might link with an installed library
17085 # when we should be linking with a yet-to-be-installed one
17086 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17087 test "$hardcode_minus_L_GCJ" != no; then
17088 # Linking always hardcodes the temporary library directory.
17089 hardcode_action_GCJ=relink
17091 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17092 hardcode_action_GCJ=immediate
17095 # We cannot hardcode anything, or else we can only hardcode existing
17097 hardcode_action_GCJ=unsupported
17099 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17100 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17102 if test "$hardcode_action_GCJ" = relink; then
17103 # Fast installation is not supported
17104 enable_fast_install=no
17105 elif test "$shlibpath_overrides_runpath" = yes ||
17106 test "$enable_shared" = no; then
17107 # Fast installation is not necessary
17108 enable_fast_install=needless
17113 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17114 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17115 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17116 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17117 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17118 echo "$as_me:$LINENO: result: yes" >&5
17119 echo "${ECHO_T}yes" >&6
17121 # FIXME - insert some real tests, host_os isn't really good enough
17124 if test -n "$STRIP" ; then
17125 striplib="$STRIP -x"
17126 echo "$as_me:$LINENO: result: yes" >&5
17127 echo "${ECHO_T}yes" >&6
17129 echo "$as_me:$LINENO: result: no" >&5
17130 echo "${ECHO_T}no" >&6
17134 echo "$as_me:$LINENO: result: no" >&5
17135 echo "${ECHO_T}no" >&6
17140 if test "x$enable_dlopen" != xyes; then
17141 enable_dlopen=unknown
17142 enable_dlopen_self=unknown
17143 enable_dlopen_self_static=unknown
17150 lt_cv_dlopen="load_add_on"
17152 lt_cv_dlopen_self=yes
17156 lt_cv_dlopen="LoadLibrary"
17161 lt_cv_dlopen="dlopen"
17166 # if libdl is installed we need to link against it
17167 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17168 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 ac_check_lib_save_LIBS=$LIBS
17174 cat >conftest.$ac_ext <<_ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17181 /* Override any gcc2 internal prototype to avoid an error. */
17185 /* We use char because int might match the return type of a gcc2
17186 builtin and then its argument prototype would still apply. */
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17198 (eval $ac_link) 2>conftest.er1
17200 grep -v '^ *+' conftest.er1 >conftest.err
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag"
17206 || test ! -s conftest.err'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest$ac_exeext'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_cv_lib_dl_dlopen=yes
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17223 ac_cv_lib_dl_dlopen=no
17225 rm -f conftest.err conftest.$ac_objext \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17229 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17230 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17231 if test $ac_cv_lib_dl_dlopen = yes; then
17232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17235 lt_cv_dlopen="dyld"
17237 lt_cv_dlopen_self=yes
17244 echo "$as_me:$LINENO: checking for shl_load" >&5
17245 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17246 if test "${ac_cv_func_shl_load+set}" = set; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 cat >conftest.$ac_ext <<_ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17257 #define shl_load innocuous_shl_load
17259 /* System header to define __stub macros and hopefully few prototypes,
17260 which can conflict with char shl_load (); below.
17261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17262 <limits.h> exists even on freestanding compilers. */
17265 # include <limits.h>
17267 # include <assert.h>
17272 /* Override any gcc2 internal prototype to avoid an error. */
17277 /* We use char because int might match the return type of a gcc2
17278 builtin and then its argument prototype would still apply. */
17280 /* The GNU C library defines this for functions which it implements
17281 to always fail with ENOSYS. Some functions are actually named
17282 something starting with __ and the normal name is an alias. */
17283 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17286 char (*f) () = shl_load;
17295 return f != shl_load;
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17302 (eval $ac_link) 2>conftest.er1
17304 grep -v '^ *+' conftest.er1 >conftest.err
17306 cat conftest.err >&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } &&
17309 { ac_try='test -z "$ac_c_werror_flag"
17310 || test ! -s conftest.err'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try='test -s conftest$ac_exeext'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
17322 ac_cv_func_shl_load=yes
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17327 ac_cv_func_shl_load=no
17329 rm -f conftest.err conftest.$ac_objext \
17330 conftest$ac_exeext conftest.$ac_ext
17332 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17333 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17334 if test $ac_cv_func_shl_load = yes; then
17335 lt_cv_dlopen="shl_load"
17337 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17338 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17339 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 ac_check_lib_save_LIBS=$LIBS
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17351 /* Override any gcc2 internal prototype to avoid an error. */
17355 /* We use char because int might match the return type of a gcc2
17356 builtin and then its argument prototype would still apply. */
17366 rm -f conftest.$ac_objext conftest$ac_exeext
17367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17368 (eval $ac_link) 2>conftest.er1
17370 grep -v '^ *+' conftest.er1 >conftest.err
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } &&
17375 { ac_try='test -z "$ac_c_werror_flag"
17376 || test ! -s conftest.err'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; } &&
17382 { ac_try='test -s conftest$ac_exeext'
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_cv_lib_dld_shl_load=yes
17390 echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17393 ac_cv_lib_dld_shl_load=no
17395 rm -f conftest.err conftest.$ac_objext \
17396 conftest$ac_exeext conftest.$ac_ext
17397 LIBS=$ac_check_lib_save_LIBS
17399 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17400 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17401 if test $ac_cv_lib_dld_shl_load = yes; then
17402 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17404 echo "$as_me:$LINENO: checking for dlopen" >&5
17405 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17406 if test "${ac_cv_func_dlopen+set}" = set; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 cat >conftest.$ac_ext <<_ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17417 #define dlopen innocuous_dlopen
17419 /* System header to define __stub macros and hopefully few prototypes,
17420 which can conflict with char dlopen (); below.
17421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422 <limits.h> exists even on freestanding compilers. */
17425 # include <limits.h>
17427 # include <assert.h>
17432 /* Override any gcc2 internal prototype to avoid an error. */
17437 /* We use char because int might match the return type of a gcc2
17438 builtin and then its argument prototype would still apply. */
17440 /* The GNU C library defines this for functions which it implements
17441 to always fail with ENOSYS. Some functions are actually named
17442 something starting with __ and the normal name is an alias. */
17443 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17446 char (*f) () = dlopen;
17455 return f != dlopen;
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462 (eval $ac_link) 2>conftest.er1
17464 grep -v '^ *+' conftest.er1 >conftest.err
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
17469 { ac_try='test -z "$ac_c_werror_flag"
17470 || test ! -s conftest.err'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 ac_cv_func_dlopen=yes
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 ac_cv_func_dlopen=no
17489 rm -f conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
17492 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17493 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17494 if test $ac_cv_func_dlopen = yes; then
17495 lt_cv_dlopen="dlopen"
17497 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17498 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17499 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 ac_check_lib_save_LIBS=$LIBS
17504 cat >conftest.$ac_ext <<_ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h. */
17511 /* Override any gcc2 internal prototype to avoid an error. */
17515 /* We use char because int might match the return type of a gcc2
17516 builtin and then its argument prototype would still apply. */
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17528 (eval $ac_link) 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -z "$ac_c_werror_flag"
17536 || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_cv_lib_dl_dlopen=yes
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 ac_cv_lib_dl_dlopen=no
17555 rm -f conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557 LIBS=$ac_check_lib_save_LIBS
17559 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17560 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17561 if test $ac_cv_lib_dl_dlopen = yes; then
17562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17564 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17565 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17566 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 ac_check_lib_save_LIBS=$LIBS
17570 LIBS="-lsvld $LIBS"
17571 cat >conftest.$ac_ext <<_ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17578 /* Override any gcc2 internal prototype to avoid an error. */
17582 /* We use char because int might match the return type of a gcc2
17583 builtin and then its argument prototype would still apply. */
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595 (eval $ac_link) 2>conftest.er1
17597 grep -v '^ *+' conftest.er1 >conftest.err
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest$ac_exeext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_cv_lib_svld_dlopen=yes
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 ac_cv_lib_svld_dlopen=no
17622 rm -f conftest.err conftest.$ac_objext \
17623 conftest$ac_exeext conftest.$ac_ext
17624 LIBS=$ac_check_lib_save_LIBS
17626 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17627 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17628 if test $ac_cv_lib_svld_dlopen = yes; then
17629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17631 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17632 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17633 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 ac_check_lib_save_LIBS=$LIBS
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17645 /* Override any gcc2 internal prototype to avoid an error. */
17649 /* We use char because int might match the return type of a gcc2
17650 builtin and then its argument prototype would still apply. */
17660 rm -f conftest.$ac_objext conftest$ac_exeext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17662 (eval $ac_link) 2>conftest.er1
17664 grep -v '^ *+' conftest.er1 >conftest.err
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
17669 { ac_try='test -z "$ac_c_werror_flag"
17670 || test ! -s conftest.err'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest$ac_exeext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_lib_dld_dld_link=yes
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 ac_cv_lib_dld_dld_link=no
17689 rm -f conftest.err conftest.$ac_objext \
17690 conftest$ac_exeext conftest.$ac_ext
17691 LIBS=$ac_check_lib_save_LIBS
17693 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17694 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17695 if test $ac_cv_lib_dld_dld_link = yes; then
17696 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17717 if test "x$lt_cv_dlopen" != xno; then
17723 case $lt_cv_dlopen in
17725 save_CPPFLAGS="$CPPFLAGS"
17726 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17728 save_LDFLAGS="$LDFLAGS"
17729 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17732 LIBS="$lt_cv_dlopen_libs $LIBS"
17734 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17735 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17736 if test "${lt_cv_dlopen_self+set}" = set; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17739 if test "$cross_compiling" = yes; then :
17740 lt_cv_dlopen_self=cross
17742 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17743 lt_status=$lt_dlunknown
17744 cat > conftest.$ac_ext <<EOF
17745 #line 17745 "configure"
17746 #include "confdefs.h"
17755 # define LT_DLGLOBAL RTLD_GLOBAL
17758 # define LT_DLGLOBAL DL_GLOBAL
17760 # define LT_DLGLOBAL 0
17764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17765 find out it does not work in some platform. */
17766 #ifndef LT_DLLAZY_OR_NOW
17768 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17771 # define LT_DLLAZY_OR_NOW DL_LAZY
17774 # define LT_DLLAZY_OR_NOW RTLD_NOW
17777 # define LT_DLLAZY_OR_NOW DL_NOW
17779 # define LT_DLLAZY_OR_NOW 0
17787 extern "C" void exit (int);
17790 void fnord() { int i=42;}
17793 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17794 int status = $lt_dlunknown;
17798 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17799 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17800 /* dlclose (self); */
17806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17807 (eval $ac_link) 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17811 (./conftest; exit; ) 2>/dev/null
17813 case x$lt_status in
17814 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17815 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17816 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17819 # compilation failed
17820 lt_cv_dlopen_self=no
17827 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17828 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17830 if test "x$lt_cv_dlopen_self" = xyes; then
17831 LDFLAGS="$LDFLAGS $link_static_flag"
17832 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17833 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17834 if test "${lt_cv_dlopen_self_static+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 if test "$cross_compiling" = yes; then :
17838 lt_cv_dlopen_self_static=cross
17840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17841 lt_status=$lt_dlunknown
17842 cat > conftest.$ac_ext <<EOF
17843 #line 17843 "configure"
17844 #include "confdefs.h"
17853 # define LT_DLGLOBAL RTLD_GLOBAL
17856 # define LT_DLGLOBAL DL_GLOBAL
17858 # define LT_DLGLOBAL 0
17862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17863 find out it does not work in some platform. */
17864 #ifndef LT_DLLAZY_OR_NOW
17866 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17869 # define LT_DLLAZY_OR_NOW DL_LAZY
17872 # define LT_DLLAZY_OR_NOW RTLD_NOW
17875 # define LT_DLLAZY_OR_NOW DL_NOW
17877 # define LT_DLLAZY_OR_NOW 0
17885 extern "C" void exit (int);
17888 void fnord() { int i=42;}
17891 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17892 int status = $lt_dlunknown;
17896 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17897 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17898 /* dlclose (self); */
17904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905 (eval $ac_link) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17909 (./conftest; exit; ) 2>/dev/null
17911 case x$lt_status in
17912 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17913 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17914 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17917 # compilation failed
17918 lt_cv_dlopen_self_static=no
17925 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17926 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17929 CPPFLAGS="$save_CPPFLAGS"
17930 LDFLAGS="$save_LDFLAGS"
17935 case $lt_cv_dlopen_self in
17936 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17937 *) enable_dlopen_self=unknown ;;
17940 case $lt_cv_dlopen_self_static in
17941 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17942 *) enable_dlopen_self_static=unknown ;;
17947 # The else clause should only fire when bootstrapping the
17948 # libtool distribution, otherwise you forgot to ship ltmain.sh
17949 # with your package, and you will get complaints that there are
17950 # no rules to generate ltmain.sh.
17951 if test -f "$ltmain"; then
17952 # See if we are running on zsh, and set the options which allow our commands through
17953 # without removal of \ escapes.
17954 if test -n "${ZSH_VERSION+set}" ; then
17955 setopt NO_GLOB_SUBST
17957 # Now quote all the things that may contain metacharacters while being
17958 # careful not to overquote the AC_SUBSTed values. We take copies of the
17959 # variables and quote the copies for generation of the libtool script.
17960 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17962 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17963 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17964 deplibs_check_method reload_flag reload_cmds need_locks \
17965 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17966 lt_cv_sys_global_symbol_to_c_name_address \
17967 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17968 old_postinstall_cmds old_postuninstall_cmds \
17972 lt_prog_compiler_wl_GCJ \
17973 lt_prog_compiler_pic_GCJ \
17974 lt_prog_compiler_static_GCJ \
17975 lt_prog_compiler_no_builtin_flag_GCJ \
17976 export_dynamic_flag_spec_GCJ \
17977 thread_safe_flag_spec_GCJ \
17978 whole_archive_flag_spec_GCJ \
17979 enable_shared_with_static_runtimes_GCJ \
17980 old_archive_cmds_GCJ \
17981 old_archive_from_new_cmds_GCJ \
17982 predep_objects_GCJ \
17983 postdep_objects_GCJ \
17986 compiler_lib_search_path_GCJ \
17988 archive_expsym_cmds_GCJ \
17989 postinstall_cmds_GCJ \
17990 postuninstall_cmds_GCJ \
17991 old_archive_from_expsyms_cmds_GCJ \
17992 allow_undefined_flag_GCJ \
17993 no_undefined_flag_GCJ \
17994 export_symbols_cmds_GCJ \
17995 hardcode_libdir_flag_spec_GCJ \
17996 hardcode_libdir_flag_spec_ld_GCJ \
17997 hardcode_libdir_separator_GCJ \
17998 hardcode_automatic_GCJ \
18000 module_expsym_cmds_GCJ \
18001 lt_cv_prog_compiler_c_o_GCJ \
18002 exclude_expsyms_GCJ \
18003 include_expsyms_GCJ; do
18006 old_archive_cmds_GCJ | \
18007 old_archive_from_new_cmds_GCJ | \
18008 archive_cmds_GCJ | \
18009 archive_expsym_cmds_GCJ | \
18010 module_cmds_GCJ | \
18011 module_expsym_cmds_GCJ | \
18012 old_archive_from_expsyms_cmds_GCJ | \
18013 export_symbols_cmds_GCJ | \
18014 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18015 postinstall_cmds | postuninstall_cmds | \
18016 old_postinstall_cmds | old_postuninstall_cmds | \
18017 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18018 # Double-quote double-evaled strings.
18019 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18022 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18028 *'\$0 --fallback-echo"')
18029 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18035 cat <<__EOF__ >> "$cfgfile"
18036 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18038 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18040 # Shell to use when invoking shell scripts.
18043 # Whether or not to build shared libraries.
18044 build_libtool_libs=$enable_shared
18046 # Whether or not to build static libraries.
18047 build_old_libs=$enable_static
18049 # Whether or not to add -lc for building shared libraries.
18050 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18052 # Whether or not to disallow shared libs when runtime libs are static
18053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18055 # Whether or not to optimize for fast installation.
18056 fast_install=$enable_fast_install
18059 host_alias=$host_alias
18062 # An echo program that does not interpret backslashes.
18067 AR_FLAGS=$lt_AR_FLAGS
18072 # A language-specific compiler.
18073 CC=$lt_compiler_GCJ
18075 # Is the compiler the GNU C compiler?
18081 # The linker used to build libraries.
18084 # Whether we need hard or soft links.
18087 # A BSD-compatible nm program.
18090 # A symbol stripping program
18093 # Used to examine libraries when file_magic_cmd begins "file"
18094 MAGIC_CMD=$MAGIC_CMD
18096 # Used on cygwin: DLL creation program.
18099 # Used on cygwin: object dumper.
18102 # Used on cygwin: assembler.
18105 # The name of the directory that contains temporary libtool files.
18108 # How to create reloadable object files.
18109 reload_flag=$lt_reload_flag
18110 reload_cmds=$lt_reload_cmds
18112 # How to pass a linker flag through the compiler.
18113 wl=$lt_lt_prog_compiler_wl_GCJ
18115 # Object file suffix (normally "o").
18116 objext="$ac_objext"
18118 # Old archive suffix (normally "a").
18121 # Shared library suffix (normally ".so").
18124 # Executable file suffix (normally "").
18127 # Additional compiler flags for building library objects.
18128 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18131 # What is the maximum length of a command?
18132 max_cmd_len=$lt_cv_sys_max_cmd_len
18134 # Does compiler simultaneously support -c and -o options?
18135 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18137 # Must we lock files when doing compilation ?
18138 need_locks=$lt_need_locks
18140 # Do we need the lib prefix for modules?
18141 need_lib_prefix=$need_lib_prefix
18143 # Do we need a version for libraries?
18144 need_version=$need_version
18146 # Whether dlopen is supported.
18147 dlopen_support=$enable_dlopen
18149 # Whether dlopen of programs is supported.
18150 dlopen_self=$enable_dlopen_self
18152 # Whether dlopen of statically linked programs is supported.
18153 dlopen_self_static=$enable_dlopen_self_static
18155 # Compiler flag to prevent dynamic linking.
18156 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18158 # Compiler flag to turn off builtin functions.
18159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18161 # Compiler flag to allow reflexive dlopens.
18162 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18164 # Compiler flag to generate shared objects directly from archives.
18165 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18167 # Compiler flag to generate thread-safe objects.
18168 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18170 # Library versioning type.
18171 version_type=$version_type
18173 # Format of library name prefix.
18174 libname_spec=$lt_libname_spec
18176 # List of archive names. First name is the real one, the rest are links.
18177 # The last name is the one that the linker finds with -lNAME.
18178 library_names_spec=$lt_library_names_spec
18180 # The coded name of the library, if different from the real name.
18181 soname_spec=$lt_soname_spec
18183 # Commands used to build and install an old-style archive.
18185 old_archive_cmds=$lt_old_archive_cmds_GCJ
18186 old_postinstall_cmds=$lt_old_postinstall_cmds
18187 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18189 # Create an old-style archive from a shared archive.
18190 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18192 # Create a temporary old-style archive to link instead of a shared archive.
18193 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18195 # Commands used to build and install a shared archive.
18196 archive_cmds=$lt_archive_cmds_GCJ
18197 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18198 postinstall_cmds=$lt_postinstall_cmds
18199 postuninstall_cmds=$lt_postuninstall_cmds
18201 # Commands used to build a loadable module (assumed same as above if empty)
18202 module_cmds=$lt_module_cmds_GCJ
18203 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18205 # Commands to strip libraries.
18206 old_striplib=$lt_old_striplib
18207 striplib=$lt_striplib
18209 # Dependencies to place before the objects being linked to create a
18211 predep_objects=$lt_predep_objects_GCJ
18213 # Dependencies to place after the objects being linked to create a
18215 postdep_objects=$lt_postdep_objects_GCJ
18217 # Dependencies to place before the objects being linked to create a
18219 predeps=$lt_predeps_GCJ
18221 # Dependencies to place after the objects being linked to create a
18223 postdeps=$lt_postdeps_GCJ
18225 # The library search path used internally by the compiler when linking
18226 # a shared library.
18227 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18229 # Method to check whether dependent libraries are shared objects.
18230 deplibs_check_method=$lt_deplibs_check_method
18232 # Command to use when deplibs_check_method == file_magic.
18233 file_magic_cmd=$lt_file_magic_cmd
18235 # Flag that allows shared libraries with undefined symbols to be built.
18236 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18238 # Flag that forces no undefined symbols.
18239 no_undefined_flag=$lt_no_undefined_flag_GCJ
18241 # Commands used to finish a libtool library installation in a directory.
18242 finish_cmds=$lt_finish_cmds
18244 # Same as above, but a single script fragment to be evaled but not shown.
18245 finish_eval=$lt_finish_eval
18247 # Take the output of nm and produce a listing of raw symbols and C names.
18248 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18250 # Transform the output of nm in a proper C declaration
18251 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18253 # Transform the output of nm in a C name address pair
18254 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18256 # This is the shared library runtime path variable.
18257 runpath_var=$runpath_var
18259 # This is the shared library path variable.
18260 shlibpath_var=$shlibpath_var
18262 # Is shlibpath searched before the hard-coded library search path?
18263 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18265 # How to hardcode a shared library path into an executable.
18266 hardcode_action=$hardcode_action_GCJ
18268 # Whether we should hardcode library paths into libraries.
18269 hardcode_into_libs=$hardcode_into_libs
18271 # Flag to hardcode \$libdir into a binary during linking.
18272 # This must work even if \$libdir does not exist.
18273 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18275 # If ld is used when linking, flag to hardcode \$libdir into
18276 # a binary during linking. This must work even if \$libdir does
18278 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18280 # Whether we need a single -rpath flag with a separated argument.
18281 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18283 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18284 # resulting binary.
18285 hardcode_direct=$hardcode_direct_GCJ
18287 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18288 # resulting binary.
18289 hardcode_minus_L=$hardcode_minus_L_GCJ
18291 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18292 # the resulting binary.
18293 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18295 # Set to yes if building a shared library automatically hardcodes DIR into the library
18296 # and all subsequent libraries and executables linked against it.
18297 hardcode_automatic=$hardcode_automatic_GCJ
18299 # Variables whose values should be saved in libtool wrapper scripts and
18300 # restored at relink time.
18301 variables_saved_for_relink="$variables_saved_for_relink"
18303 # Whether libtool must link a program against all its dependency libraries.
18304 link_all_deplibs=$link_all_deplibs_GCJ
18306 # Compile-time system search path for libraries
18307 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18309 # Run-time system search path for libraries
18310 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18312 # Fix the shell variable \$srcfile for the compiler.
18313 fix_srcfile_path="$fix_srcfile_path_GCJ"
18315 # Set to yes if exported symbols are required.
18316 always_export_symbols=$always_export_symbols_GCJ
18318 # The commands to list exported symbols.
18319 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18321 # The commands to extract the exported symbol list from a shared archive.
18322 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18324 # Symbols that should not be listed in the preloaded symbols.
18325 exclude_expsyms=$lt_exclude_expsyms_GCJ
18327 # Symbols that must always be exported.
18328 include_expsyms=$lt_include_expsyms_GCJ
18330 # ### END LIBTOOL TAG CONFIG: $tagname
18336 # If there is no Makefile yet, we rely on a make rule to execute
18337 # `config.status --recheck' to rerun these tests and create the
18338 # libtool script then.
18339 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18340 if test -f "$ltmain_in"; then
18341 test -f Makefile && make "$ltmain"
18347 ac_cpp='$CPP $CPPFLAGS'
18348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18363 # Source file extension for RC test sources.
18366 # Object file extension for compiled RC test sources.
18370 # Code to be used in simple compile tests
18371 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18373 # Code to be used in simple link tests
18374 lt_simple_link_test_code="$lt_simple_compile_test_code"
18376 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18378 # If no C compiler was specified, use CC.
18381 # Allow CC to be a program name with arguments.
18385 # Allow CC to be a program name with arguments.
18390 lt_cv_prog_compiler_c_o_RC=yes
18392 # The else clause should only fire when bootstrapping the
18393 # libtool distribution, otherwise you forgot to ship ltmain.sh
18394 # with your package, and you will get complaints that there are
18395 # no rules to generate ltmain.sh.
18396 if test -f "$ltmain"; then
18397 # See if we are running on zsh, and set the options which allow our commands through
18398 # without removal of \ escapes.
18399 if test -n "${ZSH_VERSION+set}" ; then
18400 setopt NO_GLOB_SUBST
18402 # Now quote all the things that may contain metacharacters while being
18403 # careful not to overquote the AC_SUBSTed values. We take copies of the
18404 # variables and quote the copies for generation of the libtool script.
18405 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18407 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18408 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18409 deplibs_check_method reload_flag reload_cmds need_locks \
18410 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18411 lt_cv_sys_global_symbol_to_c_name_address \
18412 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18413 old_postinstall_cmds old_postuninstall_cmds \
18417 lt_prog_compiler_wl_RC \
18418 lt_prog_compiler_pic_RC \
18419 lt_prog_compiler_static_RC \
18420 lt_prog_compiler_no_builtin_flag_RC \
18421 export_dynamic_flag_spec_RC \
18422 thread_safe_flag_spec_RC \
18423 whole_archive_flag_spec_RC \
18424 enable_shared_with_static_runtimes_RC \
18425 old_archive_cmds_RC \
18426 old_archive_from_new_cmds_RC \
18427 predep_objects_RC \
18428 postdep_objects_RC \
18431 compiler_lib_search_path_RC \
18433 archive_expsym_cmds_RC \
18434 postinstall_cmds_RC \
18435 postuninstall_cmds_RC \
18436 old_archive_from_expsyms_cmds_RC \
18437 allow_undefined_flag_RC \
18438 no_undefined_flag_RC \
18439 export_symbols_cmds_RC \
18440 hardcode_libdir_flag_spec_RC \
18441 hardcode_libdir_flag_spec_ld_RC \
18442 hardcode_libdir_separator_RC \
18443 hardcode_automatic_RC \
18445 module_expsym_cmds_RC \
18446 lt_cv_prog_compiler_c_o_RC \
18447 exclude_expsyms_RC \
18448 include_expsyms_RC; do
18451 old_archive_cmds_RC | \
18452 old_archive_from_new_cmds_RC | \
18453 archive_cmds_RC | \
18454 archive_expsym_cmds_RC | \
18456 module_expsym_cmds_RC | \
18457 old_archive_from_expsyms_cmds_RC | \
18458 export_symbols_cmds_RC | \
18459 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18460 postinstall_cmds | postuninstall_cmds | \
18461 old_postinstall_cmds | old_postuninstall_cmds | \
18462 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18463 # Double-quote double-evaled strings.
18464 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18467 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18473 *'\$0 --fallback-echo"')
18474 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18480 cat <<__EOF__ >> "$cfgfile"
18481 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18483 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18485 # Shell to use when invoking shell scripts.
18488 # Whether or not to build shared libraries.
18489 build_libtool_libs=$enable_shared
18491 # Whether or not to build static libraries.
18492 build_old_libs=$enable_static
18494 # Whether or not to add -lc for building shared libraries.
18495 build_libtool_need_lc=$archive_cmds_need_lc_RC
18497 # Whether or not to disallow shared libs when runtime libs are static
18498 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18500 # Whether or not to optimize for fast installation.
18501 fast_install=$enable_fast_install
18504 host_alias=$host_alias
18507 # An echo program that does not interpret backslashes.
18512 AR_FLAGS=$lt_AR_FLAGS
18517 # A language-specific compiler.
18520 # Is the compiler the GNU C compiler?
18526 # The linker used to build libraries.
18529 # Whether we need hard or soft links.
18532 # A BSD-compatible nm program.
18535 # A symbol stripping program
18538 # Used to examine libraries when file_magic_cmd begins "file"
18539 MAGIC_CMD=$MAGIC_CMD
18541 # Used on cygwin: DLL creation program.
18544 # Used on cygwin: object dumper.
18547 # Used on cygwin: assembler.
18550 # The name of the directory that contains temporary libtool files.
18553 # How to create reloadable object files.
18554 reload_flag=$lt_reload_flag
18555 reload_cmds=$lt_reload_cmds
18557 # How to pass a linker flag through the compiler.
18558 wl=$lt_lt_prog_compiler_wl_RC
18560 # Object file suffix (normally "o").
18561 objext="$ac_objext"
18563 # Old archive suffix (normally "a").
18566 # Shared library suffix (normally ".so").
18569 # Executable file suffix (normally "").
18572 # Additional compiler flags for building library objects.
18573 pic_flag=$lt_lt_prog_compiler_pic_RC
18576 # What is the maximum length of a command?
18577 max_cmd_len=$lt_cv_sys_max_cmd_len
18579 # Does compiler simultaneously support -c and -o options?
18580 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18582 # Must we lock files when doing compilation ?
18583 need_locks=$lt_need_locks
18585 # Do we need the lib prefix for modules?
18586 need_lib_prefix=$need_lib_prefix
18588 # Do we need a version for libraries?
18589 need_version=$need_version
18591 # Whether dlopen is supported.
18592 dlopen_support=$enable_dlopen
18594 # Whether dlopen of programs is supported.
18595 dlopen_self=$enable_dlopen_self
18597 # Whether dlopen of statically linked programs is supported.
18598 dlopen_self_static=$enable_dlopen_self_static
18600 # Compiler flag to prevent dynamic linking.
18601 link_static_flag=$lt_lt_prog_compiler_static_RC
18603 # Compiler flag to turn off builtin functions.
18604 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18606 # Compiler flag to allow reflexive dlopens.
18607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18609 # Compiler flag to generate shared objects directly from archives.
18610 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18612 # Compiler flag to generate thread-safe objects.
18613 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18615 # Library versioning type.
18616 version_type=$version_type
18618 # Format of library name prefix.
18619 libname_spec=$lt_libname_spec
18621 # List of archive names. First name is the real one, the rest are links.
18622 # The last name is the one that the linker finds with -lNAME.
18623 library_names_spec=$lt_library_names_spec
18625 # The coded name of the library, if different from the real name.
18626 soname_spec=$lt_soname_spec
18628 # Commands used to build and install an old-style archive.
18630 old_archive_cmds=$lt_old_archive_cmds_RC
18631 old_postinstall_cmds=$lt_old_postinstall_cmds
18632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18634 # Create an old-style archive from a shared archive.
18635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18637 # Create a temporary old-style archive to link instead of a shared archive.
18638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18640 # Commands used to build and install a shared archive.
18641 archive_cmds=$lt_archive_cmds_RC
18642 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18643 postinstall_cmds=$lt_postinstall_cmds
18644 postuninstall_cmds=$lt_postuninstall_cmds
18646 # Commands used to build a loadable module (assumed same as above if empty)
18647 module_cmds=$lt_module_cmds_RC
18648 module_expsym_cmds=$lt_module_expsym_cmds_RC
18650 # Commands to strip libraries.
18651 old_striplib=$lt_old_striplib
18652 striplib=$lt_striplib
18654 # Dependencies to place before the objects being linked to create a
18656 predep_objects=$lt_predep_objects_RC
18658 # Dependencies to place after the objects being linked to create a
18660 postdep_objects=$lt_postdep_objects_RC
18662 # Dependencies to place before the objects being linked to create a
18664 predeps=$lt_predeps_RC
18666 # Dependencies to place after the objects being linked to create a
18668 postdeps=$lt_postdeps_RC
18670 # The library search path used internally by the compiler when linking
18671 # a shared library.
18672 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18674 # Method to check whether dependent libraries are shared objects.
18675 deplibs_check_method=$lt_deplibs_check_method
18677 # Command to use when deplibs_check_method == file_magic.
18678 file_magic_cmd=$lt_file_magic_cmd
18680 # Flag that allows shared libraries with undefined symbols to be built.
18681 allow_undefined_flag=$lt_allow_undefined_flag_RC
18683 # Flag that forces no undefined symbols.
18684 no_undefined_flag=$lt_no_undefined_flag_RC
18686 # Commands used to finish a libtool library installation in a directory.
18687 finish_cmds=$lt_finish_cmds
18689 # Same as above, but a single script fragment to be evaled but not shown.
18690 finish_eval=$lt_finish_eval
18692 # Take the output of nm and produce a listing of raw symbols and C names.
18693 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18695 # Transform the output of nm in a proper C declaration
18696 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18698 # Transform the output of nm in a C name address pair
18699 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18701 # This is the shared library runtime path variable.
18702 runpath_var=$runpath_var
18704 # This is the shared library path variable.
18705 shlibpath_var=$shlibpath_var
18707 # Is shlibpath searched before the hard-coded library search path?
18708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18710 # How to hardcode a shared library path into an executable.
18711 hardcode_action=$hardcode_action_RC
18713 # Whether we should hardcode library paths into libraries.
18714 hardcode_into_libs=$hardcode_into_libs
18716 # Flag to hardcode \$libdir into a binary during linking.
18717 # This must work even if \$libdir does not exist.
18718 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18720 # If ld is used when linking, flag to hardcode \$libdir into
18721 # a binary during linking. This must work even if \$libdir does
18723 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18725 # Whether we need a single -rpath flag with a separated argument.
18726 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18728 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18729 # resulting binary.
18730 hardcode_direct=$hardcode_direct_RC
18732 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18733 # resulting binary.
18734 hardcode_minus_L=$hardcode_minus_L_RC
18736 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18737 # the resulting binary.
18738 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18740 # Set to yes if building a shared library automatically hardcodes DIR into the library
18741 # and all subsequent libraries and executables linked against it.
18742 hardcode_automatic=$hardcode_automatic_RC
18744 # Variables whose values should be saved in libtool wrapper scripts and
18745 # restored at relink time.
18746 variables_saved_for_relink="$variables_saved_for_relink"
18748 # Whether libtool must link a program against all its dependency libraries.
18749 link_all_deplibs=$link_all_deplibs_RC
18751 # Compile-time system search path for libraries
18752 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18754 # Run-time system search path for libraries
18755 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18757 # Fix the shell variable \$srcfile for the compiler.
18758 fix_srcfile_path="$fix_srcfile_path_RC"
18760 # Set to yes if exported symbols are required.
18761 always_export_symbols=$always_export_symbols_RC
18763 # The commands to list exported symbols.
18764 export_symbols_cmds=$lt_export_symbols_cmds_RC
18766 # The commands to extract the exported symbol list from a shared archive.
18767 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18769 # Symbols that should not be listed in the preloaded symbols.
18770 exclude_expsyms=$lt_exclude_expsyms_RC
18772 # Symbols that must always be exported.
18773 include_expsyms=$lt_include_expsyms_RC
18775 # ### END LIBTOOL TAG CONFIG: $tagname
18781 # If there is no Makefile yet, we rely on a make rule to execute
18782 # `config.status --recheck' to rerun these tests and create the
18783 # libtool script then.
18784 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18785 if test -f "$ltmain_in"; then
18786 test -f Makefile && make "$ltmain"
18792 ac_cpp='$CPP $CPPFLAGS'
18793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18802 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18803 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18804 { (exit 1); exit 1; }; }
18808 # Append the new tag name to the list of available tags.
18809 if test -n "$tagname" ; then
18810 available_tags="$available_tags $tagname"
18816 # Now substitute the updated list of available tags.
18817 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18818 mv "${ofile}T" "$ofile"
18822 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18823 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18824 { (exit 1); exit 1; }; }
18829 if test ! -f "${ofile}"; then
18830 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18831 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18833 if test -z `grep -e 'shared_ext.*shrext' $ofile`; then
18834 # Make sure $shared_ext gets set to $shrext
18835 if sed -e 's/shared_ext/shrext/g' "$ofile" > "${ofile}T"; then
18836 mv "${ofile}T" "$ofile"
18840 { { echo "$as_me:$LINENO: error: unable to update shared_ext." >&5
18841 echo "$as_me: error: unable to update shared_ext." >&2;}
18842 { (exit 1); exit 1; }; }
18848 # This can be used to rebuild libtool when needed
18849 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18851 # Always use our own libtool.
18852 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18854 # Prevent multiple expansion
18875 for ac_prog in gzip uncompress compress
18877 # Extract the first word of "$ac_prog", so it can be a program name with args.
18878 set dummy $ac_prog; ac_word=$2
18879 echo "$as_me:$LINENO: checking for $ac_word" >&5
18880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18881 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 if test -n "$UNCOMPRESS"; then
18885 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
18887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888 for as_dir in $PATH
18891 test -z "$as_dir" && as_dir=.
18892 for ac_exec_ext in '' $ac_executable_extensions; do
18893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18894 ac_cv_prog_UNCOMPRESS="$ac_prog"
18895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18903 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
18904 if test -n "$UNCOMPRESS"; then
18905 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
18906 echo "${ECHO_T}$UNCOMPRESS" >&6
18908 echo "$as_me:$LINENO: result: no" >&5
18909 echo "${ECHO_T}no" >&6
18912 test -n "$UNCOMPRESS" && break
18922 echo "$as_me:$LINENO: checking for target system" >&5
18923 echo $ECHO_N "checking for target system... $ECHO_C" >&6
18927 *cygwin* ) CYGWIN=yes;;
18928 *mingw* ) MINGW=yes;;
18932 if test "x$MINGW" = "xyes"; then
18933 #fix for the debian distribution of mingw
18934 if test -x "/usr/i586-mingw32msvc/bin/ar";then
18935 AR="/usr/i586-mingw32msvc/bin/ar"
18937 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
18938 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
18940 #fix for the gentoo distribution of mingw
18941 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
18942 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
18944 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
18945 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
18947 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
18948 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
18954 if test "x${CYGWIN}" = "xyes"; then
18955 cat >>confdefs.h <<_ACEOF
18959 echo "$as_me:$LINENO: result: cygwin" >&5
18960 echo "${ECHO_T}cygwin" >&6
18962 if test "x${MINGW}" = "xyes"; then
18963 cat >>confdefs.h <<_ACEOF
18968 cat >>confdefs.h <<_ACEOF
18972 LIBS="$LIBS -lws2_32"
18973 echo "$as_me:$LINENO: result: mingw" >&5
18974 echo "${ECHO_T}mingw" >&6
18978 cat >>confdefs.h <<_ACEOF
18982 echo "$as_me:$LINENO: result: " >&5
18983 echo "${ECHO_T}" >&6
18989 if test "x${MINGW}" != "xyes"; then
18991 cat >>confdefs.h <<_ACEOF
19002 # The following tries to make use of includes and libraries in
19003 # /usr/local, too. Notice: A -I/usr/local/include might break
19004 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
19005 # especially on systems which link /usr/local to /usr, so it has yet
19006 # to be seen how useful this is.
19007 if test -d /usr/local/lib; then
19008 LDFLAGS="$LDFLAGS -L/usr/local/lib"
19010 if test -d /usr/local/include; then
19011 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
19012 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
19015 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
19016 # if the user has a special prefix (like /opt), there might also be $prefix/lib
19017 # and $prefix/include, which should be included in our search paths for libraries
19019 LDFLAGS="$LDFLAGS -L${libdir}"
19020 CPPFLAGS="$CPPFLAGS -I${includedir}"
19021 # TODO- test whether gcc still works after this
19024 # this must be done after (I believe) AC_PROG_MAKE_SET
19025 if test "x$DEBUG" '!=' "x";then
19026 STRIP="@echo debug enabled, not stripping "
19032 echo "$as_me:$LINENO: checking for sin in -lm" >&5
19033 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19034 if test "${ac_cv_lib_m_sin+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 ac_check_lib_save_LIBS=$LIBS
19039 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19046 /* Override any gcc2 internal prototype to avoid an error. */
19050 /* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19063 (eval $ac_link) 2>conftest.er1
19065 grep -v '^ *+' conftest.er1 >conftest.err
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try='test -z "$ac_c_werror_flag"
19071 || test ! -s conftest.err'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest$ac_exeext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_cv_lib_m_sin=yes
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19090 rm -f conftest.err conftest.$ac_objext \
19091 conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19094 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19095 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19096 if test $ac_cv_lib_m_sin = yes; then
19097 cat >>confdefs.h <<_ACEOF
19098 #define HAVE_LIBM 1
19104 echo "Error: Math library not found.";
19110 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19111 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19112 if test "${ac_cv_lib_z_deflate+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 ac_check_lib_save_LIBS=$LIBS
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19124 /* Override any gcc2 internal prototype to avoid an error. */
19128 /* We use char because int might match the return type of a gcc2
19129 builtin and then its argument prototype would still apply. */
19139 rm -f conftest.$ac_objext conftest$ac_exeext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141 (eval $ac_link) 2>conftest.er1
19143 grep -v '^ *+' conftest.er1 >conftest.err
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -z "$ac_c_werror_flag"
19149 || test ! -s conftest.err'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest$ac_exeext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_lib_z_deflate=yes
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19166 ac_cv_lib_z_deflate=no
19168 rm -f conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19172 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19173 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19174 if test $ac_cv_lib_z_deflate = yes; then
19175 cat >>confdefs.h <<_ACEOF
19176 #define HAVE_LIBZ 1
19186 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
19187 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
19188 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 ac_check_lib_save_LIBS=$LIBS
19192 LIBS="-ljpeg $LIBS"
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19200 /* Override any gcc2 internal prototype to avoid an error. */
19204 /* We use char because int might match the return type of a gcc2
19205 builtin and then its argument prototype would still apply. */
19206 char jpeg_write_raw_data ();
19210 jpeg_write_raw_data ();
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217 (eval $ac_link) 2>conftest.er1
19219 grep -v '^ *+' conftest.er1 >conftest.err
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_c_werror_flag"
19225 || test ! -s conftest.err'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try='test -s conftest$ac_exeext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 ac_cv_lib_jpeg_jpeg_write_raw_data=no
19244 rm -f conftest.err conftest.$ac_objext \
19245 conftest$ac_exeext conftest.$ac_ext
19246 LIBS=$ac_check_lib_save_LIBS
19248 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
19249 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
19250 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
19251 cat >>confdefs.h <<_ACEOF
19252 #define HAVE_LIBJPEG 1
19255 LIBS="-ljpeg $LIBS"
19258 JPEGLIBMISSING=true
19262 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
19263 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
19264 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 ac_check_lib_save_LIBS=$LIBS
19269 cat >conftest.$ac_ext <<_ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19276 /* Override any gcc2 internal prototype to avoid an error. */
19280 /* We use char because int might match the return type of a gcc2
19281 builtin and then its argument prototype would still apply. */
19282 char T1_LoadFont ();
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19293 (eval $ac_link) 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -z "$ac_c_werror_flag"
19301 || test ! -s conftest.err'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try='test -s conftest$ac_exeext'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313 ac_cv_lib_t1_T1_LoadFont=yes
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19318 ac_cv_lib_t1_T1_LoadFont=no
19320 rm -f conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext conftest.$ac_ext
19322 LIBS=$ac_check_lib_save_LIBS
19324 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
19325 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
19326 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
19327 cat >>confdefs.h <<_ACEOF
19328 #define HAVE_LIBT1 1
19339 echo "$as_me:$LINENO: checking for byte order" >&5
19340 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
19341 if test "$cross_compiling" = yes; then
19344 cat >conftest.$ac_ext <<_ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19351 int main (int argc, char *argv[])
19358 rm -f conftest$ac_exeext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19360 (eval $ac_link) 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19371 echo "$as_me: program exited with status $ac_status" >&5
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 ( exit $ac_status )
19378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19380 export CROSSCOMPILE
19382 if test "x${CROSSCOMPILE}" = "x1"; then
19383 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
19384 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
19385 echo "$as_me:$LINENO: checking target system type" >&5
19386 echo $ECHO_N "checking target system type... $ECHO_C" >&6
19387 if test "${ac_cv_target+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 ac_cv_target_alias=$target_alias
19391 test "x$ac_cv_target_alias" = "x" &&
19392 ac_cv_target_alias=$ac_cv_host_alias
19393 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
19394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
19395 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
19396 { (exit 1); exit 1; }; }
19399 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
19400 echo "${ECHO_T}$ac_cv_target" >&6
19401 target=$ac_cv_target
19402 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
19403 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
19404 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
19407 # The aliases save the names the user supplied, while $host etc.
19408 # will get canonicalized.
19409 test -n "$target_alias" &&
19410 test "$program_prefix$program_suffix$program_transform_name" = \
19412 program_prefix=${target_alias}-
19413 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
19414 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
19415 case "${target}" in
19419 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
19425 export LITTLEENDIAN
19426 if test "x${LITTLEENDIAN}" = "x1"; then
19427 echo "$as_me:$LINENO: result: little endian" >&5
19428 echo "${ECHO_T}little endian" >&6
19432 if test "x${BIGENDIAN}" = "x1"; then
19433 echo "$as_me:$LINENO: result: big endian" >&5
19434 echo "${ECHO_T}big endian" >&6
19437 export WORDS_BIGENDIAN
19438 cat >>confdefs.h <<_ACEOF
19439 #define WORDS_BIGENDIAN 1
19443 if test "x${BYTEORDERCHECKOK}" != "x1"; then
19444 echo "$as_me:$LINENO: result: unknown" >&5
19445 echo "${ECHO_T}unknown" >&6
19446 echo Byte order could not determined.
19452 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
19453 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
19454 if test "$cross_compiling" = yes; then
19457 cat >conftest.$ac_ext <<_ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19464 #include "stdlib.h"
19465 int main (int argc, char*argv[])
19467 return system("test `touch config.tmp2`");
19471 rm -f conftest$ac_exeext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473 (eval $ac_link) 2>&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19484 echo "$as_me: program exited with status $ac_status" >&5
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19492 if test "x${OK}" = "xOK";then
19493 test -f config.tmp2 || OK=
19496 if test "x${CROSSCOMPILE}" = "x1";then
19499 if test "x${OK}" = "xOK";then
19501 echo "$as_me:$LINENO: result: yes" >&5
19502 echo "${ECHO_T}yes" >&6
19504 export SYSTEM_BACKTICKS
19505 cat >>confdefs.h <<_ACEOF
19506 #define SYSTEM_BACKTICKS 1
19510 echo "$as_me:$LINENO: result: no" >&5
19511 echo "${ECHO_T}no" >&6
19516 test "$program_prefix" != NONE &&
19517 program_transform_name="s,^,$program_prefix,;$program_transform_name"
19518 # Use a double $ so make ignores it.
19519 test "$program_suffix" != NONE &&
19520 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
19521 # Double any \ or $. echo might interpret backslashes.
19522 # By default was `s,x,x', remove it if useless.
19523 cat <<\_ACEOF >conftest.sed
19524 s/[\\$]/&&/g;s/;s,x,x,$//
19526 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
19530 ac_config_headers="$ac_config_headers config.h"
19537 ac_header_dirent=no
19538 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19539 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19540 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19541 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 #include <sys/types.h>
19563 rm -f conftest.$ac_objext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19565 (eval $ac_compile) 2>conftest.er1
19567 grep -v '^ *+' conftest.er1 >conftest.err
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -z "$ac_c_werror_flag"
19573 || test ! -s conftest.err'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest.$ac_objext'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; }; then
19585 eval "$as_ac_Header=yes"
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 eval "$as_ac_Header=no"
19592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19597 cat >>confdefs.h <<_ACEOF
19598 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19601 ac_header_dirent=$ac_hdr; break
19605 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19606 if test $ac_header_dirent = dirent.h; then
19607 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19608 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19609 if test "${ac_cv_search_opendir+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 ac_func_search_save_LIBS=$LIBS
19613 ac_cv_search_opendir=no
19614 cat >conftest.$ac_ext <<_ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19621 /* Override any gcc2 internal prototype to avoid an error. */
19625 /* We use char because int might match the return type of a gcc2
19626 builtin and then its argument prototype would still apply. */
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19638 (eval $ac_link) 2>conftest.er1
19640 grep -v '^ *+' conftest.er1 >conftest.err
19642 cat conftest.err >&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -z "$ac_c_werror_flag"
19646 || test ! -s conftest.err'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try='test -s conftest$ac_exeext'
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_cv_search_opendir="none required"
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19664 rm -f conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19666 if test "$ac_cv_search_opendir" = no; then
19667 for ac_lib in dir; do
19668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19669 cat >conftest.$ac_ext <<_ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19676 /* Override any gcc2 internal prototype to avoid an error. */
19680 /* We use char because int might match the return type of a gcc2
19681 builtin and then its argument prototype would still apply. */
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>conftest.er1
19695 grep -v '^ *+' conftest.er1 >conftest.err
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
19700 { ac_try='test -z "$ac_c_werror_flag"
19701 || test ! -s conftest.err'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest$ac_exeext'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 ac_cv_search_opendir="-l$ac_lib"
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19720 rm -f conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19724 LIBS=$ac_func_search_save_LIBS
19726 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19727 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19728 if test "$ac_cv_search_opendir" != no; then
19729 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19734 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19736 if test "${ac_cv_search_opendir+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 ac_func_search_save_LIBS=$LIBS
19740 ac_cv_search_opendir=no
19741 cat >conftest.$ac_ext <<_ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19748 /* Override any gcc2 internal prototype to avoid an error. */
19752 /* We use char because int might match the return type of a gcc2
19753 builtin and then its argument prototype would still apply. */
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765 (eval $ac_link) 2>conftest.er1
19767 grep -v '^ *+' conftest.er1 >conftest.err
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_c_werror_flag"
19773 || test ! -s conftest.err'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; } &&
19779 { ac_try='test -s conftest$ac_exeext'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_cv_search_opendir="none required"
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19791 rm -f conftest.err conftest.$ac_objext \
19792 conftest$ac_exeext conftest.$ac_ext
19793 if test "$ac_cv_search_opendir" = no; then
19794 for ac_lib in x; do
19795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19796 cat >conftest.$ac_ext <<_ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19803 /* Override any gcc2 internal prototype to avoid an error. */
19807 /* We use char because int might match the return type of a gcc2
19808 builtin and then its argument prototype would still apply. */
19818 rm -f conftest.$ac_objext conftest$ac_exeext
19819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19820 (eval $ac_link) 2>conftest.er1
19822 grep -v '^ *+' conftest.er1 >conftest.err
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } &&
19827 { ac_try='test -z "$ac_c_werror_flag"
19828 || test ! -s conftest.err'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } &&
19834 { ac_try='test -s conftest$ac_exeext'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; }; then
19840 ac_cv_search_opendir="-l$ac_lib"
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19847 rm -f conftest.err conftest.$ac_objext \
19848 conftest$ac_exeext conftest.$ac_ext
19851 LIBS=$ac_func_search_save_LIBS
19853 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19854 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19855 if test "$ac_cv_search_opendir" != no; then
19856 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19862 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19863 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19864 if test "${ac_cv_header_stdc+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 #include <stdlib.h>
19874 #include <stdarg.h>
19875 #include <string.h>
19886 rm -f conftest.$ac_objext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888 (eval $ac_compile) 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } &&
19895 { ac_try='test -z "$ac_c_werror_flag"
19896 || test ! -s conftest.err'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; } &&
19902 { ac_try='test -s conftest.$ac_objext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 ac_cv_header_stdc=yes
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19913 ac_cv_header_stdc=no
19915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19917 if test $ac_cv_header_stdc = yes; then
19918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19919 cat >conftest.$ac_ext <<_ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 #include <string.h>
19928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19929 $EGREP "memchr" >/dev/null 2>&1; then
19932 ac_cv_header_stdc=no
19938 if test $ac_cv_header_stdc = yes; then
19939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 #include <stdlib.h>
19949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19950 $EGREP "free" >/dev/null 2>&1; then
19953 ac_cv_header_stdc=no
19959 if test $ac_cv_header_stdc = yes; then
19960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19961 if test "$cross_compiling" = yes; then
19964 cat >conftest.$ac_ext <<_ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h. */
19971 #if ((' ' & 0x0FF) == 0x020)
19972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19975 # define ISLOWER(c) \
19976 (('a' <= (c) && (c) <= 'i') \
19977 || ('j' <= (c) && (c) <= 'r') \
19978 || ('s' <= (c) && (c) <= 'z'))
19979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19987 for (i = 0; i < 256; i++)
19988 if (XOR (islower (i), ISLOWER (i))
19989 || toupper (i) != TOUPPER (i))
19994 rm -f conftest$ac_exeext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19996 (eval $ac_link) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20007 echo "$as_me: program exited with status $ac_status" >&5
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20011 ( exit $ac_status )
20012 ac_cv_header_stdc=no
20014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20018 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20019 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20020 if test $ac_cv_header_stdc = yes; then
20022 cat >>confdefs.h <<\_ACEOF
20023 #define STDC_HEADERS 1
20042 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
20044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20046 echo "$as_me:$LINENO: checking for $ac_header" >&5
20047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20054 # Is the header compilable?
20055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20057 cat >conftest.$ac_ext <<_ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 $ac_includes_default
20064 #include <$ac_header>
20066 rm -f conftest.$ac_objext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>conftest.er1
20070 grep -v '^ *+' conftest.er1 >conftest.err
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } &&
20075 { ac_try='test -z "$ac_c_werror_flag"
20076 || test ! -s conftest.err'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; }; then
20088 ac_header_compiler=yes
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20093 ac_header_compiler=no
20095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20097 echo "${ECHO_T}$ac_header_compiler" >&6
20099 # Is the header present?
20100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20102 cat >conftest.$ac_ext <<_ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20108 #include <$ac_header>
20110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20113 grep -v '^ *+' conftest.er1 >conftest.err
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } >/dev/null; then
20118 if test -s conftest.err; then
20119 ac_cpp_err=$ac_c_preproc_warn_flag
20120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20127 if test -z "$ac_cpp_err"; then
20128 ac_header_preproc=yes
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_header_preproc=no
20135 rm -f conftest.err conftest.$ac_ext
20136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20137 echo "${ECHO_T}$ac_header_preproc" >&6
20139 # So? What about this header?
20140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20146 ac_header_preproc=yes
20149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20163 ## ------------------------------------------ ##
20164 ## Report this to the AC_PACKAGE_NAME lists. ##
20165 ## ------------------------------------------ ##
20168 sed "s/^/$as_me: WARNING: /" >&2
20171 echo "$as_me:$LINENO: checking for $ac_header" >&5
20172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 eval "$as_ac_Header=\$ac_header_preproc"
20178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20183 cat >>confdefs.h <<_ACEOF
20184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20192 cat >>confdefs.h <<_ACEOF
20193 #define PACKAGE "$PACKAGE"
20196 cat >>confdefs.h <<_ACEOF
20197 #define VERSION "$VERSION"
20206 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20207 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20208 if test "${ac_cv_c_const+set}" = set; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 cat >conftest.$ac_ext <<_ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20221 /* FIXME: Include the comments suggested by Paul. */
20222 #ifndef __cplusplus
20223 /* Ultrix mips cc rejects this. */
20224 typedef int charset[2];
20226 /* SunOS 4.1.1 cc rejects this. */
20227 char const *const *ccp;
20229 /* NEC SVR4.0.2 mips cc rejects this. */
20230 struct point {int x, y;};
20231 static struct point const zero = {0,0};
20232 /* AIX XL C 1.02.0.0 rejects this.
20233 It does not let you subtract one const X* pointer from another in
20234 an arm of an if-expression whose if-part is not a constant
20236 const char *g = "string";
20237 ccp = &g + (g ? g-g : 0);
20238 /* HPUX 7.0 cc rejects these. */
20241 ccp = (char const *const *) p;
20242 { /* SCO 3.2v4 cc rejects this. */
20244 char const *s = 0 ? (char *) 0 : (char const *) 0;
20248 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20249 int x[] = {25, 17};
20250 const int *foo = &x[0];
20253 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20254 typedef const int *iptr;
20258 { /* AIX XL C 1.02.0.0 rejects this saying
20259 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20260 struct s { int j; const int *ap[3]; };
20261 struct s *b; b->j = 5;
20263 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20264 const int foo = 10;
20272 rm -f conftest.$ac_objext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20274 (eval $ac_compile) 2>conftest.er1
20276 grep -v '^ *+' conftest.er1 >conftest.err
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } &&
20281 { ac_try='test -z "$ac_c_werror_flag"
20282 || test ! -s conftest.err'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest.$ac_objext'
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20303 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20304 echo "${ECHO_T}$ac_cv_c_const" >&6
20305 if test $ac_cv_c_const = no; then
20307 cat >>confdefs.h <<\_ACEOF
20313 echo "$as_me:$LINENO: checking for inline" >&5
20314 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20315 if test "${ac_cv_c_inline+set}" = set; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 for ac_kw in inline __inline__ __inline; do
20320 cat >conftest.$ac_ext <<_ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 #ifndef __cplusplus
20328 static $ac_kw foo_t static_foo () {return 0; }
20329 $ac_kw foo_t foo () {return 0; }
20333 rm -f conftest.$ac_objext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20335 (eval $ac_compile) 2>conftest.er1
20337 grep -v '^ *+' conftest.er1 >conftest.err
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
20342 { ac_try='test -z "$ac_c_werror_flag"
20343 || test ! -s conftest.err'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; } &&
20349 { ac_try='test -s conftest.$ac_objext'
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 ac_cv_c_inline=$ac_kw; break
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20365 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20366 echo "${ECHO_T}$ac_cv_c_inline" >&6
20369 case $ac_cv_c_inline in
20372 case $ac_cv_c_inline in
20374 *) ac_val=$ac_cv_c_inline;;
20376 cat >>confdefs.h <<_ACEOF
20377 #ifndef __cplusplus
20378 #define inline $ac_val
20384 echo "$as_me:$LINENO: checking for off_t" >&5
20385 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20386 if test "${ac_cv_type_off_t+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 cat >conftest.$ac_ext <<_ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 $ac_includes_default
20401 if (sizeof (off_t))
20407 rm -f conftest.$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409 (eval $ac_compile) 2>conftest.er1
20411 grep -v '^ *+' conftest.er1 >conftest.err
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_cv_type_off_t=yes
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 ac_cv_type_off_t=no
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20438 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20439 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20440 if test $ac_cv_type_off_t = yes; then
20444 cat >>confdefs.h <<_ACEOF
20450 echo "$as_me:$LINENO: checking for size_t" >&5
20451 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20452 if test "${ac_cv_type_size_t+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 $ac_includes_default
20467 if (sizeof (size_t))
20473 rm -f conftest.$ac_objext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475 (eval $ac_compile) 2>conftest.er1
20477 grep -v '^ *+' conftest.er1 >conftest.err
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -z "$ac_c_werror_flag"
20483 || test ! -s conftest.err'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest.$ac_objext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 ac_cv_type_size_t=yes
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 ac_cv_type_size_t=no
20502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20504 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20505 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20506 if test $ac_cv_type_size_t = yes; then
20510 cat >>confdefs.h <<_ACEOF
20511 #define size_t unsigned
20516 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20517 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20518 if test "${ac_cv_struct_tm+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 cat >conftest.$ac_ext <<_ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20527 #include <sys/types.h>
20533 struct tm *tp; tp->tm_sec;
20538 rm -f conftest.$ac_objext
20539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20540 (eval $ac_compile) 2>conftest.er1
20542 grep -v '^ *+' conftest.er1 >conftest.err
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } &&
20547 { ac_try='test -z "$ac_c_werror_flag"
20548 || test ! -s conftest.err'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest.$ac_objext'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_struct_tm=time.h
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20565 ac_cv_struct_tm=sys/time.h
20567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20570 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20571 if test $ac_cv_struct_tm = sys/time.h; then
20573 cat >>confdefs.h <<\_ACEOF
20574 #define TM_IN_SYS_TIME 1
20579 echo "$as_me:$LINENO: checking for boolean" >&5
20580 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
20581 if test "${ac_cv_type_boolean+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 cat >conftest.$ac_ext <<_ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 $ac_includes_default
20596 if (sizeof (boolean))
20602 rm -f conftest.$ac_objext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20604 (eval $ac_compile) 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
20611 { ac_try='test -z "$ac_c_werror_flag"
20612 || test ! -s conftest.err'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest.$ac_objext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_type_boolean=yes
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ac_cv_type_boolean=no
20631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20633 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
20634 echo "${ECHO_T}$ac_cv_type_boolean" >&6
20635 if test $ac_cv_type_boolean = yes; then
20639 cat >>confdefs.h <<_ACEOF
20640 #define boolean int
20644 #needed for jpeglib
20656 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
20658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20659 echo "$as_me:$LINENO: checking for $ac_func" >&5
20660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20661 if eval "test \"\${$as_ac_var+set}\" = set"; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 cat >conftest.$ac_ext <<_ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20672 #define $ac_func innocuous_$ac_func
20674 /* System header to define __stub macros and hopefully few prototypes,
20675 which can conflict with char $ac_func (); below.
20676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20677 <limits.h> exists even on freestanding compilers. */
20680 # include <limits.h>
20682 # include <assert.h>
20687 /* Override any gcc2 internal prototype to avoid an error. */
20692 /* We use char because int might match the return type of a gcc2
20693 builtin and then its argument prototype would still apply. */
20695 /* The GNU C library defines this for functions which it implements
20696 to always fail with ENOSYS. Some functions are actually named
20697 something starting with __ and the normal name is an alias. */
20698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20701 char (*f) () = $ac_func;
20710 return f != $ac_func;
20715 rm -f conftest.$ac_objext conftest$ac_exeext
20716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20717 (eval $ac_link) 2>conftest.er1
20719 grep -v '^ *+' conftest.er1 >conftest.err
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } &&
20724 { ac_try='test -z "$ac_c_werror_flag"
20725 || test ! -s conftest.err'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; } &&
20731 { ac_try='test -s conftest$ac_exeext'
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20737 eval "$as_ac_var=yes"
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20742 eval "$as_ac_var=no"
20744 rm -f conftest.err conftest.$ac_objext \
20745 conftest$ac_exeext conftest.$ac_ext
20747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20749 if test `eval echo '${'$as_ac_var'}'` = yes; then
20750 cat >>confdefs.h <<_ACEOF
20751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20758 # ------------------------------------------------------------------
20761 for ac_prog in freetype-config
20763 # Extract the first word of "$ac_prog", so it can be a program name with args.
20764 set dummy $ac_prog; ac_word=$2
20765 echo "$as_me:$LINENO: checking for $ac_word" >&5
20766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20767 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 if test -n "$FREETYPE_CONFIG"; then
20771 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
20773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20774 for as_dir in $PATH
20777 test -z "$as_dir" && as_dir=.
20778 for ac_exec_ext in '' $ac_executable_extensions; do
20779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20780 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
20781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20789 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
20790 if test -n "$FREETYPE_CONFIG"; then
20791 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
20792 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
20794 echo "$as_me:$LINENO: result: no" >&5
20795 echo "${ECHO_T}no" >&6
20798 test -n "$FREETYPE_CONFIG" && break
20801 OLDCPPFLAGS="${CPPFLAGS}"
20803 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
20804 CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
20805 else if test -d /usr/include/freetype2; then
20806 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
20807 else if test -d /usr/local/include/freetype2; then
20808 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
20813 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
20814 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
20815 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 ac_check_lib_save_LIBS=$LIBS
20819 LIBS="-lfreetype $LIBS"
20820 cat >conftest.$ac_ext <<_ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20827 /* Override any gcc2 internal prototype to avoid an error. */
20831 /* We use char because int might match the return type of a gcc2
20832 builtin and then its argument prototype would still apply. */
20833 char FT_Init_FreeType ();
20837 FT_Init_FreeType ();
20842 rm -f conftest.$ac_objext conftest$ac_exeext
20843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20844 (eval $ac_link) 2>conftest.er1
20846 grep -v '^ *+' conftest.er1 >conftest.err
20848 cat conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } &&
20851 { ac_try='test -z "$ac_c_werror_flag"
20852 || test ! -s conftest.err'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; } &&
20858 { ac_try='test -s conftest$ac_exeext'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; }; then
20864 ac_cv_lib_freetype_FT_Init_FreeType=yes
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20869 ac_cv_lib_freetype_FT_Init_FreeType=no
20871 rm -f conftest.err conftest.$ac_objext \
20872 conftest$ac_exeext conftest.$ac_ext
20873 LIBS=$ac_check_lib_save_LIBS
20875 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
20876 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
20877 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
20878 HAVE_LIB_FREETYPE=1
20882 for ac_header in freetype/freetype.h
20884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20886 echo "$as_me:$LINENO: checking for $ac_header" >&5
20887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20894 # Is the header compilable?
20895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20897 cat >conftest.$ac_ext <<_ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20903 $ac_includes_default
20904 #include <$ac_header>
20906 rm -f conftest.$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908 (eval $ac_compile) 2>conftest.er1
20910 grep -v '^ *+' conftest.er1 >conftest.err
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -z "$ac_c_werror_flag"
20916 || test ! -s conftest.err'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_header_compiler=yes
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20933 ac_header_compiler=no
20935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20937 echo "${ECHO_T}$ac_header_compiler" >&6
20939 # Is the header present?
20940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20942 cat >conftest.$ac_ext <<_ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20948 #include <$ac_header>
20950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20953 grep -v '^ *+' conftest.er1 >conftest.err
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } >/dev/null; then
20958 if test -s conftest.err; then
20959 ac_cpp_err=$ac_c_preproc_warn_flag
20960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20967 if test -z "$ac_cpp_err"; then
20968 ac_header_preproc=yes
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20973 ac_header_preproc=no
20975 rm -f conftest.err conftest.$ac_ext
20976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20977 echo "${ECHO_T}$ac_header_preproc" >&6
20979 # So? What about this header?
20980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20986 ac_header_preproc=yes
20989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21003 ## ------------------------------------------ ##
21004 ## Report this to the AC_PACKAGE_NAME lists. ##
21005 ## ------------------------------------------ ##
21008 sed "s/^/$as_me: WARNING: /" >&2
21011 echo "$as_me:$LINENO: checking for $ac_header" >&5
21012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21016 eval "$as_ac_Header=\$ac_header_preproc"
21018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21023 cat >>confdefs.h <<_ACEOF
21024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21026 HAVE_FREETYPE_FREETYPE_H=1
21032 for ac_header in ft2build.h
21034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21036 echo "$as_me:$LINENO: checking for $ac_header" >&5
21037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21044 # Is the header compilable?
21045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21047 cat >conftest.$ac_ext <<_ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21053 $ac_includes_default
21054 #include <$ac_header>
21056 rm -f conftest.$ac_objext
21057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21058 (eval $ac_compile) 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
21065 { ac_try='test -z "$ac_c_werror_flag"
21066 || test ! -s conftest.err'
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; } &&
21072 { ac_try='test -s conftest.$ac_objext'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; }; then
21078 ac_header_compiler=yes
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ac_header_compiler=no
21085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21087 echo "${ECHO_T}$ac_header_compiler" >&6
21089 # Is the header present?
21090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21091 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
21100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21103 grep -v '^ *+' conftest.er1 >conftest.err
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } >/dev/null; then
21108 if test -s conftest.err; then
21109 ac_cpp_err=$ac_c_preproc_warn_flag
21110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21117 if test -z "$ac_cpp_err"; then
21118 ac_header_preproc=yes
21120 echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21123 ac_header_preproc=no
21125 rm -f conftest.err conftest.$ac_ext
21126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21127 echo "${ECHO_T}$ac_header_preproc" >&6
21129 # So? What about this header?
21130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21136 ac_header_preproc=yes
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21153 ## ------------------------------------------ ##
21154 ## Report this to the AC_PACKAGE_NAME lists. ##
21155 ## ------------------------------------------ ##
21158 sed "s/^/$as_me: WARNING: /" >&2
21161 echo "$as_me:$LINENO: checking for $ac_header" >&5
21162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21164 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 eval "$as_ac_Header=\$ac_header_preproc"
21168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21173 cat >>confdefs.h <<_ACEOF
21174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21182 if test "x${HAVE_LIB_FREETYPE}" '!=' "x";then
21183 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
21186 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
21191 if test "x${HAVE_FREETYPE}" = "x1"; then
21192 if test "x{$FREETYPE_CONFIG}" '!=' "x"; then
21193 LIBS="$LIBS "`freetype-config --libs`
21195 LIBS="$LIBS -lfreetype"
21198 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
21199 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
21202 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
21203 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
21205 cat > conftest.c << EOF
21206 $HAVE_FT2BUILD_H_DEFINE
21208 #ifdef HAVE_FT2BUILD_H
21209 #include <ft2build.h>
21210 #include FT_FREETYPE_H
21211 #include FT_GLYPH_H
21212 #include FT_SIZES_H
21213 #include FT_SFNT_NAMES_H
21214 #include FT_TRUETYPE_IDS_H
21215 #include FT_OUTLINE_H
21217 #include <freetype/freetype.h>
21218 #include <freetype/ftglyph.h>
21219 #include <freetype/ftsizes.h>
21220 #include <freetype/ftsnames.h>
21221 #include <freetype/ttnameid.h>
21222 #include <freetype/ftoutln.h>
21227 FT_Library ftlibrary;
21239 FT_Init_FreeType(&ftlibrary);
21240 FT_New_Face(ftlibrary, "filename", 0, &face);
21241 i = face->num_glyphs - 1;
21242 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
21243 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
21244 FT_Get_Postscript_Name(face);
21245 FT_Get_Char_Index(face, 33);
21246 FT_Get_First_Char(face, &i);
21247 FT_Get_Next_Char(face, 33, &i);
21248 if(FT_HAS_GLYPH_NAMES(face)) {
21249 FT_Get_Glyph_Name(face, 33, name, 127);
21251 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
21252 FT_Get_Glyph(face->glyph, &glyph);
21253 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
21254 FT_Done_Glyph(glyph);
21255 FT_Done_Face(face);
21256 FT_Done_FreeType(ftlibrary);
21261 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21262 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21263 echo "$as_me:$LINENO: result: yes" >&5
21264 echo "${ECHO_T}yes" >&6
21265 cat >>confdefs.h <<_ACEOF
21266 #define HAVE_FREETYPE 1
21269 cat >>confdefs.h <<_ACEOF
21270 #define USE_FREETYPE 1
21274 echo "configure: failed program was:" >&5
21277 echo "$as_me:$LINENO: result: no" >&5
21278 echo "${ECHO_T}no" >&6
21283 # if the above didn't work out, reset all changes to the compiler variables.
21284 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
21285 CPPFLAGS=$OLDCPPFLAGS
21291 OLDCPPFLAGS="${CPPFLAGS}"
21294 if test -d /usr/include/fontconfig; then
21295 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
21298 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
21299 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
21300 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21303 ac_check_lib_save_LIBS=$LIBS
21304 LIBS="-lfontconfig $LIBS"
21305 cat >conftest.$ac_ext <<_ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21312 /* Override any gcc2 internal prototype to avoid an error. */
21316 /* We use char because int might match the return type of a gcc2
21317 builtin and then its argument prototype would still apply. */
21327 rm -f conftest.$ac_objext conftest$ac_exeext
21328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21329 (eval $ac_link) 2>conftest.er1
21331 grep -v '^ *+' conftest.er1 >conftest.err
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } &&
21336 { ac_try='test -z "$ac_c_werror_flag"
21337 || test ! -s conftest.err'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; } &&
21343 { ac_try='test -s conftest$ac_exeext'
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; }; then
21349 ac_cv_lib_fontconfig_FcInit=yes
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ac_cv_lib_fontconfig_FcInit=no
21356 rm -f conftest.err conftest.$ac_objext \
21357 conftest$ac_exeext conftest.$ac_ext
21358 LIBS=$ac_check_lib_save_LIBS
21360 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
21361 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
21362 if test $ac_cv_lib_fontconfig_FcInit = yes; then
21363 HAVE_LIB_FONTCONFIG=1
21367 for ac_header in fontconfig.h
21369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21371 echo "$as_me:$LINENO: checking for $ac_header" >&5
21372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
21376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21379 # Is the header compilable?
21380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 $ac_includes_default
21389 #include <$ac_header>
21391 rm -f conftest.$ac_objext
21392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21393 (eval $ac_compile) 2>conftest.er1
21395 grep -v '^ *+' conftest.er1 >conftest.err
21397 cat conftest.err >&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } &&
21400 { ac_try='test -z "$ac_c_werror_flag"
21401 || test ! -s conftest.err'
21402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403 (eval $ac_try) 2>&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; } &&
21407 { ac_try='test -s conftest.$ac_objext'
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; }; then
21413 ac_header_compiler=yes
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 ac_header_compiler=no
21420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21422 echo "${ECHO_T}$ac_header_compiler" >&6
21424 # Is the header present?
21425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 #include <$ac_header>
21435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21438 grep -v '^ *+' conftest.er1 >conftest.err
21440 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } >/dev/null; then
21443 if test -s conftest.err; then
21444 ac_cpp_err=$ac_c_preproc_warn_flag
21445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21452 if test -z "$ac_cpp_err"; then
21453 ac_header_preproc=yes
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_header_preproc=no
21460 rm -f conftest.err conftest.$ac_ext
21461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21462 echo "${ECHO_T}$ac_header_preproc" >&6
21464 # So? What about this header?
21465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21471 ac_header_preproc=yes
21474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21488 ## ------------------------------------------ ##
21489 ## Report this to the AC_PACKAGE_NAME lists. ##
21490 ## ------------------------------------------ ##
21493 sed "s/^/$as_me: WARNING: /" >&2
21496 echo "$as_me:$LINENO: checking for $ac_header" >&5
21497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 eval "$as_ac_Header=\$ac_header_preproc"
21503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21508 cat >>confdefs.h <<_ACEOF
21509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21511 HAVE_FONTCONFIG_H=1
21517 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
21518 if test "x${HAVE_FONTCONFIG_H}" != "x";then
21523 if test "x${HAVE_FONTCONFIG}" = "x1"; then
21524 LIBS="$LIBS -lfontconfig"
21525 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
21526 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
21528 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
21529 #move freetype library to the end of libraries, otherwise fontconfig
21531 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
21534 cat > conftest.c << EOF
21535 #include <fontconfig.h>
21539 FcPattern *pattern, *match;
21543 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
21544 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
21545 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
21546 FcConfigSubstitute(0, pattern, FcMatchPattern);
21547 FcDefaultSubstitute(pattern);
21548 match = FcFontMatch(0, pattern, &result);
21549 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
21550 FcPatternPrint(pattern);
21551 FcPatternDestroy(pattern);
21552 FcPatternDestroy(match);
21557 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21558 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21559 echo "$as_me:$LINENO: result: yes" >&5
21560 echo "${ECHO_T}yes" >&6
21561 cat >>confdefs.h <<_ACEOF
21562 #define HAVE_FONTCONFIG 1
21566 echo "configure: failed program was:" >&5
21569 echo "$as_me:$LINENO: result: no" >&5
21570 echo "${ECHO_T}no" >&6
21575 # if the above didn't work out, reset all changes to the compiler variables.
21576 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
21577 CPPFLAGS=$OLDCPPFLAGS
21582 # ------------------------------------------------------------------
21586 if test "x${DISABLE_LAME}" = "xtrue"; then
21587 echo "*" Disabling lame support...
21589 # old lame code at lib/lame
21590 if test -f lib/lame/Makefile.in; then
21591 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"
21592 lame_makefile="lib/lame/Makefile"
21593 CPPFLAGS="$CPPFLAGS -Ilame"
21594 cat >>confdefs.h <<_ACEOF
21595 #define HAVE_LAME 1
21599 if test -d /usr/include/lame; then
21600 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
21602 if test -d /usr/local/include/lame; then
21603 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
21607 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
21608 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
21609 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21612 ac_check_lib_save_LIBS=$LIBS
21613 LIBS="-lmp3lame $LIBS"
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21621 /* Override any gcc2 internal prototype to avoid an error. */
21625 /* We use char because int might match the return type of a gcc2
21626 builtin and then its argument prototype would still apply. */
21636 rm -f conftest.$ac_objext conftest$ac_exeext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21638 (eval $ac_link) 2>conftest.er1
21640 grep -v '^ *+' conftest.er1 >conftest.err
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
21645 { ac_try='test -z "$ac_c_werror_flag"
21646 || test ! -s conftest.err'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest$ac_exeext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 ac_cv_lib_mp3lame_lame_init=yes
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21663 ac_cv_lib_mp3lame_lame_init=no
21665 rm -f conftest.err conftest.$ac_objext \
21666 conftest$ac_exeext conftest.$ac_ext
21667 LIBS=$ac_check_lib_save_LIBS
21669 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
21670 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
21671 if test $ac_cv_lib_mp3lame_lame_init = yes; then
21672 cat >>confdefs.h <<_ACEOF
21673 #define HAVE_LIBMP3LAME 1
21676 LIBS="-lmp3lame $LIBS"
21683 for ac_header in lame.h
21685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21687 echo "$as_me:$LINENO: checking for $ac_header" >&5
21688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21695 # Is the header compilable?
21696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21698 cat >conftest.$ac_ext <<_ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 $ac_includes_default
21705 #include <$ac_header>
21707 rm -f conftest.$ac_objext
21708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21709 (eval $ac_compile) 2>conftest.er1
21711 grep -v '^ *+' conftest.er1 >conftest.err
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } &&
21716 { ac_try='test -z "$ac_c_werror_flag"
21717 || test ! -s conftest.err'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; } &&
21723 { ac_try='test -s conftest.$ac_objext'
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729 ac_header_compiler=yes
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ac_header_compiler=no
21736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21738 echo "${ECHO_T}$ac_header_compiler" >&6
21740 # Is the header present?
21741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21743 cat >conftest.$ac_ext <<_ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 #include <$ac_header>
21751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21754 grep -v '^ *+' conftest.er1 >conftest.err
21756 cat conftest.err >&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); } >/dev/null; then
21759 if test -s conftest.err; then
21760 ac_cpp_err=$ac_c_preproc_warn_flag
21761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21768 if test -z "$ac_cpp_err"; then
21769 ac_header_preproc=yes
21771 echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21774 ac_header_preproc=no
21776 rm -f conftest.err conftest.$ac_ext
21777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21778 echo "${ECHO_T}$ac_header_preproc" >&6
21780 # So? What about this header?
21781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21787 ac_header_preproc=yes
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21804 ## ------------------------------------------ ##
21805 ## Report this to the AC_PACKAGE_NAME lists. ##
21806 ## ------------------------------------------ ##
21809 sed "s/^/$as_me: WARNING: /" >&2
21812 echo "$as_me:$LINENO: checking for $ac_header" >&5
21813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 eval "$as_ac_Header=\$ac_header_preproc"
21819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21824 cat >>confdefs.h <<_ACEOF
21825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21832 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
21833 cat >>confdefs.h <<_ACEOF
21834 #define HAVE_LAME 1
21842 # ------------------------------------------------------------------
21846 for ac_prog in avifile-config
21848 # Extract the first word of "$ac_prog", so it can be a program name with args.
21849 set dummy $ac_prog; ac_word=$2
21850 echo "$as_me:$LINENO: checking for $ac_word" >&5
21851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21852 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
21853 echo $ECHO_N "(cached) $ECHO_C" >&6
21855 if test -n "$AVIFILE_CONFIG"; then
21856 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
21858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21859 for as_dir in $PATH
21862 test -z "$as_dir" && as_dir=.
21863 for ac_exec_ext in '' $ac_executable_extensions; do
21864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21865 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
21866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21874 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
21875 if test -n "$AVIFILE_CONFIG"; then
21876 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
21877 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
21879 echo "$as_me:$LINENO: result: no" >&5
21880 echo "${ECHO_T}no" >&6
21883 test -n "$AVIFILE_CONFIG" && break
21887 if test "x$AVIFILE_CONFIG" '!=' "x";then
21888 OLDCPPFLAGS="$CPPFLAGS"
21889 # temporarily add avifile paths to CPPFLAGS...
21890 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
21893 for ac_header in avifile/version.h version.h
21895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21897 echo "$as_me:$LINENO: checking for $ac_header" >&5
21898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21905 # Is the header compilable?
21906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21908 cat >conftest.$ac_ext <<_ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21914 $ac_includes_default
21915 #include <$ac_header>
21917 rm -f conftest.$ac_objext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21919 (eval $ac_compile) 2>conftest.er1
21921 grep -v '^ *+' conftest.er1 >conftest.err
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } &&
21926 { ac_try='test -z "$ac_c_werror_flag"
21927 || test ! -s conftest.err'
21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929 (eval $ac_try) 2>&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; } &&
21933 { ac_try='test -s conftest.$ac_objext'
21934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935 (eval $ac_try) 2>&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; }; then
21939 ac_header_compiler=yes
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_header_compiler=no
21946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21948 echo "${ECHO_T}$ac_header_compiler" >&6
21950 # Is the header present?
21951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21953 cat >conftest.$ac_ext <<_ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 #include <$ac_header>
21961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21964 grep -v '^ *+' conftest.er1 >conftest.err
21966 cat conftest.err >&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); } >/dev/null; then
21969 if test -s conftest.err; then
21970 ac_cpp_err=$ac_c_preproc_warn_flag
21971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21978 if test -z "$ac_cpp_err"; then
21979 ac_header_preproc=yes
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 ac_header_preproc=no
21986 rm -f conftest.err conftest.$ac_ext
21987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21988 echo "${ECHO_T}$ac_header_preproc" >&6
21990 # So? What about this header?
21991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21997 ac_header_preproc=yes
22000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22014 ## ------------------------------------------ ##
22015 ## Report this to the AC_PACKAGE_NAME lists. ##
22016 ## ------------------------------------------ ##
22019 sed "s/^/$as_me: WARNING: /" >&2
22022 echo "$as_me:$LINENO: checking for $ac_header" >&5
22023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22027 eval "$as_ac_Header=\$ac_header_preproc"
22029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22034 cat >>confdefs.h <<_ACEOF
22035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22043 CPPFLAGS="$OLDCPPFLAGS"
22046 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
22047 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
22049 if test "x${ac_cv_header_version_h}" '=' "xyes";then
22050 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
22052 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
22053 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
22056 cat > conftest.cpp << EOF
22058 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
22059 // so we have to introduce them this way
22060 $HAVE_VERSION_H_DEFINE
22061 $HAVE_AVIFILE_VERSION_H_DEFINE
22063 #ifdef HAVE_VERSION_H
22064 #include <version.h>
22066 #ifdef HAVE_AVIFILE_VERSION_H
22067 #include <avifile/version.h>
22070 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
22071 #include <avifile.h>
22072 #include <aviplay.h>
22073 #include <fourcc.h>
22074 #include <creators.h>
22075 #include <StreamInfo.h>
22078 #include <avifile.h>
22079 #include <aviplay.h>
22080 #include <aviutil.h>
22081 #define Width width
22082 #define Height height
22089 IAviReadFile* player;
22090 IAviReadStream* astream;
22091 IAviReadStream* vstream;
22092 player = CreateIAviReadFile(0);
22093 astream = player->GetStream(0, AviStream::Audio);
22094 vstream = player->GetStream(0, AviStream::Video);
22095 vstream -> StartStreaming();
22096 astream -> StartStreaming();
22098 MainAVIHeader head;
22099 player->GetFileHeader(&head);
22100 head.dwMicroSecPerFrame;
22101 head.dwTotalFrames;
22105 head.dwMicroSecPerFrame;
22106 astream->GetEndPos(),
22107 astream->GetEndTime());
22108 player->StreamCount();
22110 StreamInfo*audioinfo;
22111 StreamInfo*videoinfo;
22112 audioinfo = astream->GetStreamInfo();
22113 videoinfo = vstream->GetStreamInfo();
22114 videoinfo->GetVideoWidth();
22115 videoinfo->GetVideoHeight();
22116 audioinfo->GetAudioSamplesPerSec();
22117 videoinfo->GetFps();
22119 CImage*img = vstream->GetFrame();
22126 astream->GetAudioFormatInfo(&wave,0);
22128 astream->ReadFrames(0,0,0,a,b);
22130 int main (int argc, char*argv)
22136 if test "x$AVIFILE_CONFIG" '!=' "x";then
22137 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
22138 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
22139 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
22140 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
22141 echo "$as_me:$LINENO: result: yes" >&5
22142 echo "${ECHO_T}yes" >&6
22145 cat >>confdefs.h <<_ACEOF
22146 #define AVIFILE true
22150 echo "configure: failed program was:" >&5
22151 cat conftest.cpp >&5
22152 echo "$as_me:$LINENO: result: no" >&5
22153 echo "${ECHO_T}no" >&6
22156 echo "$as_me:$LINENO: result: no" >&5
22157 echo "${ECHO_T}no" >&6
22161 if test "x${AVIFILE}" = "xtrue"; then
22162 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
22163 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
22164 cat >>confdefs.h <<_ACEOF
22165 #define HAVE_AVIFILE 1
22170 if test "x${WIN32}" != "x"; then
22171 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
22172 #if test "x${AVIFIL32}" != "x"; then
22173 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22175 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22181 # ------------------------------------------------------------------
22183 if test "x${UNCOMPRESS}" = "xgzip"; then
22184 cat >>confdefs.h <<_ACEOF
22191 # ------------------------------------------------------------------
22194 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
22195 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
22197 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
22200 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
22201 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
22203 # iterate through version 2.2 to 2.4
22206 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
22208 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
22209 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
22212 if test -f "/Library/Python/2.$v/PIL/_imaging.so" \
22213 -a "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
22215 PYTHON_LIB="-lpython$PY_VERSION /Library/Python/2.$v/PIL/_imaging.so"
22216 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
22221 if test "x$PY_VERSION" "!=" "x"; then
22222 echo "$as_me:$LINENO: result: $PY_VERSION" >&5
22223 echo "${ECHO_T}$PY_VERSION" >&6
22224 export PYTHON_INCLUDES PYTHON_LIB
22227 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
22228 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
22230 cat > conftest.c << EOF
22231 #include <Python.h>
22232 #include <Imaging.h>
22237 ret = Py_Main(0, 0);
22238 int x; // check also for gcc 2.95.x incompatibilities
22242 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
22243 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22244 echo "$as_me:$LINENO: result: yes" >&5
22245 echo "${ECHO_T}yes" >&6
22248 echo "configure: failed program was:" >&5
22250 echo "$as_me:$LINENO: result: no" >&5
22251 echo "${ECHO_T}no" >&6
22255 echo "$as_me:$LINENO: result: nope" >&5
22256 echo "${ECHO_T}nope" >&6
22260 if test "x$PYTHON_OK" '!=' "xyes";then
22261 echo all install uninstall clean: > lib/python/Makefile
22262 # fail silently- the most users won't have any need for the
22263 # python interface anyway
22265 pythonrfxswf="lib/python/Makefile"
22268 # ------------------------------------------------------------------
22270 echo "$as_me:$LINENO: checking for missing libraries" >&5
22271 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
22273 if test "x$ZLIBMISSING" = "xtrue";then
22274 MISSINGLIBS="${MISSINGLIBS} zlib"
22275 DISABLEPNG2SWF=true
22278 if test "x$JPEGLIBMISSING" = "xtrue";then
22279 MISSINGLIBS="${MISSINGLIBS} jpeglib"
22280 DISABLEPDF2SWF=true
22281 DISABLEJPEG2SWF=true
22284 if test "x$T1LIBMISSING" = "xtrue";then
22285 MISSINGLIBS="${MISSINGLIBS} t1lib"
22288 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
22289 DISABLEPDF2SWF=true;
22290 DISABLEJPEG2SWF=true;
22291 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
22294 if test "x$HAVE_FREETYPE" '!=' "x1"; then
22295 DISABLEPDF2SWF=true;
22296 MISSINGLIBS="${MISSINGLIBS} freetype"
22299 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
22300 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
22302 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
22303 DISABLEPNG2SWF=true;
22304 MISSINGLIBS="${MISSINGLIBS} zlib.h"
22307 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
22308 MISSINGLIBS="${MISSINGLIBS} avifile"
22312 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
22313 echo "${ECHO_T}${MISSINGLIBS}" >&6
22315 # ------------------------------------------------------------------
22317 if test "x${MISSINGLIBS}" '!=' "x"; then
22318 echo "***************************************************"
22319 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
22322 avi2swf="avi2swf/Makefile"
22323 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
22324 echo "* Disabling avi2swf tool..."
22325 echo all install uninstall clean: > avi2swf/Makefile
22329 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
22330 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
22331 echo "* Disabling pdf2swf tool..."
22332 rm -f pdf2swf/Makefile
22333 echo all install uninstall clean: > pdf2swf/Makefile
22334 pdf2swf_makefile=""
22337 if test "x${ZLIBMISSING}" = "xtrue"; then
22339 echo "* Warning! Without zlib, you will not be able to read"
22340 echo "* or write compressed Flash MX files!"
22343 JPEG2SWF='jpeg2swf$(E)'
22344 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
22345 echo "* Disabling jpeg2swf tool..."
22351 PNG2SWF='png2swf$(E)'
22352 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
22353 echo "* Disabling png2swf tool..."
22359 if test "x${MISSINGLIBS}" '!=' "x"; then
22360 if test "x${PARTIAL}" '=' "x"; then
22361 echo "* (never mind)"
22363 echo "***************************************************"
22366 # ------------------------------------------------------------------
22368 if test -f "release.in"; then release_in="./release"; fi
22369 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
22371 ac_config_files="$ac_config_files ${FILES}"
22373 cat >confcache <<\_ACEOF
22374 # This file is a shell script that caches the results of configure
22375 # tests run on this system so they can be shared between configure
22376 # scripts and configure runs, see configure's option --config-cache.
22377 # It is not useful on other systems. If it contains results you don't
22378 # want to keep, you may remove or edit it.
22380 # config.status only pays attention to the cache file if you give it
22381 # the --recheck option to rerun configure.
22383 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22384 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22385 # following values.
22389 # The following way of writing the cache mishandles newlines in values,
22390 # but we know of no workaround that is simple, portable, and efficient.
22391 # So, don't put newlines in cache variables' values.
22392 # Ultrix sh set writes to stderr and can't be redirected directly,
22393 # and sets the high bit in the cache file unless we assign to the vars.
22396 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22398 # `set' does not quote correctly, so add quotes (double-quote
22399 # substitution turns \\\\ into \\, and sed turns \\ into \).
22402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22405 # `set' quotes correctly as required by POSIX, so do not add quotes.
22407 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22416 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22418 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22419 if test -w $cache_file; then
22420 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22421 cat confcache >$cache_file
22423 echo "not updating unwritable cache $cache_file"
22428 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22429 # Let make expand exec_prefix.
22430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22432 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22433 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22434 # trailing colons and then remove the whole line if VPATH becomes empty
22435 # (actually we leave an empty line to preserve line numbers).
22436 if test "x$srcdir" = x.; then
22437 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22438 s/:*\$(srcdir):*/:/;
22439 s/:*\${srcdir}:*/:/;
22441 s/^\([^=]*=[ ]*\):*/\1/;
22447 DEFS=-DHAVE_CONFIG_H
22451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22452 # 1. Remove the extension, and $U if already installed.
22453 ac_i=`echo "$ac_i" |
22454 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22456 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22457 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22459 LIBOBJS=$ac_libobjs
22461 LTLIBOBJS=$ac_ltlibobjs
22465 : ${CONFIG_STATUS=./config.status}
22466 ac_clean_files_save=$ac_clean_files
22467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22468 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22469 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22470 cat >$CONFIG_STATUS <<_ACEOF
22472 # Generated by $as_me.
22473 # Run this file to recreate the current configuration.
22474 # Compiler output produced by configure, useful for debugging
22475 # configure, is in config.log if it exists.
22478 ac_cs_recheck=false
22480 SHELL=\${CONFIG_SHELL-$SHELL}
22483 cat >>$CONFIG_STATUS <<\_ACEOF
22484 ## --------------------- ##
22485 ## M4sh Initialization. ##
22486 ## --------------------- ##
22488 # Be Bourne compatible
22489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22492 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22493 # is contrary to our usage. Disable this feature.
22494 alias -g '${1+"$@"}'='"$@"'
22495 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22498 DUALCASE=1; export DUALCASE # for MKS sh
22500 # Support unset when possible.
22501 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22508 # Work around bugs in pre-3.0 UWIN ksh.
22509 $as_unset ENV MAIL MAILPATH
22516 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22517 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22518 LC_TELEPHONE LC_TIME
22520 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22521 eval $as_var=C; export $as_var
22527 # Required to use basename.
22528 if expr a : '\(a\)' >/dev/null 2>&1; then
22534 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22535 as_basename=basename
22541 # Name of the executable.
22542 as_me=`$as_basename "$0" ||
22543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22544 X"$0" : 'X\(//\)$' \| \
22545 X"$0" : 'X\(/\)$' \| \
22546 . : '\(.\)' 2>/dev/null ||
22548 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22549 /^X\/\(\/\/\)$/{ s//\1/; q; }
22550 /^X\/\(\/\).*/{ s//\1/; q; }
22554 # PATH needs CR, and LINENO needs CR and PATH.
22555 # Avoid depending upon Character Ranges.
22556 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22557 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22558 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22559 as_cr_digits='0123456789'
22560 as_cr_alnum=$as_cr_Letters$as_cr_digits
22562 # The user is always right.
22563 if test "${PATH_SEPARATOR+set}" != set; then
22564 echo "#! /bin/sh" >conf$$.sh
22565 echo "exit 0" >>conf$$.sh
22567 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22576 as_lineno_1=$LINENO
22577 as_lineno_2=$LINENO
22578 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22579 test "x$as_lineno_1" != "x$as_lineno_2" &&
22580 test "x$as_lineno_3" = "x$as_lineno_2" || {
22581 # Find who we are. Look in the path if we contain no path at all
22584 *[\\/]* ) as_myself=$0 ;;
22585 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22586 for as_dir in $PATH
22589 test -z "$as_dir" && as_dir=.
22590 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22595 # We did not find ourselves, most probably we were run as `sh COMMAND'
22596 # in which case we are not to be found in the path.
22597 if test "x$as_myself" = x; then
22600 if test ! -f "$as_myself"; then
22601 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22602 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22603 { (exit 1); exit 1; }; }
22605 case $CONFIG_SHELL in
22607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22608 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22611 test -z "$as_dir" && as_dir=.
22612 for as_base in sh bash ksh sh5; do
22615 if ("$as_dir/$as_base" -c '
22616 as_lineno_1=$LINENO
22617 as_lineno_2=$LINENO
22618 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22619 test "x$as_lineno_1" != "x$as_lineno_2" &&
22620 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22621 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22622 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22623 CONFIG_SHELL=$as_dir/$as_base
22624 export CONFIG_SHELL
22625 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22633 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22634 # uniformly replaced by the line number. The first 'sed' inserts a
22635 # line-number line before each line; the second 'sed' does the real
22636 # work. The second script uses 'N' to pair each line-number line
22637 # with the numbered line, and appends trailing '-' during
22638 # substitution so that $LINENO is not a special case at line end.
22639 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22640 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22641 sed '=' <$as_myself |
22646 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22649 s,^['$as_cr_digits']*\n,,
22650 ' >$as_me.lineno &&
22651 chmod +x $as_me.lineno ||
22652 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22653 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22654 { (exit 1); exit 1; }; }
22656 # Don't try to exec as it changes $[0], causing all sort of problems
22657 # (the dirname of $[0] is not the place where we might find the
22658 # original and so on. Autoconf is especially sensible to this).
22660 # Exit status is that of the last command.
22665 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22666 *c*,-n*) ECHO_N= ECHO_C='
22668 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22669 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22672 if expr a : '\(a\)' >/dev/null 2>&1; then
22678 rm -f conf$$ conf$$.exe conf$$.file
22680 if ln -s conf$$.file conf$$ 2>/dev/null; then
22681 # We could just check for DJGPP; but this test a) works b) is more generic
22682 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22683 if test -f conf$$.exe; then
22684 # Don't use ln at all; we don't have any links
22689 elif ln conf$$.file conf$$ 2>/dev/null; then
22694 rm -f conf$$ conf$$.exe conf$$.file
22696 if mkdir -p . 2>/dev/null; then
22699 test -d ./-p && rmdir ./-p
22703 as_executable_p="test -f"
22705 # Sed expression to map a string onto a valid CPP name.
22706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22708 # Sed expression to map a string onto a valid variable name.
22709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22713 # We need space, tab and new line, in precisely that order.
22723 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22724 # report actual input values of CONFIG_FILES etc. instead of their
22725 # values after options handling. Logging --version etc. is OK.
22729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22730 ## Running $as_me. ##
22735 This file was extended by $as_me, which was
22736 generated by GNU Autoconf 2.59. Invocation command line was
22738 CONFIG_FILES = $CONFIG_FILES
22739 CONFIG_HEADERS = $CONFIG_HEADERS
22740 CONFIG_LINKS = $CONFIG_LINKS
22741 CONFIG_COMMANDS = $CONFIG_COMMANDS
22745 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22749 # Files that config.status was made for.
22750 if test -n "$ac_config_files"; then
22751 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22754 if test -n "$ac_config_headers"; then
22755 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22758 if test -n "$ac_config_links"; then
22759 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22762 if test -n "$ac_config_commands"; then
22763 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22766 cat >>$CONFIG_STATUS <<\_ACEOF
22769 \`$as_me' instantiates files from templates according to the
22770 current configuration.
22772 Usage: $0 [OPTIONS] [FILE]...
22774 -h, --help print this help, then exit
22775 -V, --version print version number, then exit
22776 -q, --quiet do not print progress messages
22777 -d, --debug don't remove temporary files
22778 --recheck update $as_me by reconfiguring in the same conditions
22779 --file=FILE[:TEMPLATE]
22780 instantiate the configuration file FILE
22781 --header=FILE[:TEMPLATE]
22782 instantiate the configuration header FILE
22784 Configuration files:
22787 Configuration headers:
22790 Report bugs to <bug-autoconf@gnu.org>."
22793 cat >>$CONFIG_STATUS <<_ACEOF
22796 configured by $0, generated by GNU Autoconf 2.59,
22797 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22799 Copyright (C) 2003 Free Software Foundation, Inc.
22800 This config.status script is free software; the Free Software Foundation
22801 gives unlimited permission to copy, distribute and modify it."
22806 cat >>$CONFIG_STATUS <<\_ACEOF
22807 # If no file are specified by the user, then we need to provide default
22808 # value. By we need to know if files were specified by the user.
22814 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22815 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22823 *) # This is not an option, so the user has probably given explicit
22826 ac_need_defaults=false;;
22830 # Handling of the options.
22832 cat >>$CONFIG_STATUS <<\_ACEOF
22833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22835 --version | --vers* | -V )
22836 echo "$ac_cs_version"; exit 0 ;;
22838 # Conflict between --help and --header
22839 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22840 Try \`$0 --help' for more information." >&5
22841 echo "$as_me: error: ambiguous option: $1
22842 Try \`$0 --help' for more information." >&2;}
22843 { (exit 1); exit 1; }; };;
22844 --help | --hel | -h )
22845 echo "$ac_cs_usage"; exit 0 ;;
22846 --debug | --d* | -d )
22848 --file | --fil | --fi | --f )
22850 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22851 ac_need_defaults=false;;
22852 --header | --heade | --head | --hea )
22854 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22855 ac_need_defaults=false;;
22856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22857 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22860 # This is an error.
22861 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22862 Try \`$0 --help' for more information." >&5
22863 echo "$as_me: error: unrecognized option: $1
22864 Try \`$0 --help' for more information." >&2;}
22865 { (exit 1); exit 1; }; } ;;
22867 *) ac_config_targets="$ac_config_targets $1" ;;
22873 ac_configure_extra_args=
22875 if $ac_cs_silent; then
22877 ac_configure_extra_args="$ac_configure_extra_args --silent"
22881 cat >>$CONFIG_STATUS <<_ACEOF
22882 if \$ac_cs_recheck; then
22883 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22884 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22893 cat >>$CONFIG_STATUS <<\_ACEOF
22894 for ac_config_target in $ac_config_targets
22896 case "$ac_config_target" in
22897 # Handling of arguments.
22898 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
22899 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22900 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22901 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22902 { (exit 1); exit 1; }; };;
22906 # If the user did not use the arguments to specify the items to instantiate,
22907 # then the envvar interface is used. Set only those that are not.
22908 # We use the long form for the default assignment because of an extremely
22909 # bizarre bug on SunOS 4.1.3.
22910 if $ac_need_defaults; then
22911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22912 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22915 # Have a temporary directory for convenience. Make it in the build tree
22916 # simply because there is no reason to put it here, and in addition,
22917 # creating and moving files from /tmp can sometimes cause problems.
22918 # Create a temporary directory, and hook for its removal unless debugging.
22921 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22922 trap '{ (exit 1); exit 1; }' 1 2 13 15
22925 # Create a (secure) tmp directory for tmp files.
22928 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22929 test -n "$tmp" && test -d "$tmp"
22932 tmp=./confstat$$-$RANDOM
22933 (umask 077 && mkdir $tmp)
22936 echo "$me: cannot create a temporary directory in ." >&2
22937 { (exit 1); exit 1; }
22942 cat >>$CONFIG_STATUS <<_ACEOF
22945 # CONFIG_FILES section.
22948 # No need to generate the scripts if there are no CONFIG_FILES.
22949 # This happens for instance when ./config.status config.h
22950 if test -n "\$CONFIG_FILES"; then
22951 # Protect against being on the right side of a sed subst in config.status.
22952 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22953 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22954 s,@SHELL@,$SHELL,;t t
22955 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22956 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22957 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22958 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22959 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22960 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22961 s,@exec_prefix@,$exec_prefix,;t t
22962 s,@prefix@,$prefix,;t t
22963 s,@program_transform_name@,$program_transform_name,;t t
22964 s,@bindir@,$bindir,;t t
22965 s,@sbindir@,$sbindir,;t t
22966 s,@libexecdir@,$libexecdir,;t t
22967 s,@datadir@,$datadir,;t t
22968 s,@sysconfdir@,$sysconfdir,;t t
22969 s,@sharedstatedir@,$sharedstatedir,;t t
22970 s,@localstatedir@,$localstatedir,;t t
22971 s,@libdir@,$libdir,;t t
22972 s,@includedir@,$includedir,;t t
22973 s,@oldincludedir@,$oldincludedir,;t t
22974 s,@infodir@,$infodir,;t t
22975 s,@mandir@,$mandir,;t t
22976 s,@build_alias@,$build_alias,;t t
22977 s,@host_alias@,$host_alias,;t t
22978 s,@target_alias@,$target_alias,;t t
22979 s,@DEFS@,$DEFS,;t t
22980 s,@ECHO_C@,$ECHO_C,;t t
22981 s,@ECHO_N@,$ECHO_N,;t t
22982 s,@ECHO_T@,$ECHO_T,;t t
22983 s,@LIBS@,$LIBS,;t t
22984 s,@build@,$build,;t t
22985 s,@build_cpu@,$build_cpu,;t t
22986 s,@build_vendor@,$build_vendor,;t t
22987 s,@build_os@,$build_os,;t t
22988 s,@host@,$host,;t t
22989 s,@host_cpu@,$host_cpu,;t t
22990 s,@host_vendor@,$host_vendor,;t t
22991 s,@host_os@,$host_os,;t t
22993 s,@CFLAGS@,$CFLAGS,;t t
22994 s,@LDFLAGS@,$LDFLAGS,;t t
22995 s,@CPPFLAGS@,$CPPFLAGS,;t t
22996 s,@ac_ct_CC@,$ac_ct_CC,;t t
22997 s,@EXEEXT@,$EXEEXT,;t t
22998 s,@OBJEXT@,$OBJEXT,;t t
23000 s,@CXXFLAGS@,$CXXFLAGS,;t t
23001 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23003 s,@RANLIB@,$RANLIB,;t t
23004 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23005 s,@SET_MAKE@,$SET_MAKE,;t t
23006 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23007 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23008 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23009 s,@LN_S@,$LN_S,;t t
23010 s,@EGREP@,$EGREP,;t t
23011 s,@ECHO@,$ECHO,;t t
23013 s,@ac_ct_AR@,$ac_ct_AR,;t t
23014 s,@STRIP@,$STRIP,;t t
23015 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23016 s,@CXXCPP@,$CXXCPP,;t t
23018 s,@FFLAGS@,$FFLAGS,;t t
23019 s,@ac_ct_F77@,$ac_ct_F77,;t t
23020 s,@LIBTOOL@,$LIBTOOL,;t t
23021 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
23022 s,@SLEXT@,$SLEXT,;t t
23023 s,@target@,$target,;t t
23024 s,@target_cpu@,$target_cpu,;t t
23025 s,@target_vendor@,$target_vendor,;t t
23026 s,@target_os@,$target_os,;t t
23027 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
23028 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
23029 s,@PACKAGE@,$PACKAGE,;t t
23030 s,@VERSION@,$VERSION,;t t
23031 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
23032 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
23033 s,@lame_objects@,$lame_objects,;t t
23034 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
23035 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
23036 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
23037 s,@USE_GZIP@,$USE_GZIP,;t t
23038 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
23039 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
23040 s,@JPEG2SWF@,$JPEG2SWF,;t t
23041 s,@PNG2SWF@,$PNG2SWF,;t t
23042 s,@LIBOBJS@,$LIBOBJS,;t t
23043 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23048 cat >>$CONFIG_STATUS <<\_ACEOF
23049 # Split the substitutions into bite-sized pieces for seds with
23050 # small command number limits, like on Digital OSF/1 and HP-UX.
23051 ac_max_sed_lines=48
23052 ac_sed_frag=1 # Number of current file.
23053 ac_beg=1 # First line for current file.
23054 ac_end=$ac_max_sed_lines # Line after last line for current file.
23057 while $ac_more_lines; do
23058 if test $ac_beg -gt 1; then
23059 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23061 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23063 if test ! -s $tmp/subs.frag; then
23064 ac_more_lines=false
23066 # The purpose of the label and of the branching condition is to
23067 # speed up the sed processing (if there are no `@' at all, there
23068 # is no need to browse any of the substitutions).
23069 # These are the two extra sed commands mentioned above.
23071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23072 if test -z "$ac_sed_cmds"; then
23073 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23075 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23077 ac_sed_frag=`expr $ac_sed_frag + 1`
23079 ac_end=`expr $ac_end + $ac_max_sed_lines`
23082 if test -z "$ac_sed_cmds"; then
23085 fi # test -n "$CONFIG_FILES"
23088 cat >>$CONFIG_STATUS <<\_ACEOF
23089 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23090 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23092 - | *:- | *:-:* ) # input from stdin
23094 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23095 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23096 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23097 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23098 * ) ac_file_in=$ac_file.in ;;
23101 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23102 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23104 X"$ac_file" : 'X\(//\)[^/]' \| \
23105 X"$ac_file" : 'X\(//\)$' \| \
23106 X"$ac_file" : 'X\(/\)' \| \
23107 . : '\(.\)' 2>/dev/null ||
23109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23111 /^X\(\/\/\)$/{ s//\1/; q; }
23112 /^X\(\/\).*/{ s//\1/; q; }
23114 { if $as_mkdir_p; then
23119 while test ! -d "$as_dir"; do
23120 as_dirs="$as_dir $as_dirs"
23121 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23123 X"$as_dir" : 'X\(//\)[^/]' \| \
23124 X"$as_dir" : 'X\(//\)$' \| \
23125 X"$as_dir" : 'X\(/\)' \| \
23126 . : '\(.\)' 2>/dev/null ||
23128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23130 /^X\(\/\/\)$/{ s//\1/; q; }
23131 /^X\(\/\).*/{ s//\1/; q; }
23134 test ! -n "$as_dirs" || mkdir $as_dirs
23135 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23136 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23137 { (exit 1); exit 1; }; }; }
23141 if test "$ac_dir" != .; then
23142 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23143 # A "../" for each directory in $ac_dir_suffix.
23144 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23146 ac_dir_suffix= ac_top_builddir=
23150 .) # No --srcdir option. We are building in place.
23152 if test -z "$ac_top_builddir"; then
23155 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23157 [\\/]* | ?:[\\/]* ) # Absolute path.
23158 ac_srcdir=$srcdir$ac_dir_suffix;
23159 ac_top_srcdir=$srcdir ;;
23160 *) # Relative path.
23161 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23162 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23165 # Do not use `cd foo && pwd` to compute absolute paths, because
23166 # the directories may not exist.
23168 .) ac_abs_builddir="$ac_dir";;
23171 .) ac_abs_builddir=`pwd`;;
23172 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23173 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23176 case $ac_abs_builddir in
23177 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23179 case ${ac_top_builddir}. in
23180 .) ac_abs_top_builddir=$ac_abs_builddir;;
23181 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23182 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23185 case $ac_abs_builddir in
23186 .) ac_abs_srcdir=$ac_srcdir;;
23189 .) ac_abs_srcdir=$ac_abs_builddir;;
23190 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23191 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23194 case $ac_abs_builddir in
23195 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23197 case $ac_top_srcdir in
23198 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23199 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23200 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23207 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23210 if test x"$ac_file" != x-; then
23211 { echo "$as_me:$LINENO: creating $ac_file" >&5
23212 echo "$as_me: creating $ac_file" >&6;}
23215 # Let's still pretend it is `configure' which instantiates (i.e., don't
23216 # use $as_me), people would be surprised to read:
23217 # /* config.h. Generated by config.status. */
23218 if test x"$ac_file" = x-; then
23221 configure_input="$ac_file. "
23223 configure_input=$configure_input"Generated from `echo $ac_file_in |
23224 sed 's,.*/,,'` by configure."
23226 # First look for the input files in the build tree, otherwise in the
23228 ac_file_inputs=`IFS=:
23229 for f in $ac_file_in; do
23231 -) echo $tmp/stdin ;;
23233 # Absolute (can't be DOS-style, as IFS=:)
23234 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23235 echo "$as_me: error: cannot find input file: $f" >&2;}
23236 { (exit 1); exit 1; }; }
23239 if test -f "$f"; then
23242 elif test -f "$srcdir/$f"; then
23247 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23248 echo "$as_me: error: cannot find input file: $f" >&2;}
23249 { (exit 1); exit 1; }; }
23252 done` || { (exit 1); exit 1; }
23254 cat >>$CONFIG_STATUS <<_ACEOF
23258 cat >>$CONFIG_STATUS <<\_ACEOF
23260 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23261 s,@configure_input@,$configure_input,;t t
23262 s,@srcdir@,$ac_srcdir,;t t
23263 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23264 s,@top_srcdir@,$ac_top_srcdir,;t t
23265 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23266 s,@builddir@,$ac_builddir,;t t
23267 s,@abs_builddir@,$ac_abs_builddir,;t t
23268 s,@top_builddir@,$ac_top_builddir,;t t
23269 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23270 s,@INSTALL@,$ac_INSTALL,;t t
23271 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23273 if test x"$ac_file" != x-; then
23274 mv $tmp/out $ac_file
23282 cat >>$CONFIG_STATUS <<\_ACEOF
23285 # CONFIG_HEADER section.
23288 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23289 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23291 # ac_d sets the value in "#define NAME VALUE" lines.
23292 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23293 ac_dB='[ ].*$,\1#\2'
23296 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23297 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23298 ac_uB='$,\1#\2define\3'
23302 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23303 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23305 - | *:- | *:-:* ) # input from stdin
23307 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23308 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23309 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23310 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23311 * ) ac_file_in=$ac_file.in ;;
23314 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23315 echo "$as_me: creating $ac_file" >&6;}
23317 # First look for the input files in the build tree, otherwise in the
23319 ac_file_inputs=`IFS=:
23320 for f in $ac_file_in; do
23322 -) echo $tmp/stdin ;;
23324 # Absolute (can't be DOS-style, as IFS=:)
23325 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23326 echo "$as_me: error: cannot find input file: $f" >&2;}
23327 { (exit 1); exit 1; }; }
23328 # Do quote $f, to prevent DOS paths from being IFS'd.
23331 if test -f "$f"; then
23334 elif test -f "$srcdir/$f"; then
23339 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23340 echo "$as_me: error: cannot find input file: $f" >&2;}
23341 { (exit 1); exit 1; }; }
23344 done` || { (exit 1); exit 1; }
23345 # Remove the trailing spaces.
23346 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23350 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23351 # `conftest.undefs', that substitutes the proper values into
23352 # config.h.in to produce config.h. The first handles `#define'
23353 # templates, and the second `#undef' templates.
23354 # And first: Protect against being on the right side of a sed subst in
23355 # config.status. Protect against being in an unquoted here document
23356 # in config.status.
23357 rm -f conftest.defines conftest.undefs
23358 # Using a here document instead of a string reduces the quoting nightmare.
23359 # Putting comments in sed scripts is not portable.
23361 # `end' is used to avoid that the second main sed command (meant for
23362 # 0-ary CPP macros) applies to n-ary macro definitions.
23363 # See the Autoconf documentation for `clear'.
23364 cat >confdef2sed.sed <<\_ACEOF
23369 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23371 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23374 # If some macros were called several times there might be several times
23375 # the same #defines, which is useless. Nevertheless, we may not want to
23376 # sort them, since we want the *last* AC-DEFINE to be honored.
23377 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23378 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23379 rm -f confdef2sed.sed
23381 # This sed command replaces #undef with comments. This is necessary, for
23382 # example, in the case of _POSIX_SOURCE, which is predefined and required
23383 # on some systems where configure will not decide to define it.
23384 cat >>conftest.undefs <<\_ACEOF
23385 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23388 # Break up conftest.defines because some shells have a limit on the size
23389 # of here documents, and old seds have small limits too (100 cmds).
23390 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23391 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23392 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23393 echo ' :' >>$CONFIG_STATUS
23394 rm -f conftest.tail
23395 while grep . conftest.defines >/dev/null
23397 # Write a limited-size here document to $tmp/defines.sed.
23398 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23399 # Speed up: don't consider the non `#define' lines.
23400 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23401 # Work around the forget-to-reset-the-flag bug.
23402 echo 't clr' >>$CONFIG_STATUS
23403 echo ': clr' >>$CONFIG_STATUS
23404 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23406 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23408 mv $tmp/out $tmp/in
23410 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23411 rm -f conftest.defines
23412 mv conftest.tail conftest.defines
23414 rm -f conftest.defines
23415 echo ' fi # grep' >>$CONFIG_STATUS
23416 echo >>$CONFIG_STATUS
23418 # Break up conftest.undefs because some shells have a limit on the size
23419 # of here documents, and old seds have small limits too (100 cmds).
23420 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23421 rm -f conftest.tail
23422 while grep . conftest.undefs >/dev/null
23424 # Write a limited-size here document to $tmp/undefs.sed.
23425 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23426 # Speed up: don't consider the non `#undef'
23427 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23428 # Work around the forget-to-reset-the-flag bug.
23429 echo 't clr' >>$CONFIG_STATUS
23430 echo ': clr' >>$CONFIG_STATUS
23431 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23433 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23435 mv $tmp/out $tmp/in
23437 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23438 rm -f conftest.undefs
23439 mv conftest.tail conftest.undefs
23441 rm -f conftest.undefs
23443 cat >>$CONFIG_STATUS <<\_ACEOF
23444 # Let's still pretend it is `configure' which instantiates (i.e., don't
23445 # use $as_me), people would be surprised to read:
23446 # /* config.h. Generated by config.status. */
23447 if test x"$ac_file" = x-; then
23448 echo "/* Generated by configure. */" >$tmp/config.h
23450 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23452 cat $tmp/in >>$tmp/config.h
23454 if test x"$ac_file" != x-; then
23455 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23456 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23457 echo "$as_me: $ac_file is unchanged" >&6;}
23459 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23461 X"$ac_file" : 'X\(//\)[^/]' \| \
23462 X"$ac_file" : 'X\(//\)$' \| \
23463 X"$ac_file" : 'X\(/\)' \| \
23464 . : '\(.\)' 2>/dev/null ||
23466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23468 /^X\(\/\/\)$/{ s//\1/; q; }
23469 /^X\(\/\).*/{ s//\1/; q; }
23471 { if $as_mkdir_p; then
23476 while test ! -d "$as_dir"; do
23477 as_dirs="$as_dir $as_dirs"
23478 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23480 X"$as_dir" : 'X\(//\)[^/]' \| \
23481 X"$as_dir" : 'X\(//\)$' \| \
23482 X"$as_dir" : 'X\(/\)' \| \
23483 . : '\(.\)' 2>/dev/null ||
23485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23486 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23487 /^X\(\/\/\)$/{ s//\1/; q; }
23488 /^X\(\/\).*/{ s//\1/; q; }
23491 test ! -n "$as_dirs" || mkdir $as_dirs
23492 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23493 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23494 { (exit 1); exit 1; }; }; }
23497 mv $tmp/config.h $ac_file
23501 rm -f $tmp/config.h
23506 cat >>$CONFIG_STATUS <<\_ACEOF
23508 { (exit 0); exit 0; }
23510 chmod +x $CONFIG_STATUS
23511 ac_clean_files=$ac_clean_files_save
23514 # configure is writing to config.log, and then calls config.status.
23515 # config.status does its own redirection, appending to config.log.
23516 # Unfortunately, on DOS this fails, as config.log is still kept open
23517 # by configure, so config.status won't be able to write to it; its
23518 # output is simply discarded. So we exec the FD to /dev/null,
23519 # effectively closing config.log, so it can be properly (re)opened and
23520 # appended to by config.status. When coming back to configure, we
23521 # need to make the FD available again.
23522 if test "$no_create" != yes; then
23524 ac_config_status_args=
23525 test "$silent" = yes &&
23526 ac_config_status_args="$ac_config_status_args --quiet"
23528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23531 # would make configure fail if this is the last instruction.
23532 $ac_cs_success || { (exit 1); exit 1; }