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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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="ipkg.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ipkglibdir 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_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures 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]
1019 if test -n "$ac_init_help"; then
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1040 --with-pic try to use only PIC/non-PIC objects [default=use
1043 include additional configurations [automatic]
1044 --with-ipkglibdir=DIR specifies directory to put status and info files.
1045 "/ipkg" is always added so if you want your files
1046 to be in /usr/lib/ipkg you should indicate
1047 --with-ipkglibdir=/usr/lib
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>
1057 CXX C++ compiler command
1058 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
1501 am__api_version="1.9"
1503 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1508 elif test -f $ac_dir/install.sh; then
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1512 elif test -f $ac_dir/shtool; then
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1518 if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1523 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527 # Find a good install program. We prefer a C program (faster),
1528 # so one script is as good as another. But avoid the broken or
1529 # incompatible versions:
1530 # SysV /etc/install, /usr/sbin/install
1531 # SunOS /usr/etc/install
1532 # IRIX /sbin/install
1534 # AmigaOS /C/install, which installs bootblocks on floppy discs
1535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1538 # OS/2's system install, which has a completely different semantic
1539 # ./install, which can be erroneously created by make from ./install.sh.
1540 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1542 if test -z "$INSTALL"; then
1543 if test "${ac_cv_path_install+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 test -z "$as_dir" && as_dir=.
1551 # Account for people who put trailing slashes in PATH elements.
1553 ./ | .// | /cC/* | \
1554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1555 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1558 # OSF1 and SCO ODT 3.0 have their own names for install.
1559 # Don't use installbsd from OSF since it installs stuff as root
1561 for ac_prog in ginstall scoinst install; do
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1564 if test $ac_prog = install &&
1565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1566 # AIX install. It has an incompatible calling convention.
1568 elif test $ac_prog = install &&
1569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570 # program-specific install script used by HP pwplus--don't use.
1573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1585 if test "${ac_cv_path_install+set}" = set; then
1586 INSTALL=$ac_cv_path_install
1588 # As a last resort, use the slow shell script. We don't cache a
1589 # path for INSTALL within a source directory, because that will
1590 # break other packages using the cache if that directory is
1591 # removed, or if the path is relative.
1592 INSTALL=$ac_install_sh
1595 echo "$as_me:$LINENO: result: $INSTALL" >&5
1596 echo "${ECHO_T}$INSTALL" >&6
1598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1599 # It thinks the first close brace ends the variable substitution.
1600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1606 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1607 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1610 echo timestamp > conftest.file
1611 # Do `set' in a subshell so we don't clobber the current shell's
1612 # arguments. Must try -L first in case configure is actually a
1613 # symlink; some systems play weird games with the mod time of symlinks
1614 # (eg FreeBSD returns the mod time of the symlink's containing
1617 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1618 if test "$*" = "X"; then
1620 set X `ls -t $srcdir/configure conftest.file`
1623 if test "$*" != "X $srcdir/configure conftest.file" \
1624 && test "$*" != "X conftest.file $srcdir/configure"; then
1626 # If neither matched, then we have a broken ls. This can happen
1627 # if, for instance, CONFIG_SHELL is bash and it inherits a
1628 # broken ls alias from the environment. This has actually
1629 # happened. Such a system could not be considered "sane".
1630 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&5
1632 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1633 alias in your environment" >&2;}
1634 { (exit 1); exit 1; }; }
1637 test "$2" = conftest.file
1643 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1644 Check your system clock" >&5
1645 echo "$as_me: error: newly created file is older than distributed files!
1646 Check your system clock" >&2;}
1647 { (exit 1); exit 1; }; }
1649 echo "$as_me:$LINENO: result: yes" >&5
1650 echo "${ECHO_T}yes" >&6
1651 test "$program_prefix" != NONE &&
1652 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1653 # Use a double $ so make ignores it.
1654 test "$program_suffix" != NONE &&
1655 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1656 # Double any \ or $. echo might interpret backslashes.
1657 # By default was `s,x,x', remove it if useless.
1658 cat <<\_ACEOF >conftest.sed
1659 s/[\\$]/&&/g;s/;s,x,x,$//
1661 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1664 # expand $ac_aux_dir to an absolute path
1665 am_aux_dir=`cd $ac_aux_dir && pwd`
1667 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1668 # Use eval to expand $SHELL
1669 if eval "$MISSING --run true"; then
1670 am_missing_run="$MISSING --run "
1673 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1674 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1677 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1678 # We used to keeping the `.' as first argument, in order to
1679 # allow $(mkdir_p) to be used without argument. As in
1680 # $(mkdir_p) $(somedir)
1681 # where $(somedir) is conditionally defined. However this is wrong
1683 # 1. if the package is installed by a user who cannot write `.'
1684 # make install will fail,
1685 # 2. the above comment should most certainly read
1686 # $(mkdir_p) $(DESTDIR)$(somedir)
1687 # so it does not work when $(somedir) is undefined and
1688 # $(DESTDIR) is not.
1689 # To support the latter case, we have to write
1690 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1691 # so the `.' trick is pointless.
1692 mkdir_p='mkdir -p --'
1694 # On NextStep and OpenStep, the `mkdir' command does not
1695 # recognize any option. It will interpret all options as
1696 # directories to create, and then abort because `.' already
1698 for d in ./-p ./--version;
1700 test -d $d && rmdir $d
1702 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1703 if test -f "$ac_aux_dir/mkinstalldirs"; then
1704 mkdir_p='$(mkinstalldirs)'
1706 mkdir_p='$(install_sh) -d'
1710 for ac_prog in gawk mawk nawk awk
1712 # Extract the first word of "$ac_prog", so it can be a program name with args.
1713 set dummy $ac_prog; ac_word=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_AWK+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 if test -n "$AWK"; then
1720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_AWK="$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 if test -n "$AWK"; then
1740 echo "$as_me:$LINENO: result: $AWK" >&5
1741 echo "${ECHO_T}$AWK" >&6
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 test -n "$AWK" && break
1750 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1751 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1752 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1753 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 cat >conftest.make <<\_ACEOF
1758 @echo 'ac_maketemp="$(MAKE)"'
1760 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1761 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1762 if test -n "$ac_maketemp"; then
1763 eval ac_cv_prog_make_${ac_make}_set=yes
1765 eval ac_cv_prog_make_${ac_make}_set=no
1769 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1770 echo "$as_me:$LINENO: result: yes" >&5
1771 echo "${ECHO_T}yes" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 SET_MAKE="MAKE=${MAKE-make}"
1779 rm -rf .tst 2>/dev/null
1780 mkdir .tst 2>/dev/null
1781 if test -d .tst; then
1786 rmdir .tst 2>/dev/null
1788 # test to see if srcdir already configured
1789 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1790 test -f $srcdir/config.status; then
1791 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1792 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1793 { (exit 1); exit 1; }; }
1796 # test whether we have cygpath
1797 if test -z "$CYGPATH_W"; then
1798 if (cygpath --version) >/dev/null 2>/dev/null; then
1799 CYGPATH_W='cygpath -w'
1806 # Define the identity of the package.
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE "$PACKAGE"
1816 cat >>confdefs.h <<_ACEOF
1817 #define VERSION "$VERSION"
1820 # Some tools Automake needs.
1822 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1825 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1828 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1831 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1834 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1836 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1838 # Installed binaries are usually stripped using `strip' when the user
1839 # run `make install-strip'. However `strip' might not be the right
1840 # tool to use in cross-compilation environments, therefore Automake
1841 # will honor the `STRIP' environment variable to overrule this program.
1842 if test "$cross_compiling" != no; then
1843 if test -n "$ac_tool_prefix"; then
1844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1845 set dummy ${ac_tool_prefix}strip; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_STRIP+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test -n "$STRIP"; then
1852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 STRIP=$ac_cv_prog_STRIP
1871 if test -n "$STRIP"; then
1872 echo "$as_me:$LINENO: result: $STRIP" >&5
1873 echo "${ECHO_T}$STRIP" >&6
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1880 if test -z "$ac_cv_prog_STRIP"; then
1882 # Extract the first word of "strip", so it can be a program name with args.
1883 set dummy strip; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$ac_ct_STRIP"; then
1890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_ac_ct_STRIP="strip"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1910 if test -n "$ac_ct_STRIP"; then
1911 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1912 echo "${ECHO_T}$ac_ct_STRIP" >&6
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1920 STRIP="$ac_cv_prog_STRIP"
1924 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1926 # We need awk for the "check" target. The system "awk" is bad on
1928 # Always define AMTAR for backward compatibility.
1930 AMTAR=${AMTAR-"${am_missing_run}tar"}
1932 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1938 ac_config_headers="$ac_config_headers config.h"
1941 # Make sure we can run config.sub.
1942 $ac_config_sub sun4 >/dev/null 2>&1 ||
1943 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1944 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1945 { (exit 1); exit 1; }; }
1947 echo "$as_me:$LINENO: checking build system type" >&5
1948 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1949 if test "${ac_cv_build+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 ac_cv_build_alias=$build_alias
1953 test -z "$ac_cv_build_alias" &&
1954 ac_cv_build_alias=`$ac_config_guess`
1955 test -z "$ac_cv_build_alias" &&
1956 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1957 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1958 { (exit 1); exit 1; }; }
1959 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1960 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1961 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1962 { (exit 1); exit 1; }; }
1965 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1966 echo "${ECHO_T}$ac_cv_build" >&6
1968 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1969 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1970 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1973 echo "$as_me:$LINENO: checking host system type" >&5
1974 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1975 if test "${ac_cv_host+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 ac_cv_host_alias=$host_alias
1979 test -z "$ac_cv_host_alias" &&
1980 ac_cv_host_alias=$ac_cv_build_alias
1981 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1982 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1983 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1984 { (exit 1); exit 1; }; }
1987 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1988 echo "${ECHO_T}$ac_cv_host" >&6
1990 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1991 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1992 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1997 for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do
1998 test -f $top_builddir/configure && break
2002 # Checks for programs
2003 for ac_prog in gawk mawk nawk awk
2005 # Extract the first word of "$ac_prog", so it can be a program name with args.
2006 set dummy $ac_prog; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_AWK+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$AWK"; then
2013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_AWK="$ac_prog"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 if test -n "$AWK"; then
2033 echo "$as_me:$LINENO: result: $AWK" >&5
2034 echo "${ECHO_T}$AWK" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2040 test -n "$AWK" && break
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 if test -n "$ac_tool_prefix"; then
2049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2050 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$CC"; then
2057 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 if test -n "$CC"; then
2077 echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2085 if test -z "$ac_cv_prog_CC"; then
2087 # Extract the first word of "gcc", so it can be a program name with args.
2088 set dummy gcc; ac_word=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC="gcc"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}cc; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 ac_cv_prog_CC="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 if test -n "$CC"; then
2157 echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2165 if test -z "$ac_cv_prog_CC"; then
2167 # Extract the first word of "cc", so it can be a program name with args.
2168 set dummy cc; ac_word=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$ac_ct_CC"; then
2175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_ac_ct_CC="cc"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194 if test -n "$ac_ct_CC"; then
2195 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196 echo "${ECHO_T}$ac_ct_CC" >&6
2198 echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2208 if test -z "$CC"; then
2209 # Extract the first word of "cc", so it can be a program name with args.
2210 set dummy cc; ac_word=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2228 ac_prog_rejected=yes
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 if test $ac_prog_rejected = yes; then
2239 # We found a bogon in the path, so make sure we never use it.
2240 set dummy $ac_cv_prog_CC
2242 if test $# != 0; then
2243 # We chose a different compiler from the bogus one.
2244 # However, it has the same basename, so the bogon will be chosen
2245 # first if we set CC to just the basename; use the full file name.
2247 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2262 if test -z "$CC"; then
2263 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 if test -n "$CC"; then
2294 echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2297 echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2301 test -n "$CC" && break
2304 if test -z "$CC"; then
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_ac_ct_CC="$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6
2339 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2343 test -n "$ac_ct_CC" && break
2352 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: no acceptable C compiler found in \$PATH
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2358 # Provide some information about the compiler.
2359 echo "$as_me:$LINENO:" \
2360 "checking for C compiler version" >&5
2361 ac_compiler=`set X $ac_compile; echo $2`
2362 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2363 (eval $ac_compiler --version </dev/null >&5) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2368 (eval $ac_compiler -v </dev/null >&5) 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2373 (eval $ac_compiler -V </dev/null >&5) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2378 cat >conftest.$ac_ext <<_ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2393 ac_clean_files_save=$ac_clean_files
2394 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2398 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2400 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2402 (eval $ac_link_default) 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; then
2406 # Find the output, starting from the most likely. This scheme is
2407 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2410 # Be careful to initialize this variable, since it used to be cached.
2411 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2413 # b.out is created by i960 compilers.
2414 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2416 test -f "$ac_file" || continue
2418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2421 # This is the source file.
2424 # We found the default executable, but exeext='' is most
2428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429 # FIXME: I believe we export ac_cv_exeext for Libtool,
2430 # but it would be cool to find out if it's true. Does anybody
2431 # maintain Libtool? --akim.
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2442 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&2;}
2446 { (exit 77); exit 77; }; }
2449 ac_exeext=$ac_cv_exeext
2450 echo "$as_me:$LINENO: result: $ac_file" >&5
2451 echo "${ECHO_T}$ac_file" >&6
2453 # Check the compiler produces executables we can run. If not, either
2454 # the compiler is broken, or we cross compile.
2455 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2456 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2457 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2458 # If not cross compiling, check that we can run a simple program.
2459 if test "$cross_compiling" != yes; then
2460 if { ac_try='./$ac_file'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2468 if test "$cross_compiling" = maybe; then
2471 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: cannot run C compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \`config.log' for more details." >&2;}
2477 { (exit 1); exit 1; }; }
2481 echo "$as_me:$LINENO: result: yes" >&5
2482 echo "${ECHO_T}yes" >&6
2484 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2485 ac_clean_files=$ac_clean_files_save
2486 # Check the compiler produces executables we can run. If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2489 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2490 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2491 echo "${ECHO_T}$cross_compiling" >&6
2493 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2494 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2496 (eval $ac_link) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; then
2500 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2501 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2502 # work properly (i.e., refer to `conftest.exe'), while it won't with
2504 for ac_file in conftest.exe conftest conftest.*; do
2505 test -f "$ac_file" || continue
2507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2515 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2522 rm -f conftest$ac_cv_exeext
2523 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2524 echo "${ECHO_T}$ac_cv_exeext" >&6
2526 rm -f conftest.$ac_ext
2527 EXEEXT=$ac_cv_exeext
2529 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531 if test "${ac_cv_objext+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 cat >conftest.$ac_ext <<_ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2549 rm -f conftest.o conftest.obj
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6
2577 OBJEXT=$ac_cv_objext
2579 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 cat >conftest.$ac_ext <<_ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1 >conftest.err
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2635 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2636 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2637 GCC=`test $ac_compiler_gnu = yes && echo yes`
2638 ac_test_CFLAGS=${CFLAGS+set}
2639 ac_save_CFLAGS=$CFLAGS
2641 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2642 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2643 if test "${ac_cv_prog_cc_g+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 cat >conftest.$ac_ext <<_ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2665 grep -v '^ *+' conftest.er1 >conftest.err
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2693 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2694 if test "$ac_test_CFLAGS" = set; then
2695 CFLAGS=$ac_save_CFLAGS
2696 elif test $ac_cv_prog_cc_g = yes; then
2697 if test "$GCC" = yes; then
2703 if test "$GCC" = yes; then
2709 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2710 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2711 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 ac_cv_prog_cc_stdc=no
2716 cat >conftest.$ac_ext <<_ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2724 #include <sys/types.h>
2725 #include <sys/stat.h>
2726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2727 struct buf { int x; };
2728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2729 static char *e (p, i)
2735 static char *f (char * (*g) (char **, int), char **p, ...)
2740 s = g (p, va_arg (v,int));
2745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2746 function prototypes and stuff, but not '\xHH' hex character constants.
2747 These don't provoke an error unfortunately, instead are silently treated
2748 as 'x'. The following induces an error, until -std1 is added to get
2749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2750 array size at least. It's necessary to write '\x00'==0 to get something
2751 that's true only with -std1. */
2752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2754 int test (int i, double x);
2755 struct s1 {int (*f) (int a);};
2756 struct s2 {int (*f) (double a);};
2757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2768 # Don't try gcc -ansi; that turns off useful extensions and
2769 # breaks some systems' header files.
2770 # AIX -qlanglvl=ansi
2771 # Ultrix and OSF/1 -std1
2772 # HP-UX 10.20 and later -Ae
2773 # HP-UX older versions -Aa -D_HPUX_SOURCE
2774 # SVR4 -Xc -D__EXTENSIONS__
2775 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 CC="$ac_save_CC $ac_arg"
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_prog_cc_stdc=$ac_arg
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f conftest.err conftest.$ac_objext
2809 rm -f conftest.$ac_ext conftest.$ac_objext
2814 case "x$ac_cv_prog_cc_stdc" in
2816 echo "$as_me:$LINENO: result: none needed" >&5
2817 echo "${ECHO_T}none needed" >&6 ;;
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2821 CC="$CC $ac_cv_prog_cc_stdc" ;;
2824 # Some people use a C++ compiler to compile C. Since we use `exit',
2825 # in C++ we need to declare it. In case someone uses the same compiler
2826 # for both compiling C and C++ we need to have the C++ compiler decide
2827 # the declaration of exit, since it's the most demanding environment.
2828 cat >conftest.$ac_ext <<_ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1 >conftest.err
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 for ac_declaration in \
2857 'extern "C" void std::exit (int) throw (); using std::exit;' \
2858 'extern "C" void std::exit (int); using std::exit;' \
2859 'extern "C" void exit (int) throw ();' \
2860 'extern "C" void exit (int);' \
2863 cat >conftest.$ac_ext <<_ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 if test -n "$ac_declaration"; then
2956 echo '#ifdef __cplusplus' >>confdefs.h
2957 echo $ac_declaration >>confdefs.h
2958 echo '#endif' >>confdefs.h
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 DEPDIR="${am__leading_dot}deps"
2974 ac_config_commands="$ac_config_commands depfiles"
2977 am_make=${MAKE-make}
2978 cat > confinc << 'END'
2983 # If we don't find an include directive, just comment out the code.
2984 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2985 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2989 # First try GNU make style include.
2990 echo "include confinc" > confmf
2991 # We grep out `Entering directory' and `Leaving directory'
2992 # messages which can occur if `w' ends up in MAKEFLAGS.
2993 # In particular we don't look at `^make:' because GNU make might
2994 # be invoked under some other name (usually "gmake"), in which
2995 # case it prints its new name instead of `make'.
2996 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3001 # Now try BSD make style include.
3002 if test "$am__include" = "#"; then
3003 echo '.include "confinc"' > confmf
3004 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3005 am__include=.include
3012 echo "$as_me:$LINENO: result: $_am_result" >&5
3013 echo "${ECHO_T}$_am_result" >&6
3014 rm -f confinc confmf
3016 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3017 if test "${enable_dependency_tracking+set}" = set; then
3018 enableval="$enable_dependency_tracking"
3021 if test "x$enable_dependency_tracking" != xno; then
3022 am_depcomp="$ac_aux_dir/depcomp"
3027 if test "x$enable_dependency_tracking" != xno; then
3038 depcc="$CC" am_compiler_list=
3040 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3041 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3042 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3046 # We make a subdir and do the tests there. Otherwise we can end up
3047 # making bogus files that we don't know about and never remove. For
3048 # instance it was reported that on HP-UX the gcc test will end up
3049 # making a dummy file named `D' -- because `-MD' means `put the output
3052 # Copy depcomp to subdir because otherwise we won't find it if we're
3053 # using a relative directory.
3054 cp "$am_depcomp" conftest.dir
3056 # We will build objects and dependencies in a subdirectory because
3057 # it helps to detect inapplicable dependency modes. For instance
3058 # both Tru64's cc and ICC support -MD to output dependencies as a
3059 # side effect of compilation, but ICC will put the dependencies in
3060 # the current directory while Tru64 will put them in the object
3064 am_cv_CC_dependencies_compiler_type=none
3065 if test "$am_compiler_list" = ""; then
3066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3068 for depmode in $am_compiler_list; do
3069 # Setup a source with many dependencies, because some compilers
3070 # like to wrap large dependency lists on column 80 (with \), and
3071 # we should not choose a depcomp mode which is confused by this.
3073 # We need to recreate these files for each test, as the compiler may
3074 # overwrite some of them when testing with obscure command lines.
3075 # This happens at least with the AIX C compiler.
3077 for i in 1 2 3 4 5 6; do
3078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3079 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3080 # Solaris 8's {/usr,}/bin/sh.
3081 touch sub/conftst$i.h
3083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3087 # after this tag, mechanisms are not by side-effect, so they'll
3088 # only be used when explicitly requested
3089 if test "x$enable_dependency_tracking" = xyes; then
3097 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3098 # mode. It turns out that the SunPro C++ compiler does not properly
3099 # handle `-M -o', and we need to detect this.
3100 if depmode=$depmode \
3101 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3103 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3104 >/dev/null 2>conftest.err &&
3105 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3106 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3107 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3108 # icc doesn't choke on unknown options, it will just issue warnings
3109 # or remarks (even with -Werror). So we grep stderr for any message
3110 # that says an option was ignored or not supported.
3111 # When given -MP, icc 7.0 and 7.1 complain thusly:
3112 # icc: Command line warning: ignoring option '-M'; no argument required
3113 # The diagnosis changed in icc 8.0:
3114 # icc: Command line remark: option '-MP' not supported
3115 if (grep 'ignoring option' conftest.err ||
3116 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3117 am_cv_CC_dependencies_compiler_type=$depmode
3126 am_cv_CC_dependencies_compiler_type=none
3130 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3131 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3132 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3137 test "x$enable_dependency_tracking" != xno \
3138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3140 am__fastdepCC_FALSE='#'
3142 am__fastdepCC_TRUE='#'
3143 am__fastdepCC_FALSE=
3147 # Find a good install program. We prefer a C program (faster),
3148 # so one script is as good as another. But avoid the broken or
3149 # incompatible versions:
3150 # SysV /etc/install, /usr/sbin/install
3151 # SunOS /usr/etc/install
3152 # IRIX /sbin/install
3154 # AmigaOS /C/install, which installs bootblocks on floppy discs
3155 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3156 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3157 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3158 # OS/2's system install, which has a completely different semantic
3159 # ./install, which can be erroneously created by make from ./install.sh.
3160 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3161 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3162 if test -z "$INSTALL"; then
3163 if test "${ac_cv_path_install+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir=.
3171 # Account for people who put trailing slashes in PATH elements.
3173 ./ | .// | /cC/* | \
3174 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3175 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3178 # OSF1 and SCO ODT 3.0 have their own names for install.
3179 # Don't use installbsd from OSF since it installs stuff as root
3181 for ac_prog in ginstall scoinst install; do
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3184 if test $ac_prog = install &&
3185 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3186 # AIX install. It has an incompatible calling convention.
3188 elif test $ac_prog = install &&
3189 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3190 # program-specific install script used by HP pwplus--don't use.
3193 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3205 if test "${ac_cv_path_install+set}" = set; then
3206 INSTALL=$ac_cv_path_install
3208 # As a last resort, use the slow shell script. We don't cache a
3209 # path for INSTALL within a source directory, because that will
3210 # break other packages using the cache if that directory is
3211 # removed, or if the path is relative.
3212 INSTALL=$ac_install_sh
3215 echo "$as_me:$LINENO: result: $INSTALL" >&5
3216 echo "${ECHO_T}$INSTALL" >&6
3218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3219 # It thinks the first close brace ends the variable substitution.
3220 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3226 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3227 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3229 if test "$LN_S" = "ln -s"; then
3230 echo "$as_me:$LINENO: result: yes" >&5
3231 echo "${ECHO_T}yes" >&6
3233 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3234 echo "${ECHO_T}no, using $LN_S" >&6
3237 # Installed binaries are usually stripped using `strip' when the user
3238 # run `make install-strip'. However `strip' might not be the right
3239 # tool to use in cross-compilation environments, therefore Automake
3240 # will honor the `STRIP' environment variable to overrule this program.
3241 if test "$cross_compiling" != no; then
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}strip; ac_word=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_STRIP+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$STRIP"; then
3251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 STRIP=$ac_cv_prog_STRIP
3270 if test -n "$STRIP"; then
3271 echo "$as_me:$LINENO: result: $STRIP" >&5
3272 echo "${ECHO_T}$STRIP" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3279 if test -z "$ac_cv_prog_STRIP"; then
3281 # Extract the first word of "strip", so it can be a program name with args.
3282 set dummy strip; ac_word=$2
3283 echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test -n "$ac_ct_STRIP"; then
3289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_STRIP="strip"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3309 if test -n "$ac_ct_STRIP"; then
3310 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3311 echo "${ECHO_T}$ac_ct_STRIP" >&6
3313 echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3319 STRIP="$ac_cv_prog_STRIP"
3323 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3325 # Check whether --enable-shared or --disable-shared was given.
3326 if test "${enable_shared+set}" = set; then
3327 enableval="$enable_shared"
3328 p=${PACKAGE-default}
3330 yes) enable_shared=yes ;;
3331 no) enable_shared=no ;;
3334 # Look at the argument we got. We use all the common list separators.
3335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3336 for pkg in $enableval; do
3338 if test "X$pkg" = "X$p"; then
3349 # Check whether --enable-static or --disable-static was given.
3350 if test "${enable_static+set}" = set; then
3351 enableval="$enable_static"
3352 p=${PACKAGE-default}
3354 yes) enable_static=yes ;;
3355 no) enable_static=no ;;
3358 # Look at the argument we got. We use all the common list separators.
3359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3360 for pkg in $enableval; do
3362 if test "X$pkg" = "X$p"; then
3373 # Check whether --enable-fast-install or --disable-fast-install was given.
3374 if test "${enable_fast_install+set}" = set; then
3375 enableval="$enable_fast_install"
3376 p=${PACKAGE-default}
3378 yes) enable_fast_install=yes ;;
3379 no) enable_fast_install=no ;;
3381 enable_fast_install=no
3382 # Look at the argument we got. We use all the common list separators.
3383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3384 for pkg in $enableval; do
3386 if test "X$pkg" = "X$p"; then
3387 enable_fast_install=yes
3394 enable_fast_install=yes
3397 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3398 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3399 if test "${lt_cv_path_SED+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 # Loop through the user's path and test for sed and gsed.
3403 # Then use that list of sed's as ones to test for truncation.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 for lt_ac_prog in sed gsed; do
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3412 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3419 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3420 # along with /bin/sed that truncates output.
3421 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3422 test ! -f $lt_ac_sed && continue
3423 cat /dev/null > conftest.in
3425 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3426 # Check for GNU sed and select it if it is found.
3427 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3428 lt_cv_path_SED=$lt_ac_sed
3432 cat conftest.in conftest.in >conftest.tmp
3433 mv conftest.tmp conftest.in
3434 cp conftest.in conftest.nl
3436 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3437 cmp -s conftest.out conftest.nl || break
3438 # 10000 chars as input seems more than enough
3439 test $lt_ac_count -gt 10 && break
3440 lt_ac_count=`expr $lt_ac_count + 1`
3441 if test $lt_ac_count -gt $lt_ac_max; then
3442 lt_ac_max=$lt_ac_count
3443 lt_cv_path_SED=$lt_ac_sed
3451 echo "$as_me:$LINENO: result: $SED" >&5
3452 echo "${ECHO_T}$SED" >&6
3454 echo "$as_me:$LINENO: checking for egrep" >&5
3455 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3456 if test "${ac_cv_prog_egrep+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3460 then ac_cv_prog_egrep='grep -E'
3461 else ac_cv_prog_egrep='egrep'
3464 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3465 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3466 EGREP=$ac_cv_prog_egrep
3470 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3471 if test "${with_gnu_ld+set}" = set; then
3472 withval="$with_gnu_ld"
3473 test "$withval" = no || with_gnu_ld=yes
3478 if test "$GCC" = yes; then
3479 # Check if gcc -print-prog-name=ld gives a path.
3480 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3481 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3484 # gcc leaves a trailing carriage return which upsets mingw
3485 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3487 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3490 # Accept absolute paths.
3492 re_direlt='/[^/][^/]*/\.\./'
3493 # Canonicalize the pathname of ld
3494 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3495 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3496 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3498 test -z "$LD" && LD="$ac_prog"
3501 # If it fails, then pretend we aren't using GCC.
3505 # If it is relative, then search for the first ld in PATH.
3509 elif test "$with_gnu_ld" = yes; then
3510 echo "$as_me:$LINENO: checking for GNU ld" >&5
3511 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3513 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3514 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3516 if test "${lt_cv_path_LD+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 if test -z "$LD"; then
3520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3521 for ac_dir in $PATH; do
3523 test -z "$ac_dir" && ac_dir=.
3524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3525 lt_cv_path_LD="$ac_dir/$ac_prog"
3526 # Check to see if the program is GNU ld. I'd rather use --version,
3527 # but apparently some variants of GNU ld only accept -v.
3528 # Break only if it was the GNU/non-GNU ld that we prefer.
3529 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3530 *GNU* | *'with BFD'*)
3531 test "$with_gnu_ld" != no && break
3534 test "$with_gnu_ld" != yes && break
3541 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3546 if test -n "$LD"; then
3547 echo "$as_me:$LINENO: result: $LD" >&5
3548 echo "${ECHO_T}$LD" >&6
3550 echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3555 { (exit 1); exit 1; }; }
3556 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3558 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3562 case `$LD -v 2>&1 </dev/null` in
3563 *GNU* | *'with BFD'*)
3564 lt_cv_prog_gnu_ld=yes
3567 lt_cv_prog_gnu_ld=no
3571 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3572 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3573 with_gnu_ld=$lt_cv_prog_gnu_ld
3576 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3577 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3578 if test "${lt_cv_ld_reload_flag+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 lt_cv_ld_reload_flag='-r'
3583 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3584 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3585 reload_flag=$lt_cv_ld_reload_flag
3586 case $reload_flag in
3588 *) reload_flag=" $reload_flag" ;;
3590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3593 if test "$GCC" = yes; then
3594 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3596 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3601 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3602 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3603 if test "${lt_cv_path_NM+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 if test -n "$NM"; then
3607 # Let the user override the test.
3610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3611 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3613 test -z "$ac_dir" && ac_dir=.
3614 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3615 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3616 # Check to see if the nm accepts a BSD-compat flag.
3617 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3618 # nm: unknown option "B" ignored
3619 # Tru64's nm complains that /dev/null is an invalid object file
3620 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3621 */dev/null* | *'Invalid file or object type'*)
3622 lt_cv_path_NM="$tmp_nm -B"
3626 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3628 lt_cv_path_NM="$tmp_nm -p"
3632 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3633 continue # so that we can try to find one that supports BSD flags
3640 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3643 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3644 echo "${ECHO_T}$lt_cv_path_NM" >&6
3647 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3648 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3649 if test "${lt_cv_deplibs_check_method+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 lt_cv_file_magic_cmd='$MAGIC_CMD'
3653 lt_cv_file_magic_test_file=
3654 lt_cv_deplibs_check_method='unknown'
3655 # Need to set the preceding variable on all platforms that support
3656 # interlibrary dependencies.
3657 # 'none' -- dependencies not supported.
3658 # `unknown' -- same as none, but documents that we really don't know.
3659 # 'pass_all' -- all dependencies passed with no checks.
3660 # 'test_compile' -- check by making test program.
3661 # 'file_magic [[regex]]' -- check by looking for files in library path
3662 # which responds to the $file_magic_cmd with a given extended regex.
3663 # If you have `file' or equivalent on your system and you're not sure
3664 # whether `pass_all' will *always* work, you probably want this one.
3668 lt_cv_deplibs_check_method=pass_all
3672 lt_cv_deplibs_check_method=pass_all
3676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3677 lt_cv_file_magic_cmd='/usr/bin/file -L'
3678 lt_cv_file_magic_test_file=/shlib/libc.so
3682 # func_win32_libid is a shell function defined in ltmain.sh
3683 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3684 lt_cv_file_magic_cmd='func_win32_libid'
3688 # Base MSYS/MinGW do not provide the 'file' command needed by
3689 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3690 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3691 lt_cv_file_magic_cmd='$OBJDUMP -f'
3694 darwin* | rhapsody*)
3695 lt_cv_deplibs_check_method=pass_all
3698 freebsd* | kfreebsd*-gnu | dragonfly*)
3699 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3702 # Not sure whether the presence of OpenBSD here was a mistake.
3703 # Let's accept both of them until this is cleared up.
3704 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3705 lt_cv_file_magic_cmd=/usr/bin/file
3706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3710 lt_cv_deplibs_check_method=pass_all
3715 lt_cv_deplibs_check_method=pass_all
3718 hpux10.20* | hpux11*)
3719 lt_cv_file_magic_cmd=/usr/bin/file
3722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3723 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3726 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]'
3727 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3730 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3731 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3736 irix5* | irix6* | nonstopux*)
3738 *-32|*"-32 ") libmagic=32-bit;;
3739 *-n32|*"-n32 ") libmagic=N32;;
3740 *-64|*"-64 ") libmagic=64-bit;;
3741 *) libmagic=never-match;;
3743 lt_cv_deplibs_check_method=pass_all
3746 # This must be Linux ELF.
3748 lt_cv_deplibs_check_method=pass_all
3752 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3761 lt_cv_file_magic_cmd=/usr/bin/file
3762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3766 lt_cv_deplibs_check_method=unknown
3770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3777 osf3* | osf4* | osf5*)
3778 lt_cv_deplibs_check_method=pass_all
3782 lt_cv_deplibs_check_method=pass_all
3786 lt_cv_deplibs_check_method=pass_all
3789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3790 case $host_vendor in
3792 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]'
3793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3796 lt_cv_deplibs_check_method=pass_all
3799 lt_cv_file_magic_cmd='/bin/file'
3800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3803 lt_cv_file_magic_cmd='/bin/file'
3804 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3805 lt_cv_file_magic_test_file=/lib/libc.so
3808 lt_cv_deplibs_check_method=pass_all
3813 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3814 lt_cv_deplibs_check_method=pass_all
3819 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3820 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3821 file_magic_cmd=$lt_cv_file_magic_cmd
3822 deplibs_check_method=$lt_cv_deplibs_check_method
3823 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3828 # If no C compiler was specified, use CC.
3831 # Allow CC to be a program name with arguments.
3835 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3836 if test "${enable_libtool_lock+set}" = set; then
3837 enableval="$enable_libtool_lock"
3840 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3842 # Some flags need to be propagated to the compiler or linker for good
3846 # Find out which ABI we are using.
3847 echo 'int i;' > conftest.$ac_ext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849 (eval $ac_compile) 2>&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; then
3853 case `/usr/bin/file conftest.$ac_objext` in
3865 # Find out which ABI we are using.
3866 echo '#line 3866 "configure"' > conftest.$ac_ext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; then
3872 if test "$lt_cv_prog_gnu_ld" = yes; then
3873 case `/usr/bin/file conftest.$ac_objext` in
3875 LD="${LD-ld} -melf32bsmip"
3878 LD="${LD-ld} -melf32bmipn32"
3881 LD="${LD-ld} -melf64bmip"
3885 case `/usr/bin/file conftest.$ac_objext` in
3901 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3902 # Find out which ABI we are using.
3903 echo 'int i;' > conftest.$ac_ext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; then
3909 case `/usr/bin/file conftest.o` in
3913 LD="${LD-ld} -m elf_i386"
3915 ppc64-*linux*|powerpc64-*linux*)
3916 LD="${LD-ld} -m elf32ppclinux"
3919 LD="${LD-ld} -m elf_s390"
3922 LD="${LD-ld} -m elf32_sparc"
3929 LD="${LD-ld} -m elf_x86_64"
3931 ppc*-*linux*|powerpc*-*linux*)
3932 LD="${LD-ld} -m elf64ppc"
3935 LD="${LD-ld} -m elf64_s390"
3938 LD="${LD-ld} -m elf64_sparc"
3948 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3949 SAVE_CFLAGS="$CFLAGS"
3950 CFLAGS="$CFLAGS -belf"
3951 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3952 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3953 if test "${lt_cv_cc_needs_belf+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 cat >conftest.$ac_ext <<_ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3979 (eval $ac_link) 2>conftest.er1
3981 grep -v '^ *+' conftest.er1 >conftest.err
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -z "$ac_c_werror_flag"
3987 || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest$ac_exeext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 lt_cv_cc_needs_belf=yes
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 lt_cv_cc_needs_belf=no
4006 rm -f conftest.err conftest.$ac_objext \
4007 conftest$ac_exeext conftest.$ac_ext
4009 ac_cpp='$CPP $CPPFLAGS'
4010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4016 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4017 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4018 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4019 CFLAGS="$SAVE_CFLAGS"
4025 need_locks="$enable_libtool_lock"
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4034 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4035 # On Suns, sometimes $CPP names a directory.
4036 if test -n "$CPP" && test -d "$CPP"; then
4039 if test -z "$CPP"; then
4040 if test "${ac_cv_prog_CPP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 # Double quotes because CPP needs to be expanded
4044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4047 for ac_c_preproc_warn_flag in '' yes
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4062 # include <limits.h>
4064 # include <assert.h>
4068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev/null; then
4076 if test -s conftest.err; then
4077 ac_cpp_err=$ac_c_preproc_warn_flag
4078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4085 if test -z "$ac_cpp_err"; then
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 # Broken: fails on valid input.
4094 rm -f conftest.err conftest.$ac_ext
4096 # OK, works on sane cases. Now check whether non-existent headers
4097 # can be detected and how.
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <ac_nonexistent.h>
4106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } >/dev/null; then
4114 if test -s conftest.err; then
4115 ac_cpp_err=$ac_c_preproc_warn_flag
4116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4123 if test -z "$ac_cpp_err"; then
4124 # Broken: success on invalid input.
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 # Passes both tests.
4134 rm -f conftest.err conftest.$ac_ext
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then
4151 echo "$as_me:$LINENO: result: $CPP" >&5
4152 echo "${ECHO_T}$CPP" >&6
4154 for ac_c_preproc_warn_flag in '' yes
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error" is here to catch this case.
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4169 # include <limits.h>
4171 # include <assert.h>
4175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } >/dev/null; then
4183 if test -s conftest.err; then
4184 ac_cpp_err=$ac_c_preproc_warn_flag
4185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4192 if test -z "$ac_cpp_err"; then
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 # Broken: fails on valid input.
4201 rm -f conftest.err conftest.$ac_ext
4203 # OK, works on sane cases. Now check whether non-existent headers
4204 # can be detected and how.
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } >/dev/null; then
4221 if test -s conftest.err; then
4222 ac_cpp_err=$ac_c_preproc_warn_flag
4223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4230 if test -z "$ac_cpp_err"; then
4231 # Broken: success on invalid input.
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 # Passes both tests.
4241 rm -f conftest.err conftest.$ac_ext
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.err conftest.$ac_ext
4246 if $ac_preproc_ok; then
4249 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4250 See \`config.log' for more details." >&5
4251 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4252 See \`config.log' for more details." >&2;}
4253 { (exit 1); exit 1; }; }
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4264 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4265 if test "${ac_cv_header_stdc+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 ac_cv_header_stdc=yes
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 ac_cv_header_stdc=no
4316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4318 if test $ac_cv_header_stdc = yes; then
4319 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4320 cat >conftest.$ac_ext <<_ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4330 $EGREP "memchr" >/dev/null 2>&1; then
4333 ac_cv_header_stdc=no
4339 if test $ac_cv_header_stdc = yes; then
4340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4351 $EGREP "free" >/dev/null 2>&1; then
4354 ac_cv_header_stdc=no
4360 if test $ac_cv_header_stdc = yes; then
4361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4362 if test "$cross_compiling" = yes; then
4365 cat >conftest.$ac_ext <<_ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4372 #if ((' ' & 0x0FF) == 0x020)
4373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4376 # define ISLOWER(c) \
4377 (('a' <= (c) && (c) <= 'i') \
4378 || ('j' <= (c) && (c) <= 'r') \
4379 || ('s' <= (c) && (c) <= 'z'))
4380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4388 for (i = 0; i < 256; i++)
4389 if (XOR (islower (i), ISLOWER (i))
4390 || toupper (i) != TOUPPER (i))
4395 rm -f conftest$ac_exeext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4397 (eval $ac_link) 2>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4408 echo "$as_me: program exited with status $ac_status" >&5
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_cv_header_stdc=no
4415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4419 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4420 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4421 if test $ac_cv_header_stdc = yes; then
4423 cat >>confdefs.h <<\_ACEOF
4424 #define STDC_HEADERS 1
4429 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4439 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4440 inttypes.h stdint.h unistd.h
4442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 echo "$as_me:$LINENO: checking for $ac_header" >&5
4444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 $ac_includes_default
4456 #include <$ac_header>
4458 rm -f conftest.$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460 (eval $ac_compile) 2>conftest.er1
4462 grep -v '^ *+' conftest.er1 >conftest.err
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -z "$ac_c_werror_flag"
4468 || test ! -s conftest.err'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest.$ac_objext'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4480 eval "$as_ac_Header=yes"
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 eval "$as_ac_Header=no"
4487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4492 cat >>confdefs.h <<_ACEOF
4493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4502 for ac_header in dlfcn.h
4504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4506 echo "$as_me:$LINENO: checking for $ac_header" >&5
4507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4514 # Is the header compilable?
4515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 $ac_includes_default
4524 #include <$ac_header>
4526 rm -f conftest.$ac_objext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>conftest.er1
4530 grep -v '^ *+' conftest.er1 >conftest.err
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -z "$ac_c_werror_flag"
4536 || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 ac_header_compiler=yes
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4553 ac_header_compiler=no
4555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4557 echo "${ECHO_T}$ac_header_compiler" >&6
4559 # Is the header present?
4560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4562 cat >conftest.$ac_ext <<_ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 #include <$ac_header>
4570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4573 grep -v '^ *+' conftest.er1 >conftest.err
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } >/dev/null; then
4578 if test -s conftest.err; then
4579 ac_cpp_err=$ac_c_preproc_warn_flag
4580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4587 if test -z "$ac_cpp_err"; then
4588 ac_header_preproc=yes
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 ac_header_preproc=no
4595 rm -f conftest.err conftest.$ac_ext
4596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4597 echo "${ECHO_T}$ac_header_preproc" >&6
4599 # So? What about this header?
4600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4606 ac_header_preproc=yes
4609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4623 ## ------------------------------------------ ##
4624 ## Report this to the AC_PACKAGE_NAME lists. ##
4625 ## ------------------------------------------ ##
4628 sed "s/^/$as_me: WARNING: /" >&2
4631 echo "$as_me:$LINENO: checking for $ac_header" >&5
4632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 eval "$as_ac_Header=\$ac_header_preproc"
4638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4643 cat >>confdefs.h <<_ACEOF
4644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4652 ac_cpp='$CXXCPP $CPPFLAGS'
4653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4656 if test -n "$ac_tool_prefix"; then
4657 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4661 echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4663 if test "${ac_cv_prog_CXX+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if test -n "$CXX"; then
4667 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 if test -n "$CXX"; then
4687 echo "$as_me:$LINENO: result: $CXX" >&5
4688 echo "${ECHO_T}$CXX" >&6
4690 echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4694 test -n "$CXX" && break
4697 if test -z "$CXX"; then
4699 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4701 # Extract the first word of "$ac_prog", so it can be a program name with args.
4702 set dummy $ac_prog; ac_word=$2
4703 echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 if test -n "$ac_ct_CXX"; then
4709 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_ac_ct_CXX="$ac_prog"
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4728 if test -n "$ac_ct_CXX"; then
4729 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4730 echo "${ECHO_T}$ac_ct_CXX" >&6
4732 echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4736 test -n "$ac_ct_CXX" && break
4738 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4744 # Provide some information about the compiler.
4745 echo "$as_me:$LINENO:" \
4746 "checking for C++ compiler version" >&5
4747 ac_compiler=`set X $ac_compile; echo $2`
4748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4749 (eval $ac_compiler --version </dev/null >&5) 2>&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }
4753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4754 (eval $ac_compiler -v </dev/null >&5) 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }
4758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4759 (eval $ac_compiler -V </dev/null >&5) 2>&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }
4764 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4765 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4766 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4791 grep -v '^ *+' conftest.er1 >conftest.err
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_cxx_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4820 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4821 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4822 GXX=`test $ac_compiler_gnu = yes && echo yes`
4823 ac_test_CXXFLAGS=${CXXFLAGS+set}
4824 ac_save_CXXFLAGS=$CXXFLAGS
4826 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4827 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4828 if test "${ac_cv_prog_cxx_g+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4846 rm -f conftest.$ac_objext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848 (eval $ac_compile) 2>conftest.er1
4850 grep -v '^ *+' conftest.er1 >conftest.err
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } &&
4855 { ac_try='test -z "$ac_cxx_werror_flag"
4856 || test ! -s conftest.err'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; } &&
4862 { ac_try='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 ac_cv_prog_cxx_g=yes
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4878 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4879 if test "$ac_test_CXXFLAGS" = set; then
4880 CXXFLAGS=$ac_save_CXXFLAGS
4881 elif test $ac_cv_prog_cxx_g = yes; then
4882 if test "$GXX" = yes; then
4888 if test "$GXX" = yes; then
4894 for ac_declaration in \
4896 'extern "C" void std::exit (int) throw (); using std::exit;' \
4897 'extern "C" void std::exit (int); using std::exit;' \
4898 'extern "C" void exit (int) throw ();' \
4899 'extern "C" void exit (int);' \
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_cxx_werror_flag"
4928 || test ! -s conftest.err'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4963 rm -f conftest.$ac_objext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965 (eval $ac_compile) 2>conftest.er1
4967 grep -v '^ *+' conftest.er1 >conftest.err
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } &&
4972 { ac_try='test -z "$ac_cxx_werror_flag"
4973 || test ! -s conftest.err'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; } &&
4979 { ac_try='test -s conftest.$ac_objext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4994 if test -n "$ac_declaration"; then
4995 echo '#ifdef __cplusplus' >>confdefs.h
4996 echo $ac_declaration >>confdefs.h
4997 echo '#endif' >>confdefs.h
5001 ac_cpp='$CXXCPP $CPPFLAGS'
5002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5006 depcc="$CXX" am_compiler_list=
5008 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5009 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5010 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5014 # We make a subdir and do the tests there. Otherwise we can end up
5015 # making bogus files that we don't know about and never remove. For
5016 # instance it was reported that on HP-UX the gcc test will end up
5017 # making a dummy file named `D' -- because `-MD' means `put the output
5020 # Copy depcomp to subdir because otherwise we won't find it if we're
5021 # using a relative directory.
5022 cp "$am_depcomp" conftest.dir
5024 # We will build objects and dependencies in a subdirectory because
5025 # it helps to detect inapplicable dependency modes. For instance
5026 # both Tru64's cc and ICC support -MD to output dependencies as a
5027 # side effect of compilation, but ICC will put the dependencies in
5028 # the current directory while Tru64 will put them in the object
5032 am_cv_CXX_dependencies_compiler_type=none
5033 if test "$am_compiler_list" = ""; then
5034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5036 for depmode in $am_compiler_list; do
5037 # Setup a source with many dependencies, because some compilers
5038 # like to wrap large dependency lists on column 80 (with \), and
5039 # we should not choose a depcomp mode which is confused by this.
5041 # We need to recreate these files for each test, as the compiler may
5042 # overwrite some of them when testing with obscure command lines.
5043 # This happens at least with the AIX C compiler.
5045 for i in 1 2 3 4 5 6; do
5046 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5047 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5048 # Solaris 8's {/usr,}/bin/sh.
5049 touch sub/conftst$i.h
5051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5055 # after this tag, mechanisms are not by side-effect, so they'll
5056 # only be used when explicitly requested
5057 if test "x$enable_dependency_tracking" = xyes; then
5065 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5066 # mode. It turns out that the SunPro C++ compiler does not properly
5067 # handle `-M -o', and we need to detect this.
5068 if depmode=$depmode \
5069 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5070 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5071 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5072 >/dev/null 2>conftest.err &&
5073 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5074 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5075 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5076 # icc doesn't choke on unknown options, it will just issue warnings
5077 # or remarks (even with -Werror). So we grep stderr for any message
5078 # that says an option was ignored or not supported.
5079 # When given -MP, icc 7.0 and 7.1 complain thusly:
5080 # icc: Command line warning: ignoring option '-M'; no argument required
5081 # The diagnosis changed in icc 8.0:
5082 # icc: Command line remark: option '-MP' not supported
5083 if (grep 'ignoring option' conftest.err ||
5084 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5085 am_cv_CXX_dependencies_compiler_type=$depmode
5094 am_cv_CXX_dependencies_compiler_type=none
5098 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5099 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5100 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5105 test "x$enable_dependency_tracking" != xno \
5106 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5107 am__fastdepCXX_TRUE=
5108 am__fastdepCXX_FALSE='#'
5110 am__fastdepCXX_TRUE='#'
5111 am__fastdepCXX_FALSE=
5117 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5118 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5119 (test "X$CXX" != "Xg++"))) ; then
5121 ac_cpp='$CXXCPP $CPPFLAGS'
5122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5125 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5126 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5127 if test -z "$CXXCPP"; then
5128 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 # Double quotes because CXXCPP needs to be expanded
5132 for CXXCPP in "$CXX -E" "/lib/cpp"
5135 for ac_cxx_preproc_warn_flag in '' yes
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat >conftest.$ac_ext <<_ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5150 # include <limits.h>
5152 # include <assert.h>
5156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5159 grep -v '^ *+' conftest.er1 >conftest.err
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } >/dev/null; then
5164 if test -s conftest.err; then
5165 ac_cpp_err=$ac_cxx_preproc_warn_flag
5166 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5173 if test -z "$ac_cpp_err"; then
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Broken: fails on valid input.
5182 rm -f conftest.err conftest.$ac_ext
5184 # OK, works on sane cases. Now check whether non-existent headers
5185 # can be detected and how.
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } >/dev/null; then
5202 if test -s conftest.err; then
5203 ac_cpp_err=$ac_cxx_preproc_warn_flag
5204 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5211 if test -z "$ac_cpp_err"; then
5212 # Broken: success on invalid input.
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 # Passes both tests.
5222 rm -f conftest.err conftest.$ac_ext
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.err conftest.$ac_ext
5227 if $ac_preproc_ok; then
5232 ac_cv_prog_CXXCPP=$CXXCPP
5235 CXXCPP=$ac_cv_prog_CXXCPP
5237 ac_cv_prog_CXXCPP=$CXXCPP
5239 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5240 echo "${ECHO_T}$CXXCPP" >&6
5242 for ac_cxx_preproc_warn_flag in '' yes
5244 # Use a header file that comes with gcc, so configuring glibc
5245 # with a fresh cross-compiler works.
5246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5247 # <limits.h> exists even on freestanding compilers.
5248 # On the NeXT, cc -E runs the code through the compiler's parser,
5249 # not just through cpp. "Syntax error" is here to catch this case.
5250 cat >conftest.$ac_ext <<_ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5257 # include <limits.h>
5259 # include <assert.h>
5263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266 grep -v '^ *+' conftest.er1 >conftest.err
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } >/dev/null; then
5271 if test -s conftest.err; then
5272 ac_cpp_err=$ac_cxx_preproc_warn_flag
5273 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5280 if test -z "$ac_cpp_err"; then
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 # Broken: fails on valid input.
5289 rm -f conftest.err conftest.$ac_ext
5291 # OK, works on sane cases. Now check whether non-existent headers
5292 # can be detected and how.
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <ac_nonexistent.h>
5301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5304 grep -v '^ *+' conftest.er1 >conftest.err
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } >/dev/null; then
5309 if test -s conftest.err; then
5310 ac_cpp_err=$ac_cxx_preproc_warn_flag
5311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5318 if test -z "$ac_cpp_err"; then
5319 # Broken: success on invalid input.
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 # Passes both tests.
5329 rm -f conftest.err conftest.$ac_ext
5332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5333 rm -f conftest.err conftest.$ac_ext
5334 if $ac_preproc_ok; then
5337 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5338 See \`config.log' for more details." >&5
5339 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5340 See \`config.log' for more details." >&2;}
5341 { (exit 1); exit 1; }; }
5345 ac_cpp='$CXXCPP $CPPFLAGS'
5346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5354 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5355 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5357 if test -n "$ac_tool_prefix"; then
5358 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5362 echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5364 if test "${ac_cv_prog_F77+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 if test -n "$F77"; then
5368 ac_cv_prog_F77="$F77" # Let the user override the test.
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 if test -n "$F77"; then
5388 echo "$as_me:$LINENO: result: $F77" >&5
5389 echo "${ECHO_T}$F77" >&6
5391 echo "$as_me:$LINENO: result: no" >&5
5392 echo "${ECHO_T}no" >&6
5395 test -n "$F77" && break
5398 if test -z "$F77"; then
5400 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5402 # Extract the first word of "$ac_prog", so it can be a program name with args.
5403 set dummy $ac_prog; ac_word=$2
5404 echo "$as_me:$LINENO: checking for $ac_word" >&5
5405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5406 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 if test -n "$ac_ct_F77"; then
5410 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_ac_ct_F77="$ac_prog"
5420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5429 if test -n "$ac_ct_F77"; then
5430 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5431 echo "${ECHO_T}$ac_ct_F77" >&6
5433 echo "$as_me:$LINENO: result: no" >&5
5434 echo "${ECHO_T}no" >&6
5437 test -n "$ac_ct_F77" && break
5444 # Provide some information about the compiler.
5445 echo "$as_me:5445:" \
5446 "checking for Fortran 77 compiler version" >&5
5447 ac_compiler=`set X $ac_compile; echo $2`
5448 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5449 (eval $ac_compiler --version </dev/null >&5) 2>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }
5453 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5454 (eval $ac_compiler -v </dev/null >&5) 2>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }
5458 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5459 (eval $ac_compiler -V </dev/null >&5) 2>&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }
5465 # If we don't use `.F' as extension, the preprocessor is not run on the
5466 # input file. (Note that this only needs to work for GNU compilers.)
5469 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5470 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5471 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484 (eval $ac_compile) 2>conftest.er1
5486 grep -v '^ *+' conftest.er1 >conftest.err
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -z "$ac_f77_werror_flag"
5492 || test ! -s conftest.err'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; } &&
5498 { ac_try='test -s conftest.$ac_objext'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5506 echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5515 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5516 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5518 ac_test_FFLAGS=${FFLAGS+set}
5519 ac_save_FFLAGS=$FFLAGS
5521 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5522 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5523 if test "${ac_cv_prog_f77_g+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 cat >conftest.$ac_ext <<_ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534 (eval $ac_compile) 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_f77_werror_flag"
5542 || test ! -s conftest.err'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; } &&
5548 { ac_try='test -s conftest.$ac_objext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_prog_f77_g=yes
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5564 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5565 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5566 if test "$ac_test_FFLAGS" = set; then
5567 FFLAGS=$ac_save_FFLAGS
5568 elif test $ac_cv_prog_f77_g = yes; then
5569 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5575 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5582 G77=`test $ac_compiler_gnu = yes && echo yes`
5584 ac_cpp='$CPP $CPPFLAGS'
5585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5591 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5593 # find the maximum length of command line arguments
5594 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5595 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5596 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 # On DJGPP, this test can blow up pretty badly due to problems in libc
5605 # (any single argument exceeding 2000 bytes causes a buffer overrun
5606 # during glob expansion). Even if it were fixed, the result of this
5607 # check would be larger than it should be.
5608 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5612 # Under GNU Hurd, this test is not required because there is
5613 # no limit to the length of command line arguments.
5614 # Libtool will interpret -1 as no limit whatsoever
5615 lt_cv_sys_max_cmd_len=-1;
5619 # On Win9x/ME, this test blows up -- it succeeds, but takes
5620 # about 5 minutes as the teststring grows exponentially.
5621 # Worse, since 9x/ME are not pre-emptively multitasking,
5622 # you end up with a "frozen" computer, even though with patience
5623 # the test eventually succeeds (with a max line length of 256k).
5624 # Instead, let's just punt: use the minimum linelength reported by
5625 # all of the supported platforms: 8192 (on NT/2K/XP).
5626 lt_cv_sys_max_cmd_len=8192;
5630 # On AmigaOS with pdksh, this test takes hours, literally.
5631 # So we just punt and use a minimum line length of 8192.
5632 lt_cv_sys_max_cmd_len=8192;
5635 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5636 # This has been around since 386BSD, at least. Likely further.
5637 if test -x /sbin/sysctl; then
5638 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5639 elif test -x /usr/sbin/sysctl; then
5640 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5642 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5644 # And add a safety zone
5645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5649 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5650 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5651 # nice to cause kernel panics so lets avoid the loop below.
5652 # First set a reasonable default.
5653 lt_cv_sys_max_cmd_len=16384
5655 if test -x /sbin/sysconfig; then
5656 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5657 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5662 # If test is not a shell built-in, we'll probably end up computing a
5663 # maximum length that is only half of the actual maximum length, but
5665 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5666 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5667 = "XX$teststring") >/dev/null 2>&1 &&
5668 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5669 lt_cv_sys_max_cmd_len=$new_result &&
5670 test $i != 17 # 1/2 MB should be enough
5673 teststring=$teststring$teststring
5676 # Add a significant safety factor because C++ compilers can tack on massive
5677 # amounts of additional arguments before passing them to the linker.
5678 # It appears as though 1/2 is a usable value.
5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5685 if test -n $lt_cv_sys_max_cmd_len ; then
5686 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5687 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5689 echo "$as_me:$LINENO: result: none" >&5
5690 echo "${ECHO_T}none" >&6
5696 # Check for command to grab the raw symbol name followed by C symbol from nm.
5697 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5698 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5699 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 # These are sane defaults that work on at least a few old systems.
5704 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5706 # Character class describing NM global symbol codes.
5707 symcode='[BCDEGRST]'
5709 # Regexp to match symbols that can be accessed directly from C.
5710 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5712 # Transform an extracted symbol line into a proper C declaration
5713 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5715 # Transform an extracted symbol line into symbol name and symbol address
5716 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'"
5718 # Define system-specific variables.
5723 cygwin* | mingw* | pw32*)
5724 symcode='[ABCDGISTW]'
5726 hpux*) # Its linker distinguishes data from code symbols
5727 if test "$host_cpu" = ia64; then
5728 symcode='[ABCDEGRST]'
5730 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5731 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'"
5734 if test "$host_cpu" = ia64; then
5735 symcode='[ABCDGIRSTW]'
5736 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5737 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'"
5741 symcode='[BCDEGRST]'
5744 symcode='[BCDEGQRST]'
5754 # Handle CRLF in mingw tool chain
5758 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5762 # If we're using GNU nm, then use its standard symbol codes.
5763 case `$NM -V 2>&1` in
5764 *GNU* | *'with BFD'*)
5765 symcode='[ABCDGIRSTW]' ;;
5768 # Try without a prefix undercore, then with it.
5769 for ac_symprfx in "" "_"; do
5771 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5772 symxfrm="\\1 $ac_symprfx\\2 \\2"
5774 # Write the raw and C identifiers.
5775 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5777 # Check to see that the pipe works correctly.
5781 cat > conftest.$ac_ext <<EOF
5786 void nm_test_func(){}
5790 int main(){nm_test_var='a';nm_test_func();return(0);}
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; then
5798 # Now try to grab the symbols.
5800 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5801 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && test -s "$nlist"; then
5805 # Try sorting and uniquifying the output.
5806 if sort "$nlist" | uniq > "$nlist"T; then
5807 mv -f "$nlist"T "$nlist"
5812 # Make sure that we snagged all the symbols we need.
5813 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5814 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5815 cat <<EOF > conftest.$ac_ext
5821 # Now generate the symbol file.
5822 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5824 cat <<EOF >> conftest.$ac_ext
5825 #if defined (__STDC__) && __STDC__
5826 # define lt_ptr_t void *
5828 # define lt_ptr_t char *
5832 /* The mapping between symbol names and symbols. */
5837 lt_preloaded_symbols[] =
5840 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5841 cat <<\EOF >> conftest.$ac_ext
5849 # Now try linking the two files.
5850 mv conftest.$ac_objext conftstm.$ac_objext
5851 lt_save_LIBS="$LIBS"
5852 lt_save_CFLAGS="$CFLAGS"
5853 LIBS="conftstm.$ac_objext"
5854 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856 (eval $ac_link) 2>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5862 LIBS="$lt_save_LIBS"
5863 CFLAGS="$lt_save_CFLAGS"
5865 echo "cannot find nm_test_func in $nlist" >&5
5868 echo "cannot find nm_test_var in $nlist" >&5
5871 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5874 echo "$progname: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5877 rm -f conftest* conftst*
5879 # Do not use the global_symbol_pipe unless it works.
5880 if test "$pipe_works" = yes; then
5883 lt_cv_sys_global_symbol_pipe=
5889 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5890 lt_cv_sys_global_symbol_to_cdecl=
5892 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5893 echo "$as_me:$LINENO: result: failed" >&5
5894 echo "${ECHO_T}failed" >&6
5896 echo "$as_me:$LINENO: result: ok" >&5
5897 echo "${ECHO_T}ok" >&6
5900 echo "$as_me:$LINENO: checking for objdir" >&5
5901 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5902 if test "${lt_cv_objdir+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 rm -f .libs 2>/dev/null
5906 mkdir .libs 2>/dev/null
5907 if test -d .libs; then
5910 # MS-DOS does not allow filenames that begin with a dot.
5913 rmdir .libs 2>/dev/null
5915 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5916 echo "${ECHO_T}$lt_cv_objdir" >&6
5917 objdir=$lt_cv_objdir
5925 # AIX sometimes has problems with the GCC collect2 program. For some
5926 # reason, if we set the COLLECT_NAMES environment variable, the problems
5927 # vanish in a puff of smoke.
5928 if test "X${COLLECT_NAMES+set}" != Xset; then
5930 export COLLECT_NAMES
5935 # Sed substitution that helps us do robust quoting. It backslashifies
5936 # metacharacters that are still active within double-quoted strings.
5937 Xsed='sed -e 1s/^X//'
5938 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5940 # Same as above, but do not quote variable references.
5941 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5943 # Sed substitution to delay expansion of an escaped shell variable in a
5944 # double_quote_subst'ed string.
5945 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5947 # Sed substitution to avoid accidental globbing in evaled expressions
5948 no_glob_subst='s/\*/\\\*/g'
5954 default_ofile=libtool
5955 can_build_shared=yes
5957 # All known linkers require a `.a' archive for static linking (except MSVC,
5958 # which needs '.lib').
5960 ltmain="$ac_aux_dir/ltmain.sh"
5961 ofile="$default_ofile"
5962 with_gnu_ld="$lt_cv_prog_gnu_ld"
5964 if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5966 set dummy ${ac_tool_prefix}ar; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_AR+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 if test -n "$AR"; then
5973 ac_cv_prog_AR="$AR" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_AR="${ac_tool_prefix}ar"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 if test -n "$AR"; then
5993 echo "$as_me:$LINENO: result: $AR" >&5
5994 echo "${ECHO_T}$AR" >&6
5996 echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6
6001 if test -z "$ac_cv_prog_AR"; then
6003 # Extract the first word of "ar", so it can be a program name with args.
6004 set dummy ar; ac_word=$2
6005 echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6007 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 if test -n "$ac_ct_AR"; then
6011 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020 ac_cv_prog_ac_ct_AR="ar"
6021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6030 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6031 if test -n "$ac_ct_AR"; then
6032 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6033 echo "${ECHO_T}$ac_ct_AR" >&6
6035 echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6047 echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049 if test "${ac_cv_prog_RANLIB+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test -n "$RANLIB"; then
6053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 RANLIB=$ac_cv_prog_RANLIB
6072 if test -n "$RANLIB"; then
6073 echo "$as_me:$LINENO: result: $RANLIB" >&5
6074 echo "${ECHO_T}$RANLIB" >&6
6076 echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6
6081 if test -z "$ac_cv_prog_RANLIB"; then
6082 ac_ct_RANLIB=$RANLIB
6083 # Extract the first word of "ranlib", so it can be a program name with args.
6084 set dummy ranlib; ac_word=$2
6085 echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6087 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 if test -n "$ac_ct_RANLIB"; then
6091 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_ac_ct_RANLIB="ranlib"
6101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6110 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6111 if test -n "$ac_ct_RANLIB"; then
6112 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6113 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6115 echo "$as_me:$LINENO: result: no" >&5
6116 echo "${ECHO_T}no" >&6
6119 RANLIB=$ac_ct_RANLIB
6121 RANLIB="$ac_cv_prog_RANLIB"
6124 if test -n "$ac_tool_prefix"; then
6125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6126 set dummy ${ac_tool_prefix}strip; ac_word=$2
6127 echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6129 if test "${ac_cv_prog_STRIP+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 if test -n "$STRIP"; then
6133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 STRIP=$ac_cv_prog_STRIP
6152 if test -n "$STRIP"; then
6153 echo "$as_me:$LINENO: result: $STRIP" >&5
6154 echo "${ECHO_T}$STRIP" >&6
6156 echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6
6161 if test -z "$ac_cv_prog_STRIP"; then
6163 # Extract the first word of "strip", so it can be a program name with args.
6164 set dummy strip; ac_word=$2
6165 echo "$as_me:$LINENO: checking for $ac_word" >&5
6166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6167 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 if test -n "$ac_ct_STRIP"; then
6171 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_ac_ct_STRIP="strip"
6181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6191 if test -n "$ac_ct_STRIP"; then
6192 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6193 echo "${ECHO_T}$ac_ct_STRIP" >&6
6195 echo "$as_me:$LINENO: result: no" >&5
6196 echo "${ECHO_T}no" >&6
6201 STRIP="$ac_cv_prog_STRIP"
6206 old_CFLAGS="$CFLAGS"
6208 # Set sane defaults for various variables
6209 test -z "$AR" && AR=ar
6210 test -z "$AR_FLAGS" && AR_FLAGS=cru
6211 test -z "$AS" && AS=as
6212 test -z "$CC" && CC=cc
6213 test -z "$LTCC" && LTCC=$CC
6214 test -z "$DLLTOOL" && DLLTOOL=dlltool
6215 test -z "$LD" && LD=ld
6216 test -z "$LN_S" && LN_S="ln -s"
6217 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6218 test -z "$NM" && NM=nm
6219 test -z "$SED" && SED=sed
6220 test -z "$OBJDUMP" && OBJDUMP=objdump
6221 test -z "$RANLIB" && RANLIB=:
6222 test -z "$STRIP" && STRIP=:
6223 test -z "$ac_objext" && ac_objext=o
6225 # Determine commands to create old-style static archives.
6226 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6227 old_postinstall_cmds='chmod 644 $oldlib'
6228 old_postuninstall_cmds=
6230 if test -n "$RANLIB"; then
6233 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6236 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6239 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6242 for cc_temp in $compiler""; do
6244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6250 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6253 # Only perform the check for file, if the check method requires it
6254 case $deplibs_check_method in
6256 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6257 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6258 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6259 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6267 lt_save_MAGIC_CMD="$MAGIC_CMD"
6268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6269 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6270 for ac_dir in $ac_dummy; do
6272 test -z "$ac_dir" && ac_dir=.
6273 if test -f $ac_dir/${ac_tool_prefix}file; then
6274 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6275 if test -n "$file_magic_test_file"; then
6276 case $deplibs_check_method in
6278 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6280 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6281 $EGREP "$file_magic_regex" > /dev/null; then
6286 *** Warning: the command libtool uses to detect shared libraries,
6287 *** $file_magic_cmd, produces output that libtool cannot recognize.
6288 *** The result is that libtool may fail to recognize shared libraries
6289 *** as such. This will affect the creation of libtool libraries that
6290 *** depend on shared libraries, but programs linked with such libtool
6291 *** libraries will work regardless of this problem. Nevertheless, you
6292 *** may want to report the problem to your system manager and/or to
6293 *** bug-libtool@gnu.org
6303 MAGIC_CMD="$lt_save_MAGIC_CMD"
6308 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6309 if test -n "$MAGIC_CMD"; then
6310 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6311 echo "${ECHO_T}$MAGIC_CMD" >&6
6313 echo "$as_me:$LINENO: result: no" >&5
6314 echo "${ECHO_T}no" >&6
6317 if test -z "$lt_cv_path_MAGIC_CMD"; then
6318 if test -n "$ac_tool_prefix"; then
6319 echo "$as_me:$LINENO: checking for file" >&5
6320 echo $ECHO_N "checking for file... $ECHO_C" >&6
6321 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6329 lt_save_MAGIC_CMD="$MAGIC_CMD"
6330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6331 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6332 for ac_dir in $ac_dummy; do
6334 test -z "$ac_dir" && ac_dir=.
6335 if test -f $ac_dir/file; then
6336 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6337 if test -n "$file_magic_test_file"; then
6338 case $deplibs_check_method in
6340 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6342 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6343 $EGREP "$file_magic_regex" > /dev/null; then
6348 *** Warning: the command libtool uses to detect shared libraries,
6349 *** $file_magic_cmd, produces output that libtool cannot recognize.
6350 *** The result is that libtool may fail to recognize shared libraries
6351 *** as such. This will affect the creation of libtool libraries that
6352 *** depend on shared libraries, but programs linked with such libtool
6353 *** libraries will work regardless of this problem. Nevertheless, you
6354 *** may want to report the problem to your system manager and/or to
6355 *** bug-libtool@gnu.org
6365 MAGIC_CMD="$lt_save_MAGIC_CMD"
6370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6371 if test -n "$MAGIC_CMD"; then
6372 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6373 echo "${ECHO_T}$MAGIC_CMD" >&6
6375 echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6
6391 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6392 if test "${enable_libtool_lock+set}" = set; then
6393 enableval="$enable_libtool_lock"
6396 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6399 # Check whether --with-pic or --without-pic was given.
6400 if test "${with_pic+set}" = set; then
6406 test -z "$pic_mode" && pic_mode=default
6408 # Use C for the default configuration in the libtool script
6412 ac_cpp='$CPP $CPPFLAGS'
6413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6418 # Source file extension for C test sources.
6421 # Object file extension for compiled C test sources.
6425 # Code to be used in simple compile tests
6426 lt_simple_compile_test_code="int some_variable = 0;\n"
6428 # Code to be used in simple link tests
6429 lt_simple_link_test_code='int main(){return(0);}\n'
6432 # If no C compiler was specified, use CC.
6435 # Allow CC to be a program name with arguments.
6439 # save warnings/boilerplate of simple test code
6440 ac_outfile=conftest.$ac_objext
6441 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6442 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6443 _lt_compiler_boilerplate=`cat conftest.err`
6446 ac_outfile=conftest.$ac_objext
6447 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6448 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6449 _lt_linker_boilerplate=`cat conftest.err`
6454 # Check for any special shared library compilation flags.
6457 if test "$GCC" = no; then
6460 lt_prog_cc_shlib='-belf'
6464 if test -n "$lt_prog_cc_shlib"; then
6465 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6466 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6467 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6469 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6470 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6471 lt_cv_prog_cc_can_build_shared=no
6477 # Check to make sure the static flag actually works.
6479 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6480 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6481 if test "${lt_prog_compiler_static_works+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 lt_prog_compiler_static_works=no
6485 save_LDFLAGS="$LDFLAGS"
6486 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6487 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6489 # The linker can only warn and ignore the option if not recognized
6490 # So say no if there are warnings
6491 if test -s conftest.err; then
6492 # Append any errors to the config.log.
6493 cat conftest.err 1>&5
6494 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6495 $SED '/^$/d' conftest.err >conftest.er2
6496 if diff conftest.exp conftest.er2 >/dev/null; then
6497 lt_prog_compiler_static_works=yes
6500 lt_prog_compiler_static_works=yes
6504 LDFLAGS="$save_LDFLAGS"
6507 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6508 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6510 if test x"$lt_prog_compiler_static_works" = xyes; then
6513 lt_prog_compiler_static=
6519 lt_prog_compiler_no_builtin_flag=
6521 if test "$GCC" = yes; then
6522 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6525 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6526 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6527 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 lt_cv_prog_compiler_rtti_exceptions=no
6531 ac_outfile=conftest.$ac_objext
6532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6533 lt_compiler_flag="-fno-rtti -fno-exceptions"
6534 # Insert the option either (1) after the last *FLAGS variable, or
6535 # (2) before a word containing "conftest.", or (3) at the end.
6536 # Note that $ac_compile itself does not contain backslashes and begins
6537 # with a dollar sign (not a hyphen), so the echo should work correctly.
6538 # The option is referenced via a variable to avoid confusing sed.
6539 lt_compile=`echo "$ac_compile" | $SED \
6540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542 -e 's:$: $lt_compiler_flag:'`
6543 (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
6544 (eval "$lt_compile" 2>conftest.err)
6546 cat conftest.err >&5
6547 echo "$as_me:6547: \$? = $ac_status" >&5
6548 if (exit $ac_status) && test -s "$ac_outfile"; then
6549 # The compiler can only warn and ignore the option if not recognized
6550 # So say no if there are warnings other than the usual output.
6551 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6552 $SED '/^$/d' conftest.err >conftest.er2
6553 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6554 lt_cv_prog_compiler_rtti_exceptions=yes
6560 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6561 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6563 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6564 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6571 lt_prog_compiler_wl=
6572 lt_prog_compiler_pic=
6573 lt_prog_compiler_static=
6575 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6576 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6578 if test "$GCC" = yes; then
6579 lt_prog_compiler_wl='-Wl,'
6580 lt_prog_compiler_static='-static'
6584 # All AIX code is PIC.
6585 if test "$host_cpu" = ia64; then
6586 # AIX 5 now supports IA64 processor
6587 lt_prog_compiler_static='-Bstatic'
6592 # FIXME: we need at least 68020 code to build shared libraries, but
6593 # adding the `-m68020' flag to GCC prevents building anything better,
6595 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6598 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6599 # PIC is the default for these OSes.
6602 mingw* | pw32* | os2*)
6603 # This hack is so that the source file can tell whether it is being
6604 # built for inclusion in a dll (and should export symbols for example).
6605 lt_prog_compiler_pic='-DDLL_EXPORT'
6608 darwin* | rhapsody*)
6609 # PIC is the default on this platform
6610 # Common symbols not allowed in MH_DYLIB files
6611 lt_prog_compiler_pic='-fno-common'
6615 # Just because we use GCC doesn't mean we suddenly get shared libraries
6616 # on systems that don't support them.
6617 lt_prog_compiler_can_build_shared=no
6622 if test -d /usr/nec; then
6623 lt_prog_compiler_pic=-Kconform_pic
6628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6635 lt_prog_compiler_pic='-fPIC'
6641 lt_prog_compiler_pic='-fPIC'
6645 # PORTME Check for flag to pass linker flags through the system compiler.
6648 lt_prog_compiler_wl='-Wl,'
6649 if test "$host_cpu" = ia64; then
6650 # AIX 5 now supports IA64 processor
6651 lt_prog_compiler_static='-Bstatic'
6653 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6657 # PIC is the default on this platform
6658 # Common symbols not allowed in MH_DYLIB files
6659 case $cc_basename in
6661 lt_prog_compiler_pic='-qnocommon'
6662 lt_prog_compiler_wl='-Wl,'
6667 mingw* | pw32* | os2*)
6668 # This hack is so that the source file can tell whether it is being
6669 # built for inclusion in a dll (and should export symbols for example).
6670 lt_prog_compiler_pic='-DDLL_EXPORT'
6673 hpux9* | hpux10* | hpux11*)
6674 lt_prog_compiler_wl='-Wl,'
6675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6682 lt_prog_compiler_pic='+Z'
6685 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6686 lt_prog_compiler_static='${wl}-a ${wl}archive'
6689 irix5* | irix6* | nonstopux*)
6690 lt_prog_compiler_wl='-Wl,'
6691 # PIC (with -KPIC) is the default.
6692 lt_prog_compiler_static='-non_shared'
6696 lt_prog_compiler_pic='-KPIC'
6697 lt_prog_compiler_static='-Bstatic'
6701 case $cc_basename in
6703 lt_prog_compiler_wl='-Wl,'
6704 lt_prog_compiler_pic='-KPIC'
6705 lt_prog_compiler_static='-static'
6707 pgcc* | pgf77* | pgf90* | pgf95*)
6708 # Portland Group compilers (*not* the Pentium gcc compiler,
6709 # which looks to be a dead project)
6710 lt_prog_compiler_wl='-Wl,'
6711 lt_prog_compiler_pic='-fpic'
6712 lt_prog_compiler_static='-Bstatic'
6715 lt_prog_compiler_wl='-Wl,'
6716 # All Alpha code is PIC.
6717 lt_prog_compiler_static='-non_shared'
6722 osf3* | osf4* | osf5*)
6723 lt_prog_compiler_wl='-Wl,'
6724 # All OSF/1 code is PIC.
6725 lt_prog_compiler_static='-non_shared'
6729 lt_prog_compiler_pic='-Kpic'
6730 lt_prog_compiler_static='-dn'
6734 lt_prog_compiler_pic='-KPIC'
6735 lt_prog_compiler_static='-Bstatic'
6736 case $cc_basename in
6738 lt_prog_compiler_wl='-Qoption ld ';;
6740 lt_prog_compiler_wl='-Wl,';;
6745 lt_prog_compiler_wl='-Qoption ld '
6746 lt_prog_compiler_pic='-PIC'
6747 lt_prog_compiler_static='-Bstatic'
6750 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6751 lt_prog_compiler_wl='-Wl,'
6752 lt_prog_compiler_pic='-KPIC'
6753 lt_prog_compiler_static='-Bstatic'
6757 if test -d /usr/nec ;then
6758 lt_prog_compiler_pic='-Kconform_pic'
6759 lt_prog_compiler_static='-Bstatic'
6764 lt_prog_compiler_wl='-Wl,'
6765 lt_prog_compiler_can_build_shared=no
6769 lt_prog_compiler_pic='-pic'
6770 lt_prog_compiler_static='-Bstatic'
6774 lt_prog_compiler_can_build_shared=no
6779 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6780 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6783 # Check to make sure the PIC flag actually works.
6785 if test -n "$lt_prog_compiler_pic"; then
6787 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6788 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6789 if test "${lt_prog_compiler_pic_works+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 lt_prog_compiler_pic_works=no
6793 ac_outfile=conftest.$ac_objext
6794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6795 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6796 # Insert the option either (1) after the last *FLAGS variable, or
6797 # (2) before a word containing "conftest.", or (3) at the end.
6798 # Note that $ac_compile itself does not contain backslashes and begins
6799 # with a dollar sign (not a hyphen), so the echo should work correctly.
6800 # The option is referenced via a variable to avoid confusing sed.
6801 lt_compile=`echo "$ac_compile" | $SED \
6802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6804 -e 's:$: $lt_compiler_flag:'`
6805 (eval echo "\"\$as_me:6805: $lt_compile\"" >&5)
6806 (eval "$lt_compile" 2>conftest.err)
6808 cat conftest.err >&5
6809 echo "$as_me:6809: \$? = $ac_status" >&5
6810 if (exit $ac_status) && test -s "$ac_outfile"; then
6811 # The compiler can only warn and ignore the option if not recognized
6812 # So say no if there are warnings other than the usual output.
6813 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6814 $SED '/^$/d' conftest.err >conftest.er2
6815 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6816 lt_prog_compiler_pic_works=yes
6822 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6823 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6825 if test x"$lt_prog_compiler_pic_works" = xyes; then
6826 case $lt_prog_compiler_pic in
6828 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6831 lt_prog_compiler_pic=
6832 lt_prog_compiler_can_build_shared=no
6837 # For platforms which do not support PIC, -DPIC is meaningless:
6839 lt_prog_compiler_pic=
6842 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6846 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6847 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6848 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 lt_cv_prog_compiler_c_o=no
6852 $rm -r conftest 2>/dev/null
6856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6858 lt_compiler_flag="-o out/conftest2.$ac_objext"
6859 # Insert the option either (1) after the last *FLAGS variable, or
6860 # (2) before a word containing "conftest.", or (3) at the end.
6861 # Note that $ac_compile itself does not contain backslashes and begins
6862 # with a dollar sign (not a hyphen), so the echo should work correctly.
6863 lt_compile=`echo "$ac_compile" | $SED \
6864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6866 -e 's:$: $lt_compiler_flag:'`
6867 (eval echo "\"\$as_me:6867: $lt_compile\"" >&5)
6868 (eval "$lt_compile" 2>out/conftest.err)
6870 cat out/conftest.err >&5
6871 echo "$as_me:6871: \$? = $ac_status" >&5
6872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6874 # The compiler can only warn and ignore the option if not recognized
6875 # So say no if there are warnings
6876 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6877 $SED '/^$/d' out/conftest.err >out/conftest.er2
6878 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6879 lt_cv_prog_compiler_c_o=yes
6884 # SGI C++ compiler will create directory out/ii_files/ for
6885 # template instantiation
6886 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6887 $rm out/* && rmdir out
6893 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6897 hard_links="nottested"
6898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6899 # do not overwrite the value of need_locks provided by the user
6900 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6901 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6906 ln conftest.a conftest.b 2>&5 || hard_links=no
6907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6908 echo "$as_me:$LINENO: result: $hard_links" >&5
6909 echo "${ECHO_T}$hard_links" >&6
6910 if test "$hard_links" = no; then
6911 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6912 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6919 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6923 allow_undefined_flag=
6924 enable_shared_with_static_runtimes=no
6926 archive_expsym_cmds=
6927 old_archive_From_new_cmds=
6928 old_archive_from_expsyms_cmds=
6929 export_dynamic_flag_spec=
6930 whole_archive_flag_spec=
6931 thread_safe_flag_spec=
6932 hardcode_libdir_flag_spec=
6933 hardcode_libdir_flag_spec_ld=
6934 hardcode_libdir_separator=
6937 hardcode_shlibpath_var=unsupported
6938 link_all_deplibs=unknown
6939 hardcode_automatic=no
6942 always_export_symbols=no
6943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6944 # include_expsyms should be a list of space-separated symbols to be *always*
6945 # included in the symbol list
6947 # exclude_expsyms can be an extended regexp of symbols to exclude
6948 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6949 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6950 # as well as any symbol that contains `d'.
6951 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6952 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6953 # platforms (ab)use it in PIC code, but their linkers get confused if
6954 # the symbol is explicitly referenced. Since portable code cannot
6955 # rely on this symbol name, it's probably fine to never include it in
6956 # preloaded symbol tables.
6957 extract_expsyms_cmds=
6958 # Just being paranoid about ensuring that cc_basename is set.
6959 for cc_temp in $compiler""; do
6961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6970 cygwin* | mingw* | pw32*)
6971 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6972 # When not using gcc, we currently assume that we are using
6973 # Microsoft Visual C++.
6974 if test "$GCC" != yes; then
6984 if test "$with_gnu_ld" = yes; then
6985 # If archive_cmds runs LD, not CC, wlarc should be empty
6988 # Set some defaults for GNU ld with shared library support. These
6989 # are reset later if shared libraries are not supported. Putting them
6990 # here allows them to be overridden if necessary.
6991 runpath_var=LD_RUN_PATH
6992 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6993 export_dynamic_flag_spec='${wl}--export-dynamic'
6994 # ancient GNU ld didn't support --whole-archive et. al.
6995 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6996 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6998 whole_archive_flag_spec=
7000 supports_anon_versioning=no
7001 case `$LD -v 2>/dev/null` in
7002 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7003 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7004 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7005 *\ 2.11.*) ;; # other 2.11 versions
7006 *) supports_anon_versioning=yes ;;
7009 # See if GNU ld supports shared libraries.
7011 aix3* | aix4* | aix5*)
7012 # On AIX/PPC, the GNU linker is very broken
7013 if test "$host_cpu" != ia64; then
7017 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7018 *** to be unable to reliably create shared libraries on AIX.
7019 *** Therefore, libtool is disabling shared libraries support. If you
7020 *** really care for shared libraries, you may want to modify your PATH
7021 *** so that a non-GNU linker is found, and then restart.
7028 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)'
7029 hardcode_libdir_flag_spec='-L$libdir'
7030 hardcode_minus_L=yes
7032 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7033 # that the semantics of dynamic libraries on AmigaOS, at least up
7034 # to version 4, is to share data among multiple programs linked
7035 # with the same dynamic library. Since this doesn't match the
7036 # behavior of shared libraries on other platforms, we can't use
7042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043 allow_undefined_flag=unsupported
7044 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7045 # support --undefined. This deserves some investigation. FIXME
7046 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7052 cygwin* | mingw* | pw32*)
7053 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7054 # as there is no search path for DLLs.
7055 hardcode_libdir_flag_spec='-L$libdir'
7056 allow_undefined_flag=unsupported
7057 always_export_symbols=no
7058 enable_shared_with_static_runtimes=yes
7059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7061 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7063 # If the export-symbols file already is a .def file (1st line
7064 # is EXPORTS), use it as is; otherwise, prepend...
7065 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7066 cp $export_symbols $output_objdir/$soname.def;
7068 echo EXPORTS > $output_objdir/$soname.def;
7069 cat $export_symbols >> $output_objdir/$soname.def;
7071 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7080 case $cc_basename,$host_cpu in
7081 pgcc*) # Portland Group C compiler
7082 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7083 tmp_addflag=' $pic_flag'
7085 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7086 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7087 tmp_addflag=' $pic_flag -Mnomain' ;;
7088 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7089 tmp_addflag=' -i_dynamic' ;;
7090 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7091 tmp_addflag=' -i_dynamic -nofor_main' ;;
7092 ifc* | ifort*) # Intel Fortran compiler
7093 tmp_addflag=' -nofor_main' ;;
7095 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7097 if test $supports_anon_versioning = yes; then
7098 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7099 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7100 $echo "local: *; };" >> $output_objdir/$libname.ver~
7101 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7110 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7119 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7124 *** create shared libraries on Solaris systems. Therefore, libtool
7125 *** is disabling shared libraries support. We urge you to upgrade GNU
7126 *** binutils to release 2.9.1 or newer. Another option is to modify
7127 *** your PATH or compiler configuration so that the native linker is
7128 *** used, and then restart.
7131 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7140 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7143 hardcode_shlibpath_var=no
7147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7156 if test "$ld_shlibs" = no; then
7158 hardcode_libdir_flag_spec=
7159 export_dynamic_flag_spec=
7160 whole_archive_flag_spec=
7163 # PORTME fill in a description of your system's linker (not GNU ld)
7166 allow_undefined_flag=unsupported
7167 always_export_symbols=yes
7168 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'
7169 # Note: this linker hardcodes the directories in LIBPATH if there
7170 # are no directories specified by -L.
7171 hardcode_minus_L=yes
7172 if test "$GCC" = yes && test -z "$link_static_flag"; then
7173 # Neither direct hardcoding nor static linking is supported with a
7175 hardcode_direct=unsupported
7180 if test "$host_cpu" = ia64; then
7181 # On IA64, the linker does run time linking by default, so we don't
7182 # have to do anything special.
7183 aix_use_runtimelinking=no
7184 exp_sym_flag='-Bexport'
7187 # If we're using GNU nm, then we don't want the "-C" option.
7188 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7189 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7190 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'
7192 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'
7194 aix_use_runtimelinking=no
7196 # Test if we are trying to use run time linking or normal
7197 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7198 # need to do runtime linking.
7199 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7200 for ld_flag in $LDFLAGS; do
7201 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7202 aix_use_runtimelinking=yes
7208 exp_sym_flag='-bexport'
7209 no_entry_flag='-bnoentry'
7212 # When large executables or shared objects are built, AIX ld can
7213 # have problems creating the table of contents. If linking a library
7214 # or program results in "error TOC overflow" add -mminimal-toc to
7215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7220 hardcode_libdir_separator=':'
7221 link_all_deplibs=yes
7223 if test "$GCC" = yes; then
7224 case $host_os in aix4.[012]|aix4.[012].*)
7225 # We only want to do this on AIX 4.2 and lower, the check
7226 # below for broken collect2 doesn't work under 4.3+
7227 collect2name=`${CC} -print-prog-name=collect2`
7228 if test -f "$collect2name" && \
7229 strings "$collect2name" | grep resolve_lib_name >/dev/null
7231 # We have reworked collect2
7234 # We have old collect2
7235 hardcode_direct=unsupported
7236 # It fails to find uninstalled libraries when the uninstalled
7237 # path is not listed in the libpath. Setting hardcode_minus_L
7238 # to unsupported forces relinking
7239 hardcode_minus_L=yes
7240 hardcode_libdir_flag_spec='-L$libdir'
7241 hardcode_libdir_separator=
7244 shared_flag='-shared'
7245 if test "$aix_use_runtimelinking" = yes; then
7246 shared_flag="$shared_flag "'${wl}-G'
7250 if test "$host_cpu" = ia64; then
7251 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7252 # chokes on -Wl,-G. The following line is correct:
7255 if test "$aix_use_runtimelinking" = yes; then
7256 shared_flag='${wl}-G'
7258 shared_flag='${wl}-bM:SRE'
7263 # It seems that -bexpall does not export symbols beginning with
7264 # underscore (_), so it is better to generate a list of symbols to export.
7265 always_export_symbols=yes
7266 if test "$aix_use_runtimelinking" = yes; then
7267 # Warning - without using the other runtime loading flags (-brtl),
7268 # -berok will link without error, but may produce a broken library.
7269 allow_undefined_flag='-berok'
7270 # Determine the default libpath from the value encoded in an empty executable.
7271 cat >conftest.$ac_ext <<_ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288 (eval $ac_link) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest$ac_exeext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7311 # Check for a 64-bit object if we didn't find anything.
7312 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; }
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7319 rm -f conftest.err conftest.$ac_objext \
7320 conftest$ac_exeext conftest.$ac_ext
7321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7323 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7324 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"
7326 if test "$host_cpu" = ia64; then
7327 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7328 allow_undefined_flag="-z nodefs"
7329 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"
7331 # Determine the default libpath from the value encoded in an empty executable.
7332 cat >conftest.$ac_ext <<_ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7347 rm -f conftest.$ac_objext conftest$ac_exeext
7348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7349 (eval $ac_link) 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } &&
7356 { ac_try='test -z "$ac_c_werror_flag"
7357 || test ! -s conftest.err'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; } &&
7363 { ac_try='test -s conftest$ac_exeext'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7372 # Check for a 64-bit object if we didn't find anything.
7373 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; }
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7380 rm -f conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
7382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7385 # Warning - without using the other run time loading flags,
7386 # -berok will link without error, but may produce a broken library.
7387 no_undefined_flag=' ${wl}-bernotok'
7388 allow_undefined_flag=' ${wl}-berok'
7389 # -bexpall does not export symbols beginning with underscore (_)
7390 always_export_symbols=yes
7391 # Exported symbols can be pulled into shared objects from archives
7392 whole_archive_flag_spec=' '
7393 archive_cmds_need_lc=yes
7394 # This is similar to how AIX traditionally builds its shared libraries.
7395 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'
7401 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)'
7402 hardcode_libdir_flag_spec='-L$libdir'
7403 hardcode_minus_L=yes
7404 # see comment about different semantics on the GNU ld section
7409 export_dynamic_flag_spec=-rdynamic
7412 cygwin* | mingw* | pw32*)
7413 # When not using gcc, we currently assume that we are using
7414 # Microsoft Visual C++.
7415 # hardcode_libdir_flag_spec is actually meaningless, as there is
7416 # no search path for DLLs.
7417 hardcode_libdir_flag_spec=' '
7418 allow_undefined_flag=unsupported
7419 # Tell ltmain to make .lib files, not .a files.
7421 # Tell ltmain to make .dll files, not .so files.
7423 # FIXME: Setting linknames here is a bad hack.
7424 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7425 # The linker will automatically build a .lib file if we build a DLL.
7426 old_archive_From_new_cmds='true'
7427 # FIXME: Should let the user specify the lib program.
7428 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7429 fix_srcfile_path='`cygpath -w "$srcfile"`'
7430 enable_shared_with_static_runtimes=yes
7433 darwin* | rhapsody*)
7435 rhapsody* | darwin1.[012])
7436 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7439 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7440 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7442 case ${MACOSX_DEPLOYMENT_TARGET} in
7444 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7447 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7453 archive_cmds_need_lc=no
7455 hardcode_automatic=yes
7456 hardcode_shlibpath_var=unsupported
7457 whole_archive_flag_spec=''
7458 link_all_deplibs=yes
7459 if test "$GCC" = yes ; then
7460 output_verbose_link_cmd='echo'
7461 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7462 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7463 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7464 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}'
7465 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}'
7467 case $cc_basename in
7469 output_verbose_link_cmd='echo'
7470 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7471 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7472 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7473 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7474 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}'
7484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7485 hardcode_libdir_flag_spec='-L$libdir'
7486 hardcode_shlibpath_var=no
7493 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7494 # support. Future versions do this automatically, but an explicit c++rt0.o
7495 # does not break anything, and helps significantly (at the cost of a little
7498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7499 hardcode_libdir_flag_spec='-R$libdir'
7501 hardcode_shlibpath_var=no
7504 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7508 hardcode_minus_L=yes
7509 hardcode_shlibpath_var=no
7512 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7513 freebsd* | kfreebsd*-gnu | dragonfly*)
7514 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7515 hardcode_libdir_flag_spec='-R$libdir'
7517 hardcode_shlibpath_var=no
7521 if test "$GCC" = yes; then
7522 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'
7524 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'
7526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7527 hardcode_libdir_separator=:
7530 # hardcode_minus_L: Not really in the search PATH,
7531 # but as the default location of the library.
7532 hardcode_minus_L=yes
7533 export_dynamic_flag_spec='${wl}-E'
7537 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7540 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7543 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7549 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7552 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7556 if test "$with_gnu_ld" = no; then
7559 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7560 hardcode_libdir_flag_spec_ld='+b $libdir'
7561 hardcode_libdir_separator=:
7563 hardcode_shlibpath_var=no
7566 hardcode_libdir_flag_spec='-L$libdir'
7568 hardcode_shlibpath_var=no
7570 # hardcode_minus_L: Not really in the search PATH,
7571 # but as the default location of the library.
7572 hardcode_minus_L=yes
7575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7576 hardcode_libdir_separator=:
7578 export_dynamic_flag_spec='${wl}-E'
7580 # hardcode_minus_L: Not really in the search PATH,
7581 # but as the default location of the library.
7582 hardcode_minus_L=yes
7588 irix5* | irix6* | nonstopux*)
7589 if test "$GCC" = yes; then
7590 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'
7592 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'
7593 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7596 hardcode_libdir_separator=:
7597 link_all_deplibs=yes
7601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7604 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7606 hardcode_libdir_flag_spec='-R$libdir'
7608 hardcode_shlibpath_var=no
7612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7615 hardcode_libdir_separator=:
7616 hardcode_shlibpath_var=no
7621 hardcode_shlibpath_var=no
7622 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7624 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7626 export_dynamic_flag_spec='${wl}-E'
7629 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7631 hardcode_libdir_flag_spec='-R$libdir'
7634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7635 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7642 hardcode_libdir_flag_spec='-L$libdir'
7643 hardcode_minus_L=yes
7644 allow_undefined_flag=unsupported
7645 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'
7646 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7650 if test "$GCC" = yes; then
7651 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7652 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'
7654 allow_undefined_flag=' -expect_unresolved \*'
7655 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'
7657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7658 hardcode_libdir_separator=:
7661 osf4* | osf5*) # as osf3* with the addition of -msym flag
7662 if test "$GCC" = yes; then
7663 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7664 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'
7665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7667 allow_undefined_flag=' -expect_unresolved \*'
7668 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'
7669 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7670 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7672 # Both c and cxx compiler support -rpath directly
7673 hardcode_libdir_flag_spec='-rpath $libdir'
7675 hardcode_libdir_separator=:
7679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7680 hardcode_shlibpath_var=no
7681 export_dynamic_flag_spec='${wl}-Bexport'
7682 runpath_var=LD_RUN_PATH
7683 hardcode_runpath_var=yes
7687 no_undefined_flag=' -z text'
7688 if test "$GCC" = yes; then
7690 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7691 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7692 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7695 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7696 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7697 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7699 hardcode_libdir_flag_spec='-R$libdir'
7700 hardcode_shlibpath_var=no
7702 solaris2.[0-5] | solaris2.[0-5].*) ;;
7704 # The compiler driver will combine linker options so we
7705 # cannot just pass the convience library names through
7706 # without $wl, iff we do not link with $LD.
7707 # Luckily, gcc supports the same syntax we need for Sun Studio.
7708 # Supported since Solaris 2.6 (maybe 2.5.1?)
7711 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7713 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7716 link_all_deplibs=yes
7720 if test "x$host_vendor" = xsequent; then
7721 # Use $CC to link under sequent, because it throws in some extra .o
7722 # files that make .init and .fini sections work.
7723 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7725 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7727 hardcode_libdir_flag_spec='-L$libdir'
7729 hardcode_minus_L=yes
7730 hardcode_shlibpath_var=no
7734 case $host_vendor in
7736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7737 hardcode_direct=yes # is this really true???
7740 ## LD is ld it makes a PLAMLIB
7741 ## CC just makes a GrossModule.
7742 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7743 reload_cmds='$CC -r -o $output$reload_objs'
7747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7748 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7751 runpath_var='LD_RUN_PATH'
7752 hardcode_shlibpath_var=no
7756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7757 hardcode_shlibpath_var=no
7758 export_dynamic_flag_spec='-Bexport'
7762 if test -d /usr/nec; then
7763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7764 hardcode_shlibpath_var=no
7765 runpath_var=LD_RUN_PATH
7766 hardcode_runpath_var=yes
7772 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7775 hardcode_shlibpath_var=no
7776 hardcode_runpath_var=yes
7777 runpath_var=LD_RUN_PATH
7780 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7781 no_undefined_flag='${wl}-z ${wl}text'
7782 if test "$GCC" = yes; then
7783 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7785 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7787 runpath_var='LD_RUN_PATH'
7788 hardcode_shlibpath_var=no
7792 no_undefined_flag=' -z text'
7793 # $CC -shared without GNU ld will not create a library from C++
7794 # object files and a static libstdc++, better avoid it by now
7795 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7796 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7798 hardcode_libdir_flag_spec=
7799 hardcode_shlibpath_var=no
7800 runpath_var='LD_RUN_PATH'
7804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805 hardcode_libdir_flag_spec='-L$libdir'
7806 hardcode_shlibpath_var=no
7815 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7816 echo "${ECHO_T}$ld_shlibs" >&6
7817 test "$ld_shlibs" = no && can_build_shared=no
7819 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7820 if test "$GCC" = yes; then
7821 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7825 # Do we need to explicitly link libc?
7827 case "x$archive_cmds_need_lc" in
7829 # Assume -lc should be added
7830 archive_cmds_need_lc=yes
7832 if test "$enable_shared" = yes && test "$GCC" = yes; then
7833 case $archive_cmds in
7835 # FIXME: we may have to deal with multi-command sequences.
7838 # Test whether the compiler implicitly links with -lc since on some
7839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7840 # to ld, don't add -lc before -lgcc.
7841 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7842 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } 2>conftest.err; then
7853 libobjs=conftest.$ac_objext
7855 wl=$lt_prog_compiler_wl
7861 lt_save_allow_undefined_flag=$allow_undefined_flag
7862 allow_undefined_flag=
7863 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7864 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }
7869 archive_cmds_need_lc=no
7871 archive_cmds_need_lc=yes
7873 allow_undefined_flag=$lt_save_allow_undefined_flag
7875 cat conftest.err 1>&5
7878 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7879 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7886 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7887 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7889 libname_spec='lib$name'
7897 shlibpath_overrides_runpath=unknown
7899 dynamic_linker="$host_os ld.so"
7900 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7901 if test "$GCC" = yes; then
7902 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7903 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7904 # if the path contains ";" then we assume it to be the separator
7905 # otherwise default to the standard path separator (i.e. ":") - it is
7906 # assumed that no part of a normal pathname contains ";" but that should
7907 # okay in the real world where ";" in dirpaths is itself problematic.
7908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7915 need_lib_prefix=unknown
7916 hardcode_into_libs=no
7918 # when you set need_version to no, make sure it does not cause -set_version
7919 # flags to be left without arguments
7920 need_version=unknown
7925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7926 shlibpath_var=LIBPATH
7928 # AIX 3 has no versioning support, so we append a major version to the name.
7929 soname_spec='${libname}${release}${shared_ext}$major'
7936 hardcode_into_libs=yes
7937 if test "$host_cpu" = ia64; then
7938 # AIX 5 supports IA64
7939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7940 shlibpath_var=LD_LIBRARY_PATH
7942 # With GCC up to 2.95.x, collect2 would create an import file
7943 # for dependence libraries. The import file would start with
7944 # the line `#! .'. This would cause the generated library to
7945 # depend on `.', always an invalid library. This was fixed in
7946 # development snapshots of GCC prior to 3.0.
7948 aix4 | aix4.[01] | aix4.[01].*)
7949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7951 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7959 # soname into executable. Probably we can add versioning support to
7960 # collect2, so additional links can be useful in future.
7961 if test "$aix_use_runtimelinking" = yes; then
7962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7963 # instead of lib<name>.a to let people know that these are not
7964 # typical AIX shared libraries.
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967 # We preserve .a as extension for shared libraries through AIX4.2
7968 # and later when we are not doing run time linking.
7969 library_names_spec='${libname}${release}.a $libname.a'
7970 soname_spec='${libname}${release}${shared_ext}$major'
7972 shlibpath_var=LIBPATH
7977 library_names_spec='$libname.ixlibrary $libname.a'
7978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7979 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'
7983 library_names_spec='${libname}${shared_ext}'
7984 dynamic_linker="$host_os ld.so"
7985 shlibpath_var=LIBRARY_PATH
7991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992 soname_spec='${libname}${release}${shared_ext}$major'
7993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7994 shlibpath_var=LD_LIBRARY_PATH
7995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7997 # the default ld.so.conf also contains /usr/contrib/lib and
7998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7999 # libtool to hard-code these into programs
8002 cygwin* | mingw* | pw32*)
8003 version_type=windows
8008 case $GCC,$host_os in
8009 yes,cygwin* | yes,mingw* | yes,pw32*)
8010 library_names_spec='$libname.dll.a'
8011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8012 postinstall_cmds='base_file=`basename \${file}`~
8013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8014 dldir=$destdir/`dirname \$dlpath`~
8015 test -d \$dldir || mkdir -p \$dldir~
8016 $install_prog $dir/$dlname \$dldir/$dlname~
8017 chmod a+x \$dldir/$dlname'
8018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8019 dlpath=$dir/\$dldll~
8021 shlibpath_overrides_runpath=yes
8025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8030 # MinGW DLLs use traditional 'lib' prefix
8031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8033 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8034 # It is most probably a Windows format PATH printed by
8035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8036 # path with ; separators, and with drive letters. We can handle the
8037 # drive letters (cygwin fileutils understands them), so leave them,
8038 # especially as we might pass files found there to a mingw objdump,
8039 # which wouldn't understand a cygwinified path. Ahh.
8040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8046 # pw32 DLLs use 'pw' prefix rather than 'lib'
8047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8056 dynamic_linker='Win32 ld.exe'
8057 # FIXME: first we should search . and the directory the executable is in
8061 darwin* | rhapsody*)
8062 dynamic_linker="$host_os dyld"
8066 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8067 soname_spec='${libname}${release}${major}$shared_ext'
8068 shlibpath_overrides_runpath=yes
8069 shlibpath_var=DYLD_LIBRARY_PATH
8070 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8071 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8072 if test "$GCC" = yes; then
8073 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"`
8075 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8085 soname_spec='${libname}${release}${shared_ext}$major'
8086 shlibpath_var=LD_LIBRARY_PATH
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8098 soname_spec='${libname}${release}${shared_ext}$major'
8099 shlibpath_var=LD_LIBRARY_PATH
8100 shlibpath_overrides_runpath=no
8101 hardcode_into_libs=yes
8102 dynamic_linker='GNU ld.so'
8105 freebsd* | dragonfly*)
8106 # DragonFly does not have aout. When/if they implement a new
8107 # versioning mechanism, adjust this.
8108 if test -x /usr/bin/objformat; then
8109 objformat=`/usr/bin/objformat`
8112 freebsd[123]*) objformat=aout ;;
8116 version_type=freebsd-$objformat
8117 case $version_type in
8119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8128 shlibpath_var=LD_LIBRARY_PATH
8131 shlibpath_overrides_runpath=yes
8133 freebsd3.[01]* | freebsdelf3.[01]*)
8134 shlibpath_overrides_runpath=yes
8135 hardcode_into_libs=yes
8138 shlibpath_overrides_runpath=no
8139 hardcode_into_libs=yes
8148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8149 soname_spec='${libname}${release}${shared_ext}$major'
8150 shlibpath_var=LD_LIBRARY_PATH
8151 hardcode_into_libs=yes
8154 hpux9* | hpux10* | hpux11*)
8155 # Give a soname corresponding to the major version so that dld.sl refuses to
8156 # link against other versions.
8163 hardcode_into_libs=yes
8164 dynamic_linker="$host_os dld.so"
8165 shlibpath_var=LD_LIBRARY_PATH
8166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8168 soname_spec='${libname}${release}${shared_ext}$major'
8169 if test "X$HPUX_IA64_MODE" = X32; then
8170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8178 hardcode_into_libs=yes
8179 dynamic_linker="$host_os dld.sl"
8180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8183 soname_spec='${libname}${release}${shared_ext}$major'
8184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8189 dynamic_linker="$host_os dld.sl"
8190 shlibpath_var=SHLIB_PATH
8191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8193 soname_spec='${libname}${release}${shared_ext}$major'
8196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8197 postinstall_cmds='chmod 555 $lib'
8200 irix5* | irix6* | nonstopux*)
8202 nonstopux*) version_type=nonstopux ;;
8204 if test "$lt_cv_prog_gnu_ld" = yes; then
8212 soname_spec='${libname}${release}${shared_ext}$major'
8213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8215 irix5* | nonstopux*)
8219 case $LD in # libtool.m4 will add one of these switches to LD
8220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8221 libsuff= shlibsuff= libmagic=32-bit;;
8222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8223 libsuff=32 shlibsuff=N32 libmagic=N32;;
8224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8226 *) libsuff= shlibsuff= libmagic=never-match;;
8230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8231 shlibpath_overrides_runpath=no
8232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8234 hardcode_into_libs=yes
8237 # No shared lib support for Linux oldld, aout, or coff.
8238 linux*oldld* | linux*aout* | linux*coff*)
8242 # This must be Linux ELF.
8247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248 soname_spec='${libname}${release}${shared_ext}$major'
8249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8250 shlibpath_var=LD_LIBRARY_PATH
8251 shlibpath_overrides_runpath=no
8252 # This implies no fast_install, which is unacceptable.
8253 # Some rework will be needed to allow for fast_install
8254 # before this can be enabled.
8255 hardcode_into_libs=yes
8257 # Append ld.so.conf contents to the search path
8258 if test -f /etc/ld.so.conf; then
8259 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8260 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8263 # We used to test for /lib/ld.so.1 and disable shared libraries on
8264 # powerpc, because MkLinux only supported shared libraries with the
8265 # GNU dynamic linker. Since this was broken with cross compilers,
8266 # most powerpc-linux boxes support dynamic linking these days and
8267 # people can always --disable-shared, the test was removed, and we
8268 # assume the GNU/Linux dynamic linker is in use.
8269 dynamic_linker='GNU/Linux ld.so'
8276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8277 soname_spec='${libname}${release}${shared_ext}$major'
8278 shlibpath_var=LD_LIBRARY_PATH
8279 shlibpath_overrides_runpath=no
8280 hardcode_into_libs=yes
8281 dynamic_linker='GNU ld.so'
8288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8291 dynamic_linker='NetBSD (a.out) ld.so'
8293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8294 soname_spec='${libname}${release}${shared_ext}$major'
8295 dynamic_linker='NetBSD ld.elf_so'
8297 shlibpath_var=LD_LIBRARY_PATH
8298 shlibpath_overrides_runpath=yes
8299 hardcode_into_libs=yes
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305 shlibpath_var=LD_LIBRARY_PATH
8306 shlibpath_overrides_runpath=yes
8313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8314 soname_spec='${libname}${release}${shared_ext}$major'
8315 shlibpath_var=LD_LIBRARY_PATH
8316 shlibpath_overrides_runpath=yes
8322 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8324 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8325 *) need_version=no ;;
8327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8329 shlibpath_var=LD_LIBRARY_PATH
8330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8332 openbsd2.[89] | openbsd2.[89].*)
8333 shlibpath_overrides_runpath=no
8336 shlibpath_overrides_runpath=yes
8340 shlibpath_overrides_runpath=yes
8345 libname_spec='$name'
8348 library_names_spec='$libname${shared_ext} $libname.a'
8349 dynamic_linker='OS/2 ld.exe'
8350 shlibpath_var=LIBPATH
8353 osf3* | osf4* | osf5*)
8357 soname_spec='${libname}${release}${shared_ext}$major'
8358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8359 shlibpath_var=LD_LIBRARY_PATH
8360 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8361 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8366 soname_spec='${libname}${release}${shared_ext}$major'
8367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8368 shlibpath_var=LD_LIBRARY_PATH
8375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8376 soname_spec='${libname}${release}${shared_ext}$major'
8377 shlibpath_var=LD_LIBRARY_PATH
8378 shlibpath_overrides_runpath=yes
8379 hardcode_into_libs=yes
8380 # ldd complains unless libraries are executable
8381 postinstall_cmds='chmod +x $lib'
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8388 shlibpath_var=LD_LIBRARY_PATH
8389 shlibpath_overrides_runpath=yes
8390 if test "$with_gnu_ld" = yes; then
8396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8399 soname_spec='${libname}${release}${shared_ext}$major'
8400 shlibpath_var=LD_LIBRARY_PATH
8401 case $host_vendor in
8403 shlibpath_overrides_runpath=no
8405 export_dynamic_flag_spec='${wl}-Blargedynsym'
8406 runpath_var=LD_RUN_PATH
8414 shlibpath_overrides_runpath=no
8415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8421 if test -d /usr/nec ;then
8423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8424 soname_spec='$libname${shared_ext}.$major'
8425 shlibpath_var=LD_LIBRARY_PATH
8431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8432 soname_spec='${libname}${release}${shared_ext}$major'
8433 shlibpath_var=LD_LIBRARY_PATH
8440 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8441 echo "${ECHO_T}$dynamic_linker" >&6
8442 test "$dynamic_linker" = no && can_build_shared=no
8444 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8445 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8447 if test -n "$hardcode_libdir_flag_spec" || \
8448 test -n "$runpath_var" || \
8449 test "X$hardcode_automatic" = "Xyes" ; then
8451 # We can hardcode non-existant directories.
8452 if test "$hardcode_direct" != no &&
8453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8454 # have to relink, otherwise we might link with an installed library
8455 # when we should be linking with a yet-to-be-installed one
8456 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8457 test "$hardcode_minus_L" != no; then
8458 # Linking always hardcodes the temporary library directory.
8459 hardcode_action=relink
8461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8462 hardcode_action=immediate
8465 # We cannot hardcode anything, or else we can only hardcode existing
8467 hardcode_action=unsupported
8469 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8470 echo "${ECHO_T}$hardcode_action" >&6
8472 if test "$hardcode_action" = relink; then
8473 # Fast installation is not supported
8474 enable_fast_install=no
8475 elif test "$shlibpath_overrides_runpath" = yes ||
8476 test "$enable_shared" = no; then
8477 # Fast installation is not necessary
8478 enable_fast_install=needless
8483 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8484 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8485 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8486 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8487 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8488 echo "$as_me:$LINENO: result: yes" >&5
8489 echo "${ECHO_T}yes" >&6
8491 # FIXME - insert some real tests, host_os isn't really good enough
8494 if test -n "$STRIP" ; then
8495 striplib="$STRIP -x"
8496 echo "$as_me:$LINENO: result: yes" >&5
8497 echo "${ECHO_T}yes" >&6
8499 echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6
8504 echo "$as_me:$LINENO: result: no" >&5
8505 echo "${ECHO_T}no" >&6
8510 if test "x$enable_dlopen" != xyes; then
8511 enable_dlopen=unknown
8512 enable_dlopen_self=unknown
8513 enable_dlopen_self_static=unknown
8520 lt_cv_dlopen="load_add_on"
8522 lt_cv_dlopen_self=yes
8526 lt_cv_dlopen="LoadLibrary"
8531 lt_cv_dlopen="dlopen"
8536 # if libdl is installed we need to link against it
8537 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 ac_check_lib_save_LIBS=$LIBS
8544 cat >conftest.$ac_ext <<_ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8551 /* Override any gcc2 internal prototype to avoid an error. */
8555 /* We use char because int might match the return type of a gcc2
8556 builtin and then its argument prototype would still apply. */
8566 rm -f conftest.$ac_objext conftest$ac_exeext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568 (eval $ac_link) 2>conftest.er1
8570 grep -v '^ *+' conftest.er1 >conftest.err
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -z "$ac_c_werror_flag"
8576 || test ! -s conftest.err'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest$ac_exeext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_cv_lib_dl_dlopen=yes
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_cv_lib_dl_dlopen=no
8595 rm -f conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
8597 LIBS=$ac_check_lib_save_LIBS
8599 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8600 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8601 if test $ac_cv_lib_dl_dlopen = yes; then
8602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8607 lt_cv_dlopen_self=yes
8614 echo "$as_me:$LINENO: checking for shl_load" >&5
8615 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8616 if test "${ac_cv_func_shl_load+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 cat >conftest.$ac_ext <<_ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8627 #define shl_load innocuous_shl_load
8629 /* System header to define __stub macros and hopefully few prototypes,
8630 which can conflict with char shl_load (); below.
8631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8632 <limits.h> exists even on freestanding compilers. */
8635 # include <limits.h>
8637 # include <assert.h>
8642 /* Override any gcc2 internal prototype to avoid an error. */
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8650 /* The GNU C library defines this for functions which it implements
8651 to always fail with ENOSYS. Some functions are actually named
8652 something starting with __ and the normal name is an alias. */
8653 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8656 char (*f) () = shl_load;
8665 return f != shl_load;
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>conftest.er1
8674 grep -v '^ *+' conftest.er1 >conftest.err
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag"
8680 || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest$ac_exeext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_cv_func_shl_load=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_cv_func_shl_load=no
8699 rm -f conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8703 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8704 if test $ac_cv_func_shl_load = yes; then
8705 lt_cv_dlopen="shl_load"
8707 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8708 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8709 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 ac_check_lib_save_LIBS=$LIBS
8714 cat >conftest.$ac_ext <<_ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8721 /* Override any gcc2 internal prototype to avoid an error. */
8725 /* We use char because int might match the return type of a gcc2
8726 builtin and then its argument prototype would still apply. */
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738 (eval $ac_link) 2>conftest.er1
8740 grep -v '^ *+' conftest.er1 >conftest.err
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -z "$ac_c_werror_flag"
8746 || test ! -s conftest.err'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; } &&
8752 { ac_try='test -s conftest$ac_exeext'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; }; then
8758 ac_cv_lib_dld_shl_load=yes
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 ac_cv_lib_dld_shl_load=no
8765 rm -f conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LIBS=$ac_check_lib_save_LIBS
8769 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8770 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8771 if test $ac_cv_lib_dld_shl_load = yes; then
8772 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8774 echo "$as_me:$LINENO: checking for dlopen" >&5
8775 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8776 if test "${ac_cv_func_dlopen+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8787 #define dlopen innocuous_dlopen
8789 /* System header to define __stub macros and hopefully few prototypes,
8790 which can conflict with char dlopen (); below.
8791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8792 <limits.h> exists even on freestanding compilers. */
8795 # include <limits.h>
8797 # include <assert.h>
8802 /* Override any gcc2 internal prototype to avoid an error. */
8807 /* We use char because int might match the return type of a gcc2
8808 builtin and then its argument prototype would still apply. */
8810 /* The GNU C library defines this for functions which it implements
8811 to always fail with ENOSYS. Some functions are actually named
8812 something starting with __ and the normal name is an alias. */
8813 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8816 char (*f) () = dlopen;
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8832 (eval $ac_link) 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag"
8840 || test ! -s conftest.err'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest$ac_exeext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_func_dlopen=yes
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8857 ac_cv_func_dlopen=no
8859 rm -f conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8862 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8863 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8864 if test $ac_cv_func_dlopen = yes; then
8865 lt_cv_dlopen="dlopen"
8867 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8868 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 ac_check_lib_save_LIBS=$LIBS
8874 cat >conftest.$ac_ext <<_ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8881 /* Override any gcc2 internal prototype to avoid an error. */
8885 /* We use char because int might match the return type of a gcc2
8886 builtin and then its argument prototype would still apply. */
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8898 (eval $ac_link) 2>conftest.er1
8900 grep -v '^ *+' conftest.er1 >conftest.err
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -z "$ac_c_werror_flag"
8906 || test ! -s conftest.err'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; } &&
8912 { ac_try='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_cv_lib_dl_dlopen=yes
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 ac_cv_lib_dl_dlopen=no
8925 rm -f conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 LIBS=$ac_check_lib_save_LIBS
8929 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8930 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8931 if test $ac_cv_lib_dl_dlopen = yes; then
8932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8934 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8935 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8936 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 ac_check_lib_save_LIBS=$LIBS
8941 cat >conftest.$ac_ext <<_ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8948 /* Override any gcc2 internal prototype to avoid an error. */
8952 /* We use char because int might match the return type of a gcc2
8953 builtin and then its argument prototype would still apply. */
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965 (eval $ac_link) 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag"
8973 || test ! -s conftest.err'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_lib_svld_dlopen=yes
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_cv_lib_svld_dlopen=no
8992 rm -f conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LIBS=$ac_check_lib_save_LIBS
8996 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8997 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8998 if test $ac_cv_lib_svld_dlopen = yes; then
8999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9001 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9002 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9003 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 ac_check_lib_save_LIBS=$LIBS
9008 cat >conftest.$ac_ext <<_ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9015 /* Override any gcc2 internal prototype to avoid an error. */
9019 /* We use char because int might match the return type of a gcc2
9020 builtin and then its argument prototype would still apply. */
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032 (eval $ac_link) 2>conftest.er1
9034 grep -v '^ *+' conftest.er1 >conftest.err
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -z "$ac_c_werror_flag"
9040 || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_cv_lib_dld_dld_link=yes
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 ac_cv_lib_dld_dld_link=no
9059 rm -f conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9061 LIBS=$ac_check_lib_save_LIBS
9063 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9064 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9065 if test $ac_cv_lib_dld_dld_link = yes; then
9066 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9087 if test "x$lt_cv_dlopen" != xno; then
9093 case $lt_cv_dlopen in
9095 save_CPPFLAGS="$CPPFLAGS"
9096 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9098 save_LDFLAGS="$LDFLAGS"
9099 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9102 LIBS="$lt_cv_dlopen_libs $LIBS"
9104 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9105 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9106 if test "${lt_cv_dlopen_self+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 if test "$cross_compiling" = yes; then :
9110 lt_cv_dlopen_self=cross
9112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9113 lt_status=$lt_dlunknown
9114 cat > conftest.$ac_ext <<EOF
9115 #line 9115 "configure"
9116 #include "confdefs.h"
9125 # define LT_DLGLOBAL RTLD_GLOBAL
9128 # define LT_DLGLOBAL DL_GLOBAL
9130 # define LT_DLGLOBAL 0
9134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9135 find out it does not work in some platform. */
9136 #ifndef LT_DLLAZY_OR_NOW
9138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9141 # define LT_DLLAZY_OR_NOW DL_LAZY
9144 # define LT_DLLAZY_OR_NOW RTLD_NOW
9147 # define LT_DLLAZY_OR_NOW DL_NOW
9149 # define LT_DLLAZY_OR_NOW 0
9157 extern "C" void exit (int);
9160 void fnord() { int i=42;}
9163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9164 int status = $lt_dlunknown;
9168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9169 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9170 /* dlclose (self); */
9176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9177 (eval $ac_link) 2>&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9181 (./conftest; exit; ) >&5 2>/dev/null
9184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9186 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9189 # compilation failed
9190 lt_cv_dlopen_self=no
9197 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9198 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9200 if test "x$lt_cv_dlopen_self" = xyes; then
9201 LDFLAGS="$LDFLAGS $link_static_flag"
9202 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9203 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9204 if test "${lt_cv_dlopen_self_static+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 if test "$cross_compiling" = yes; then :
9208 lt_cv_dlopen_self_static=cross
9210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9211 lt_status=$lt_dlunknown
9212 cat > conftest.$ac_ext <<EOF
9213 #line 9213 "configure"
9214 #include "confdefs.h"
9223 # define LT_DLGLOBAL RTLD_GLOBAL
9226 # define LT_DLGLOBAL DL_GLOBAL
9228 # define LT_DLGLOBAL 0
9232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9233 find out it does not work in some platform. */
9234 #ifndef LT_DLLAZY_OR_NOW
9236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9239 # define LT_DLLAZY_OR_NOW DL_LAZY
9242 # define LT_DLLAZY_OR_NOW RTLD_NOW
9245 # define LT_DLLAZY_OR_NOW DL_NOW
9247 # define LT_DLLAZY_OR_NOW 0
9255 extern "C" void exit (int);
9258 void fnord() { int i=42;}
9261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9262 int status = $lt_dlunknown;
9266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9268 /* dlclose (self); */
9274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275 (eval $ac_link) 2>&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9279 (./conftest; exit; ) >&5 2>/dev/null
9282 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9283 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9284 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9287 # compilation failed
9288 lt_cv_dlopen_self_static=no
9295 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9296 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9299 CPPFLAGS="$save_CPPFLAGS"
9300 LDFLAGS="$save_LDFLAGS"
9305 case $lt_cv_dlopen_self in
9306 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9307 *) enable_dlopen_self=unknown ;;
9310 case $lt_cv_dlopen_self_static in
9311 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9312 *) enable_dlopen_self_static=unknown ;;
9317 # Report which librarie types wil actually be built
9318 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9319 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9320 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9321 echo "${ECHO_T}$can_build_shared" >&6
9323 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9324 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9325 test "$can_build_shared" = "no" && enable_shared=no
9327 # On AIX, shared libraries and static libraries use the same namespace, and
9328 # are all built from PIC.
9331 test "$enable_shared" = yes && enable_static=no
9332 if test -n "$RANLIB"; then
9333 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9334 postinstall_cmds='$RANLIB $lib'
9339 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9340 test "$enable_shared" = yes && enable_static=no
9344 echo "$as_me:$LINENO: result: $enable_shared" >&5
9345 echo "${ECHO_T}$enable_shared" >&6
9347 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9348 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9349 # Make sure either enable_shared or enable_static is yes.
9350 test "$enable_shared" = yes || enable_static=yes
9351 echo "$as_me:$LINENO: result: $enable_static" >&5
9352 echo "${ECHO_T}$enable_static" >&6
9354 # The else clause should only fire when bootstrapping the
9355 # libtool distribution, otherwise you forgot to ship ltmain.sh
9356 # with your package, and you will get complaints that there are
9357 # no rules to generate ltmain.sh.
9358 if test -f "$ltmain"; then
9359 # See if we are running on zsh, and set the options which allow our commands through
9360 # without removal of \ escapes.
9361 if test -n "${ZSH_VERSION+set}" ; then
9362 setopt NO_GLOB_SUBST
9364 # Now quote all the things that may contain metacharacters while being
9365 # careful not to overquote the AC_SUBSTed values. We take copies of the
9366 # variables and quote the copies for generation of the libtool script.
9367 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9369 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9370 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9371 deplibs_check_method reload_flag reload_cmds need_locks \
9372 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9373 lt_cv_sys_global_symbol_to_c_name_address \
9374 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9375 old_postinstall_cmds old_postuninstall_cmds \
9379 lt_prog_compiler_wl \
9380 lt_prog_compiler_pic \
9381 lt_prog_compiler_static \
9382 lt_prog_compiler_no_builtin_flag \
9383 export_dynamic_flag_spec \
9384 thread_safe_flag_spec \
9385 whole_archive_flag_spec \
9386 enable_shared_with_static_runtimes \
9388 old_archive_from_new_cmds \
9393 compiler_lib_search_path \
9395 archive_expsym_cmds \
9397 postuninstall_cmds \
9398 old_archive_from_expsyms_cmds \
9399 allow_undefined_flag \
9401 export_symbols_cmds \
9402 hardcode_libdir_flag_spec \
9403 hardcode_libdir_flag_spec_ld \
9404 hardcode_libdir_separator \
9405 hardcode_automatic \
9407 module_expsym_cmds \
9408 lt_cv_prog_compiler_c_o \
9413 old_archive_cmds | \
9414 old_archive_from_new_cmds | \
9416 archive_expsym_cmds | \
9418 module_expsym_cmds | \
9419 old_archive_from_expsyms_cmds | \
9420 export_symbols_cmds | \
9421 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9422 postinstall_cmds | postuninstall_cmds | \
9423 old_postinstall_cmds | old_postuninstall_cmds | \
9424 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9425 # Double-quote double-evaled strings.
9426 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9429 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9435 *'\$0 --fallback-echo"')
9436 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9441 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9443 { echo "$as_me:$LINENO: creating $ofile" >&5
9444 echo "$as_me: creating $ofile" >&6;}
9446 cat <<__EOF__ >> "$cfgfile"
9449 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9450 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9451 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9453 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9454 # Free Software Foundation, Inc.
9456 # This file is part of GNU Libtool:
9457 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9459 # This program is free software; you can redistribute it and/or modify
9460 # it under the terms of the GNU General Public License as published by
9461 # the Free Software Foundation; either version 2 of the License, or
9462 # (at your option) any later version.
9464 # This program is distributed in the hope that it will be useful, but
9465 # WITHOUT ANY WARRANTY; without even the implied warranty of
9466 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9467 # General Public License for more details.
9469 # You should have received a copy of the GNU General Public License
9470 # along with this program; if not, write to the Free Software
9471 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9473 # As a special exception to the GNU General Public License, if you
9474 # distribute this file as part of a program that contains a
9475 # configuration script generated by Autoconf, you may include it under
9476 # the same distribution terms that you use for the rest of that program.
9478 # A sed program that does not truncate output.
9481 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9482 Xsed="$SED -e 1s/^X//"
9484 # The HP-UX ksh and POSIX shell print the target directory to stdout
9486 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9488 # The names of the tagged configurations supported by this script.
9491 # ### BEGIN LIBTOOL CONFIG
9493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9495 # Shell to use when invoking shell scripts.
9498 # Whether or not to build shared libraries.
9499 build_libtool_libs=$enable_shared
9501 # Whether or not to build static libraries.
9502 build_old_libs=$enable_static
9504 # Whether or not to add -lc for building shared libraries.
9505 build_libtool_need_lc=$archive_cmds_need_lc
9507 # Whether or not to disallow shared libs when runtime libs are static
9508 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9510 # Whether or not to optimize for fast installation.
9511 fast_install=$enable_fast_install
9514 host_alias=$host_alias
9519 build_alias=$build_alias
9523 # An echo program that does not interpret backslashes.
9528 AR_FLAGS=$lt_AR_FLAGS
9533 # A language-specific compiler.
9536 # Is the compiler the GNU C compiler?
9542 # The linker used to build libraries.
9545 # Whether we need hard or soft links.
9548 # A BSD-compatible nm program.
9551 # A symbol stripping program
9554 # Used to examine libraries when file_magic_cmd begins "file"
9555 MAGIC_CMD=$MAGIC_CMD
9557 # Used on cygwin: DLL creation program.
9560 # Used on cygwin: object dumper.
9563 # Used on cygwin: assembler.
9566 # The name of the directory that contains temporary libtool files.
9569 # How to create reloadable object files.
9570 reload_flag=$lt_reload_flag
9571 reload_cmds=$lt_reload_cmds
9573 # How to pass a linker flag through the compiler.
9574 wl=$lt_lt_prog_compiler_wl
9576 # Object file suffix (normally "o").
9579 # Old archive suffix (normally "a").
9582 # Shared library suffix (normally ".so").
9583 shrext_cmds='$shrext_cmds'
9585 # Executable file suffix (normally "").
9588 # Additional compiler flags for building library objects.
9589 pic_flag=$lt_lt_prog_compiler_pic
9592 # What is the maximum length of a command?
9593 max_cmd_len=$lt_cv_sys_max_cmd_len
9595 # Does compiler simultaneously support -c and -o options?
9596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9598 # Must we lock files when doing compilation?
9599 need_locks=$lt_need_locks
9601 # Do we need the lib prefix for modules?
9602 need_lib_prefix=$need_lib_prefix
9604 # Do we need a version for libraries?
9605 need_version=$need_version
9607 # Whether dlopen is supported.
9608 dlopen_support=$enable_dlopen
9610 # Whether dlopen of programs is supported.
9611 dlopen_self=$enable_dlopen_self
9613 # Whether dlopen of statically linked programs is supported.
9614 dlopen_self_static=$enable_dlopen_self_static
9616 # Compiler flag to prevent dynamic linking.
9617 link_static_flag=$lt_lt_prog_compiler_static
9619 # Compiler flag to turn off builtin functions.
9620 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9622 # Compiler flag to allow reflexive dlopens.
9623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9625 # Compiler flag to generate shared objects directly from archives.
9626 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9628 # Compiler flag to generate thread-safe objects.
9629 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9631 # Library versioning type.
9632 version_type=$version_type
9634 # Format of library name prefix.
9635 libname_spec=$lt_libname_spec
9637 # List of archive names. First name is the real one, the rest are links.
9638 # The last name is the one that the linker finds with -lNAME.
9639 library_names_spec=$lt_library_names_spec
9641 # The coded name of the library, if different from the real name.
9642 soname_spec=$lt_soname_spec
9644 # Commands used to build and install an old-style archive.
9646 old_archive_cmds=$lt_old_archive_cmds
9647 old_postinstall_cmds=$lt_old_postinstall_cmds
9648 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9650 # Create an old-style archive from a shared archive.
9651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9653 # Create a temporary old-style archive to link instead of a shared archive.
9654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9656 # Commands used to build and install a shared archive.
9657 archive_cmds=$lt_archive_cmds
9658 archive_expsym_cmds=$lt_archive_expsym_cmds
9659 postinstall_cmds=$lt_postinstall_cmds
9660 postuninstall_cmds=$lt_postuninstall_cmds
9662 # Commands used to build a loadable module (assumed same as above if empty)
9663 module_cmds=$lt_module_cmds
9664 module_expsym_cmds=$lt_module_expsym_cmds
9666 # Commands to strip libraries.
9667 old_striplib=$lt_old_striplib
9668 striplib=$lt_striplib
9670 # Dependencies to place before the objects being linked to create a
9672 predep_objects=$lt_predep_objects
9674 # Dependencies to place after the objects being linked to create a
9676 postdep_objects=$lt_postdep_objects
9678 # Dependencies to place before the objects being linked to create a
9682 # Dependencies to place after the objects being linked to create a
9684 postdeps=$lt_postdeps
9686 # The library search path used internally by the compiler when linking
9688 compiler_lib_search_path=$lt_compiler_lib_search_path
9690 # Method to check whether dependent libraries are shared objects.
9691 deplibs_check_method=$lt_deplibs_check_method
9693 # Command to use when deplibs_check_method == file_magic.
9694 file_magic_cmd=$lt_file_magic_cmd
9696 # Flag that allows shared libraries with undefined symbols to be built.
9697 allow_undefined_flag=$lt_allow_undefined_flag
9699 # Flag that forces no undefined symbols.
9700 no_undefined_flag=$lt_no_undefined_flag
9702 # Commands used to finish a libtool library installation in a directory.
9703 finish_cmds=$lt_finish_cmds
9705 # Same as above, but a single script fragment to be evaled but not shown.
9706 finish_eval=$lt_finish_eval
9708 # Take the output of nm and produce a listing of raw symbols and C names.
9709 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9711 # Transform the output of nm in a proper C declaration
9712 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9714 # Transform the output of nm in a C name address pair
9715 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9717 # This is the shared library runtime path variable.
9718 runpath_var=$runpath_var
9720 # This is the shared library path variable.
9721 shlibpath_var=$shlibpath_var
9723 # Is shlibpath searched before the hard-coded library search path?
9724 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9726 # How to hardcode a shared library path into an executable.
9727 hardcode_action=$hardcode_action
9729 # Whether we should hardcode library paths into libraries.
9730 hardcode_into_libs=$hardcode_into_libs
9732 # Flag to hardcode \$libdir into a binary during linking.
9733 # This must work even if \$libdir does not exist.
9734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9736 # If ld is used when linking, flag to hardcode \$libdir into
9737 # a binary during linking. This must work even if \$libdir does
9739 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9741 # Whether we need a single -rpath flag with a separated argument.
9742 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9744 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9746 hardcode_direct=$hardcode_direct
9748 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9750 hardcode_minus_L=$hardcode_minus_L
9752 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9753 # the resulting binary.
9754 hardcode_shlibpath_var=$hardcode_shlibpath_var
9756 # Set to yes if building a shared library automatically hardcodes DIR into the library
9757 # and all subsequent libraries and executables linked against it.
9758 hardcode_automatic=$hardcode_automatic
9760 # Variables whose values should be saved in libtool wrapper scripts and
9761 # restored at relink time.
9762 variables_saved_for_relink="$variables_saved_for_relink"
9764 # Whether libtool must link a program against all its dependency libraries.
9765 link_all_deplibs=$link_all_deplibs
9767 # Compile-time system search path for libraries
9768 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9770 # Run-time system search path for libraries
9771 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9773 # Fix the shell variable \$srcfile for the compiler.
9774 fix_srcfile_path="$fix_srcfile_path"
9776 # Set to yes if exported symbols are required.
9777 always_export_symbols=$always_export_symbols
9779 # The commands to list exported symbols.
9780 export_symbols_cmds=$lt_export_symbols_cmds
9782 # The commands to extract the exported symbol list from a shared archive.
9783 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9785 # Symbols that should not be listed in the preloaded symbols.
9786 exclude_expsyms=$lt_exclude_expsyms
9788 # Symbols that must always be exported.
9789 include_expsyms=$lt_include_expsyms
9791 # ### END LIBTOOL CONFIG
9798 cat <<\EOF >> "$cfgfile"
9800 # AIX sometimes has problems with the GCC collect2 program. For some
9801 # reason, if we set the COLLECT_NAMES environment variable, the problems
9802 # vanish in a puff of smoke.
9803 if test "X${COLLECT_NAMES+set}" != Xset; then
9805 export COLLECT_NAMES
9811 # We use sed instead of cat because bash on DJGPP gets confused if
9812 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9813 # text mode, it properly converts lines to CR/LF. This bash problem
9814 # is reportedly fixed, but why not run on old versions too?
9815 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9817 mv -f "$cfgfile" "$ofile" || \
9818 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9822 # If there is no Makefile yet, we rely on a make rule to execute
9823 # `config.status --recheck' to rerun these tests and create the
9824 # libtool script then.
9825 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9826 if test -f "$ltmain_in"; then
9827 test -f Makefile && make "$ltmain"
9833 ac_cpp='$CPP $CPPFLAGS'
9834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9841 # Check whether --with-tags or --without-tags was given.
9842 if test "${with_tags+set}" = set; then
9843 withval="$with_tags"
9847 if test -f "$ltmain" && test -n "$tagnames"; then
9848 if test ! -f "${ofile}"; then
9849 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9850 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9853 if test -z "$LTCC"; then
9854 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9855 if test -z "$LTCC"; then
9856 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9857 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9860 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9864 # Extract list of available tagged configurations in $ofile.
9865 # Note that this assumes the entire list is on one line.
9866 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9869 for tagname in $tagnames; do
9871 # Check whether tagname contains only valid characters
9872 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9874 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9875 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9876 { (exit 1); exit 1; }; }
9880 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9882 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9883 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9884 { (exit 1); exit 1; }; }
9887 # Update the list of available tags.
9888 if test -n "$tagname"; then
9889 echo appending configuration tag \"$tagname\" to $ofile
9893 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9894 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9895 (test "X$CXX" != "Xg++"))) ; then
9897 ac_cpp='$CXXCPP $CPPFLAGS'
9898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9905 archive_cmds_need_lc_CXX=no
9906 allow_undefined_flag_CXX=
9907 always_export_symbols_CXX=no
9908 archive_expsym_cmds_CXX=
9909 export_dynamic_flag_spec_CXX=
9910 hardcode_direct_CXX=no
9911 hardcode_libdir_flag_spec_CXX=
9912 hardcode_libdir_flag_spec_ld_CXX=
9913 hardcode_libdir_separator_CXX=
9914 hardcode_minus_L_CXX=no
9915 hardcode_automatic_CXX=no
9917 module_expsym_cmds_CXX=
9918 link_all_deplibs_CXX=unknown
9919 old_archive_cmds_CXX=$old_archive_cmds
9920 no_undefined_flag_CXX=
9921 whole_archive_flag_spec_CXX=
9922 enable_shared_with_static_runtimes_CXX=no
9924 # Dependencies to place before and after the object being linked:
9926 postdep_objects_CXX=
9929 compiler_lib_search_path_CXX=
9931 # Source file extension for C++ test sources.
9934 # Object file extension for compiled C++ test sources.
9938 # Code to be used in simple compile tests
9939 lt_simple_compile_test_code="int some_variable = 0;\n"
9941 # Code to be used in simple link tests
9942 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9946 # If no C compiler was specified, use CC.
9949 # Allow CC to be a program name with arguments.
9953 # save warnings/boilerplate of simple test code
9954 ac_outfile=conftest.$ac_objext
9955 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9957 _lt_compiler_boilerplate=`cat conftest.err`
9960 ac_outfile=conftest.$ac_objext
9961 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9963 _lt_linker_boilerplate=`cat conftest.err`
9967 # Allow CC to be a program name with arguments.
9972 lt_save_with_gnu_ld=$with_gnu_ld
9973 lt_save_path_LD=$lt_cv_path_LD
9974 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9975 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9977 unset lt_cv_prog_gnu_ld
9979 if test -n "${lt_cv_path_LDCXX+set}"; then
9980 lt_cv_path_LD=$lt_cv_path_LDCXX
9984 test -z "${LDCXX+set}" || LD=$LDCXX
9988 for cc_temp in $compiler""; do
9990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9996 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9999 # We don't want -fno-exception wen compiling C++ code, so set the
10000 # no_builtin_flag separately
10001 if test "$GXX" = yes; then
10002 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10004 lt_prog_compiler_no_builtin_flag_CXX=
10007 if test "$GXX" = yes; then
10008 # Set up default GNU C++ configuration
10011 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10012 if test "${with_gnu_ld+set}" = set; then
10013 withval="$with_gnu_ld"
10014 test "$withval" = no || with_gnu_ld=yes
10019 if test "$GCC" = yes; then
10020 # Check if gcc -print-prog-name=ld gives a path.
10021 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10022 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10025 # gcc leaves a trailing carriage return which upsets mingw
10026 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10028 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10031 # Accept absolute paths.
10033 re_direlt='/[^/][^/]*/\.\./'
10034 # Canonicalize the pathname of ld
10035 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10036 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10037 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10039 test -z "$LD" && LD="$ac_prog"
10042 # If it fails, then pretend we aren't using GCC.
10046 # If it is relative, then search for the first ld in PATH.
10047 with_gnu_ld=unknown
10050 elif test "$with_gnu_ld" = yes; then
10051 echo "$as_me:$LINENO: checking for GNU ld" >&5
10052 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10054 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10055 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10057 if test "${lt_cv_path_LD+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 if test -z "$LD"; then
10061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10062 for ac_dir in $PATH; do
10064 test -z "$ac_dir" && ac_dir=.
10065 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10066 lt_cv_path_LD="$ac_dir/$ac_prog"
10067 # Check to see if the program is GNU ld. I'd rather use --version,
10068 # but apparently some variants of GNU ld only accept -v.
10069 # Break only if it was the GNU/non-GNU ld that we prefer.
10070 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10071 *GNU* | *'with BFD'*)
10072 test "$with_gnu_ld" != no && break
10075 test "$with_gnu_ld" != yes && break
10082 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10086 LD="$lt_cv_path_LD"
10087 if test -n "$LD"; then
10088 echo "$as_me:$LINENO: result: $LD" >&5
10089 echo "${ECHO_T}$LD" >&6
10091 echo "$as_me:$LINENO: result: no" >&5
10092 echo "${ECHO_T}no" >&6
10094 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10095 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10096 { (exit 1); exit 1; }; }
10097 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10098 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10099 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10103 case `$LD -v 2>&1 </dev/null` in
10104 *GNU* | *'with BFD'*)
10105 lt_cv_prog_gnu_ld=yes
10108 lt_cv_prog_gnu_ld=no
10112 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10113 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10114 with_gnu_ld=$lt_cv_prog_gnu_ld
10118 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10119 # archiving commands below assume that GNU ld is being used.
10120 if test "$with_gnu_ld" = yes; then
10121 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122 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'
10124 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10125 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10127 # If archive_cmds runs LD, not CC, wlarc should be empty
10128 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10129 # investigate it a little bit more. (MM)
10132 # ancient GNU ld didn't support --whole-archive et. al.
10133 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10134 grep 'no-whole-archive' > /dev/null; then
10135 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10137 whole_archive_flag_spec_CXX=
10143 # A generic and very simple default shared library creation
10144 # command for GNU C++ for the case where it uses the native
10145 # linker, instead of GNU ld. If possible, this setting should
10146 # overridden to take advantage of the native linker features on
10147 # the platform it is being used on.
10148 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10151 # Commands to make compiler produce verbose output that lists
10152 # what "hidden" libraries, object files and flags are used when
10153 # linking a shared library.
10154 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10162 # PORTME: fill in a description of your system's C++ link characteristics
10163 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10164 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10168 # FIXME: insert proper C++ library support
10172 if test "$host_cpu" = ia64; then
10173 # On IA64, the linker does run time linking by default, so we don't
10174 # have to do anything special.
10175 aix_use_runtimelinking=no
10176 exp_sym_flag='-Bexport'
10179 aix_use_runtimelinking=no
10181 # Test if we are trying to use run time linking or normal
10182 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10183 # need to do runtime linking.
10184 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10185 for ld_flag in $LDFLAGS; do
10188 aix_use_runtimelinking=yes
10195 exp_sym_flag='-bexport'
10196 no_entry_flag='-bnoentry'
10199 # When large executables or shared objects are built, AIX ld can
10200 # have problems creating the table of contents. If linking a library
10201 # or program results in "error TOC overflow" add -mminimal-toc to
10202 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10203 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10205 archive_cmds_CXX=''
10206 hardcode_direct_CXX=yes
10207 hardcode_libdir_separator_CXX=':'
10208 link_all_deplibs_CXX=yes
10210 if test "$GXX" = yes; then
10211 case $host_os in aix4.[012]|aix4.[012].*)
10212 # We only want to do this on AIX 4.2 and lower, the check
10213 # below for broken collect2 doesn't work under 4.3+
10214 collect2name=`${CC} -print-prog-name=collect2`
10215 if test -f "$collect2name" && \
10216 strings "$collect2name" | grep resolve_lib_name >/dev/null
10218 # We have reworked collect2
10219 hardcode_direct_CXX=yes
10221 # We have old collect2
10222 hardcode_direct_CXX=unsupported
10223 # It fails to find uninstalled libraries when the uninstalled
10224 # path is not listed in the libpath. Setting hardcode_minus_L
10225 # to unsupported forces relinking
10226 hardcode_minus_L_CXX=yes
10227 hardcode_libdir_flag_spec_CXX='-L$libdir'
10228 hardcode_libdir_separator_CXX=
10231 shared_flag='-shared'
10232 if test "$aix_use_runtimelinking" = yes; then
10233 shared_flag="$shared_flag "'${wl}-G'
10237 if test "$host_cpu" = ia64; then
10238 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10239 # chokes on -Wl,-G. The following line is correct:
10242 if test "$aix_use_runtimelinking" = yes; then
10243 shared_flag='${wl}-G'
10245 shared_flag='${wl}-bM:SRE'
10250 # It seems that -bexpall does not export symbols beginning with
10251 # underscore (_), so it is better to generate a list of symbols to export.
10252 always_export_symbols_CXX=yes
10253 if test "$aix_use_runtimelinking" = yes; then
10254 # Warning - without using the other runtime loading flags (-brtl),
10255 # -berok will link without error, but may produce a broken library.
10256 allow_undefined_flag_CXX='-berok'
10257 # Determine the default libpath from the value encoded in an empty executable.
10258 cat >conftest.$ac_ext <<_ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10273 rm -f conftest.$ac_objext conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>conftest.er1
10277 grep -v '^ *+' conftest.er1 >conftest.err
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -z "$ac_cxx_werror_flag"
10283 || test ! -s conftest.err'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try='test -s conftest$ac_exeext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10298 # Check for a 64-bit object if we didn't find anything.
10299 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; }
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10306 rm -f conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10312 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"
10314 if test "$host_cpu" = ia64; then
10315 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10316 allow_undefined_flag_CXX="-z nodefs"
10317 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"
10319 # Determine the default libpath from the value encoded in an empty executable.
10320 cat >conftest.$ac_ext <<_ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337 (eval $ac_link) 2>conftest.er1
10339 grep -v '^ *+' conftest.er1 >conftest.err
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try='test -z "$ac_cxx_werror_flag"
10345 || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest$ac_exeext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10360 # Check for a 64-bit object if we didn't find anything.
10361 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; }
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10368 rm -f conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10372 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10373 # Warning - without using the other run time loading flags,
10374 # -berok will link without error, but may produce a broken library.
10375 no_undefined_flag_CXX=' ${wl}-bernotok'
10376 allow_undefined_flag_CXX=' ${wl}-berok'
10377 # -bexpall does not export symbols beginning with underscore (_)
10378 always_export_symbols_CXX=yes
10379 # Exported symbols can be pulled into shared objects from archives
10380 whole_archive_flag_spec_CXX=' '
10381 archive_cmds_need_lc_CXX=yes
10382 # This is similar to how AIX traditionally builds its shared libraries.
10383 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'
10388 case $cc_basename in
10390 # FIXME: insert proper C++ library support
10397 cygwin* | mingw* | pw32*)
10398 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10399 # as there is no search path for DLLs.
10400 hardcode_libdir_flag_spec_CXX='-L$libdir'
10401 allow_undefined_flag_CXX=unsupported
10402 always_export_symbols_CXX=no
10403 enable_shared_with_static_runtimes_CXX=yes
10405 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10406 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'
10407 # If the export-symbols file already is a .def file (1st line
10408 # is EXPORTS), use it as is; otherwise, prepend...
10409 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10410 cp $export_symbols $output_objdir/$soname.def;
10412 echo EXPORTS > $output_objdir/$soname.def;
10413 cat $export_symbols >> $output_objdir/$soname.def;
10415 $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'
10420 darwin* | rhapsody*)
10422 rhapsody* | darwin1.[012])
10423 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10426 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10427 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10429 case ${MACOSX_DEPLOYMENT_TARGET} in
10431 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10434 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10440 archive_cmds_need_lc_CXX=no
10441 hardcode_direct_CXX=no
10442 hardcode_automatic_CXX=yes
10443 hardcode_shlibpath_var_CXX=unsupported
10444 whole_archive_flag_spec_CXX=''
10445 link_all_deplibs_CXX=yes
10447 if test "$GXX" = yes ; then
10448 lt_int_apple_cc_single_mod=no
10449 output_verbose_link_cmd='echo'
10450 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10451 lt_int_apple_cc_single_mod=yes
10453 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10454 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10456 archive_cmds_CXX='$CC -r -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'
10458 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10460 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10461 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}'
10463 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10465 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}'
10467 case $cc_basename in
10469 output_verbose_link_cmd='echo'
10470 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10471 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10472 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10473 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10474 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}'
10484 case $cc_basename in
10486 # FIXME: insert proper C++ library support
10490 # Green Hills C++ Compiler
10491 # FIXME: insert proper C++ library support
10495 # FIXME: insert proper C++ library support
10501 # C++ shared libraries reported to be fairly broken before switch to ELF
10505 archive_cmds_need_lc_CXX=no
10507 freebsd* | kfreebsd*-gnu | dragonfly*)
10508 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10516 hardcode_libdir_separator_CXX=:
10517 export_dynamic_flag_spec_CXX='${wl}-E'
10518 hardcode_direct_CXX=yes
10519 hardcode_minus_L_CXX=yes # Not in the search PATH,
10520 # but as the default
10521 # location of the library.
10523 case $cc_basename in
10525 # FIXME: insert proper C++ library support
10529 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'
10530 # Commands to make compiler produce verbose output that lists
10531 # what "hidden" libraries, object files and flags are used when
10532 # linking a shared library.
10534 # There doesn't appear to be a way to prevent this compiler from
10535 # explicitly linking system object files so we need to strip them
10536 # from the output so that they don't get included in the library
10538 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'
10541 if test "$GXX" = yes; then
10542 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'
10544 # FIXME: insert proper C++ library support
10551 if test $with_gnu_ld = no; then
10554 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10555 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10556 hardcode_libdir_separator_CXX=:
10559 hardcode_libdir_flag_spec_CXX='-L$libdir'
10562 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10563 hardcode_libdir_separator_CXX=:
10564 export_dynamic_flag_spec_CXX='${wl}-E'
10570 hardcode_direct_CXX=no
10571 hardcode_shlibpath_var_CXX=no
10574 hardcode_direct_CXX=no
10575 hardcode_shlibpath_var_CXX=no
10576 hardcode_minus_L_CXX=yes # Not in the search PATH,
10577 # but as the default
10578 # location of the library.
10581 hardcode_direct_CXX=yes
10582 hardcode_minus_L_CXX=yes # Not in the search PATH,
10583 # but as the default
10584 # location of the library.
10588 case $cc_basename in
10590 # FIXME: insert proper C++ library support
10596 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10599 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10602 # Commands to make compiler produce verbose output that lists
10603 # what "hidden" libraries, object files and flags are used when
10604 # linking a shared library.
10606 # There doesn't appear to be a way to prevent this compiler from
10607 # explicitly linking system object files so we need to strip them
10608 # from the output so that they don't get included in the library
10610 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'
10613 if test "$GXX" = yes; then
10614 if test $with_gnu_ld = no; then
10617 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10620 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'
10625 # FIXME: insert proper C++ library support
10632 case $cc_basename in
10635 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 ${output_objdir}/so_locations -o $lib'
10637 # Archives containing C++ object files must be created using
10638 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10639 # necessary to make sure instantiated templates are included
10641 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10644 if test "$GXX" = yes; then
10645 if test "$with_gnu_ld" = no; then
10646 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}${output_objdir}/so_locations -o $lib'
10648 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'
10651 link_all_deplibs_CXX=yes
10654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10655 hardcode_libdir_separator_CXX=:
10658 case $cc_basename in
10660 # Kuck and Associates, Inc. (KAI) C++ Compiler
10662 # KCC will only create a shared library if the output file
10663 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10664 # to its proper name (with version) after linking.
10665 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'
10666 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'
10667 # Commands to make compiler produce verbose output that lists
10668 # what "hidden" libraries, object files and flags are used when
10669 # linking a shared library.
10671 # There doesn't appear to be a way to prevent this compiler from
10672 # explicitly linking system object files so we need to strip them
10673 # from the output so that they don't get included in the library
10675 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'
10677 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10680 # Archives containing C++ object files must be created using
10681 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10682 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10687 # version 8.0 and above of icpc choke on multiply defined symbols
10688 # if we add $predep_objects and $postdep_objects, however 7.1 and
10689 # earlier do not add the objects themselves.
10690 case `$CC -V 2>&1` in
10692 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693 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'
10695 *) # Version 8.0 or newer
10698 ia64*) tmp_idyn=' -i_dynamic';;
10700 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10701 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10704 archive_cmds_need_lc_CXX=no
10705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10707 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10710 # Portland Group C++ compiler
10711 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10712 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10714 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10716 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10721 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'
10723 runpath_var=LD_RUN_PATH
10724 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10725 hardcode_libdir_separator_CXX=:
10727 # Commands to make compiler produce verbose output that lists
10728 # what "hidden" libraries, object files and flags are used when
10729 # linking a shared library.
10731 # There doesn't appear to be a way to prevent this compiler from
10732 # explicitly linking system object files so we need to strip them
10733 # from the output so that they don't get included in the library
10735 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'
10740 # FIXME: insert proper C++ library support
10744 # FIXME: insert proper C++ library support
10748 case $cc_basename in
10750 # FIXME: insert proper C++ library support
10754 # FIXME: insert proper C++ library support
10760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10761 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10763 hardcode_libdir_flag_spec_CXX='-R$libdir'
10764 hardcode_direct_CXX=yes
10765 hardcode_shlibpath_var_CXX=no
10767 # Workaround some broken pre-1.5 toolchains
10768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10771 # C++ shared libraries are fairly broken
10775 hardcode_direct_CXX=yes
10776 hardcode_shlibpath_var_CXX=no
10777 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10780 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10781 export_dynamic_flag_spec_CXX='${wl}-E'
10782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10784 output_verbose_link_cmd='echo'
10787 case $cc_basename in
10789 # Kuck and Associates, Inc. (KAI) C++ Compiler
10791 # KCC will only create a shared library if the output file
10792 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10793 # to its proper name (with version) after linking.
10794 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'
10796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10797 hardcode_libdir_separator_CXX=:
10799 # Archives containing C++ object files must be created using
10800 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10801 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10805 # Rational C++ 2.4.1
10806 # FIXME: insert proper C++ library support
10810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10811 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 ${output_objdir}/so_locations -o $lib'
10813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10814 hardcode_libdir_separator_CXX=:
10816 # Commands to make compiler produce verbose output that lists
10817 # what "hidden" libraries, object files and flags are used when
10818 # linking a shared library.
10820 # There doesn't appear to be a way to prevent this compiler from
10821 # explicitly linking system object files so we need to strip them
10822 # from the output so that they don't get included in the library
10824 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'
10827 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10828 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10829 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}${output_objdir}/so_locations -o $lib'
10831 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10832 hardcode_libdir_separator_CXX=:
10834 # Commands to make compiler produce verbose output that lists
10835 # what "hidden" libraries, object files and flags are used when
10836 # linking a shared library.
10837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10840 # FIXME: insert proper C++ library support
10847 case $cc_basename in
10849 # Kuck and Associates, Inc. (KAI) C++ Compiler
10851 # KCC will only create a shared library if the output file
10852 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10853 # to its proper name (with version) after linking.
10854 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'
10856 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10857 hardcode_libdir_separator_CXX=:
10859 # Archives containing C++ object files must be created using
10860 # the KAI C++ compiler.
10861 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10864 # Rational C++ 2.4.1
10865 # FIXME: insert proper C++ library support
10869 allow_undefined_flag_CXX=' -expect_unresolved \*'
10870 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 ${output_objdir}/so_locations -o $lib'
10871 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10872 echo "-hidden">> $lib.exp~
10873 $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 ${output_objdir}/so_locations -o $lib~
10876 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10877 hardcode_libdir_separator_CXX=:
10879 # Commands to make compiler produce verbose output that lists
10880 # what "hidden" libraries, object files and flags are used when
10881 # linking a shared library.
10883 # There doesn't appear to be a way to prevent this compiler from
10884 # explicitly linking system object files so we need to strip them
10885 # from the output so that they don't get included in the library
10887 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'
10890 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10891 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10892 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}${output_objdir}/so_locations -o $lib'
10894 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10895 hardcode_libdir_separator_CXX=:
10897 # Commands to make compiler produce verbose output that lists
10898 # what "hidden" libraries, object files and flags are used when
10899 # linking a shared library.
10900 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10903 # FIXME: insert proper C++ library support
10910 # FIXME: insert proper C++ library support
10914 archive_cmds_need_lc_CXX=no
10915 case $cc_basename in
10917 # FIXME: insert proper C++ library support
10921 # FIXME: insert proper C++ library support
10927 case $cc_basename in
10930 # FIXME: insert proper C++ library support
10935 # FIXME: insert proper C++ library support
10939 # FIXME: insert proper C++ library support
10945 case $cc_basename in
10947 # Sun C++ 4.2, 5.x and Centerline C++
10948 archive_cmds_need_lc_CXX=yes
10949 no_undefined_flag_CXX=' -zdefs'
10950 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10951 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10952 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10954 hardcode_libdir_flag_spec_CXX='-R$libdir'
10955 hardcode_shlibpath_var_CXX=no
10957 solaris2.[0-5] | solaris2.[0-5].*) ;;
10959 # The C++ compiler is used as linker so we must use $wl
10960 # flag to pass the commands to the underlying system
10961 # linker. We must also pass each convience library through
10962 # to the system linker between allextract/defaultextract.
10963 # The C++ compiler will combine linker options so we
10964 # cannot just pass the convience library names through
10966 # Supported since Solaris 2.6 (maybe 2.5.1?)
10967 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10970 link_all_deplibs_CXX=yes
10972 output_verbose_link_cmd='echo'
10974 # Archives containing C++ object files must be created using
10975 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10976 # necessary to make sure instantiated templates are included
10978 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10981 # Green Hills C++ Compiler
10982 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10984 # The C++ compiler must be used to create the archive.
10985 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10988 # GNU C++ compiler with Solaris linker
10989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10990 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10991 if $CC --version | grep -v '^2\.7' > /dev/null; then
10992 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10993 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10994 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10996 # Commands to make compiler produce verbose output that lists
10997 # what "hidden" libraries, object files and flags are used when
10998 # linking a shared library.
10999 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11001 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11003 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11004 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11005 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11007 # Commands to make compiler produce verbose output that lists
11008 # what "hidden" libraries, object files and flags are used when
11009 # linking a shared library.
11010 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11013 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11018 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11019 archive_cmds_need_lc_CXX=no
11022 case $cc_basename in
11024 # NonStop-UX NCC 3.20
11025 # FIXME: insert proper C++ library support
11029 # FIXME: insert proper C++ library support
11035 # FIXME: insert proper C++ library support
11039 # FIXME: insert proper C++ library support
11043 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11044 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11045 test "$ld_shlibs_CXX" = no && can_build_shared=no
11051 cat > conftest.$ac_ext <<EOF
11055 Foo (void) { a = 0; }
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062 (eval $ac_compile) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; then
11066 # Parse the compiler output and extract the necessary
11067 # objects, libraries and library flags.
11069 # Sentinel used to keep track of whether or not we are before
11070 # the conftest object file.
11071 pre_test_object_deps_done=no
11073 # The `*' in the case matches for architectures that use `case' in
11074 # $output_verbose_cmd can trigger glob expansion during the loop
11075 # eval without this substitution.
11076 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11078 for p in `eval $output_verbose_link_cmd`; do
11082 # Some compilers place space between "-{L,R}" and the path.
11083 # Remove the space.
11084 if test $p = "-L" \
11085 || test $p = "-R"; then
11092 if test "$pre_test_object_deps_done" = no; then
11095 # Internal compiler library paths should come after those
11096 # provided the user. The postdeps already come after the
11097 # user supplied libs so there is no need to process them.
11098 if test -z "$compiler_lib_search_path_CXX"; then
11099 compiler_lib_search_path_CXX="${prev}${p}"
11101 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11104 # The "-l" case would never come before the object being
11105 # linked, so don't bother handling this case.
11108 if test -z "$postdeps_CXX"; then
11109 postdeps_CXX="${prev}${p}"
11111 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11117 # This assumes that the test object file only shows up
11118 # once in the compiler output.
11119 if test "$p" = "conftest.$objext"; then
11120 pre_test_object_deps_done=yes
11124 if test "$pre_test_object_deps_done" = no; then
11125 if test -z "$predep_objects_CXX"; then
11126 predep_objects_CXX="$p"
11128 predep_objects_CXX="$predep_objects_CXX $p"
11131 if test -z "$postdep_objects_CXX"; then
11132 postdep_objects_CXX="$p"
11134 postdep_objects_CXX="$postdep_objects_CXX $p"
11139 *) ;; # Ignore the rest.
11147 echo "libtool.m4: error: problem compiling CXX test program"
11150 $rm -f confest.$objext
11152 # PORTME: override above test on systems where it is broken
11155 case $cc_basename in
11157 # Adding this requires a known-good setup of shared libraries for
11158 # Sun compiler versions before 5.6, else PIC objects from an old
11159 # archive will be linked into the output, leading to subtle bugs.
11160 postdeps_CXX='-lCstd -lCrun'
11166 case " $postdeps_CXX " in
11167 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11170 lt_prog_compiler_wl_CXX=
11171 lt_prog_compiler_pic_CXX=
11172 lt_prog_compiler_static_CXX=
11174 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11177 # C++ specific cases for pic, static, wl, etc.
11178 if test "$GXX" = yes; then
11179 lt_prog_compiler_wl_CXX='-Wl,'
11180 lt_prog_compiler_static_CXX='-static'
11184 # All AIX code is PIC.
11185 if test "$host_cpu" = ia64; then
11186 # AIX 5 now supports IA64 processor
11187 lt_prog_compiler_static_CXX='-Bstatic'
11191 # FIXME: we need at least 68020 code to build shared libraries, but
11192 # adding the `-m68020' flag to GCC prevents building anything better,
11194 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11196 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11197 # PIC is the default for these OSes.
11199 mingw* | os2* | pw32*)
11200 # This hack is so that the source file can tell whether it is being
11201 # built for inclusion in a dll (and should export symbols for example).
11202 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11204 darwin* | rhapsody*)
11205 # PIC is the default on this platform
11206 # Common symbols not allowed in MH_DYLIB files
11207 lt_prog_compiler_pic_CXX='-fno-common'
11210 # DJGPP does not support shared libraries at all
11211 lt_prog_compiler_pic_CXX=
11214 if test -d /usr/nec; then
11215 lt_prog_compiler_pic_CXX=-Kconform_pic
11219 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11220 # not for PA HP-UX.
11225 lt_prog_compiler_pic_CXX='-fPIC'
11230 lt_prog_compiler_pic_CXX='-fPIC'
11236 # All AIX code is PIC.
11237 if test "$host_cpu" = ia64; then
11238 # AIX 5 now supports IA64 processor
11239 lt_prog_compiler_static_CXX='-Bstatic'
11241 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11245 case $cc_basename in
11247 # Green Hills C++ Compiler
11248 # _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"
11253 # PIC is the default on this platform
11254 # Common symbols not allowed in MH_DYLIB files
11255 case $cc_basename in
11257 lt_prog_compiler_pic_CXX='-qnocommon'
11258 lt_prog_compiler_wl_CXX='-Wl,'
11263 case $cc_basename in
11265 lt_prog_compiler_pic_CXX='-KPIC'
11268 # Green Hills C++ Compiler
11269 lt_prog_compiler_pic_CXX='-pic'
11275 freebsd* | kfreebsd*-gnu | dragonfly*)
11276 # FreeBSD uses GNU C++
11278 hpux9* | hpux10* | hpux11*)
11279 case $cc_basename in
11281 lt_prog_compiler_wl_CXX='-Wl,'
11282 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11283 if test "$host_cpu" != ia64; then
11284 lt_prog_compiler_pic_CXX='+Z'
11288 lt_prog_compiler_wl_CXX='-Wl,'
11289 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11295 lt_prog_compiler_pic_CXX='+Z'
11303 irix5* | irix6* | nonstopux*)
11304 case $cc_basename in
11306 lt_prog_compiler_wl_CXX='-Wl,'
11307 lt_prog_compiler_static_CXX='-non_shared'
11308 # CC pic flag -KPIC is the default.
11315 case $cc_basename in
11318 lt_prog_compiler_wl_CXX='--backend -Wl,'
11319 lt_prog_compiler_pic_CXX='-fPIC'
11323 lt_prog_compiler_wl_CXX='-Wl,'
11324 lt_prog_compiler_pic_CXX='-KPIC'
11325 lt_prog_compiler_static_CXX='-static'
11328 # Portland Group C++ compiler.
11329 lt_prog_compiler_wl_CXX='-Wl,'
11330 lt_prog_compiler_pic_CXX='-fpic'
11331 lt_prog_compiler_static_CXX='-Bstatic'
11335 # Make sure the PIC flag is empty. It appears that all Alpha
11336 # Linux and Compaq Tru64 Unix objects are PIC.
11337 lt_prog_compiler_pic_CXX=
11338 lt_prog_compiler_static_CXX='-non_shared'
11349 case $cc_basename in
11351 lt_prog_compiler_pic_CXX='-W c,exportall'
11359 osf3* | osf4* | osf5*)
11360 case $cc_basename in
11362 lt_prog_compiler_wl_CXX='--backend -Wl,'
11365 # Rational C++ 2.4.1
11366 lt_prog_compiler_pic_CXX='-pic'
11369 # Digital/Compaq C++
11370 lt_prog_compiler_wl_CXX='-Wl,'
11371 # Make sure the PIC flag is empty. It appears that all Alpha
11372 # Linux and Compaq Tru64 Unix objects are PIC.
11373 lt_prog_compiler_pic_CXX=
11374 lt_prog_compiler_static_CXX='-non_shared'
11383 case $cc_basename in
11385 lt_prog_compiler_pic_CXX='-fPIC'
11392 case $cc_basename in
11394 # Sun C++ 4.2, 5.x and Centerline C++
11395 lt_prog_compiler_pic_CXX='-KPIC'
11396 lt_prog_compiler_static_CXX='-Bstatic'
11397 lt_prog_compiler_wl_CXX='-Qoption ld '
11400 # Green Hills C++ Compiler
11401 lt_prog_compiler_pic_CXX='-PIC'
11408 case $cc_basename in
11411 lt_prog_compiler_pic_CXX='-pic'
11412 lt_prog_compiler_static_CXX='-Bstatic'
11416 lt_prog_compiler_pic_CXX='-pic'
11423 case $cc_basename in
11425 # NonStop-UX NCC 3.20
11426 lt_prog_compiler_pic_CXX='-KPIC'
11437 lt_prog_compiler_can_build_shared_CXX=no
11442 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11443 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11446 # Check to make sure the PIC flag actually works.
11448 if test -n "$lt_prog_compiler_pic_CXX"; then
11450 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11451 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11452 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 lt_prog_compiler_pic_works_CXX=no
11456 ac_outfile=conftest.$ac_objext
11457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11458 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11459 # Insert the option either (1) after the last *FLAGS variable, or
11460 # (2) before a word containing "conftest.", or (3) at the end.
11461 # Note that $ac_compile itself does not contain backslashes and begins
11462 # with a dollar sign (not a hyphen), so the echo should work correctly.
11463 # The option is referenced via a variable to avoid confusing sed.
11464 lt_compile=`echo "$ac_compile" | $SED \
11465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11467 -e 's:$: $lt_compiler_flag:'`
11468 (eval echo "\"\$as_me:11468: $lt_compile\"" >&5)
11469 (eval "$lt_compile" 2>conftest.err)
11471 cat conftest.err >&5
11472 echo "$as_me:11472: \$? = $ac_status" >&5
11473 if (exit $ac_status) && test -s "$ac_outfile"; then
11474 # The compiler can only warn and ignore the option if not recognized
11475 # So say no if there are warnings other than the usual output.
11476 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11477 $SED '/^$/d' conftest.err >conftest.er2
11478 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11479 lt_prog_compiler_pic_works_CXX=yes
11485 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11486 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11488 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11489 case $lt_prog_compiler_pic_CXX in
11491 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11494 lt_prog_compiler_pic_CXX=
11495 lt_prog_compiler_can_build_shared_CXX=no
11500 # For platforms which do not support PIC, -DPIC is meaningless:
11502 lt_prog_compiler_pic_CXX=
11505 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11509 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11510 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11511 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 lt_cv_prog_compiler_c_o_CXX=no
11515 $rm -r conftest 2>/dev/null
11519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11521 lt_compiler_flag="-o out/conftest2.$ac_objext"
11522 # Insert the option either (1) after the last *FLAGS variable, or
11523 # (2) before a word containing "conftest.", or (3) at the end.
11524 # Note that $ac_compile itself does not contain backslashes and begins
11525 # with a dollar sign (not a hyphen), so the echo should work correctly.
11526 lt_compile=`echo "$ac_compile" | $SED \
11527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11529 -e 's:$: $lt_compiler_flag:'`
11530 (eval echo "\"\$as_me:11530: $lt_compile\"" >&5)
11531 (eval "$lt_compile" 2>out/conftest.err)
11533 cat out/conftest.err >&5
11534 echo "$as_me:11534: \$? = $ac_status" >&5
11535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11537 # The compiler can only warn and ignore the option if not recognized
11538 # So say no if there are warnings
11539 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11540 $SED '/^$/d' out/conftest.err >out/conftest.er2
11541 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11542 lt_cv_prog_compiler_c_o_CXX=yes
11547 # SGI C++ compiler will create directory out/ii_files/ for
11548 # template instantiation
11549 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11550 $rm out/* && rmdir out
11556 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11557 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11560 hard_links="nottested"
11561 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11562 # do not overwrite the value of need_locks provided by the user
11563 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11564 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11569 ln conftest.a conftest.b 2>&5 || hard_links=no
11570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11571 echo "$as_me:$LINENO: result: $hard_links" >&5
11572 echo "${ECHO_T}$hard_links" >&6
11573 if test "$hard_links" = no; then
11574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11575 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11582 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11583 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11585 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11588 # If we're using GNU nm, then we don't want the "-C" option.
11589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11591 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'
11593 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'
11597 export_symbols_cmds_CXX="$ltdll_cmds"
11600 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11603 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11607 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11608 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11609 test "$ld_shlibs_CXX" = no && can_build_shared=no
11611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11612 if test "$GCC" = yes; then
11613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11617 # Do we need to explicitly link libc?
11619 case "x$archive_cmds_need_lc_CXX" in
11621 # Assume -lc should be added
11622 archive_cmds_need_lc_CXX=yes
11624 if test "$enable_shared" = yes && test "$GCC" = yes; then
11625 case $archive_cmds_CXX in
11627 # FIXME: we may have to deal with multi-command sequences.
11630 # Test whether the compiler implicitly links with -lc since on some
11631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11632 # to ld, don't add -lc before -lgcc.
11633 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11634 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639 (eval $ac_compile) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } 2>conftest.err; then
11645 libobjs=conftest.$ac_objext
11647 wl=$lt_prog_compiler_wl_CXX
11653 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11654 allow_undefined_flag_CXX=
11655 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11656 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }
11661 archive_cmds_need_lc_CXX=no
11663 archive_cmds_need_lc_CXX=yes
11665 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11667 cat conftest.err 1>&5
11670 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11671 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11678 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11679 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11680 library_names_spec=
11681 libname_spec='lib$name'
11685 postuninstall_cmds=
11689 shlibpath_overrides_runpath=unknown
11691 dynamic_linker="$host_os ld.so"
11692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11693 if test "$GCC" = yes; then
11694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11695 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11696 # if the path contains ";" then we assume it to be the separator
11697 # otherwise default to the standard path separator (i.e. ":") - it is
11698 # assumed that no part of a normal pathname contains ";" but that should
11699 # okay in the real world where ";" in dirpaths is itself problematic.
11700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11705 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11707 need_lib_prefix=unknown
11708 hardcode_into_libs=no
11710 # when you set need_version to no, make sure it does not cause -set_version
11711 # flags to be left without arguments
11712 need_version=unknown
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11718 shlibpath_var=LIBPATH
11720 # AIX 3 has no versioning support, so we append a major version to the name.
11721 soname_spec='${libname}${release}${shared_ext}$major'
11728 hardcode_into_libs=yes
11729 if test "$host_cpu" = ia64; then
11730 # AIX 5 supports IA64
11731 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11732 shlibpath_var=LD_LIBRARY_PATH
11734 # With GCC up to 2.95.x, collect2 would create an import file
11735 # for dependence libraries. The import file would start with
11736 # the line `#! .'. This would cause the generated library to
11737 # depend on `.', always an invalid library. This was fixed in
11738 # development snapshots of GCC prior to 3.0.
11740 aix4 | aix4.[01] | aix4.[01].*)
11741 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11743 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11746 can_build_shared=no
11750 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11751 # soname into executable. Probably we can add versioning support to
11752 # collect2, so additional links can be useful in future.
11753 if test "$aix_use_runtimelinking" = yes; then
11754 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11755 # instead of lib<name>.a to let people know that these are not
11756 # typical AIX shared libraries.
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759 # We preserve .a as extension for shared libraries through AIX4.2
11760 # and later when we are not doing run time linking.
11761 library_names_spec='${libname}${release}.a $libname.a'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11764 shlibpath_var=LIBPATH
11769 library_names_spec='$libname.ixlibrary $libname.a'
11770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11771 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'
11775 library_names_spec='${libname}${shared_ext}'
11776 dynamic_linker="$host_os ld.so"
11777 shlibpath_var=LIBRARY_PATH
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784 soname_spec='${libname}${release}${shared_ext}$major'
11785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11789 # the default ld.so.conf also contains /usr/contrib/lib and
11790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11791 # libtool to hard-code these into programs
11794 cygwin* | mingw* | pw32*)
11795 version_type=windows
11800 case $GCC,$host_os in
11801 yes,cygwin* | yes,mingw* | yes,pw32*)
11802 library_names_spec='$libname.dll.a'
11803 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11804 postinstall_cmds='base_file=`basename \${file}`~
11805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11806 dldir=$destdir/`dirname \$dlpath`~
11807 test -d \$dldir || mkdir -p \$dldir~
11808 $install_prog $dir/$dlname \$dldir/$dlname~
11809 chmod a+x \$dldir/$dlname'
11810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11811 dlpath=$dir/\$dldll~
11813 shlibpath_overrides_runpath=yes
11817 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11819 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11822 # MinGW DLLs use traditional 'lib' prefix
11823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11826 # It is most probably a Windows format PATH printed by
11827 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11828 # path with ; separators, and with drive letters. We can handle the
11829 # drive letters (cygwin fileutils understands them), so leave them,
11830 # especially as we might pass files found there to a mingw objdump,
11831 # which wouldn't understand a cygwinified path. Ahh.
11832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11838 # pw32 DLLs use 'pw' prefix rather than 'lib'
11839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11848 dynamic_linker='Win32 ld.exe'
11849 # FIXME: first we should search . and the directory the executable is in
11853 darwin* | rhapsody*)
11854 dynamic_linker="$host_os dyld"
11855 version_type=darwin
11858 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11859 soname_spec='${libname}${release}${major}$shared_ext'
11860 shlibpath_overrides_runpath=yes
11861 shlibpath_var=DYLD_LIBRARY_PATH
11862 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11863 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11864 if test "$GCC" = yes; then
11865 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"`
11867 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11869 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 shlibpath_var=LD_LIBRARY_PATH
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=no
11893 hardcode_into_libs=yes
11894 dynamic_linker='GNU ld.so'
11897 freebsd* | dragonfly*)
11898 # DragonFly does not have aout. When/if they implement a new
11899 # versioning mechanism, adjust this.
11900 if test -x /usr/bin/objformat; then
11901 objformat=`/usr/bin/objformat`
11904 freebsd[123]*) objformat=aout ;;
11905 *) objformat=elf ;;
11908 version_type=freebsd-$objformat
11909 case $version_type in
11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11920 shlibpath_var=LD_LIBRARY_PATH
11923 shlibpath_overrides_runpath=yes
11925 freebsd3.[01]* | freebsdelf3.[01]*)
11926 shlibpath_overrides_runpath=yes
11927 hardcode_into_libs=yes
11930 shlibpath_overrides_runpath=no
11931 hardcode_into_libs=yes
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11941 soname_spec='${libname}${release}${shared_ext}$major'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 hardcode_into_libs=yes
11946 hpux9* | hpux10* | hpux11*)
11947 # Give a soname corresponding to the major version so that dld.sl refuses to
11948 # link against other versions.
11955 hardcode_into_libs=yes
11956 dynamic_linker="$host_os dld.so"
11957 shlibpath_var=LD_LIBRARY_PATH
11958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11960 soname_spec='${libname}${release}${shared_ext}$major'
11961 if test "X$HPUX_IA64_MODE" = X32; then
11962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11970 hardcode_into_libs=yes
11971 dynamic_linker="$host_os dld.sl"
11972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11975 soname_spec='${libname}${release}${shared_ext}$major'
11976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11981 dynamic_linker="$host_os dld.sl"
11982 shlibpath_var=SHLIB_PATH
11983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985 soname_spec='${libname}${release}${shared_ext}$major'
11988 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11989 postinstall_cmds='chmod 555 $lib'
11992 irix5* | irix6* | nonstopux*)
11994 nonstopux*) version_type=nonstopux ;;
11996 if test "$lt_cv_prog_gnu_ld" = yes; then
12004 soname_spec='${libname}${release}${shared_ext}$major'
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12007 irix5* | nonstopux*)
12008 libsuff= shlibsuff=
12011 case $LD in # libtool.m4 will add one of these switches to LD
12012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12013 libsuff= shlibsuff= libmagic=32-bit;;
12014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12015 libsuff=32 shlibsuff=N32 libmagic=N32;;
12016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12018 *) libsuff= shlibsuff= libmagic=never-match;;
12022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12023 shlibpath_overrides_runpath=no
12024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12026 hardcode_into_libs=yes
12029 # No shared lib support for Linux oldld, aout, or coff.
12030 linux*oldld* | linux*aout* | linux*coff*)
12034 # This must be Linux ELF.
12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040 soname_spec='${libname}${release}${shared_ext}$major'
12041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 shlibpath_overrides_runpath=no
12044 # This implies no fast_install, which is unacceptable.
12045 # Some rework will be needed to allow for fast_install
12046 # before this can be enabled.
12047 hardcode_into_libs=yes
12049 # Append ld.so.conf contents to the search path
12050 if test -f /etc/ld.so.conf; then
12051 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12055 # We used to test for /lib/ld.so.1 and disable shared libraries on
12056 # powerpc, because MkLinux only supported shared libraries with the
12057 # GNU dynamic linker. Since this was broken with cross compilers,
12058 # most powerpc-linux boxes support dynamic linking these days and
12059 # people can always --disable-shared, the test was removed, and we
12060 # assume the GNU/Linux dynamic linker is in use.
12061 dynamic_linker='GNU/Linux ld.so'
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12069 soname_spec='${libname}${release}${shared_ext}$major'
12070 shlibpath_var=LD_LIBRARY_PATH
12071 shlibpath_overrides_runpath=no
12072 hardcode_into_libs=yes
12073 dynamic_linker='GNU ld.so'
12080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12083 dynamic_linker='NetBSD (a.out) ld.so'
12085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12086 soname_spec='${libname}${release}${shared_ext}$major'
12087 dynamic_linker='NetBSD ld.elf_so'
12089 shlibpath_var=LD_LIBRARY_PATH
12090 shlibpath_overrides_runpath=yes
12091 hardcode_into_libs=yes
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 shlibpath_var=LD_LIBRARY_PATH
12098 shlibpath_overrides_runpath=yes
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106 soname_spec='${libname}${release}${shared_ext}$major'
12107 shlibpath_var=LD_LIBRARY_PATH
12108 shlibpath_overrides_runpath=yes
12114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12117 *) need_version=no ;;
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12121 shlibpath_var=LD_LIBRARY_PATH
12122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12124 openbsd2.[89] | openbsd2.[89].*)
12125 shlibpath_overrides_runpath=no
12128 shlibpath_overrides_runpath=yes
12132 shlibpath_overrides_runpath=yes
12137 libname_spec='$name'
12140 library_names_spec='$libname${shared_ext} $libname.a'
12141 dynamic_linker='OS/2 ld.exe'
12142 shlibpath_var=LIBPATH
12145 osf3* | osf4* | osf5*)
12149 soname_spec='${libname}${release}${shared_ext}$major'
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 shlibpath_var=LD_LIBRARY_PATH
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12168 soname_spec='${libname}${release}${shared_ext}$major'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 shlibpath_overrides_runpath=yes
12171 hardcode_into_libs=yes
12172 # ldd complains unless libraries are executable
12173 postinstall_cmds='chmod +x $lib'
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 shlibpath_overrides_runpath=yes
12182 if test "$with_gnu_ld" = yes; then
12188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12191 soname_spec='${libname}${release}${shared_ext}$major'
12192 shlibpath_var=LD_LIBRARY_PATH
12193 case $host_vendor in
12195 shlibpath_overrides_runpath=no
12197 export_dynamic_flag_spec='${wl}-Blargedynsym'
12198 runpath_var=LD_RUN_PATH
12206 shlibpath_overrides_runpath=no
12207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12213 if test -d /usr/nec ;then
12215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12216 soname_spec='$libname${shared_ext}.$major'
12217 shlibpath_var=LD_LIBRARY_PATH
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 shlibpath_var=LD_LIBRARY_PATH
12232 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12233 echo "${ECHO_T}$dynamic_linker" >&6
12234 test "$dynamic_linker" = no && can_build_shared=no
12236 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12237 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12238 hardcode_action_CXX=
12239 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12240 test -n "$runpath_var_CXX" || \
12241 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12243 # We can hardcode non-existant directories.
12244 if test "$hardcode_direct_CXX" != no &&
12245 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12246 # have to relink, otherwise we might link with an installed library
12247 # when we should be linking with a yet-to-be-installed one
12248 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12249 test "$hardcode_minus_L_CXX" != no; then
12250 # Linking always hardcodes the temporary library directory.
12251 hardcode_action_CXX=relink
12253 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12254 hardcode_action_CXX=immediate
12257 # We cannot hardcode anything, or else we can only hardcode existing
12259 hardcode_action_CXX=unsupported
12261 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12262 echo "${ECHO_T}$hardcode_action_CXX" >&6
12264 if test "$hardcode_action_CXX" = relink; then
12265 # Fast installation is not supported
12266 enable_fast_install=no
12267 elif test "$shlibpath_overrides_runpath" = yes ||
12268 test "$enable_shared" = no; then
12269 # Fast installation is not necessary
12270 enable_fast_install=needless
12275 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12276 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12277 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12278 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12279 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12280 echo "$as_me:$LINENO: result: yes" >&5
12281 echo "${ECHO_T}yes" >&6
12283 # FIXME - insert some real tests, host_os isn't really good enough
12286 if test -n "$STRIP" ; then
12287 striplib="$STRIP -x"
12288 echo "$as_me:$LINENO: result: yes" >&5
12289 echo "${ECHO_T}yes" >&6
12291 echo "$as_me:$LINENO: result: no" >&5
12292 echo "${ECHO_T}no" >&6
12296 echo "$as_me:$LINENO: result: no" >&5
12297 echo "${ECHO_T}no" >&6
12302 if test "x$enable_dlopen" != xyes; then
12303 enable_dlopen=unknown
12304 enable_dlopen_self=unknown
12305 enable_dlopen_self_static=unknown
12312 lt_cv_dlopen="load_add_on"
12314 lt_cv_dlopen_self=yes
12318 lt_cv_dlopen="LoadLibrary"
12323 lt_cv_dlopen="dlopen"
12328 # if libdl is installed we need to link against it
12329 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12330 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12331 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 ac_check_lib_save_LIBS=$LIBS
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12343 /* Override any gcc2 internal prototype to avoid an error. */
12347 /* We use char because int might match the return type of a gcc2
12348 builtin and then its argument prototype would still apply. */
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>conftest.er1
12362 grep -v '^ *+' conftest.er1 >conftest.err
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_cxx_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 ac_cv_lib_dl_dlopen=yes
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 ac_cv_lib_dl_dlopen=no
12387 rm -f conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389 LIBS=$ac_check_lib_save_LIBS
12391 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12392 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12393 if test $ac_cv_lib_dl_dlopen = yes; then
12394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12397 lt_cv_dlopen="dyld"
12399 lt_cv_dlopen_self=yes
12406 echo "$as_me:$LINENO: checking for shl_load" >&5
12407 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12408 if test "${ac_cv_func_shl_load+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12419 #define shl_load innocuous_shl_load
12421 /* System header to define __stub macros and hopefully few prototypes,
12422 which can conflict with char shl_load (); below.
12423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424 <limits.h> exists even on freestanding compilers. */
12427 # include <limits.h>
12429 # include <assert.h>
12434 /* Override any gcc2 internal prototype to avoid an error. */
12439 /* We use char because int might match the return type of a gcc2
12440 builtin and then its argument prototype would still apply. */
12442 /* The GNU C library defines this for functions which it implements
12443 to always fail with ENOSYS. Some functions are actually named
12444 something starting with __ and the normal name is an alias. */
12445 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12448 char (*f) () = shl_load;
12457 return f != shl_load;
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_cxx_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_cv_func_shl_load=yes
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 ac_cv_func_shl_load=no
12491 rm -f conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12494 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12495 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12496 if test $ac_cv_func_shl_load = yes; then
12497 lt_cv_dlopen="shl_load"
12499 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12500 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12501 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 ac_check_lib_save_LIBS=$LIBS
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12513 /* Override any gcc2 internal prototype to avoid an error. */
12517 /* We use char because int might match the return type of a gcc2
12518 builtin and then its argument prototype would still apply. */
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530 (eval $ac_link) 2>conftest.er1
12532 grep -v '^ *+' conftest.er1 >conftest.err
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -z "$ac_cxx_werror_flag"
12538 || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest$ac_exeext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_lib_dld_shl_load=yes
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_cv_lib_dld_shl_load=no
12557 rm -f conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12559 LIBS=$ac_check_lib_save_LIBS
12561 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12562 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12563 if test $ac_cv_lib_dld_shl_load = yes; then
12564 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12566 echo "$as_me:$LINENO: checking for dlopen" >&5
12567 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12568 if test "${ac_cv_func_dlopen+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 cat >conftest.$ac_ext <<_ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12579 #define dlopen innocuous_dlopen
12581 /* System header to define __stub macros and hopefully few prototypes,
12582 which can conflict with char dlopen (); below.
12583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584 <limits.h> exists even on freestanding compilers. */
12587 # include <limits.h>
12589 # include <assert.h>
12594 /* Override any gcc2 internal prototype to avoid an error. */
12599 /* We use char because int might match the return type of a gcc2
12600 builtin and then its argument prototype would still apply. */
12602 /* The GNU C library defines this for functions which it implements
12603 to always fail with ENOSYS. Some functions are actually named
12604 something starting with __ and the normal name is an alias. */
12605 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12608 char (*f) () = dlopen;
12617 return f != dlopen;
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624 (eval $ac_link) 2>conftest.er1
12626 grep -v '^ *+' conftest.er1 >conftest.err
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_cxx_werror_flag"
12632 || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest$ac_exeext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_cv_func_dlopen=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_cv_func_dlopen=no
12651 rm -f conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12654 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12655 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12656 if test $ac_cv_func_dlopen = yes; then
12657 lt_cv_dlopen="dlopen"
12659 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12660 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 ac_check_lib_save_LIBS=$LIBS
12666 cat >conftest.$ac_ext <<_ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12673 /* Override any gcc2 internal prototype to avoid an error. */
12677 /* We use char because int might match the return type of a gcc2
12678 builtin and then its argument prototype would still apply. */
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690 (eval $ac_link) 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_cxx_werror_flag"
12698 || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_lib_dl_dlopen=yes
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 ac_cv_lib_dl_dlopen=no
12717 rm -f conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_check_lib_save_LIBS
12721 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12722 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12723 if test $ac_cv_lib_dl_dlopen = yes; then
12724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12726 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12727 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12728 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 ac_check_lib_save_LIBS=$LIBS
12732 LIBS="-lsvld $LIBS"
12733 cat >conftest.$ac_ext <<_ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12740 /* Override any gcc2 internal prototype to avoid an error. */
12744 /* We use char because int might match the return type of a gcc2
12745 builtin and then its argument prototype would still apply. */
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757 (eval $ac_link) 2>conftest.er1
12759 grep -v '^ *+' conftest.er1 >conftest.err
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_cxx_werror_flag"
12765 || test ! -s conftest.err'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; } &&
12771 { ac_try='test -s conftest$ac_exeext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_cv_lib_svld_dlopen=yes
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12782 ac_cv_lib_svld_dlopen=no
12784 rm -f conftest.err conftest.$ac_objext \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12788 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12789 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12790 if test $ac_cv_lib_svld_dlopen = yes; then
12791 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12793 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12794 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12795 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 ac_check_lib_save_LIBS=$LIBS
12800 cat >conftest.$ac_ext <<_ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12807 /* Override any gcc2 internal prototype to avoid an error. */
12811 /* We use char because int might match the return type of a gcc2
12812 builtin and then its argument prototype would still apply. */
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>conftest.er1
12826 grep -v '^ *+' conftest.er1 >conftest.err
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_cxx_werror_flag"
12832 || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest$ac_exeext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 ac_cv_lib_dld_dld_link=yes
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12849 ac_cv_lib_dld_dld_link=no
12851 rm -f conftest.err conftest.$ac_objext \
12852 conftest$ac_exeext conftest.$ac_ext
12853 LIBS=$ac_check_lib_save_LIBS
12855 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12856 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12857 if test $ac_cv_lib_dld_dld_link = yes; then
12858 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12879 if test "x$lt_cv_dlopen" != xno; then
12885 case $lt_cv_dlopen in
12887 save_CPPFLAGS="$CPPFLAGS"
12888 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12890 save_LDFLAGS="$LDFLAGS"
12891 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12894 LIBS="$lt_cv_dlopen_libs $LIBS"
12896 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12897 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12898 if test "${lt_cv_dlopen_self+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 if test "$cross_compiling" = yes; then :
12902 lt_cv_dlopen_self=cross
12904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12905 lt_status=$lt_dlunknown
12906 cat > conftest.$ac_ext <<EOF
12907 #line 12907 "configure"
12908 #include "confdefs.h"
12917 # define LT_DLGLOBAL RTLD_GLOBAL
12920 # define LT_DLGLOBAL DL_GLOBAL
12922 # define LT_DLGLOBAL 0
12926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12927 find out it does not work in some platform. */
12928 #ifndef LT_DLLAZY_OR_NOW
12930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12933 # define LT_DLLAZY_OR_NOW DL_LAZY
12936 # define LT_DLLAZY_OR_NOW RTLD_NOW
12939 # define LT_DLLAZY_OR_NOW DL_NOW
12941 # define LT_DLLAZY_OR_NOW 0
12949 extern "C" void exit (int);
12952 void fnord() { int i=42;}
12955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12956 int status = $lt_dlunknown;
12960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12961 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12962 /* dlclose (self); */
12968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12969 (eval $ac_link) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12973 (./conftest; exit; ) >&5 2>/dev/null
12975 case x$lt_status in
12976 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12977 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12978 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12981 # compilation failed
12982 lt_cv_dlopen_self=no
12989 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12990 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12992 if test "x$lt_cv_dlopen_self" = xyes; then
12993 LDFLAGS="$LDFLAGS $link_static_flag"
12994 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12995 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12996 if test "${lt_cv_dlopen_self_static+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 if test "$cross_compiling" = yes; then :
13000 lt_cv_dlopen_self_static=cross
13002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13003 lt_status=$lt_dlunknown
13004 cat > conftest.$ac_ext <<EOF
13005 #line 13005 "configure"
13006 #include "confdefs.h"
13015 # define LT_DLGLOBAL RTLD_GLOBAL
13018 # define LT_DLGLOBAL DL_GLOBAL
13020 # define LT_DLGLOBAL 0
13024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13025 find out it does not work in some platform. */
13026 #ifndef LT_DLLAZY_OR_NOW
13028 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13031 # define LT_DLLAZY_OR_NOW DL_LAZY
13034 # define LT_DLLAZY_OR_NOW RTLD_NOW
13037 # define LT_DLLAZY_OR_NOW DL_NOW
13039 # define LT_DLLAZY_OR_NOW 0
13047 extern "C" void exit (int);
13050 void fnord() { int i=42;}
13053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13054 int status = $lt_dlunknown;
13058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13059 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13060 /* dlclose (self); */
13066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067 (eval $ac_link) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13071 (./conftest; exit; ) >&5 2>/dev/null
13073 case x$lt_status in
13074 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13075 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13076 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13079 # compilation failed
13080 lt_cv_dlopen_self_static=no
13087 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13088 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13091 CPPFLAGS="$save_CPPFLAGS"
13092 LDFLAGS="$save_LDFLAGS"
13097 case $lt_cv_dlopen_self in
13098 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13099 *) enable_dlopen_self=unknown ;;
13102 case $lt_cv_dlopen_self_static in
13103 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13104 *) enable_dlopen_self_static=unknown ;;
13109 # The else clause should only fire when bootstrapping the
13110 # libtool distribution, otherwise you forgot to ship ltmain.sh
13111 # with your package, and you will get complaints that there are
13112 # no rules to generate ltmain.sh.
13113 if test -f "$ltmain"; then
13114 # See if we are running on zsh, and set the options which allow our commands through
13115 # without removal of \ escapes.
13116 if test -n "${ZSH_VERSION+set}" ; then
13117 setopt NO_GLOB_SUBST
13119 # Now quote all the things that may contain metacharacters while being
13120 # careful not to overquote the AC_SUBSTed values. We take copies of the
13121 # variables and quote the copies for generation of the libtool script.
13122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13126 deplibs_check_method reload_flag reload_cmds need_locks \
13127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13128 lt_cv_sys_global_symbol_to_c_name_address \
13129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13130 old_postinstall_cmds old_postuninstall_cmds \
13134 lt_prog_compiler_wl_CXX \
13135 lt_prog_compiler_pic_CXX \
13136 lt_prog_compiler_static_CXX \
13137 lt_prog_compiler_no_builtin_flag_CXX \
13138 export_dynamic_flag_spec_CXX \
13139 thread_safe_flag_spec_CXX \
13140 whole_archive_flag_spec_CXX \
13141 enable_shared_with_static_runtimes_CXX \
13142 old_archive_cmds_CXX \
13143 old_archive_from_new_cmds_CXX \
13144 predep_objects_CXX \
13145 postdep_objects_CXX \
13148 compiler_lib_search_path_CXX \
13150 archive_expsym_cmds_CXX \
13151 postinstall_cmds_CXX \
13152 postuninstall_cmds_CXX \
13153 old_archive_from_expsyms_cmds_CXX \
13154 allow_undefined_flag_CXX \
13155 no_undefined_flag_CXX \
13156 export_symbols_cmds_CXX \
13157 hardcode_libdir_flag_spec_CXX \
13158 hardcode_libdir_flag_spec_ld_CXX \
13159 hardcode_libdir_separator_CXX \
13160 hardcode_automatic_CXX \
13162 module_expsym_cmds_CXX \
13163 lt_cv_prog_compiler_c_o_CXX \
13164 exclude_expsyms_CXX \
13165 include_expsyms_CXX; do
13168 old_archive_cmds_CXX | \
13169 old_archive_from_new_cmds_CXX | \
13170 archive_cmds_CXX | \
13171 archive_expsym_cmds_CXX | \
13172 module_cmds_CXX | \
13173 module_expsym_cmds_CXX | \
13174 old_archive_from_expsyms_cmds_CXX | \
13175 export_symbols_cmds_CXX | \
13176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13177 postinstall_cmds | postuninstall_cmds | \
13178 old_postinstall_cmds | old_postuninstall_cmds | \
13179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13180 # Double-quote double-evaled strings.
13181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13190 *'\$0 --fallback-echo"')
13191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13197 cat <<__EOF__ >> "$cfgfile"
13198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13202 # Shell to use when invoking shell scripts.
13205 # Whether or not to build shared libraries.
13206 build_libtool_libs=$enable_shared
13208 # Whether or not to build static libraries.
13209 build_old_libs=$enable_static
13211 # Whether or not to add -lc for building shared libraries.
13212 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13214 # Whether or not to disallow shared libs when runtime libs are static
13215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13217 # Whether or not to optimize for fast installation.
13218 fast_install=$enable_fast_install
13221 host_alias=$host_alias
13225 # The build system.
13226 build_alias=$build_alias
13230 # An echo program that does not interpret backslashes.
13235 AR_FLAGS=$lt_AR_FLAGS
13240 # A language-specific compiler.
13241 CC=$lt_compiler_CXX
13243 # Is the compiler the GNU C compiler?
13249 # The linker used to build libraries.
13252 # Whether we need hard or soft links.
13255 # A BSD-compatible nm program.
13258 # A symbol stripping program
13261 # Used to examine libraries when file_magic_cmd begins "file"
13262 MAGIC_CMD=$MAGIC_CMD
13264 # Used on cygwin: DLL creation program.
13267 # Used on cygwin: object dumper.
13270 # Used on cygwin: assembler.
13273 # The name of the directory that contains temporary libtool files.
13276 # How to create reloadable object files.
13277 reload_flag=$lt_reload_flag
13278 reload_cmds=$lt_reload_cmds
13280 # How to pass a linker flag through the compiler.
13281 wl=$lt_lt_prog_compiler_wl_CXX
13283 # Object file suffix (normally "o").
13284 objext="$ac_objext"
13286 # Old archive suffix (normally "a").
13289 # Shared library suffix (normally ".so").
13290 shrext_cmds='$shrext_cmds'
13292 # Executable file suffix (normally "").
13295 # Additional compiler flags for building library objects.
13296 pic_flag=$lt_lt_prog_compiler_pic_CXX
13299 # What is the maximum length of a command?
13300 max_cmd_len=$lt_cv_sys_max_cmd_len
13302 # Does compiler simultaneously support -c and -o options?
13303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13305 # Must we lock files when doing compilation?
13306 need_locks=$lt_need_locks
13308 # Do we need the lib prefix for modules?
13309 need_lib_prefix=$need_lib_prefix
13311 # Do we need a version for libraries?
13312 need_version=$need_version
13314 # Whether dlopen is supported.
13315 dlopen_support=$enable_dlopen
13317 # Whether dlopen of programs is supported.
13318 dlopen_self=$enable_dlopen_self
13320 # Whether dlopen of statically linked programs is supported.
13321 dlopen_self_static=$enable_dlopen_self_static
13323 # Compiler flag to prevent dynamic linking.
13324 link_static_flag=$lt_lt_prog_compiler_static_CXX
13326 # Compiler flag to turn off builtin functions.
13327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13329 # Compiler flag to allow reflexive dlopens.
13330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13332 # Compiler flag to generate shared objects directly from archives.
13333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13335 # Compiler flag to generate thread-safe objects.
13336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13338 # Library versioning type.
13339 version_type=$version_type
13341 # Format of library name prefix.
13342 libname_spec=$lt_libname_spec
13344 # List of archive names. First name is the real one, the rest are links.
13345 # The last name is the one that the linker finds with -lNAME.
13346 library_names_spec=$lt_library_names_spec
13348 # The coded name of the library, if different from the real name.
13349 soname_spec=$lt_soname_spec
13351 # Commands used to build and install an old-style archive.
13353 old_archive_cmds=$lt_old_archive_cmds_CXX
13354 old_postinstall_cmds=$lt_old_postinstall_cmds
13355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13357 # Create an old-style archive from a shared archive.
13358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13360 # Create a temporary old-style archive to link instead of a shared archive.
13361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13363 # Commands used to build and install a shared archive.
13364 archive_cmds=$lt_archive_cmds_CXX
13365 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13366 postinstall_cmds=$lt_postinstall_cmds
13367 postuninstall_cmds=$lt_postuninstall_cmds
13369 # Commands used to build a loadable module (assumed same as above if empty)
13370 module_cmds=$lt_module_cmds_CXX
13371 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13373 # Commands to strip libraries.
13374 old_striplib=$lt_old_striplib
13375 striplib=$lt_striplib
13377 # Dependencies to place before the objects being linked to create a
13379 predep_objects=$lt_predep_objects_CXX
13381 # Dependencies to place after the objects being linked to create a
13383 postdep_objects=$lt_postdep_objects_CXX
13385 # Dependencies to place before the objects being linked to create a
13387 predeps=$lt_predeps_CXX
13389 # Dependencies to place after the objects being linked to create a
13391 postdeps=$lt_postdeps_CXX
13393 # The library search path used internally by the compiler when linking
13394 # a shared library.
13395 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13397 # Method to check whether dependent libraries are shared objects.
13398 deplibs_check_method=$lt_deplibs_check_method
13400 # Command to use when deplibs_check_method == file_magic.
13401 file_magic_cmd=$lt_file_magic_cmd
13403 # Flag that allows shared libraries with undefined symbols to be built.
13404 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13406 # Flag that forces no undefined symbols.
13407 no_undefined_flag=$lt_no_undefined_flag_CXX
13409 # Commands used to finish a libtool library installation in a directory.
13410 finish_cmds=$lt_finish_cmds
13412 # Same as above, but a single script fragment to be evaled but not shown.
13413 finish_eval=$lt_finish_eval
13415 # Take the output of nm and produce a listing of raw symbols and C names.
13416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13418 # Transform the output of nm in a proper C declaration
13419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13421 # Transform the output of nm in a C name address pair
13422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13424 # This is the shared library runtime path variable.
13425 runpath_var=$runpath_var
13427 # This is the shared library path variable.
13428 shlibpath_var=$shlibpath_var
13430 # Is shlibpath searched before the hard-coded library search path?
13431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13433 # How to hardcode a shared library path into an executable.
13434 hardcode_action=$hardcode_action_CXX
13436 # Whether we should hardcode library paths into libraries.
13437 hardcode_into_libs=$hardcode_into_libs
13439 # Flag to hardcode \$libdir into a binary during linking.
13440 # This must work even if \$libdir does not exist.
13441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13443 # If ld is used when linking, flag to hardcode \$libdir into
13444 # a binary during linking. This must work even if \$libdir does
13446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13448 # Whether we need a single -rpath flag with a separated argument.
13449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13452 # resulting binary.
13453 hardcode_direct=$hardcode_direct_CXX
13455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13456 # resulting binary.
13457 hardcode_minus_L=$hardcode_minus_L_CXX
13459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13460 # the resulting binary.
13461 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13463 # Set to yes if building a shared library automatically hardcodes DIR into the library
13464 # and all subsequent libraries and executables linked against it.
13465 hardcode_automatic=$hardcode_automatic_CXX
13467 # Variables whose values should be saved in libtool wrapper scripts and
13468 # restored at relink time.
13469 variables_saved_for_relink="$variables_saved_for_relink"
13471 # Whether libtool must link a program against all its dependency libraries.
13472 link_all_deplibs=$link_all_deplibs_CXX
13474 # Compile-time system search path for libraries
13475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13477 # Run-time system search path for libraries
13478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13480 # Fix the shell variable \$srcfile for the compiler.
13481 fix_srcfile_path="$fix_srcfile_path_CXX"
13483 # Set to yes if exported symbols are required.
13484 always_export_symbols=$always_export_symbols_CXX
13486 # The commands to list exported symbols.
13487 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13489 # The commands to extract the exported symbol list from a shared archive.
13490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13492 # Symbols that should not be listed in the preloaded symbols.
13493 exclude_expsyms=$lt_exclude_expsyms_CXX
13495 # Symbols that must always be exported.
13496 include_expsyms=$lt_include_expsyms_CXX
13498 # ### END LIBTOOL TAG CONFIG: $tagname
13504 # If there is no Makefile yet, we rely on a make rule to execute
13505 # `config.status --recheck' to rerun these tests and create the
13506 # libtool script then.
13507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13508 if test -f "$ltmain_in"; then
13509 test -f Makefile && make "$ltmain"
13515 ac_cpp='$CPP $CPPFLAGS'
13516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13524 with_gnu_ldcxx=$with_gnu_ld
13525 with_gnu_ld=$lt_save_with_gnu_ld
13526 lt_cv_path_LDCXX=$lt_cv_path_LD
13527 lt_cv_path_LD=$lt_save_path_LD
13528 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13529 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13537 if test -n "$F77" && test "X$F77" != "Xno"; then
13540 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13541 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13542 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13545 archive_cmds_need_lc_F77=no
13546 allow_undefined_flag_F77=
13547 always_export_symbols_F77=no
13548 archive_expsym_cmds_F77=
13549 export_dynamic_flag_spec_F77=
13550 hardcode_direct_F77=no
13551 hardcode_libdir_flag_spec_F77=
13552 hardcode_libdir_flag_spec_ld_F77=
13553 hardcode_libdir_separator_F77=
13554 hardcode_minus_L_F77=no
13555 hardcode_automatic_F77=no
13557 module_expsym_cmds_F77=
13558 link_all_deplibs_F77=unknown
13559 old_archive_cmds_F77=$old_archive_cmds
13560 no_undefined_flag_F77=
13561 whole_archive_flag_spec_F77=
13562 enable_shared_with_static_runtimes_F77=no
13564 # Source file extension for f77 test sources.
13567 # Object file extension for compiled f77 test sources.
13571 # Code to be used in simple compile tests
13572 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13574 # Code to be used in simple link tests
13575 lt_simple_link_test_code=" program t\n end\n"
13577 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13579 # If no C compiler was specified, use CC.
13582 # Allow CC to be a program name with arguments.
13586 # save warnings/boilerplate of simple test code
13587 ac_outfile=conftest.$ac_objext
13588 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13590 _lt_compiler_boilerplate=`cat conftest.err`
13593 ac_outfile=conftest.$ac_objext
13594 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13596 _lt_linker_boilerplate=`cat conftest.err`
13600 # Allow CC to be a program name with arguments.
13605 for cc_temp in $compiler""; do
13607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13613 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13616 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13617 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13618 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13619 echo "${ECHO_T}$can_build_shared" >&6
13621 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13622 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13623 test "$can_build_shared" = "no" && enable_shared=no
13625 # On AIX, shared libraries and static libraries use the same namespace, and
13626 # are all built from PIC.
13629 test "$enable_shared" = yes && enable_static=no
13630 if test -n "$RANLIB"; then
13631 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13632 postinstall_cmds='$RANLIB $lib'
13636 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13637 test "$enable_shared" = yes && enable_static=no
13641 echo "$as_me:$LINENO: result: $enable_shared" >&5
13642 echo "${ECHO_T}$enable_shared" >&6
13644 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13645 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13646 # Make sure either enable_shared or enable_static is yes.
13647 test "$enable_shared" = yes || enable_static=yes
13648 echo "$as_me:$LINENO: result: $enable_static" >&5
13649 echo "${ECHO_T}$enable_static" >&6
13651 test "$ld_shlibs_F77" = no && can_build_shared=no
13656 lt_prog_compiler_wl_F77=
13657 lt_prog_compiler_pic_F77=
13658 lt_prog_compiler_static_F77=
13660 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13661 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13663 if test "$GCC" = yes; then
13664 lt_prog_compiler_wl_F77='-Wl,'
13665 lt_prog_compiler_static_F77='-static'
13669 # All AIX code is PIC.
13670 if test "$host_cpu" = ia64; then
13671 # AIX 5 now supports IA64 processor
13672 lt_prog_compiler_static_F77='-Bstatic'
13677 # FIXME: we need at least 68020 code to build shared libraries, but
13678 # adding the `-m68020' flag to GCC prevents building anything better,
13680 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13683 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13684 # PIC is the default for these OSes.
13687 mingw* | pw32* | os2*)
13688 # This hack is so that the source file can tell whether it is being
13689 # built for inclusion in a dll (and should export symbols for example).
13690 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13693 darwin* | rhapsody*)
13694 # PIC is the default on this platform
13695 # Common symbols not allowed in MH_DYLIB files
13696 lt_prog_compiler_pic_F77='-fno-common'
13700 # Just because we use GCC doesn't mean we suddenly get shared libraries
13701 # on systems that don't support them.
13702 lt_prog_compiler_can_build_shared_F77=no
13707 if test -d /usr/nec; then
13708 lt_prog_compiler_pic_F77=-Kconform_pic
13713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13714 # not for PA HP-UX.
13720 lt_prog_compiler_pic_F77='-fPIC'
13726 lt_prog_compiler_pic_F77='-fPIC'
13730 # PORTME Check for flag to pass linker flags through the system compiler.
13733 lt_prog_compiler_wl_F77='-Wl,'
13734 if test "$host_cpu" = ia64; then
13735 # AIX 5 now supports IA64 processor
13736 lt_prog_compiler_static_F77='-Bstatic'
13738 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13742 # PIC is the default on this platform
13743 # Common symbols not allowed in MH_DYLIB files
13744 case $cc_basename in
13746 lt_prog_compiler_pic_F77='-qnocommon'
13747 lt_prog_compiler_wl_F77='-Wl,'
13752 mingw* | pw32* | os2*)
13753 # This hack is so that the source file can tell whether it is being
13754 # built for inclusion in a dll (and should export symbols for example).
13755 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13758 hpux9* | hpux10* | hpux11*)
13759 lt_prog_compiler_wl_F77='-Wl,'
13760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13761 # not for PA HP-UX.
13767 lt_prog_compiler_pic_F77='+Z'
13770 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13771 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13774 irix5* | irix6* | nonstopux*)
13775 lt_prog_compiler_wl_F77='-Wl,'
13776 # PIC (with -KPIC) is the default.
13777 lt_prog_compiler_static_F77='-non_shared'
13781 lt_prog_compiler_pic_F77='-KPIC'
13782 lt_prog_compiler_static_F77='-Bstatic'
13786 case $cc_basename in
13788 lt_prog_compiler_wl_F77='-Wl,'
13789 lt_prog_compiler_pic_F77='-KPIC'
13790 lt_prog_compiler_static_F77='-static'
13792 pgcc* | pgf77* | pgf90* | pgf95*)
13793 # Portland Group compilers (*not* the Pentium gcc compiler,
13794 # which looks to be a dead project)
13795 lt_prog_compiler_wl_F77='-Wl,'
13796 lt_prog_compiler_pic_F77='-fpic'
13797 lt_prog_compiler_static_F77='-Bstatic'
13800 lt_prog_compiler_wl_F77='-Wl,'
13801 # All Alpha code is PIC.
13802 lt_prog_compiler_static_F77='-non_shared'
13807 osf3* | osf4* | osf5*)
13808 lt_prog_compiler_wl_F77='-Wl,'
13809 # All OSF/1 code is PIC.
13810 lt_prog_compiler_static_F77='-non_shared'
13814 lt_prog_compiler_pic_F77='-Kpic'
13815 lt_prog_compiler_static_F77='-dn'
13819 lt_prog_compiler_pic_F77='-KPIC'
13820 lt_prog_compiler_static_F77='-Bstatic'
13821 case $cc_basename in
13822 f77* | f90* | f95*)
13823 lt_prog_compiler_wl_F77='-Qoption ld ';;
13825 lt_prog_compiler_wl_F77='-Wl,';;
13830 lt_prog_compiler_wl_F77='-Qoption ld '
13831 lt_prog_compiler_pic_F77='-PIC'
13832 lt_prog_compiler_static_F77='-Bstatic'
13835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13836 lt_prog_compiler_wl_F77='-Wl,'
13837 lt_prog_compiler_pic_F77='-KPIC'
13838 lt_prog_compiler_static_F77='-Bstatic'
13842 if test -d /usr/nec ;then
13843 lt_prog_compiler_pic_F77='-Kconform_pic'
13844 lt_prog_compiler_static_F77='-Bstatic'
13849 lt_prog_compiler_wl_F77='-Wl,'
13850 lt_prog_compiler_can_build_shared_F77=no
13854 lt_prog_compiler_pic_F77='-pic'
13855 lt_prog_compiler_static_F77='-Bstatic'
13859 lt_prog_compiler_can_build_shared_F77=no
13864 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13865 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13868 # Check to make sure the PIC flag actually works.
13870 if test -n "$lt_prog_compiler_pic_F77"; then
13872 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13873 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13874 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 lt_prog_compiler_pic_works_F77=no
13878 ac_outfile=conftest.$ac_objext
13879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13880 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13881 # Insert the option either (1) after the last *FLAGS variable, or
13882 # (2) before a word containing "conftest.", or (3) at the end.
13883 # Note that $ac_compile itself does not contain backslashes and begins
13884 # with a dollar sign (not a hyphen), so the echo should work correctly.
13885 # The option is referenced via a variable to avoid confusing sed.
13886 lt_compile=`echo "$ac_compile" | $SED \
13887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13889 -e 's:$: $lt_compiler_flag:'`
13890 (eval echo "\"\$as_me:13890: $lt_compile\"" >&5)
13891 (eval "$lt_compile" 2>conftest.err)
13893 cat conftest.err >&5
13894 echo "$as_me:13894: \$? = $ac_status" >&5
13895 if (exit $ac_status) && test -s "$ac_outfile"; then
13896 # The compiler can only warn and ignore the option if not recognized
13897 # So say no if there are warnings other than the usual output.
13898 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13899 $SED '/^$/d' conftest.err >conftest.er2
13900 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13901 lt_prog_compiler_pic_works_F77=yes
13907 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13908 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13910 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13911 case $lt_prog_compiler_pic_F77 in
13913 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13916 lt_prog_compiler_pic_F77=
13917 lt_prog_compiler_can_build_shared_F77=no
13922 # For platforms which do not support PIC, -DPIC is meaningless:
13924 lt_prog_compiler_pic_F77=
13927 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13931 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13932 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13933 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 lt_cv_prog_compiler_c_o_F77=no
13937 $rm -r conftest 2>/dev/null
13941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13943 lt_compiler_flag="-o out/conftest2.$ac_objext"
13944 # Insert the option either (1) after the last *FLAGS variable, or
13945 # (2) before a word containing "conftest.", or (3) at the end.
13946 # Note that $ac_compile itself does not contain backslashes and begins
13947 # with a dollar sign (not a hyphen), so the echo should work correctly.
13948 lt_compile=`echo "$ac_compile" | $SED \
13949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13951 -e 's:$: $lt_compiler_flag:'`
13952 (eval echo "\"\$as_me:13952: $lt_compile\"" >&5)
13953 (eval "$lt_compile" 2>out/conftest.err)
13955 cat out/conftest.err >&5
13956 echo "$as_me:13956: \$? = $ac_status" >&5
13957 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13959 # The compiler can only warn and ignore the option if not recognized
13960 # So say no if there are warnings
13961 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13962 $SED '/^$/d' out/conftest.err >out/conftest.er2
13963 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13964 lt_cv_prog_compiler_c_o_F77=yes
13969 # SGI C++ compiler will create directory out/ii_files/ for
13970 # template instantiation
13971 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13972 $rm out/* && rmdir out
13978 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13979 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13982 hard_links="nottested"
13983 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13984 # do not overwrite the value of need_locks provided by the user
13985 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13986 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13991 ln conftest.a conftest.b 2>&5 || hard_links=no
13992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13993 echo "$as_me:$LINENO: result: $hard_links" >&5
13994 echo "${ECHO_T}$hard_links" >&6
13995 if test "$hard_links" = no; then
13996 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13997 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14004 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14005 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14008 allow_undefined_flag_F77=
14009 enable_shared_with_static_runtimes_F77=no
14011 archive_expsym_cmds_F77=
14012 old_archive_From_new_cmds_F77=
14013 old_archive_from_expsyms_cmds_F77=
14014 export_dynamic_flag_spec_F77=
14015 whole_archive_flag_spec_F77=
14016 thread_safe_flag_spec_F77=
14017 hardcode_libdir_flag_spec_F77=
14018 hardcode_libdir_flag_spec_ld_F77=
14019 hardcode_libdir_separator_F77=
14020 hardcode_direct_F77=no
14021 hardcode_minus_L_F77=no
14022 hardcode_shlibpath_var_F77=unsupported
14023 link_all_deplibs_F77=unknown
14024 hardcode_automatic_F77=no
14026 module_expsym_cmds_F77=
14027 always_export_symbols_F77=no
14028 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14029 # include_expsyms should be a list of space-separated symbols to be *always*
14030 # included in the symbol list
14031 include_expsyms_F77=
14032 # exclude_expsyms can be an extended regexp of symbols to exclude
14033 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14034 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14035 # as well as any symbol that contains `d'.
14036 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14037 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14038 # platforms (ab)use it in PIC code, but their linkers get confused if
14039 # the symbol is explicitly referenced. Since portable code cannot
14040 # rely on this symbol name, it's probably fine to never include it in
14041 # preloaded symbol tables.
14042 extract_expsyms_cmds=
14043 # Just being paranoid about ensuring that cc_basename is set.
14044 for cc_temp in $compiler""; do
14046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14052 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14055 cygwin* | mingw* | pw32*)
14056 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14057 # When not using gcc, we currently assume that we are using
14058 # Microsoft Visual C++.
14059 if test "$GCC" != yes; then
14069 if test "$with_gnu_ld" = yes; then
14070 # If archive_cmds runs LD, not CC, wlarc should be empty
14073 # Set some defaults for GNU ld with shared library support. These
14074 # are reset later if shared libraries are not supported. Putting them
14075 # here allows them to be overridden if necessary.
14076 runpath_var=LD_RUN_PATH
14077 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14078 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14079 # ancient GNU ld didn't support --whole-archive et. al.
14080 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14081 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14083 whole_archive_flag_spec_F77=
14085 supports_anon_versioning=no
14086 case `$LD -v 2>/dev/null` in
14087 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14088 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14089 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14090 *\ 2.11.*) ;; # other 2.11 versions
14091 *) supports_anon_versioning=yes ;;
14094 # See if GNU ld supports shared libraries.
14096 aix3* | aix4* | aix5*)
14097 # On AIX/PPC, the GNU linker is very broken
14098 if test "$host_cpu" != ia64; then
14102 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14103 *** to be unable to reliably create shared libraries on AIX.
14104 *** Therefore, libtool is disabling shared libraries support. If you
14105 *** really care for shared libraries, you may want to modify your PATH
14106 *** so that a non-GNU linker is found, and then restart.
14113 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)'
14114 hardcode_libdir_flag_spec_F77='-L$libdir'
14115 hardcode_minus_L_F77=yes
14117 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14118 # that the semantics of dynamic libraries on AmigaOS, at least up
14119 # to version 4, is to share data among multiple programs linked
14120 # with the same dynamic library. Since this doesn't match the
14121 # behavior of shared libraries on other platforms, we can't use
14127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14128 allow_undefined_flag_F77=unsupported
14129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14130 # support --undefined. This deserves some investigation. FIXME
14131 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14137 cygwin* | mingw* | pw32*)
14138 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14139 # as there is no search path for DLLs.
14140 hardcode_libdir_flag_spec_F77='-L$libdir'
14141 allow_undefined_flag_F77=unsupported
14142 always_export_symbols_F77=no
14143 enable_shared_with_static_runtimes_F77=yes
14144 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14146 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14147 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14148 # If the export-symbols file already is a .def file (1st line
14149 # is EXPORTS), use it as is; otherwise, prepend...
14150 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14151 cp $export_symbols $output_objdir/$soname.def;
14153 echo EXPORTS > $output_objdir/$soname.def;
14154 cat $export_symbols >> $output_objdir/$soname.def;
14156 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14165 case $cc_basename,$host_cpu in
14166 pgcc*) # Portland Group C compiler
14167 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14168 tmp_addflag=' $pic_flag'
14170 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14171 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14172 tmp_addflag=' $pic_flag -Mnomain' ;;
14173 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14174 tmp_addflag=' -i_dynamic' ;;
14175 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14176 tmp_addflag=' -i_dynamic -nofor_main' ;;
14177 ifc* | ifort*) # Intel Fortran compiler
14178 tmp_addflag=' -nofor_main' ;;
14180 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14182 if test $supports_anon_versioning = yes; then
14183 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14185 $echo "local: *; };" >> $output_objdir/$libname.ver~
14186 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14195 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14204 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14208 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14209 *** create shared libraries on Solaris systems. Therefore, libtool
14210 *** is disabling shared libraries support. We urge you to upgrade GNU
14211 *** binutils to release 2.9.1 or newer. Another option is to modify
14212 *** your PATH or compiler configuration so that the native linker is
14213 *** used, and then restart.
14216 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14217 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14218 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14225 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14227 hardcode_direct_F77=yes
14228 hardcode_shlibpath_var_F77=no
14232 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14233 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14234 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14241 if test "$ld_shlibs_F77" = no; then
14243 hardcode_libdir_flag_spec_F77=
14244 export_dynamic_flag_spec_F77=
14245 whole_archive_flag_spec_F77=
14248 # PORTME fill in a description of your system's linker (not GNU ld)
14251 allow_undefined_flag_F77=unsupported
14252 always_export_symbols_F77=yes
14253 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'
14254 # Note: this linker hardcodes the directories in LIBPATH if there
14255 # are no directories specified by -L.
14256 hardcode_minus_L_F77=yes
14257 if test "$GCC" = yes && test -z "$link_static_flag"; then
14258 # Neither direct hardcoding nor static linking is supported with a
14260 hardcode_direct_F77=unsupported
14265 if test "$host_cpu" = ia64; then
14266 # On IA64, the linker does run time linking by default, so we don't
14267 # have to do anything special.
14268 aix_use_runtimelinking=no
14269 exp_sym_flag='-Bexport'
14272 # If we're using GNU nm, then we don't want the "-C" option.
14273 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14274 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14275 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'
14277 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'
14279 aix_use_runtimelinking=no
14281 # Test if we are trying to use run time linking or normal
14282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14283 # need to do runtime linking.
14284 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14285 for ld_flag in $LDFLAGS; do
14286 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14287 aix_use_runtimelinking=yes
14293 exp_sym_flag='-bexport'
14294 no_entry_flag='-bnoentry'
14297 # When large executables or shared objects are built, AIX ld can
14298 # have problems creating the table of contents. If linking a library
14299 # or program results in "error TOC overflow" add -mminimal-toc to
14300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14303 archive_cmds_F77=''
14304 hardcode_direct_F77=yes
14305 hardcode_libdir_separator_F77=':'
14306 link_all_deplibs_F77=yes
14308 if test "$GCC" = yes; then
14309 case $host_os in aix4.[012]|aix4.[012].*)
14310 # We only want to do this on AIX 4.2 and lower, the check
14311 # below for broken collect2 doesn't work under 4.3+
14312 collect2name=`${CC} -print-prog-name=collect2`
14313 if test -f "$collect2name" && \
14314 strings "$collect2name" | grep resolve_lib_name >/dev/null
14316 # We have reworked collect2
14317 hardcode_direct_F77=yes
14319 # We have old collect2
14320 hardcode_direct_F77=unsupported
14321 # It fails to find uninstalled libraries when the uninstalled
14322 # path is not listed in the libpath. Setting hardcode_minus_L
14323 # to unsupported forces relinking
14324 hardcode_minus_L_F77=yes
14325 hardcode_libdir_flag_spec_F77='-L$libdir'
14326 hardcode_libdir_separator_F77=
14329 shared_flag='-shared'
14330 if test "$aix_use_runtimelinking" = yes; then
14331 shared_flag="$shared_flag "'${wl}-G'
14335 if test "$host_cpu" = ia64; then
14336 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14337 # chokes on -Wl,-G. The following line is correct:
14340 if test "$aix_use_runtimelinking" = yes; then
14341 shared_flag='${wl}-G'
14343 shared_flag='${wl}-bM:SRE'
14348 # It seems that -bexpall does not export symbols beginning with
14349 # underscore (_), so it is better to generate a list of symbols to export.
14350 always_export_symbols_F77=yes
14351 if test "$aix_use_runtimelinking" = yes; then
14352 # Warning - without using the other runtime loading flags (-brtl),
14353 # -berok will link without error, but may produce a broken library.
14354 allow_undefined_flag_F77='-berok'
14355 # Determine the default libpath from the value encoded in an empty executable.
14356 cat >conftest.$ac_ext <<_ACEOF
14361 rm -f conftest.$ac_objext conftest$ac_exeext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14363 (eval $ac_link) 2>conftest.er1
14365 grep -v '^ *+' conftest.er1 >conftest.err
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_f77_werror_flag"
14371 || test ! -s conftest.err'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest$ac_exeext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14386 # Check for a 64-bit object if we didn't find anything.
14387 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; }
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14394 rm -f conftest.err conftest.$ac_objext \
14395 conftest$ac_exeext conftest.$ac_ext
14396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14398 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14399 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"
14401 if test "$host_cpu" = ia64; then
14402 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14403 allow_undefined_flag_F77="-z nodefs"
14404 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"
14406 # Determine the default libpath from the value encoded in an empty executable.
14407 cat >conftest.$ac_ext <<_ACEOF
14412 rm -f conftest.$ac_objext conftest$ac_exeext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14414 (eval $ac_link) 2>conftest.er1
14416 grep -v '^ *+' conftest.er1 >conftest.err
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -z "$ac_f77_werror_flag"
14422 || test ! -s conftest.err'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; } &&
14428 { ac_try='test -s conftest$ac_exeext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14437 # Check for a 64-bit object if we didn't find anything.
14438 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; }
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14445 rm -f conftest.err conftest.$ac_objext \
14446 conftest$ac_exeext conftest.$ac_ext
14447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14449 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14450 # Warning - without using the other run time loading flags,
14451 # -berok will link without error, but may produce a broken library.
14452 no_undefined_flag_F77=' ${wl}-bernotok'
14453 allow_undefined_flag_F77=' ${wl}-berok'
14454 # -bexpall does not export symbols beginning with underscore (_)
14455 always_export_symbols_F77=yes
14456 # Exported symbols can be pulled into shared objects from archives
14457 whole_archive_flag_spec_F77=' '
14458 archive_cmds_need_lc_F77=yes
14459 # This is similar to how AIX traditionally builds its shared libraries.
14460 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'
14466 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)'
14467 hardcode_libdir_flag_spec_F77='-L$libdir'
14468 hardcode_minus_L_F77=yes
14469 # see comment about different semantics on the GNU ld section
14474 export_dynamic_flag_spec_F77=-rdynamic
14477 cygwin* | mingw* | pw32*)
14478 # When not using gcc, we currently assume that we are using
14479 # Microsoft Visual C++.
14480 # hardcode_libdir_flag_spec is actually meaningless, as there is
14481 # no search path for DLLs.
14482 hardcode_libdir_flag_spec_F77=' '
14483 allow_undefined_flag_F77=unsupported
14484 # Tell ltmain to make .lib files, not .a files.
14486 # Tell ltmain to make .dll files, not .so files.
14488 # FIXME: Setting linknames here is a bad hack.
14489 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14490 # The linker will automatically build a .lib file if we build a DLL.
14491 old_archive_From_new_cmds_F77='true'
14492 # FIXME: Should let the user specify the lib program.
14493 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14494 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14495 enable_shared_with_static_runtimes_F77=yes
14498 darwin* | rhapsody*)
14500 rhapsody* | darwin1.[012])
14501 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14505 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14507 case ${MACOSX_DEPLOYMENT_TARGET} in
14509 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14512 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14518 archive_cmds_need_lc_F77=no
14519 hardcode_direct_F77=no
14520 hardcode_automatic_F77=yes
14521 hardcode_shlibpath_var_F77=unsupported
14522 whole_archive_flag_spec_F77=''
14523 link_all_deplibs_F77=yes
14524 if test "$GCC" = yes ; then
14525 output_verbose_link_cmd='echo'
14526 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14527 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14529 archive_expsym_cmds_F77='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}'
14530 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}'
14532 case $cc_basename in
14534 output_verbose_link_cmd='echo'
14535 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14536 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14538 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14539 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}'
14549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_libdir_flag_spec_F77='-L$libdir'
14551 hardcode_shlibpath_var_F77=no
14558 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14559 # support. Future versions do this automatically, but an explicit c++rt0.o
14560 # does not break anything, and helps significantly (at the cost of a little
14563 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14564 hardcode_libdir_flag_spec_F77='-R$libdir'
14565 hardcode_direct_F77=yes
14566 hardcode_shlibpath_var_F77=no
14569 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14571 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14572 hardcode_direct_F77=yes
14573 hardcode_minus_L_F77=yes
14574 hardcode_shlibpath_var_F77=no
14577 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14578 freebsd* | kfreebsd*-gnu | dragonfly*)
14579 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14580 hardcode_libdir_flag_spec_F77='-R$libdir'
14581 hardcode_direct_F77=yes
14582 hardcode_shlibpath_var_F77=no
14586 if test "$GCC" = yes; then
14587 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'
14589 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'
14591 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14592 hardcode_libdir_separator_F77=:
14593 hardcode_direct_F77=yes
14595 # hardcode_minus_L: Not really in the search PATH,
14596 # but as the default location of the library.
14597 hardcode_minus_L_F77=yes
14598 export_dynamic_flag_spec_F77='${wl}-E'
14602 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14605 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14608 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14614 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14617 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14621 if test "$with_gnu_ld" = no; then
14624 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14625 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14626 hardcode_libdir_separator_F77=:
14627 hardcode_direct_F77=no
14628 hardcode_shlibpath_var_F77=no
14631 hardcode_libdir_flag_spec_F77='-L$libdir'
14632 hardcode_direct_F77=no
14633 hardcode_shlibpath_var_F77=no
14635 # hardcode_minus_L: Not really in the search PATH,
14636 # but as the default location of the library.
14637 hardcode_minus_L_F77=yes
14640 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14641 hardcode_libdir_separator_F77=:
14642 hardcode_direct_F77=yes
14643 export_dynamic_flag_spec_F77='${wl}-E'
14645 # hardcode_minus_L: Not really in the search PATH,
14646 # but as the default location of the library.
14647 hardcode_minus_L_F77=yes
14653 irix5* | irix6* | nonstopux*)
14654 if test "$GCC" = yes; then
14655 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'
14657 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'
14658 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14660 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14661 hardcode_libdir_separator_F77=:
14662 link_all_deplibs_F77=yes
14666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14667 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14669 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14671 hardcode_libdir_flag_spec_F77='-R$libdir'
14672 hardcode_direct_F77=yes
14673 hardcode_shlibpath_var_F77=no
14677 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14678 hardcode_direct_F77=yes
14679 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14680 hardcode_libdir_separator_F77=:
14681 hardcode_shlibpath_var_F77=no
14685 hardcode_direct_F77=yes
14686 hardcode_shlibpath_var_F77=no
14687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14688 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14689 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14690 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14691 export_dynamic_flag_spec_F77='${wl}-E'
14694 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14695 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14696 hardcode_libdir_flag_spec_F77='-R$libdir'
14699 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14700 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14707 hardcode_libdir_flag_spec_F77='-L$libdir'
14708 hardcode_minus_L_F77=yes
14709 allow_undefined_flag_F77=unsupported
14710 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'
14711 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14715 if test "$GCC" = yes; then
14716 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14717 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'
14719 allow_undefined_flag_F77=' -expect_unresolved \*'
14720 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'
14722 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14723 hardcode_libdir_separator_F77=:
14726 osf4* | osf5*) # as osf3* with the addition of -msym flag
14727 if test "$GCC" = yes; then
14728 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14729 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'
14730 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14732 allow_undefined_flag_F77=' -expect_unresolved \*'
14733 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'
14734 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~
14735 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14737 # Both c and cxx compiler support -rpath directly
14738 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14740 hardcode_libdir_separator_F77=:
14744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14745 hardcode_shlibpath_var_F77=no
14746 export_dynamic_flag_spec_F77='${wl}-Bexport'
14747 runpath_var=LD_RUN_PATH
14748 hardcode_runpath_var=yes
14752 no_undefined_flag_F77=' -z text'
14753 if test "$GCC" = yes; then
14755 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14756 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14757 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14760 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14764 hardcode_libdir_flag_spec_F77='-R$libdir'
14765 hardcode_shlibpath_var_F77=no
14767 solaris2.[0-5] | solaris2.[0-5].*) ;;
14769 # The compiler driver will combine linker options so we
14770 # cannot just pass the convience library names through
14771 # without $wl, iff we do not link with $LD.
14772 # Luckily, gcc supports the same syntax we need for Sun Studio.
14773 # Supported since Solaris 2.6 (maybe 2.5.1?)
14776 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14778 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14781 link_all_deplibs_F77=yes
14785 if test "x$host_vendor" = xsequent; then
14786 # Use $CC to link under sequent, because it throws in some extra .o
14787 # files that make .init and .fini sections work.
14788 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14790 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14792 hardcode_libdir_flag_spec_F77='-L$libdir'
14793 hardcode_direct_F77=yes
14794 hardcode_minus_L_F77=yes
14795 hardcode_shlibpath_var_F77=no
14799 case $host_vendor in
14801 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802 hardcode_direct_F77=yes # is this really true???
14805 ## LD is ld it makes a PLAMLIB
14806 ## CC just makes a GrossModule.
14807 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14808 reload_cmds_F77='$CC -r -o $output$reload_objs'
14809 hardcode_direct_F77=no
14812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14813 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14816 runpath_var='LD_RUN_PATH'
14817 hardcode_shlibpath_var_F77=no
14821 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14822 hardcode_shlibpath_var_F77=no
14823 export_dynamic_flag_spec_F77='-Bexport'
14827 if test -d /usr/nec; then
14828 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14829 hardcode_shlibpath_var_F77=no
14830 runpath_var=LD_RUN_PATH
14831 hardcode_runpath_var=yes
14837 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14838 hardcode_direct_F77=yes
14839 hardcode_minus_L_F77=no
14840 hardcode_shlibpath_var_F77=no
14841 hardcode_runpath_var=yes
14842 runpath_var=LD_RUN_PATH
14845 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14846 no_undefined_flag_F77='${wl}-z ${wl}text'
14847 if test "$GCC" = yes; then
14848 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14850 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14852 runpath_var='LD_RUN_PATH'
14853 hardcode_shlibpath_var_F77=no
14857 no_undefined_flag_F77=' -z text'
14858 # $CC -shared without GNU ld will not create a library from C++
14859 # object files and a static libstdc++, better avoid it by now
14860 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14861 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14862 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14863 hardcode_libdir_flag_spec_F77=
14864 hardcode_shlibpath_var_F77=no
14865 runpath_var='LD_RUN_PATH'
14869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14870 hardcode_libdir_flag_spec_F77='-L$libdir'
14871 hardcode_shlibpath_var_F77=no
14880 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14881 echo "${ECHO_T}$ld_shlibs_F77" >&6
14882 test "$ld_shlibs_F77" = no && can_build_shared=no
14884 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14885 if test "$GCC" = yes; then
14886 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14890 # Do we need to explicitly link libc?
14892 case "x$archive_cmds_need_lc_F77" in
14894 # Assume -lc should be added
14895 archive_cmds_need_lc_F77=yes
14897 if test "$enable_shared" = yes && test "$GCC" = yes; then
14898 case $archive_cmds_F77 in
14900 # FIXME: we may have to deal with multi-command sequences.
14903 # Test whether the compiler implicitly links with -lc since on some
14904 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14905 # to ld, don't add -lc before -lgcc.
14906 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14907 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14912 (eval $ac_compile) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } 2>conftest.err; then
14918 libobjs=conftest.$ac_objext
14920 wl=$lt_prog_compiler_wl_F77
14926 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14927 allow_undefined_flag_F77=
14928 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14929 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }
14934 archive_cmds_need_lc_F77=no
14936 archive_cmds_need_lc_F77=yes
14938 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14940 cat conftest.err 1>&5
14943 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14944 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14951 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14952 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14953 library_names_spec=
14954 libname_spec='lib$name'
14958 postuninstall_cmds=
14962 shlibpath_overrides_runpath=unknown
14964 dynamic_linker="$host_os ld.so"
14965 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14966 if test "$GCC" = yes; then
14967 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14968 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14969 # if the path contains ";" then we assume it to be the separator
14970 # otherwise default to the standard path separator (i.e. ":") - it is
14971 # assumed that no part of a normal pathname contains ";" but that should
14972 # okay in the real world where ";" in dirpaths is itself problematic.
14973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14980 need_lib_prefix=unknown
14981 hardcode_into_libs=no
14983 # when you set need_version to no, make sure it does not cause -set_version
14984 # flags to be left without arguments
14985 need_version=unknown
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14991 shlibpath_var=LIBPATH
14993 # AIX 3 has no versioning support, so we append a major version to the name.
14994 soname_spec='${libname}${release}${shared_ext}$major'
15001 hardcode_into_libs=yes
15002 if test "$host_cpu" = ia64; then
15003 # AIX 5 supports IA64
15004 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15005 shlibpath_var=LD_LIBRARY_PATH
15007 # With GCC up to 2.95.x, collect2 would create an import file
15008 # for dependence libraries. The import file would start with
15009 # the line `#! .'. This would cause the generated library to
15010 # depend on `.', always an invalid library. This was fixed in
15011 # development snapshots of GCC prior to 3.0.
15013 aix4 | aix4.[01] | aix4.[01].*)
15014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15016 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15019 can_build_shared=no
15023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15024 # soname into executable. Probably we can add versioning support to
15025 # collect2, so additional links can be useful in future.
15026 if test "$aix_use_runtimelinking" = yes; then
15027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15028 # instead of lib<name>.a to let people know that these are not
15029 # typical AIX shared libraries.
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 # We preserve .a as extension for shared libraries through AIX4.2
15033 # and later when we are not doing run time linking.
15034 library_names_spec='${libname}${release}.a $libname.a'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15037 shlibpath_var=LIBPATH
15042 library_names_spec='$libname.ixlibrary $libname.a'
15043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15044 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'
15048 library_names_spec='${libname}${shared_ext}'
15049 dynamic_linker="$host_os ld.so"
15050 shlibpath_var=LIBRARY_PATH
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15059 shlibpath_var=LD_LIBRARY_PATH
15060 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15061 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15062 # the default ld.so.conf also contains /usr/contrib/lib and
15063 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15064 # libtool to hard-code these into programs
15067 cygwin* | mingw* | pw32*)
15068 version_type=windows
15073 case $GCC,$host_os in
15074 yes,cygwin* | yes,mingw* | yes,pw32*)
15075 library_names_spec='$libname.dll.a'
15076 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15077 postinstall_cmds='base_file=`basename \${file}`~
15078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15079 dldir=$destdir/`dirname \$dlpath`~
15080 test -d \$dldir || mkdir -p \$dldir~
15081 $install_prog $dir/$dlname \$dldir/$dlname~
15082 chmod a+x \$dldir/$dlname'
15083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15084 dlpath=$dir/\$dldll~
15086 shlibpath_overrides_runpath=yes
15090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15092 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15095 # MinGW DLLs use traditional 'lib' prefix
15096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15098 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15099 # It is most probably a Windows format PATH printed by
15100 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15101 # path with ; separators, and with drive letters. We can handle the
15102 # drive letters (cygwin fileutils understands them), so leave them,
15103 # especially as we might pass files found there to a mingw objdump,
15104 # which wouldn't understand a cygwinified path. Ahh.
15105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15111 # pw32 DLLs use 'pw' prefix rather than 'lib'
15112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15121 dynamic_linker='Win32 ld.exe'
15122 # FIXME: first we should search . and the directory the executable is in
15126 darwin* | rhapsody*)
15127 dynamic_linker="$host_os dyld"
15128 version_type=darwin
15131 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15132 soname_spec='${libname}${release}${major}$shared_ext'
15133 shlibpath_overrides_runpath=yes
15134 shlibpath_var=DYLD_LIBRARY_PATH
15135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15136 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15137 if test "$GCC" = yes; then
15138 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"`
15140 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15142 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LD_LIBRARY_PATH
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 shlibpath_overrides_runpath=no
15166 hardcode_into_libs=yes
15167 dynamic_linker='GNU ld.so'
15170 freebsd* | dragonfly*)
15171 # DragonFly does not have aout. When/if they implement a new
15172 # versioning mechanism, adjust this.
15173 if test -x /usr/bin/objformat; then
15174 objformat=`/usr/bin/objformat`
15177 freebsd[123]*) objformat=aout ;;
15178 *) objformat=elf ;;
15181 version_type=freebsd-$objformat
15182 case $version_type in
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15193 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=yes
15198 freebsd3.[01]* | freebsdelf3.[01]*)
15199 shlibpath_overrides_runpath=yes
15200 hardcode_into_libs=yes
15203 shlibpath_overrides_runpath=no
15204 hardcode_into_libs=yes
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 hardcode_into_libs=yes
15219 hpux9* | hpux10* | hpux11*)
15220 # Give a soname corresponding to the major version so that dld.sl refuses to
15221 # link against other versions.
15228 hardcode_into_libs=yes
15229 dynamic_linker="$host_os dld.so"
15230 shlibpath_var=LD_LIBRARY_PATH
15231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15233 soname_spec='${libname}${release}${shared_ext}$major'
15234 if test "X$HPUX_IA64_MODE" = X32; then
15235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15243 hardcode_into_libs=yes
15244 dynamic_linker="$host_os dld.sl"
15245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15254 dynamic_linker="$host_os dld.sl"
15255 shlibpath_var=SHLIB_PATH
15256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15258 soname_spec='${libname}${release}${shared_ext}$major'
15261 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15262 postinstall_cmds='chmod 555 $lib'
15265 irix5* | irix6* | nonstopux*)
15267 nonstopux*) version_type=nonstopux ;;
15269 if test "$lt_cv_prog_gnu_ld" = yes; then
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15280 irix5* | nonstopux*)
15281 libsuff= shlibsuff=
15284 case $LD in # libtool.m4 will add one of these switches to LD
15285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15286 libsuff= shlibsuff= libmagic=32-bit;;
15287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15288 libsuff=32 shlibsuff=N32 libmagic=N32;;
15289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15290 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15291 *) libsuff= shlibsuff= libmagic=never-match;;
15295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15296 shlibpath_overrides_runpath=no
15297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15299 hardcode_into_libs=yes
15302 # No shared lib support for Linux oldld, aout, or coff.
15303 linux*oldld* | linux*aout* | linux*coff*)
15307 # This must be Linux ELF.
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15315 shlibpath_var=LD_LIBRARY_PATH
15316 shlibpath_overrides_runpath=no
15317 # This implies no fast_install, which is unacceptable.
15318 # Some rework will be needed to allow for fast_install
15319 # before this can be enabled.
15320 hardcode_into_libs=yes
15322 # Append ld.so.conf contents to the search path
15323 if test -f /etc/ld.so.conf; then
15324 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15325 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15328 # We used to test for /lib/ld.so.1 and disable shared libraries on
15329 # powerpc, because MkLinux only supported shared libraries with the
15330 # GNU dynamic linker. Since this was broken with cross compilers,
15331 # most powerpc-linux boxes support dynamic linking these days and
15332 # people can always --disable-shared, the test was removed, and we
15333 # assume the GNU/Linux dynamic linker is in use.
15334 dynamic_linker='GNU/Linux ld.so'
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15342 soname_spec='${libname}${release}${shared_ext}$major'
15343 shlibpath_var=LD_LIBRARY_PATH
15344 shlibpath_overrides_runpath=no
15345 hardcode_into_libs=yes
15346 dynamic_linker='GNU ld.so'
15353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15356 dynamic_linker='NetBSD (a.out) ld.so'
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 dynamic_linker='NetBSD ld.elf_so'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes
15364 hardcode_into_libs=yes
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 shlibpath_overrides_runpath=yes
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 shlibpath_var=LD_LIBRARY_PATH
15381 shlibpath_overrides_runpath=yes
15387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15390 *) need_version=no ;;
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15394 shlibpath_var=LD_LIBRARY_PATH
15395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15397 openbsd2.[89] | openbsd2.[89].*)
15398 shlibpath_overrides_runpath=no
15401 shlibpath_overrides_runpath=yes
15405 shlibpath_overrides_runpath=yes
15410 libname_spec='$name'
15413 library_names_spec='$libname${shared_ext} $libname.a'
15414 dynamic_linker='OS/2 ld.exe'
15415 shlibpath_var=LIBPATH
15418 osf3* | osf4* | osf5*)
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15431 soname_spec='${libname}${release}${shared_ext}$major'
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 shlibpath_var=LD_LIBRARY_PATH
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441 soname_spec='${libname}${release}${shared_ext}$major'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes
15444 hardcode_into_libs=yes
15445 # ldd complains unless libraries are executable
15446 postinstall_cmds='chmod +x $lib'
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=yes
15455 if test "$with_gnu_ld" = yes; then
15461 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 shlibpath_var=LD_LIBRARY_PATH
15466 case $host_vendor in
15468 shlibpath_overrides_runpath=no
15470 export_dynamic_flag_spec='${wl}-Blargedynsym'
15471 runpath_var=LD_RUN_PATH
15479 shlibpath_overrides_runpath=no
15480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15486 if test -d /usr/nec ;then
15488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15489 soname_spec='$libname${shared_ext}.$major'
15490 shlibpath_var=LD_LIBRARY_PATH
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 shlibpath_var=LD_LIBRARY_PATH
15505 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15506 echo "${ECHO_T}$dynamic_linker" >&6
15507 test "$dynamic_linker" = no && can_build_shared=no
15509 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15510 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15511 hardcode_action_F77=
15512 if test -n "$hardcode_libdir_flag_spec_F77" || \
15513 test -n "$runpath_var_F77" || \
15514 test "X$hardcode_automatic_F77" = "Xyes" ; then
15516 # We can hardcode non-existant directories.
15517 if test "$hardcode_direct_F77" != no &&
15518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15519 # have to relink, otherwise we might link with an installed library
15520 # when we should be linking with a yet-to-be-installed one
15521 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15522 test "$hardcode_minus_L_F77" != no; then
15523 # Linking always hardcodes the temporary library directory.
15524 hardcode_action_F77=relink
15526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15527 hardcode_action_F77=immediate
15530 # We cannot hardcode anything, or else we can only hardcode existing
15532 hardcode_action_F77=unsupported
15534 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15535 echo "${ECHO_T}$hardcode_action_F77" >&6
15537 if test "$hardcode_action_F77" = relink; then
15538 # Fast installation is not supported
15539 enable_fast_install=no
15540 elif test "$shlibpath_overrides_runpath" = yes ||
15541 test "$enable_shared" = no; then
15542 # Fast installation is not necessary
15543 enable_fast_install=needless
15548 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15549 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15550 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15551 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15552 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15553 echo "$as_me:$LINENO: result: yes" >&5
15554 echo "${ECHO_T}yes" >&6
15556 # FIXME - insert some real tests, host_os isn't really good enough
15559 if test -n "$STRIP" ; then
15560 striplib="$STRIP -x"
15561 echo "$as_me:$LINENO: result: yes" >&5
15562 echo "${ECHO_T}yes" >&6
15564 echo "$as_me:$LINENO: result: no" >&5
15565 echo "${ECHO_T}no" >&6
15569 echo "$as_me:$LINENO: result: no" >&5
15570 echo "${ECHO_T}no" >&6
15577 # The else clause should only fire when bootstrapping the
15578 # libtool distribution, otherwise you forgot to ship ltmain.sh
15579 # with your package, and you will get complaints that there are
15580 # no rules to generate ltmain.sh.
15581 if test -f "$ltmain"; then
15582 # See if we are running on zsh, and set the options which allow our commands through
15583 # without removal of \ escapes.
15584 if test -n "${ZSH_VERSION+set}" ; then
15585 setopt NO_GLOB_SUBST
15587 # Now quote all the things that may contain metacharacters while being
15588 # careful not to overquote the AC_SUBSTed values. We take copies of the
15589 # variables and quote the copies for generation of the libtool script.
15590 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15594 deplibs_check_method reload_flag reload_cmds need_locks \
15595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15596 lt_cv_sys_global_symbol_to_c_name_address \
15597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15598 old_postinstall_cmds old_postuninstall_cmds \
15602 lt_prog_compiler_wl_F77 \
15603 lt_prog_compiler_pic_F77 \
15604 lt_prog_compiler_static_F77 \
15605 lt_prog_compiler_no_builtin_flag_F77 \
15606 export_dynamic_flag_spec_F77 \
15607 thread_safe_flag_spec_F77 \
15608 whole_archive_flag_spec_F77 \
15609 enable_shared_with_static_runtimes_F77 \
15610 old_archive_cmds_F77 \
15611 old_archive_from_new_cmds_F77 \
15612 predep_objects_F77 \
15613 postdep_objects_F77 \
15616 compiler_lib_search_path_F77 \
15618 archive_expsym_cmds_F77 \
15619 postinstall_cmds_F77 \
15620 postuninstall_cmds_F77 \
15621 old_archive_from_expsyms_cmds_F77 \
15622 allow_undefined_flag_F77 \
15623 no_undefined_flag_F77 \
15624 export_symbols_cmds_F77 \
15625 hardcode_libdir_flag_spec_F77 \
15626 hardcode_libdir_flag_spec_ld_F77 \
15627 hardcode_libdir_separator_F77 \
15628 hardcode_automatic_F77 \
15630 module_expsym_cmds_F77 \
15631 lt_cv_prog_compiler_c_o_F77 \
15632 exclude_expsyms_F77 \
15633 include_expsyms_F77; do
15636 old_archive_cmds_F77 | \
15637 old_archive_from_new_cmds_F77 | \
15638 archive_cmds_F77 | \
15639 archive_expsym_cmds_F77 | \
15640 module_cmds_F77 | \
15641 module_expsym_cmds_F77 | \
15642 old_archive_from_expsyms_cmds_F77 | \
15643 export_symbols_cmds_F77 | \
15644 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15645 postinstall_cmds | postuninstall_cmds | \
15646 old_postinstall_cmds | old_postuninstall_cmds | \
15647 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15648 # Double-quote double-evaled strings.
15649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15658 *'\$0 --fallback-echo"')
15659 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15665 cat <<__EOF__ >> "$cfgfile"
15666 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15670 # Shell to use when invoking shell scripts.
15673 # Whether or not to build shared libraries.
15674 build_libtool_libs=$enable_shared
15676 # Whether or not to build static libraries.
15677 build_old_libs=$enable_static
15679 # Whether or not to add -lc for building shared libraries.
15680 build_libtool_need_lc=$archive_cmds_need_lc_F77
15682 # Whether or not to disallow shared libs when runtime libs are static
15683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15685 # Whether or not to optimize for fast installation.
15686 fast_install=$enable_fast_install
15689 host_alias=$host_alias
15693 # The build system.
15694 build_alias=$build_alias
15698 # An echo program that does not interpret backslashes.
15703 AR_FLAGS=$lt_AR_FLAGS
15708 # A language-specific compiler.
15709 CC=$lt_compiler_F77
15711 # Is the compiler the GNU C compiler?
15717 # The linker used to build libraries.
15720 # Whether we need hard or soft links.
15723 # A BSD-compatible nm program.
15726 # A symbol stripping program
15729 # Used to examine libraries when file_magic_cmd begins "file"
15730 MAGIC_CMD=$MAGIC_CMD
15732 # Used on cygwin: DLL creation program.
15735 # Used on cygwin: object dumper.
15738 # Used on cygwin: assembler.
15741 # The name of the directory that contains temporary libtool files.
15744 # How to create reloadable object files.
15745 reload_flag=$lt_reload_flag
15746 reload_cmds=$lt_reload_cmds
15748 # How to pass a linker flag through the compiler.
15749 wl=$lt_lt_prog_compiler_wl_F77
15751 # Object file suffix (normally "o").
15752 objext="$ac_objext"
15754 # Old archive suffix (normally "a").
15757 # Shared library suffix (normally ".so").
15758 shrext_cmds='$shrext_cmds'
15760 # Executable file suffix (normally "").
15763 # Additional compiler flags for building library objects.
15764 pic_flag=$lt_lt_prog_compiler_pic_F77
15767 # What is the maximum length of a command?
15768 max_cmd_len=$lt_cv_sys_max_cmd_len
15770 # Does compiler simultaneously support -c and -o options?
15771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15773 # Must we lock files when doing compilation?
15774 need_locks=$lt_need_locks
15776 # Do we need the lib prefix for modules?
15777 need_lib_prefix=$need_lib_prefix
15779 # Do we need a version for libraries?
15780 need_version=$need_version
15782 # Whether dlopen is supported.
15783 dlopen_support=$enable_dlopen
15785 # Whether dlopen of programs is supported.
15786 dlopen_self=$enable_dlopen_self
15788 # Whether dlopen of statically linked programs is supported.
15789 dlopen_self_static=$enable_dlopen_self_static
15791 # Compiler flag to prevent dynamic linking.
15792 link_static_flag=$lt_lt_prog_compiler_static_F77
15794 # Compiler flag to turn off builtin functions.
15795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15797 # Compiler flag to allow reflexive dlopens.
15798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15800 # Compiler flag to generate shared objects directly from archives.
15801 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15803 # Compiler flag to generate thread-safe objects.
15804 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15806 # Library versioning type.
15807 version_type=$version_type
15809 # Format of library name prefix.
15810 libname_spec=$lt_libname_spec
15812 # List of archive names. First name is the real one, the rest are links.
15813 # The last name is the one that the linker finds with -lNAME.
15814 library_names_spec=$lt_library_names_spec
15816 # The coded name of the library, if different from the real name.
15817 soname_spec=$lt_soname_spec
15819 # Commands used to build and install an old-style archive.
15821 old_archive_cmds=$lt_old_archive_cmds_F77
15822 old_postinstall_cmds=$lt_old_postinstall_cmds
15823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15825 # Create an old-style archive from a shared archive.
15826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15828 # Create a temporary old-style archive to link instead of a shared archive.
15829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15831 # Commands used to build and install a shared archive.
15832 archive_cmds=$lt_archive_cmds_F77
15833 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15834 postinstall_cmds=$lt_postinstall_cmds
15835 postuninstall_cmds=$lt_postuninstall_cmds
15837 # Commands used to build a loadable module (assumed same as above if empty)
15838 module_cmds=$lt_module_cmds_F77
15839 module_expsym_cmds=$lt_module_expsym_cmds_F77
15841 # Commands to strip libraries.
15842 old_striplib=$lt_old_striplib
15843 striplib=$lt_striplib
15845 # Dependencies to place before the objects being linked to create a
15847 predep_objects=$lt_predep_objects_F77
15849 # Dependencies to place after the objects being linked to create a
15851 postdep_objects=$lt_postdep_objects_F77
15853 # Dependencies to place before the objects being linked to create a
15855 predeps=$lt_predeps_F77
15857 # Dependencies to place after the objects being linked to create a
15859 postdeps=$lt_postdeps_F77
15861 # The library search path used internally by the compiler when linking
15862 # a shared library.
15863 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15865 # Method to check whether dependent libraries are shared objects.
15866 deplibs_check_method=$lt_deplibs_check_method
15868 # Command to use when deplibs_check_method == file_magic.
15869 file_magic_cmd=$lt_file_magic_cmd
15871 # Flag that allows shared libraries with undefined symbols to be built.
15872 allow_undefined_flag=$lt_allow_undefined_flag_F77
15874 # Flag that forces no undefined symbols.
15875 no_undefined_flag=$lt_no_undefined_flag_F77
15877 # Commands used to finish a libtool library installation in a directory.
15878 finish_cmds=$lt_finish_cmds
15880 # Same as above, but a single script fragment to be evaled but not shown.
15881 finish_eval=$lt_finish_eval
15883 # Take the output of nm and produce a listing of raw symbols and C names.
15884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15886 # Transform the output of nm in a proper C declaration
15887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15889 # Transform the output of nm in a C name address pair
15890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15892 # This is the shared library runtime path variable.
15893 runpath_var=$runpath_var
15895 # This is the shared library path variable.
15896 shlibpath_var=$shlibpath_var
15898 # Is shlibpath searched before the hard-coded library search path?
15899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15901 # How to hardcode a shared library path into an executable.
15902 hardcode_action=$hardcode_action_F77
15904 # Whether we should hardcode library paths into libraries.
15905 hardcode_into_libs=$hardcode_into_libs
15907 # Flag to hardcode \$libdir into a binary during linking.
15908 # This must work even if \$libdir does not exist.
15909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15911 # If ld is used when linking, flag to hardcode \$libdir into
15912 # a binary during linking. This must work even if \$libdir does
15914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15916 # Whether we need a single -rpath flag with a separated argument.
15917 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15919 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15920 # resulting binary.
15921 hardcode_direct=$hardcode_direct_F77
15923 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15924 # resulting binary.
15925 hardcode_minus_L=$hardcode_minus_L_F77
15927 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15928 # the resulting binary.
15929 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15931 # Set to yes if building a shared library automatically hardcodes DIR into the library
15932 # and all subsequent libraries and executables linked against it.
15933 hardcode_automatic=$hardcode_automatic_F77
15935 # Variables whose values should be saved in libtool wrapper scripts and
15936 # restored at relink time.
15937 variables_saved_for_relink="$variables_saved_for_relink"
15939 # Whether libtool must link a program against all its dependency libraries.
15940 link_all_deplibs=$link_all_deplibs_F77
15942 # Compile-time system search path for libraries
15943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15945 # Run-time system search path for libraries
15946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15948 # Fix the shell variable \$srcfile for the compiler.
15949 fix_srcfile_path="$fix_srcfile_path_F77"
15951 # Set to yes if exported symbols are required.
15952 always_export_symbols=$always_export_symbols_F77
15954 # The commands to list exported symbols.
15955 export_symbols_cmds=$lt_export_symbols_cmds_F77
15957 # The commands to extract the exported symbol list from a shared archive.
15958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15960 # Symbols that should not be listed in the preloaded symbols.
15961 exclude_expsyms=$lt_exclude_expsyms_F77
15963 # Symbols that must always be exported.
15964 include_expsyms=$lt_include_expsyms_F77
15966 # ### END LIBTOOL TAG CONFIG: $tagname
15972 # If there is no Makefile yet, we rely on a make rule to execute
15973 # `config.status --recheck' to rerun these tests and create the
15974 # libtool script then.
15975 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15976 if test -f "$ltmain_in"; then
15977 test -f Makefile && make "$ltmain"
15983 ac_cpp='$CPP $CPPFLAGS'
15984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15996 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16000 # Source file extension for Java test sources.
16003 # Object file extension for compiled Java test sources.
16007 # Code to be used in simple compile tests
16008 lt_simple_compile_test_code="class foo {}\n"
16010 # Code to be used in simple link tests
16011 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16013 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16015 # If no C compiler was specified, use CC.
16018 # Allow CC to be a program name with arguments.
16022 # save warnings/boilerplate of simple test code
16023 ac_outfile=conftest.$ac_objext
16024 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16026 _lt_compiler_boilerplate=`cat conftest.err`
16029 ac_outfile=conftest.$ac_objext
16030 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16032 _lt_linker_boilerplate=`cat conftest.err`
16036 # Allow CC to be a program name with arguments.
16041 for cc_temp in $compiler""; do
16043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16052 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16053 archive_cmds_need_lc_GCJ=no
16055 old_archive_cmds_GCJ=$old_archive_cmds
16058 lt_prog_compiler_no_builtin_flag_GCJ=
16060 if test "$GCC" = yes; then
16061 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16064 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16065 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16066 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16069 lt_cv_prog_compiler_rtti_exceptions=no
16070 ac_outfile=conftest.$ac_objext
16071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16072 lt_compiler_flag="-fno-rtti -fno-exceptions"
16073 # Insert the option either (1) after the last *FLAGS variable, or
16074 # (2) before a word containing "conftest.", or (3) at the end.
16075 # Note that $ac_compile itself does not contain backslashes and begins
16076 # with a dollar sign (not a hyphen), so the echo should work correctly.
16077 # The option is referenced via a variable to avoid confusing sed.
16078 lt_compile=`echo "$ac_compile" | $SED \
16079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16081 -e 's:$: $lt_compiler_flag:'`
16082 (eval echo "\"\$as_me:16082: $lt_compile\"" >&5)
16083 (eval "$lt_compile" 2>conftest.err)
16085 cat conftest.err >&5
16086 echo "$as_me:16086: \$? = $ac_status" >&5
16087 if (exit $ac_status) && test -s "$ac_outfile"; then
16088 # The compiler can only warn and ignore the option if not recognized
16089 # So say no if there are warnings other than the usual output.
16090 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16091 $SED '/^$/d' conftest.err >conftest.er2
16092 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16093 lt_cv_prog_compiler_rtti_exceptions=yes
16099 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16100 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16102 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16103 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16110 lt_prog_compiler_wl_GCJ=
16111 lt_prog_compiler_pic_GCJ=
16112 lt_prog_compiler_static_GCJ=
16114 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16115 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16117 if test "$GCC" = yes; then
16118 lt_prog_compiler_wl_GCJ='-Wl,'
16119 lt_prog_compiler_static_GCJ='-static'
16123 # All AIX code is PIC.
16124 if test "$host_cpu" = ia64; then
16125 # AIX 5 now supports IA64 processor
16126 lt_prog_compiler_static_GCJ='-Bstatic'
16131 # FIXME: we need at least 68020 code to build shared libraries, but
16132 # adding the `-m68020' flag to GCC prevents building anything better,
16134 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16137 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16138 # PIC is the default for these OSes.
16141 mingw* | pw32* | os2*)
16142 # This hack is so that the source file can tell whether it is being
16143 # built for inclusion in a dll (and should export symbols for example).
16144 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16147 darwin* | rhapsody*)
16148 # PIC is the default on this platform
16149 # Common symbols not allowed in MH_DYLIB files
16150 lt_prog_compiler_pic_GCJ='-fno-common'
16154 # Just because we use GCC doesn't mean we suddenly get shared libraries
16155 # on systems that don't support them.
16156 lt_prog_compiler_can_build_shared_GCJ=no
16161 if test -d /usr/nec; then
16162 lt_prog_compiler_pic_GCJ=-Kconform_pic
16167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16168 # not for PA HP-UX.
16174 lt_prog_compiler_pic_GCJ='-fPIC'
16180 lt_prog_compiler_pic_GCJ='-fPIC'
16184 # PORTME Check for flag to pass linker flags through the system compiler.
16187 lt_prog_compiler_wl_GCJ='-Wl,'
16188 if test "$host_cpu" = ia64; then
16189 # AIX 5 now supports IA64 processor
16190 lt_prog_compiler_static_GCJ='-Bstatic'
16192 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16196 # PIC is the default on this platform
16197 # Common symbols not allowed in MH_DYLIB files
16198 case $cc_basename in
16200 lt_prog_compiler_pic_GCJ='-qnocommon'
16201 lt_prog_compiler_wl_GCJ='-Wl,'
16206 mingw* | pw32* | os2*)
16207 # This hack is so that the source file can tell whether it is being
16208 # built for inclusion in a dll (and should export symbols for example).
16209 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16212 hpux9* | hpux10* | hpux11*)
16213 lt_prog_compiler_wl_GCJ='-Wl,'
16214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16215 # not for PA HP-UX.
16221 lt_prog_compiler_pic_GCJ='+Z'
16224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16225 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16228 irix5* | irix6* | nonstopux*)
16229 lt_prog_compiler_wl_GCJ='-Wl,'
16230 # PIC (with -KPIC) is the default.
16231 lt_prog_compiler_static_GCJ='-non_shared'
16235 lt_prog_compiler_pic_GCJ='-KPIC'
16236 lt_prog_compiler_static_GCJ='-Bstatic'
16240 case $cc_basename in
16242 lt_prog_compiler_wl_GCJ='-Wl,'
16243 lt_prog_compiler_pic_GCJ='-KPIC'
16244 lt_prog_compiler_static_GCJ='-static'
16246 pgcc* | pgf77* | pgf90* | pgf95*)
16247 # Portland Group compilers (*not* the Pentium gcc compiler,
16248 # which looks to be a dead project)
16249 lt_prog_compiler_wl_GCJ='-Wl,'
16250 lt_prog_compiler_pic_GCJ='-fpic'
16251 lt_prog_compiler_static_GCJ='-Bstatic'
16254 lt_prog_compiler_wl_GCJ='-Wl,'
16255 # All Alpha code is PIC.
16256 lt_prog_compiler_static_GCJ='-non_shared'
16261 osf3* | osf4* | osf5*)
16262 lt_prog_compiler_wl_GCJ='-Wl,'
16263 # All OSF/1 code is PIC.
16264 lt_prog_compiler_static_GCJ='-non_shared'
16268 lt_prog_compiler_pic_GCJ='-Kpic'
16269 lt_prog_compiler_static_GCJ='-dn'
16273 lt_prog_compiler_pic_GCJ='-KPIC'
16274 lt_prog_compiler_static_GCJ='-Bstatic'
16275 case $cc_basename in
16276 f77* | f90* | f95*)
16277 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16279 lt_prog_compiler_wl_GCJ='-Wl,';;
16284 lt_prog_compiler_wl_GCJ='-Qoption ld '
16285 lt_prog_compiler_pic_GCJ='-PIC'
16286 lt_prog_compiler_static_GCJ='-Bstatic'
16289 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16290 lt_prog_compiler_wl_GCJ='-Wl,'
16291 lt_prog_compiler_pic_GCJ='-KPIC'
16292 lt_prog_compiler_static_GCJ='-Bstatic'
16296 if test -d /usr/nec ;then
16297 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16298 lt_prog_compiler_static_GCJ='-Bstatic'
16303 lt_prog_compiler_wl_GCJ='-Wl,'
16304 lt_prog_compiler_can_build_shared_GCJ=no
16308 lt_prog_compiler_pic_GCJ='-pic'
16309 lt_prog_compiler_static_GCJ='-Bstatic'
16313 lt_prog_compiler_can_build_shared_GCJ=no
16318 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16319 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16322 # Check to make sure the PIC flag actually works.
16324 if test -n "$lt_prog_compiler_pic_GCJ"; then
16326 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16327 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16328 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16331 lt_prog_compiler_pic_works_GCJ=no
16332 ac_outfile=conftest.$ac_objext
16333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16334 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16335 # Insert the option either (1) after the last *FLAGS variable, or
16336 # (2) before a word containing "conftest.", or (3) at the end.
16337 # Note that $ac_compile itself does not contain backslashes and begins
16338 # with a dollar sign (not a hyphen), so the echo should work correctly.
16339 # The option is referenced via a variable to avoid confusing sed.
16340 lt_compile=`echo "$ac_compile" | $SED \
16341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16343 -e 's:$: $lt_compiler_flag:'`
16344 (eval echo "\"\$as_me:16344: $lt_compile\"" >&5)
16345 (eval "$lt_compile" 2>conftest.err)
16347 cat conftest.err >&5
16348 echo "$as_me:16348: \$? = $ac_status" >&5
16349 if (exit $ac_status) && test -s "$ac_outfile"; then
16350 # The compiler can only warn and ignore the option if not recognized
16351 # So say no if there are warnings other than the usual output.
16352 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16353 $SED '/^$/d' conftest.err >conftest.er2
16354 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16355 lt_prog_compiler_pic_works_GCJ=yes
16361 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16362 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16364 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16365 case $lt_prog_compiler_pic_GCJ in
16367 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16370 lt_prog_compiler_pic_GCJ=
16371 lt_prog_compiler_can_build_shared_GCJ=no
16376 # For platforms which do not support PIC, -DPIC is meaningless:
16378 lt_prog_compiler_pic_GCJ=
16381 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16385 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16386 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16387 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 lt_cv_prog_compiler_c_o_GCJ=no
16391 $rm -r conftest 2>/dev/null
16395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16397 lt_compiler_flag="-o out/conftest2.$ac_objext"
16398 # Insert the option either (1) after the last *FLAGS variable, or
16399 # (2) before a word containing "conftest.", or (3) at the end.
16400 # Note that $ac_compile itself does not contain backslashes and begins
16401 # with a dollar sign (not a hyphen), so the echo should work correctly.
16402 lt_compile=`echo "$ac_compile" | $SED \
16403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16405 -e 's:$: $lt_compiler_flag:'`
16406 (eval echo "\"\$as_me:16406: $lt_compile\"" >&5)
16407 (eval "$lt_compile" 2>out/conftest.err)
16409 cat out/conftest.err >&5
16410 echo "$as_me:16410: \$? = $ac_status" >&5
16411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16413 # The compiler can only warn and ignore the option if not recognized
16414 # So say no if there are warnings
16415 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16416 $SED '/^$/d' out/conftest.err >out/conftest.er2
16417 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16418 lt_cv_prog_compiler_c_o_GCJ=yes
16423 # SGI C++ compiler will create directory out/ii_files/ for
16424 # template instantiation
16425 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16426 $rm out/* && rmdir out
16432 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16433 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16436 hard_links="nottested"
16437 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16438 # do not overwrite the value of need_locks provided by the user
16439 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16440 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16445 ln conftest.a conftest.b 2>&5 || hard_links=no
16446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16447 echo "$as_me:$LINENO: result: $hard_links" >&5
16448 echo "${ECHO_T}$hard_links" >&6
16449 if test "$hard_links" = no; then
16450 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16451 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16458 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16459 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16462 allow_undefined_flag_GCJ=
16463 enable_shared_with_static_runtimes_GCJ=no
16465 archive_expsym_cmds_GCJ=
16466 old_archive_From_new_cmds_GCJ=
16467 old_archive_from_expsyms_cmds_GCJ=
16468 export_dynamic_flag_spec_GCJ=
16469 whole_archive_flag_spec_GCJ=
16470 thread_safe_flag_spec_GCJ=
16471 hardcode_libdir_flag_spec_GCJ=
16472 hardcode_libdir_flag_spec_ld_GCJ=
16473 hardcode_libdir_separator_GCJ=
16474 hardcode_direct_GCJ=no
16475 hardcode_minus_L_GCJ=no
16476 hardcode_shlibpath_var_GCJ=unsupported
16477 link_all_deplibs_GCJ=unknown
16478 hardcode_automatic_GCJ=no
16480 module_expsym_cmds_GCJ=
16481 always_export_symbols_GCJ=no
16482 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16483 # include_expsyms should be a list of space-separated symbols to be *always*
16484 # included in the symbol list
16485 include_expsyms_GCJ=
16486 # exclude_expsyms can be an extended regexp of symbols to exclude
16487 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16488 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16489 # as well as any symbol that contains `d'.
16490 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16491 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16492 # platforms (ab)use it in PIC code, but their linkers get confused if
16493 # the symbol is explicitly referenced. Since portable code cannot
16494 # rely on this symbol name, it's probably fine to never include it in
16495 # preloaded symbol tables.
16496 extract_expsyms_cmds=
16497 # Just being paranoid about ensuring that cc_basename is set.
16498 for cc_temp in $compiler""; do
16500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16506 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16509 cygwin* | mingw* | pw32*)
16510 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16511 # When not using gcc, we currently assume that we are using
16512 # Microsoft Visual C++.
16513 if test "$GCC" != yes; then
16523 if test "$with_gnu_ld" = yes; then
16524 # If archive_cmds runs LD, not CC, wlarc should be empty
16527 # Set some defaults for GNU ld with shared library support. These
16528 # are reset later if shared libraries are not supported. Putting them
16529 # here allows them to be overridden if necessary.
16530 runpath_var=LD_RUN_PATH
16531 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16532 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16533 # ancient GNU ld didn't support --whole-archive et. al.
16534 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16535 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16537 whole_archive_flag_spec_GCJ=
16539 supports_anon_versioning=no
16540 case `$LD -v 2>/dev/null` in
16541 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16542 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16543 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16544 *\ 2.11.*) ;; # other 2.11 versions
16545 *) supports_anon_versioning=yes ;;
16548 # See if GNU ld supports shared libraries.
16550 aix3* | aix4* | aix5*)
16551 # On AIX/PPC, the GNU linker is very broken
16552 if test "$host_cpu" != ia64; then
16556 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16557 *** to be unable to reliably create shared libraries on AIX.
16558 *** Therefore, libtool is disabling shared libraries support. If you
16559 *** really care for shared libraries, you may want to modify your PATH
16560 *** so that a non-GNU linker is found, and then restart.
16567 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)'
16568 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16569 hardcode_minus_L_GCJ=yes
16571 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16572 # that the semantics of dynamic libraries on AmigaOS, at least up
16573 # to version 4, is to share data among multiple programs linked
16574 # with the same dynamic library. Since this doesn't match the
16575 # behavior of shared libraries on other platforms, we can't use
16581 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16582 allow_undefined_flag_GCJ=unsupported
16583 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16584 # support --undefined. This deserves some investigation. FIXME
16585 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16591 cygwin* | mingw* | pw32*)
16592 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16593 # as there is no search path for DLLs.
16594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16595 allow_undefined_flag_GCJ=unsupported
16596 always_export_symbols_GCJ=no
16597 enable_shared_with_static_runtimes_GCJ=yes
16598 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16600 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16601 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16602 # If the export-symbols file already is a .def file (1st line
16603 # is EXPORTS), use it as is; otherwise, prepend...
16604 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16605 cp $export_symbols $output_objdir/$soname.def;
16607 echo EXPORTS > $output_objdir/$soname.def;
16608 cat $export_symbols >> $output_objdir/$soname.def;
16610 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16617 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16619 case $cc_basename,$host_cpu in
16620 pgcc*) # Portland Group C compiler
16621 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16622 tmp_addflag=' $pic_flag'
16624 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16625 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16626 tmp_addflag=' $pic_flag -Mnomain' ;;
16627 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16628 tmp_addflag=' -i_dynamic' ;;
16629 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16630 tmp_addflag=' -i_dynamic -nofor_main' ;;
16631 ifc* | ifort*) # Intel Fortran compiler
16632 tmp_addflag=' -nofor_main' ;;
16634 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16636 if test $supports_anon_versioning = yes; then
16637 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16638 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16639 $echo "local: *; };" >> $output_objdir/$libname.ver~
16640 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16649 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16652 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16653 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16658 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16662 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16663 *** create shared libraries on Solaris systems. Therefore, libtool
16664 *** is disabling shared libraries support. We urge you to upgrade GNU
16665 *** binutils to release 2.9.1 or newer. Another option is to modify
16666 *** your PATH or compiler configuration so that the native linker is
16667 *** used, and then restart.
16670 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16671 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16672 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16679 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16681 hardcode_direct_GCJ=yes
16682 hardcode_shlibpath_var_GCJ=no
16686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16687 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16688 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16695 if test "$ld_shlibs_GCJ" = no; then
16697 hardcode_libdir_flag_spec_GCJ=
16698 export_dynamic_flag_spec_GCJ=
16699 whole_archive_flag_spec_GCJ=
16702 # PORTME fill in a description of your system's linker (not GNU ld)
16705 allow_undefined_flag_GCJ=unsupported
16706 always_export_symbols_GCJ=yes
16707 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'
16708 # Note: this linker hardcodes the directories in LIBPATH if there
16709 # are no directories specified by -L.
16710 hardcode_minus_L_GCJ=yes
16711 if test "$GCC" = yes && test -z "$link_static_flag"; then
16712 # Neither direct hardcoding nor static linking is supported with a
16714 hardcode_direct_GCJ=unsupported
16719 if test "$host_cpu" = ia64; then
16720 # On IA64, the linker does run time linking by default, so we don't
16721 # have to do anything special.
16722 aix_use_runtimelinking=no
16723 exp_sym_flag='-Bexport'
16726 # If we're using GNU nm, then we don't want the "-C" option.
16727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16728 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16729 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'
16731 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'
16733 aix_use_runtimelinking=no
16735 # Test if we are trying to use run time linking or normal
16736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16737 # need to do runtime linking.
16738 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16739 for ld_flag in $LDFLAGS; do
16740 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16741 aix_use_runtimelinking=yes
16747 exp_sym_flag='-bexport'
16748 no_entry_flag='-bnoentry'
16751 # When large executables or shared objects are built, AIX ld can
16752 # have problems creating the table of contents. If linking a library
16753 # or program results in "error TOC overflow" add -mminimal-toc to
16754 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16755 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16757 archive_cmds_GCJ=''
16758 hardcode_direct_GCJ=yes
16759 hardcode_libdir_separator_GCJ=':'
16760 link_all_deplibs_GCJ=yes
16762 if test "$GCC" = yes; then
16763 case $host_os in aix4.[012]|aix4.[012].*)
16764 # We only want to do this on AIX 4.2 and lower, the check
16765 # below for broken collect2 doesn't work under 4.3+
16766 collect2name=`${CC} -print-prog-name=collect2`
16767 if test -f "$collect2name" && \
16768 strings "$collect2name" | grep resolve_lib_name >/dev/null
16770 # We have reworked collect2
16771 hardcode_direct_GCJ=yes
16773 # We have old collect2
16774 hardcode_direct_GCJ=unsupported
16775 # It fails to find uninstalled libraries when the uninstalled
16776 # path is not listed in the libpath. Setting hardcode_minus_L
16777 # to unsupported forces relinking
16778 hardcode_minus_L_GCJ=yes
16779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16780 hardcode_libdir_separator_GCJ=
16783 shared_flag='-shared'
16784 if test "$aix_use_runtimelinking" = yes; then
16785 shared_flag="$shared_flag "'${wl}-G'
16789 if test "$host_cpu" = ia64; then
16790 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16791 # chokes on -Wl,-G. The following line is correct:
16794 if test "$aix_use_runtimelinking" = yes; then
16795 shared_flag='${wl}-G'
16797 shared_flag='${wl}-bM:SRE'
16802 # It seems that -bexpall does not export symbols beginning with
16803 # underscore (_), so it is better to generate a list of symbols to export.
16804 always_export_symbols_GCJ=yes
16805 if test "$aix_use_runtimelinking" = yes; then
16806 # Warning - without using the other runtime loading flags (-brtl),
16807 # -berok will link without error, but may produce a broken library.
16808 allow_undefined_flag_GCJ='-berok'
16809 # Determine the default libpath from the value encoded in an empty executable.
16810 cat >conftest.$ac_ext <<_ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16827 (eval $ac_link) 2>conftest.er1
16829 grep -v '^ *+' conftest.er1 >conftest.err
16831 cat conftest.err >&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
16834 { ac_try='test -z "$ac_c_werror_flag"
16835 || test ! -s conftest.err'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; } &&
16841 { ac_try='test -s conftest$ac_exeext'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16850 # Check for a 64-bit object if we didn't find anything.
16851 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; }
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16858 rm -f conftest.err conftest.$ac_objext \
16859 conftest$ac_exeext conftest.$ac_ext
16860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16862 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16863 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"
16865 if test "$host_cpu" = ia64; then
16866 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16867 allow_undefined_flag_GCJ="-z nodefs"
16868 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"
16870 # Determine the default libpath from the value encoded in an empty executable.
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16886 rm -f conftest.$ac_objext conftest$ac_exeext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16888 (eval $ac_link) 2>conftest.er1
16890 grep -v '^ *+' conftest.er1 >conftest.err
16892 cat conftest.err >&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -z "$ac_c_werror_flag"
16896 || test ! -s conftest.err'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest$ac_exeext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16909 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16911 # Check for a 64-bit object if we didn't find anything.
16912 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; }
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16919 rm -f conftest.err conftest.$ac_objext \
16920 conftest$ac_exeext conftest.$ac_ext
16921 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16923 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16924 # Warning - without using the other run time loading flags,
16925 # -berok will link without error, but may produce a broken library.
16926 no_undefined_flag_GCJ=' ${wl}-bernotok'
16927 allow_undefined_flag_GCJ=' ${wl}-berok'
16928 # -bexpall does not export symbols beginning with underscore (_)
16929 always_export_symbols_GCJ=yes
16930 # Exported symbols can be pulled into shared objects from archives
16931 whole_archive_flag_spec_GCJ=' '
16932 archive_cmds_need_lc_GCJ=yes
16933 # This is similar to how AIX traditionally builds its shared libraries.
16934 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'
16940 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)'
16941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16942 hardcode_minus_L_GCJ=yes
16943 # see comment about different semantics on the GNU ld section
16948 export_dynamic_flag_spec_GCJ=-rdynamic
16951 cygwin* | mingw* | pw32*)
16952 # When not using gcc, we currently assume that we are using
16953 # Microsoft Visual C++.
16954 # hardcode_libdir_flag_spec is actually meaningless, as there is
16955 # no search path for DLLs.
16956 hardcode_libdir_flag_spec_GCJ=' '
16957 allow_undefined_flag_GCJ=unsupported
16958 # Tell ltmain to make .lib files, not .a files.
16960 # Tell ltmain to make .dll files, not .so files.
16962 # FIXME: Setting linknames here is a bad hack.
16963 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16964 # The linker will automatically build a .lib file if we build a DLL.
16965 old_archive_From_new_cmds_GCJ='true'
16966 # FIXME: Should let the user specify the lib program.
16967 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16968 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16969 enable_shared_with_static_runtimes_GCJ=yes
16972 darwin* | rhapsody*)
16974 rhapsody* | darwin1.[012])
16975 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16978 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16979 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16981 case ${MACOSX_DEPLOYMENT_TARGET} in
16983 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16986 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16992 archive_cmds_need_lc_GCJ=no
16993 hardcode_direct_GCJ=no
16994 hardcode_automatic_GCJ=yes
16995 hardcode_shlibpath_var_GCJ=unsupported
16996 whole_archive_flag_spec_GCJ=''
16997 link_all_deplibs_GCJ=yes
16998 if test "$GCC" = yes ; then
16999 output_verbose_link_cmd='echo'
17000 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17001 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17002 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17003 archive_expsym_cmds_GCJ='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}'
17004 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}'
17006 case $cc_basename in
17008 output_verbose_link_cmd='echo'
17009 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17010 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17011 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17012 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17013 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}'
17023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025 hardcode_shlibpath_var_GCJ=no
17032 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17033 # support. Future versions do this automatically, but an explicit c++rt0.o
17034 # does not break anything, and helps significantly (at the cost of a little
17037 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17038 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17039 hardcode_direct_GCJ=yes
17040 hardcode_shlibpath_var_GCJ=no
17043 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17045 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17046 hardcode_direct_GCJ=yes
17047 hardcode_minus_L_GCJ=yes
17048 hardcode_shlibpath_var_GCJ=no
17051 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17052 freebsd* | kfreebsd*-gnu | dragonfly*)
17053 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17054 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17055 hardcode_direct_GCJ=yes
17056 hardcode_shlibpath_var_GCJ=no
17060 if test "$GCC" = yes; then
17061 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'
17063 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'
17065 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17066 hardcode_libdir_separator_GCJ=:
17067 hardcode_direct_GCJ=yes
17069 # hardcode_minus_L: Not really in the search PATH,
17070 # but as the default location of the library.
17071 hardcode_minus_L_GCJ=yes
17072 export_dynamic_flag_spec_GCJ='${wl}-E'
17076 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17079 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17088 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17091 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17095 if test "$with_gnu_ld" = no; then
17098 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17099 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17100 hardcode_libdir_separator_GCJ=:
17101 hardcode_direct_GCJ=no
17102 hardcode_shlibpath_var_GCJ=no
17105 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17106 hardcode_direct_GCJ=no
17107 hardcode_shlibpath_var_GCJ=no
17109 # hardcode_minus_L: Not really in the search PATH,
17110 # but as the default location of the library.
17111 hardcode_minus_L_GCJ=yes
17114 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17115 hardcode_libdir_separator_GCJ=:
17116 hardcode_direct_GCJ=yes
17117 export_dynamic_flag_spec_GCJ='${wl}-E'
17119 # hardcode_minus_L: Not really in the search PATH,
17120 # but as the default location of the library.
17121 hardcode_minus_L_GCJ=yes
17127 irix5* | irix6* | nonstopux*)
17128 if test "$GCC" = yes; then
17129 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'
17131 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'
17132 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17134 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17135 hardcode_libdir_separator_GCJ=:
17136 link_all_deplibs_GCJ=yes
17140 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17141 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17143 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17145 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17146 hardcode_direct_GCJ=yes
17147 hardcode_shlibpath_var_GCJ=no
17151 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17152 hardcode_direct_GCJ=yes
17153 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17154 hardcode_libdir_separator_GCJ=:
17155 hardcode_shlibpath_var_GCJ=no
17159 hardcode_direct_GCJ=yes
17160 hardcode_shlibpath_var_GCJ=no
17161 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17162 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17163 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17165 export_dynamic_flag_spec_GCJ='${wl}-E'
17168 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17169 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17170 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17173 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17181 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17182 hardcode_minus_L_GCJ=yes
17183 allow_undefined_flag_GCJ=unsupported
17184 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'
17185 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17189 if test "$GCC" = yes; then
17190 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17191 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'
17193 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17194 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'
17196 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17197 hardcode_libdir_separator_GCJ=:
17200 osf4* | osf5*) # as osf3* with the addition of -msym flag
17201 if test "$GCC" = yes; then
17202 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17203 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'
17204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17206 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17207 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'
17208 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~
17209 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17211 # Both c and cxx compiler support -rpath directly
17212 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17214 hardcode_libdir_separator_GCJ=:
17218 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_shlibpath_var_GCJ=no
17220 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17221 runpath_var=LD_RUN_PATH
17222 hardcode_runpath_var=yes
17226 no_undefined_flag_GCJ=' -z text'
17227 if test "$GCC" = yes; then
17229 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17230 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17231 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17234 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17238 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17239 hardcode_shlibpath_var_GCJ=no
17241 solaris2.[0-5] | solaris2.[0-5].*) ;;
17243 # The compiler driver will combine linker options so we
17244 # cannot just pass the convience library names through
17245 # without $wl, iff we do not link with $LD.
17246 # Luckily, gcc supports the same syntax we need for Sun Studio.
17247 # Supported since Solaris 2.6 (maybe 2.5.1?)
17250 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17252 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17255 link_all_deplibs_GCJ=yes
17259 if test "x$host_vendor" = xsequent; then
17260 # Use $CC to link under sequent, because it throws in some extra .o
17261 # files that make .init and .fini sections work.
17262 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17264 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17266 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17267 hardcode_direct_GCJ=yes
17268 hardcode_minus_L_GCJ=yes
17269 hardcode_shlibpath_var_GCJ=no
17273 case $host_vendor in
17275 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17276 hardcode_direct_GCJ=yes # is this really true???
17279 ## LD is ld it makes a PLAMLIB
17280 ## CC just makes a GrossModule.
17281 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17282 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17283 hardcode_direct_GCJ=no
17286 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17287 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17290 runpath_var='LD_RUN_PATH'
17291 hardcode_shlibpath_var_GCJ=no
17295 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17296 hardcode_shlibpath_var_GCJ=no
17297 export_dynamic_flag_spec_GCJ='-Bexport'
17301 if test -d /usr/nec; then
17302 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17303 hardcode_shlibpath_var_GCJ=no
17304 runpath_var=LD_RUN_PATH
17305 hardcode_runpath_var=yes
17311 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17312 hardcode_direct_GCJ=yes
17313 hardcode_minus_L_GCJ=no
17314 hardcode_shlibpath_var_GCJ=no
17315 hardcode_runpath_var=yes
17316 runpath_var=LD_RUN_PATH
17319 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17320 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17321 if test "$GCC" = yes; then
17322 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17324 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17326 runpath_var='LD_RUN_PATH'
17327 hardcode_shlibpath_var_GCJ=no
17331 no_undefined_flag_GCJ=' -z text'
17332 # $CC -shared without GNU ld will not create a library from C++
17333 # object files and a static libstdc++, better avoid it by now
17334 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17335 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17336 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17337 hardcode_libdir_flag_spec_GCJ=
17338 hardcode_shlibpath_var_GCJ=no
17339 runpath_var='LD_RUN_PATH'
17343 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17344 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17345 hardcode_shlibpath_var_GCJ=no
17354 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17355 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17356 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17358 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17359 if test "$GCC" = yes; then
17360 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17364 # Do we need to explicitly link libc?
17366 case "x$archive_cmds_need_lc_GCJ" in
17368 # Assume -lc should be added
17369 archive_cmds_need_lc_GCJ=yes
17371 if test "$enable_shared" = yes && test "$GCC" = yes; then
17372 case $archive_cmds_GCJ in
17374 # FIXME: we may have to deal with multi-command sequences.
17377 # Test whether the compiler implicitly links with -lc since on some
17378 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17379 # to ld, don't add -lc before -lgcc.
17380 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17381 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17386 (eval $ac_compile) 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } 2>conftest.err; then
17392 libobjs=conftest.$ac_objext
17394 wl=$lt_prog_compiler_wl_GCJ
17400 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17401 allow_undefined_flag_GCJ=
17402 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17403 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }
17408 archive_cmds_need_lc_GCJ=no
17410 archive_cmds_need_lc_GCJ=yes
17412 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17414 cat conftest.err 1>&5
17417 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17418 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17425 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17426 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17427 library_names_spec=
17428 libname_spec='lib$name'
17432 postuninstall_cmds=
17436 shlibpath_overrides_runpath=unknown
17438 dynamic_linker="$host_os ld.so"
17439 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17440 if test "$GCC" = yes; then
17441 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17442 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17443 # if the path contains ";" then we assume it to be the separator
17444 # otherwise default to the standard path separator (i.e. ":") - it is
17445 # assumed that no part of a normal pathname contains ";" but that should
17446 # okay in the real world where ";" in dirpaths is itself problematic.
17447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17452 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17454 need_lib_prefix=unknown
17455 hardcode_into_libs=no
17457 # when you set need_version to no, make sure it does not cause -set_version
17458 # flags to be left without arguments
17459 need_version=unknown
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17465 shlibpath_var=LIBPATH
17467 # AIX 3 has no versioning support, so we append a major version to the name.
17468 soname_spec='${libname}${release}${shared_ext}$major'
17475 hardcode_into_libs=yes
17476 if test "$host_cpu" = ia64; then
17477 # AIX 5 supports IA64
17478 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17479 shlibpath_var=LD_LIBRARY_PATH
17481 # With GCC up to 2.95.x, collect2 would create an import file
17482 # for dependence libraries. The import file would start with
17483 # the line `#! .'. This would cause the generated library to
17484 # depend on `.', always an invalid library. This was fixed in
17485 # development snapshots of GCC prior to 3.0.
17487 aix4 | aix4.[01] | aix4.[01].*)
17488 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17490 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17493 can_build_shared=no
17497 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17498 # soname into executable. Probably we can add versioning support to
17499 # collect2, so additional links can be useful in future.
17500 if test "$aix_use_runtimelinking" = yes; then
17501 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17502 # instead of lib<name>.a to let people know that these are not
17503 # typical AIX shared libraries.
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506 # We preserve .a as extension for shared libraries through AIX4.2
17507 # and later when we are not doing run time linking.
17508 library_names_spec='${libname}${release}.a $libname.a'
17509 soname_spec='${libname}${release}${shared_ext}$major'
17511 shlibpath_var=LIBPATH
17516 library_names_spec='$libname.ixlibrary $libname.a'
17517 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17518 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'
17522 library_names_spec='${libname}${shared_ext}'
17523 dynamic_linker="$host_os ld.so"
17524 shlibpath_var=LIBRARY_PATH
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17533 shlibpath_var=LD_LIBRARY_PATH
17534 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17535 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17536 # the default ld.so.conf also contains /usr/contrib/lib and
17537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17538 # libtool to hard-code these into programs
17541 cygwin* | mingw* | pw32*)
17542 version_type=windows
17547 case $GCC,$host_os in
17548 yes,cygwin* | yes,mingw* | yes,pw32*)
17549 library_names_spec='$libname.dll.a'
17550 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17551 postinstall_cmds='base_file=`basename \${file}`~
17552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17553 dldir=$destdir/`dirname \$dlpath`~
17554 test -d \$dldir || mkdir -p \$dldir~
17555 $install_prog $dir/$dlname \$dldir/$dlname~
17556 chmod a+x \$dldir/$dlname'
17557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17558 dlpath=$dir/\$dldll~
17560 shlibpath_overrides_runpath=yes
17564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17566 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17569 # MinGW DLLs use traditional 'lib' prefix
17570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17572 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17573 # It is most probably a Windows format PATH printed by
17574 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17575 # path with ; separators, and with drive letters. We can handle the
17576 # drive letters (cygwin fileutils understands them), so leave them,
17577 # especially as we might pass files found there to a mingw objdump,
17578 # which wouldn't understand a cygwinified path. Ahh.
17579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17585 # pw32 DLLs use 'pw' prefix rather than 'lib'
17586 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17592 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17595 dynamic_linker='Win32 ld.exe'
17596 # FIXME: first we should search . and the directory the executable is in
17600 darwin* | rhapsody*)
17601 dynamic_linker="$host_os dyld"
17602 version_type=darwin
17605 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17606 soname_spec='${libname}${release}${major}$shared_ext'
17607 shlibpath_overrides_runpath=yes
17608 shlibpath_var=DYLD_LIBRARY_PATH
17609 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17610 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17611 if test "$GCC" = yes; then
17612 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"`
17614 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17616 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 shlibpath_var=LD_LIBRARY_PATH
17636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17637 soname_spec='${libname}${release}${shared_ext}$major'
17638 shlibpath_var=LD_LIBRARY_PATH
17639 shlibpath_overrides_runpath=no
17640 hardcode_into_libs=yes
17641 dynamic_linker='GNU ld.so'
17644 freebsd* | dragonfly*)
17645 # DragonFly does not have aout. When/if they implement a new
17646 # versioning mechanism, adjust this.
17647 if test -x /usr/bin/objformat; then
17648 objformat=`/usr/bin/objformat`
17651 freebsd[123]*) objformat=aout ;;
17652 *) objformat=elf ;;
17655 version_type=freebsd-$objformat
17656 case $version_type in
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17667 shlibpath_var=LD_LIBRARY_PATH
17670 shlibpath_overrides_runpath=yes
17672 freebsd3.[01]* | freebsdelf3.[01]*)
17673 shlibpath_overrides_runpath=yes
17674 hardcode_into_libs=yes
17677 shlibpath_overrides_runpath=no
17678 hardcode_into_libs=yes
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 shlibpath_var=LD_LIBRARY_PATH
17690 hardcode_into_libs=yes
17693 hpux9* | hpux10* | hpux11*)
17694 # Give a soname corresponding to the major version so that dld.sl refuses to
17695 # link against other versions.
17702 hardcode_into_libs=yes
17703 dynamic_linker="$host_os dld.so"
17704 shlibpath_var=LD_LIBRARY_PATH
17705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17707 soname_spec='${libname}${release}${shared_ext}$major'
17708 if test "X$HPUX_IA64_MODE" = X32; then
17709 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17711 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17717 hardcode_into_libs=yes
17718 dynamic_linker="$host_os dld.sl"
17719 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722 soname_spec='${libname}${release}${shared_ext}$major'
17723 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17728 dynamic_linker="$host_os dld.sl"
17729 shlibpath_var=SHLIB_PATH
17730 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732 soname_spec='${libname}${release}${shared_ext}$major'
17735 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17736 postinstall_cmds='chmod 555 $lib'
17739 irix5* | irix6* | nonstopux*)
17741 nonstopux*) version_type=nonstopux ;;
17743 if test "$lt_cv_prog_gnu_ld" = yes; then
17751 soname_spec='${libname}${release}${shared_ext}$major'
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17754 irix5* | nonstopux*)
17755 libsuff= shlibsuff=
17758 case $LD in # libtool.m4 will add one of these switches to LD
17759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17760 libsuff= shlibsuff= libmagic=32-bit;;
17761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17762 libsuff=32 shlibsuff=N32 libmagic=N32;;
17763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17765 *) libsuff= shlibsuff= libmagic=never-match;;
17769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17770 shlibpath_overrides_runpath=no
17771 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17772 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17773 hardcode_into_libs=yes
17776 # No shared lib support for Linux oldld, aout, or coff.
17777 linux*oldld* | linux*aout* | linux*coff*)
17781 # This must be Linux ELF.
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17789 shlibpath_var=LD_LIBRARY_PATH
17790 shlibpath_overrides_runpath=no
17791 # This implies no fast_install, which is unacceptable.
17792 # Some rework will be needed to allow for fast_install
17793 # before this can be enabled.
17794 hardcode_into_libs=yes
17796 # Append ld.so.conf contents to the search path
17797 if test -f /etc/ld.so.conf; then
17798 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17799 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17802 # We used to test for /lib/ld.so.1 and disable shared libraries on
17803 # powerpc, because MkLinux only supported shared libraries with the
17804 # GNU dynamic linker. Since this was broken with cross compilers,
17805 # most powerpc-linux boxes support dynamic linking these days and
17806 # people can always --disable-shared, the test was removed, and we
17807 # assume the GNU/Linux dynamic linker is in use.
17808 dynamic_linker='GNU/Linux ld.so'
17815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17816 soname_spec='${libname}${release}${shared_ext}$major'
17817 shlibpath_var=LD_LIBRARY_PATH
17818 shlibpath_overrides_runpath=no
17819 hardcode_into_libs=yes
17820 dynamic_linker='GNU ld.so'
17827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17830 dynamic_linker='NetBSD (a.out) ld.so'
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17833 soname_spec='${libname}${release}${shared_ext}$major'
17834 dynamic_linker='NetBSD ld.elf_so'
17836 shlibpath_var=LD_LIBRARY_PATH
17837 shlibpath_overrides_runpath=yes
17838 hardcode_into_libs=yes
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844 shlibpath_var=LD_LIBRARY_PATH
17845 shlibpath_overrides_runpath=yes
17852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17853 soname_spec='${libname}${release}${shared_ext}$major'
17854 shlibpath_var=LD_LIBRARY_PATH
17855 shlibpath_overrides_runpath=yes
17861 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17863 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17864 *) need_version=no ;;
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17868 shlibpath_var=LD_LIBRARY_PATH
17869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17871 openbsd2.[89] | openbsd2.[89].*)
17872 shlibpath_overrides_runpath=no
17875 shlibpath_overrides_runpath=yes
17879 shlibpath_overrides_runpath=yes
17884 libname_spec='$name'
17887 library_names_spec='$libname${shared_ext} $libname.a'
17888 dynamic_linker='OS/2 ld.exe'
17889 shlibpath_var=LIBPATH
17892 osf3* | osf4* | osf5*)
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898 shlibpath_var=LD_LIBRARY_PATH
17899 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17900 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907 shlibpath_var=LD_LIBRARY_PATH
17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17915 soname_spec='${libname}${release}${shared_ext}$major'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 shlibpath_overrides_runpath=yes
17918 hardcode_into_libs=yes
17919 # ldd complains unless libraries are executable
17920 postinstall_cmds='chmod +x $lib'
17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17926 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17927 shlibpath_var=LD_LIBRARY_PATH
17928 shlibpath_overrides_runpath=yes
17929 if test "$with_gnu_ld" = yes; then
17935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17938 soname_spec='${libname}${release}${shared_ext}$major'
17939 shlibpath_var=LD_LIBRARY_PATH
17940 case $host_vendor in
17942 shlibpath_overrides_runpath=no
17944 export_dynamic_flag_spec='${wl}-Blargedynsym'
17945 runpath_var=LD_RUN_PATH
17953 shlibpath_overrides_runpath=no
17954 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17960 if test -d /usr/nec ;then
17962 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17963 soname_spec='$libname${shared_ext}.$major'
17964 shlibpath_var=LD_LIBRARY_PATH
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971 soname_spec='${libname}${release}${shared_ext}$major'
17972 shlibpath_var=LD_LIBRARY_PATH
17979 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17980 echo "${ECHO_T}$dynamic_linker" >&6
17981 test "$dynamic_linker" = no && can_build_shared=no
17983 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17984 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17985 hardcode_action_GCJ=
17986 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17987 test -n "$runpath_var_GCJ" || \
17988 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17990 # We can hardcode non-existant directories.
17991 if test "$hardcode_direct_GCJ" != no &&
17992 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17993 # have to relink, otherwise we might link with an installed library
17994 # when we should be linking with a yet-to-be-installed one
17995 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17996 test "$hardcode_minus_L_GCJ" != no; then
17997 # Linking always hardcodes the temporary library directory.
17998 hardcode_action_GCJ=relink
18000 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18001 hardcode_action_GCJ=immediate
18004 # We cannot hardcode anything, or else we can only hardcode existing
18006 hardcode_action_GCJ=unsupported
18008 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18009 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18011 if test "$hardcode_action_GCJ" = relink; then
18012 # Fast installation is not supported
18013 enable_fast_install=no
18014 elif test "$shlibpath_overrides_runpath" = yes ||
18015 test "$enable_shared" = no; then
18016 # Fast installation is not necessary
18017 enable_fast_install=needless
18022 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18023 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18024 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18025 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18026 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18027 echo "$as_me:$LINENO: result: yes" >&5
18028 echo "${ECHO_T}yes" >&6
18030 # FIXME - insert some real tests, host_os isn't really good enough
18033 if test -n "$STRIP" ; then
18034 striplib="$STRIP -x"
18035 echo "$as_me:$LINENO: result: yes" >&5
18036 echo "${ECHO_T}yes" >&6
18038 echo "$as_me:$LINENO: result: no" >&5
18039 echo "${ECHO_T}no" >&6
18043 echo "$as_me:$LINENO: result: no" >&5
18044 echo "${ECHO_T}no" >&6
18049 if test "x$enable_dlopen" != xyes; then
18050 enable_dlopen=unknown
18051 enable_dlopen_self=unknown
18052 enable_dlopen_self_static=unknown
18059 lt_cv_dlopen="load_add_on"
18061 lt_cv_dlopen_self=yes
18065 lt_cv_dlopen="LoadLibrary"
18070 lt_cv_dlopen="dlopen"
18075 # if libdl is installed we need to link against it
18076 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 ac_check_lib_save_LIBS=$LIBS
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18090 /* Override any gcc2 internal prototype to avoid an error. */
18094 /* We use char because int might match the return type of a gcc2
18095 builtin and then its argument prototype would still apply. */
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18107 (eval $ac_link) 2>conftest.er1
18109 grep -v '^ *+' conftest.er1 >conftest.err
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_c_werror_flag"
18115 || test ! -s conftest.err'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest$ac_exeext'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_cv_lib_dl_dlopen=yes
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18132 ac_cv_lib_dl_dlopen=no
18134 rm -f conftest.err conftest.$ac_objext \
18135 conftest$ac_exeext conftest.$ac_ext
18136 LIBS=$ac_check_lib_save_LIBS
18138 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18139 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18140 if test $ac_cv_lib_dl_dlopen = yes; then
18141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18144 lt_cv_dlopen="dyld"
18146 lt_cv_dlopen_self=yes
18153 echo "$as_me:$LINENO: checking for shl_load" >&5
18154 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18155 if test "${ac_cv_func_shl_load+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18166 #define shl_load innocuous_shl_load
18168 /* System header to define __stub macros and hopefully few prototypes,
18169 which can conflict with char shl_load (); below.
18170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18171 <limits.h> exists even on freestanding compilers. */
18174 # include <limits.h>
18176 # include <assert.h>
18181 /* Override any gcc2 internal prototype to avoid an error. */
18186 /* We use char because int might match the return type of a gcc2
18187 builtin and then its argument prototype would still apply. */
18189 /* The GNU C library defines this for functions which it implements
18190 to always fail with ENOSYS. Some functions are actually named
18191 something starting with __ and the normal name is an alias. */
18192 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18195 char (*f) () = shl_load;
18204 return f != shl_load;
18209 rm -f conftest.$ac_objext conftest$ac_exeext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211 (eval $ac_link) 2>conftest.er1
18213 grep -v '^ *+' conftest.er1 >conftest.err
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag"
18219 || test ! -s conftest.err'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest$ac_exeext'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 ac_cv_func_shl_load=yes
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18236 ac_cv_func_shl_load=no
18238 rm -f conftest.err conftest.$ac_objext \
18239 conftest$ac_exeext conftest.$ac_ext
18241 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18242 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18243 if test $ac_cv_func_shl_load = yes; then
18244 lt_cv_dlopen="shl_load"
18246 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18247 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18248 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 ac_check_lib_save_LIBS=$LIBS
18253 cat >conftest.$ac_ext <<_ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18260 /* Override any gcc2 internal prototype to avoid an error. */
18264 /* We use char because int might match the return type of a gcc2
18265 builtin and then its argument prototype would still apply. */
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18277 (eval $ac_link) 2>conftest.er1
18279 grep -v '^ *+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag"
18285 || test ! -s conftest.err'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest$ac_exeext'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_cv_lib_dld_shl_load=yes
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_cv_lib_dld_shl_load=no
18304 rm -f conftest.err conftest.$ac_objext \
18305 conftest$ac_exeext conftest.$ac_ext
18306 LIBS=$ac_check_lib_save_LIBS
18308 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18309 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18310 if test $ac_cv_lib_dld_shl_load = yes; then
18311 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18313 echo "$as_me:$LINENO: checking for dlopen" >&5
18314 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18315 if test "${ac_cv_func_dlopen+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 cat >conftest.$ac_ext <<_ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18326 #define dlopen innocuous_dlopen
18328 /* System header to define __stub macros and hopefully few prototypes,
18329 which can conflict with char dlopen (); below.
18330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18331 <limits.h> exists even on freestanding compilers. */
18334 # include <limits.h>
18336 # include <assert.h>
18341 /* Override any gcc2 internal prototype to avoid an error. */
18346 /* We use char because int might match the return type of a gcc2
18347 builtin and then its argument prototype would still apply. */
18349 /* The GNU C library defines this for functions which it implements
18350 to always fail with ENOSYS. Some functions are actually named
18351 something starting with __ and the normal name is an alias. */
18352 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18355 char (*f) () = dlopen;
18364 return f != dlopen;
18369 rm -f conftest.$ac_objext conftest$ac_exeext
18370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18371 (eval $ac_link) 2>conftest.er1
18373 grep -v '^ *+' conftest.er1 >conftest.err
18375 cat conftest.err >&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
18378 { ac_try='test -z "$ac_c_werror_flag"
18379 || test ! -s conftest.err'
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest$ac_exeext'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_func_dlopen=yes
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_cv_func_dlopen=no
18398 rm -f conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18401 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18402 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18403 if test $ac_cv_func_dlopen = yes; then
18404 lt_cv_dlopen="dlopen"
18406 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18407 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18411 ac_check_lib_save_LIBS=$LIBS
18413 cat >conftest.$ac_ext <<_ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18420 /* Override any gcc2 internal prototype to avoid an error. */
18424 /* We use char because int might match the return type of a gcc2
18425 builtin and then its argument prototype would still apply. */
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18437 (eval $ac_link) 2>conftest.er1
18439 grep -v '^ *+' conftest.er1 >conftest.err
18441 cat conftest.err >&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } &&
18444 { ac_try='test -z "$ac_c_werror_flag"
18445 || test ! -s conftest.err'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 ac_cv_lib_dl_dlopen=yes
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18462 ac_cv_lib_dl_dlopen=no
18464 rm -f conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18468 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18469 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18470 if test $ac_cv_lib_dl_dlopen = yes; then
18471 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18473 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18474 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18475 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 ac_check_lib_save_LIBS=$LIBS
18479 LIBS="-lsvld $LIBS"
18480 cat >conftest.$ac_ext <<_ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18487 /* Override any gcc2 internal prototype to avoid an error. */
18491 /* We use char because int might match the return type of a gcc2
18492 builtin and then its argument prototype would still apply. */
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18504 (eval $ac_link) 2>conftest.er1
18506 grep -v '^ *+' conftest.er1 >conftest.err
18508 cat conftest.err >&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } &&
18511 { ac_try='test -z "$ac_c_werror_flag"
18512 || test ! -s conftest.err'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; }; then
18524 ac_cv_lib_svld_dlopen=yes
18526 echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18529 ac_cv_lib_svld_dlopen=no
18531 rm -f conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18533 LIBS=$ac_check_lib_save_LIBS
18535 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18536 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18537 if test $ac_cv_lib_svld_dlopen = yes; then
18538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18540 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18541 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18542 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 ac_check_lib_save_LIBS=$LIBS
18547 cat >conftest.$ac_ext <<_ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18554 /* Override any gcc2 internal prototype to avoid an error. */
18558 /* We use char because int might match the return type of a gcc2
18559 builtin and then its argument prototype would still apply. */
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18571 (eval $ac_link) 2>conftest.er1
18573 grep -v '^ *+' conftest.er1 >conftest.err
18575 cat conftest.err >&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); } &&
18578 { ac_try='test -z "$ac_c_werror_flag"
18579 || test ! -s conftest.err'
18580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; } &&
18585 { ac_try='test -s conftest$ac_exeext'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591 ac_cv_lib_dld_dld_link=yes
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 ac_cv_lib_dld_dld_link=no
18598 rm -f conftest.err conftest.$ac_objext \
18599 conftest$ac_exeext conftest.$ac_ext
18600 LIBS=$ac_check_lib_save_LIBS
18602 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18603 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18604 if test $ac_cv_lib_dld_dld_link = yes; then
18605 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18626 if test "x$lt_cv_dlopen" != xno; then
18632 case $lt_cv_dlopen in
18634 save_CPPFLAGS="$CPPFLAGS"
18635 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18637 save_LDFLAGS="$LDFLAGS"
18638 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18641 LIBS="$lt_cv_dlopen_libs $LIBS"
18643 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18644 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18645 if test "${lt_cv_dlopen_self+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18648 if test "$cross_compiling" = yes; then :
18649 lt_cv_dlopen_self=cross
18651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18652 lt_status=$lt_dlunknown
18653 cat > conftest.$ac_ext <<EOF
18654 #line 18654 "configure"
18655 #include "confdefs.h"
18664 # define LT_DLGLOBAL RTLD_GLOBAL
18667 # define LT_DLGLOBAL DL_GLOBAL
18669 # define LT_DLGLOBAL 0
18673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18674 find out it does not work in some platform. */
18675 #ifndef LT_DLLAZY_OR_NOW
18677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18680 # define LT_DLLAZY_OR_NOW DL_LAZY
18683 # define LT_DLLAZY_OR_NOW RTLD_NOW
18686 # define LT_DLLAZY_OR_NOW DL_NOW
18688 # define LT_DLLAZY_OR_NOW 0
18696 extern "C" void exit (int);
18699 void fnord() { int i=42;}
18702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18703 int status = $lt_dlunknown;
18707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18708 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18709 /* dlclose (self); */
18715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18716 (eval $ac_link) 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18720 (./conftest; exit; ) >&5 2>/dev/null
18722 case x$lt_status in
18723 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18724 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18725 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18728 # compilation failed
18729 lt_cv_dlopen_self=no
18736 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18737 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18739 if test "x$lt_cv_dlopen_self" = xyes; then
18740 LDFLAGS="$LDFLAGS $link_static_flag"
18741 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18742 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18743 if test "${lt_cv_dlopen_self_static+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 if test "$cross_compiling" = yes; then :
18747 lt_cv_dlopen_self_static=cross
18749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18750 lt_status=$lt_dlunknown
18751 cat > conftest.$ac_ext <<EOF
18752 #line 18752 "configure"
18753 #include "confdefs.h"
18762 # define LT_DLGLOBAL RTLD_GLOBAL
18765 # define LT_DLGLOBAL DL_GLOBAL
18767 # define LT_DLGLOBAL 0
18771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18772 find out it does not work in some platform. */
18773 #ifndef LT_DLLAZY_OR_NOW
18775 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18778 # define LT_DLLAZY_OR_NOW DL_LAZY
18781 # define LT_DLLAZY_OR_NOW RTLD_NOW
18784 # define LT_DLLAZY_OR_NOW DL_NOW
18786 # define LT_DLLAZY_OR_NOW 0
18794 extern "C" void exit (int);
18797 void fnord() { int i=42;}
18800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18801 int status = $lt_dlunknown;
18805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18807 /* dlclose (self); */
18813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18814 (eval $ac_link) 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18818 (./conftest; exit; ) >&5 2>/dev/null
18820 case x$lt_status in
18821 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18822 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18823 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18826 # compilation failed
18827 lt_cv_dlopen_self_static=no
18834 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18835 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18838 CPPFLAGS="$save_CPPFLAGS"
18839 LDFLAGS="$save_LDFLAGS"
18844 case $lt_cv_dlopen_self in
18845 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18846 *) enable_dlopen_self=unknown ;;
18849 case $lt_cv_dlopen_self_static in
18850 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18851 *) enable_dlopen_self_static=unknown ;;
18856 # The else clause should only fire when bootstrapping the
18857 # libtool distribution, otherwise you forgot to ship ltmain.sh
18858 # with your package, and you will get complaints that there are
18859 # no rules to generate ltmain.sh.
18860 if test -f "$ltmain"; then
18861 # See if we are running on zsh, and set the options which allow our commands through
18862 # without removal of \ escapes.
18863 if test -n "${ZSH_VERSION+set}" ; then
18864 setopt NO_GLOB_SUBST
18866 # Now quote all the things that may contain metacharacters while being
18867 # careful not to overquote the AC_SUBSTed values. We take copies of the
18868 # variables and quote the copies for generation of the libtool script.
18869 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18871 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18872 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18873 deplibs_check_method reload_flag reload_cmds need_locks \
18874 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18875 lt_cv_sys_global_symbol_to_c_name_address \
18876 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18877 old_postinstall_cmds old_postuninstall_cmds \
18881 lt_prog_compiler_wl_GCJ \
18882 lt_prog_compiler_pic_GCJ \
18883 lt_prog_compiler_static_GCJ \
18884 lt_prog_compiler_no_builtin_flag_GCJ \
18885 export_dynamic_flag_spec_GCJ \
18886 thread_safe_flag_spec_GCJ \
18887 whole_archive_flag_spec_GCJ \
18888 enable_shared_with_static_runtimes_GCJ \
18889 old_archive_cmds_GCJ \
18890 old_archive_from_new_cmds_GCJ \
18891 predep_objects_GCJ \
18892 postdep_objects_GCJ \
18895 compiler_lib_search_path_GCJ \
18897 archive_expsym_cmds_GCJ \
18898 postinstall_cmds_GCJ \
18899 postuninstall_cmds_GCJ \
18900 old_archive_from_expsyms_cmds_GCJ \
18901 allow_undefined_flag_GCJ \
18902 no_undefined_flag_GCJ \
18903 export_symbols_cmds_GCJ \
18904 hardcode_libdir_flag_spec_GCJ \
18905 hardcode_libdir_flag_spec_ld_GCJ \
18906 hardcode_libdir_separator_GCJ \
18907 hardcode_automatic_GCJ \
18909 module_expsym_cmds_GCJ \
18910 lt_cv_prog_compiler_c_o_GCJ \
18911 exclude_expsyms_GCJ \
18912 include_expsyms_GCJ; do
18915 old_archive_cmds_GCJ | \
18916 old_archive_from_new_cmds_GCJ | \
18917 archive_cmds_GCJ | \
18918 archive_expsym_cmds_GCJ | \
18919 module_cmds_GCJ | \
18920 module_expsym_cmds_GCJ | \
18921 old_archive_from_expsyms_cmds_GCJ | \
18922 export_symbols_cmds_GCJ | \
18923 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18924 postinstall_cmds | postuninstall_cmds | \
18925 old_postinstall_cmds | old_postuninstall_cmds | \
18926 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18927 # Double-quote double-evaled strings.
18928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18937 *'\$0 --fallback-echo"')
18938 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18944 cat <<__EOF__ >> "$cfgfile"
18945 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18947 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18949 # Shell to use when invoking shell scripts.
18952 # Whether or not to build shared libraries.
18953 build_libtool_libs=$enable_shared
18955 # Whether or not to build static libraries.
18956 build_old_libs=$enable_static
18958 # Whether or not to add -lc for building shared libraries.
18959 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18961 # Whether or not to disallow shared libs when runtime libs are static
18962 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18964 # Whether or not to optimize for fast installation.
18965 fast_install=$enable_fast_install
18968 host_alias=$host_alias
18972 # The build system.
18973 build_alias=$build_alias
18977 # An echo program that does not interpret backslashes.
18982 AR_FLAGS=$lt_AR_FLAGS
18987 # A language-specific compiler.
18988 CC=$lt_compiler_GCJ
18990 # Is the compiler the GNU C compiler?
18996 # The linker used to build libraries.
18999 # Whether we need hard or soft links.
19002 # A BSD-compatible nm program.
19005 # A symbol stripping program
19008 # Used to examine libraries when file_magic_cmd begins "file"
19009 MAGIC_CMD=$MAGIC_CMD
19011 # Used on cygwin: DLL creation program.
19014 # Used on cygwin: object dumper.
19017 # Used on cygwin: assembler.
19020 # The name of the directory that contains temporary libtool files.
19023 # How to create reloadable object files.
19024 reload_flag=$lt_reload_flag
19025 reload_cmds=$lt_reload_cmds
19027 # How to pass a linker flag through the compiler.
19028 wl=$lt_lt_prog_compiler_wl_GCJ
19030 # Object file suffix (normally "o").
19031 objext="$ac_objext"
19033 # Old archive suffix (normally "a").
19036 # Shared library suffix (normally ".so").
19037 shrext_cmds='$shrext_cmds'
19039 # Executable file suffix (normally "").
19042 # Additional compiler flags for building library objects.
19043 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19046 # What is the maximum length of a command?
19047 max_cmd_len=$lt_cv_sys_max_cmd_len
19049 # Does compiler simultaneously support -c and -o options?
19050 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19052 # Must we lock files when doing compilation?
19053 need_locks=$lt_need_locks
19055 # Do we need the lib prefix for modules?
19056 need_lib_prefix=$need_lib_prefix
19058 # Do we need a version for libraries?
19059 need_version=$need_version
19061 # Whether dlopen is supported.
19062 dlopen_support=$enable_dlopen
19064 # Whether dlopen of programs is supported.
19065 dlopen_self=$enable_dlopen_self
19067 # Whether dlopen of statically linked programs is supported.
19068 dlopen_self_static=$enable_dlopen_self_static
19070 # Compiler flag to prevent dynamic linking.
19071 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19073 # Compiler flag to turn off builtin functions.
19074 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19076 # Compiler flag to allow reflexive dlopens.
19077 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19079 # Compiler flag to generate shared objects directly from archives.
19080 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19082 # Compiler flag to generate thread-safe objects.
19083 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19085 # Library versioning type.
19086 version_type=$version_type
19088 # Format of library name prefix.
19089 libname_spec=$lt_libname_spec
19091 # List of archive names. First name is the real one, the rest are links.
19092 # The last name is the one that the linker finds with -lNAME.
19093 library_names_spec=$lt_library_names_spec
19095 # The coded name of the library, if different from the real name.
19096 soname_spec=$lt_soname_spec
19098 # Commands used to build and install an old-style archive.
19100 old_archive_cmds=$lt_old_archive_cmds_GCJ
19101 old_postinstall_cmds=$lt_old_postinstall_cmds
19102 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19104 # Create an old-style archive from a shared archive.
19105 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19107 # Create a temporary old-style archive to link instead of a shared archive.
19108 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19110 # Commands used to build and install a shared archive.
19111 archive_cmds=$lt_archive_cmds_GCJ
19112 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19113 postinstall_cmds=$lt_postinstall_cmds
19114 postuninstall_cmds=$lt_postuninstall_cmds
19116 # Commands used to build a loadable module (assumed same as above if empty)
19117 module_cmds=$lt_module_cmds_GCJ
19118 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19120 # Commands to strip libraries.
19121 old_striplib=$lt_old_striplib
19122 striplib=$lt_striplib
19124 # Dependencies to place before the objects being linked to create a
19126 predep_objects=$lt_predep_objects_GCJ
19128 # Dependencies to place after the objects being linked to create a
19130 postdep_objects=$lt_postdep_objects_GCJ
19132 # Dependencies to place before the objects being linked to create a
19134 predeps=$lt_predeps_GCJ
19136 # Dependencies to place after the objects being linked to create a
19138 postdeps=$lt_postdeps_GCJ
19140 # The library search path used internally by the compiler when linking
19141 # a shared library.
19142 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19144 # Method to check whether dependent libraries are shared objects.
19145 deplibs_check_method=$lt_deplibs_check_method
19147 # Command to use when deplibs_check_method == file_magic.
19148 file_magic_cmd=$lt_file_magic_cmd
19150 # Flag that allows shared libraries with undefined symbols to be built.
19151 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19153 # Flag that forces no undefined symbols.
19154 no_undefined_flag=$lt_no_undefined_flag_GCJ
19156 # Commands used to finish a libtool library installation in a directory.
19157 finish_cmds=$lt_finish_cmds
19159 # Same as above, but a single script fragment to be evaled but not shown.
19160 finish_eval=$lt_finish_eval
19162 # Take the output of nm and produce a listing of raw symbols and C names.
19163 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19165 # Transform the output of nm in a proper C declaration
19166 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19168 # Transform the output of nm in a C name address pair
19169 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19171 # This is the shared library runtime path variable.
19172 runpath_var=$runpath_var
19174 # This is the shared library path variable.
19175 shlibpath_var=$shlibpath_var
19177 # Is shlibpath searched before the hard-coded library search path?
19178 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19180 # How to hardcode a shared library path into an executable.
19181 hardcode_action=$hardcode_action_GCJ
19183 # Whether we should hardcode library paths into libraries.
19184 hardcode_into_libs=$hardcode_into_libs
19186 # Flag to hardcode \$libdir into a binary during linking.
19187 # This must work even if \$libdir does not exist.
19188 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19190 # If ld is used when linking, flag to hardcode \$libdir into
19191 # a binary during linking. This must work even if \$libdir does
19193 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19195 # Whether we need a single -rpath flag with a separated argument.
19196 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19198 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19199 # resulting binary.
19200 hardcode_direct=$hardcode_direct_GCJ
19202 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19203 # resulting binary.
19204 hardcode_minus_L=$hardcode_minus_L_GCJ
19206 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19207 # the resulting binary.
19208 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19210 # Set to yes if building a shared library automatically hardcodes DIR into the library
19211 # and all subsequent libraries and executables linked against it.
19212 hardcode_automatic=$hardcode_automatic_GCJ
19214 # Variables whose values should be saved in libtool wrapper scripts and
19215 # restored at relink time.
19216 variables_saved_for_relink="$variables_saved_for_relink"
19218 # Whether libtool must link a program against all its dependency libraries.
19219 link_all_deplibs=$link_all_deplibs_GCJ
19221 # Compile-time system search path for libraries
19222 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19224 # Run-time system search path for libraries
19225 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19227 # Fix the shell variable \$srcfile for the compiler.
19228 fix_srcfile_path="$fix_srcfile_path_GCJ"
19230 # Set to yes if exported symbols are required.
19231 always_export_symbols=$always_export_symbols_GCJ
19233 # The commands to list exported symbols.
19234 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19236 # The commands to extract the exported symbol list from a shared archive.
19237 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19239 # Symbols that should not be listed in the preloaded symbols.
19240 exclude_expsyms=$lt_exclude_expsyms_GCJ
19242 # Symbols that must always be exported.
19243 include_expsyms=$lt_include_expsyms_GCJ
19245 # ### END LIBTOOL TAG CONFIG: $tagname
19251 # If there is no Makefile yet, we rely on a make rule to execute
19252 # `config.status --recheck' to rerun these tests and create the
19253 # libtool script then.
19254 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19255 if test -f "$ltmain_in"; then
19256 test -f Makefile && make "$ltmain"
19262 ac_cpp='$CPP $CPPFLAGS'
19263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19278 # Source file extension for RC test sources.
19281 # Object file extension for compiled RC test sources.
19285 # Code to be used in simple compile tests
19286 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19288 # Code to be used in simple link tests
19289 lt_simple_link_test_code="$lt_simple_compile_test_code"
19291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19293 # If no C compiler was specified, use CC.
19296 # Allow CC to be a program name with arguments.
19300 # save warnings/boilerplate of simple test code
19301 ac_outfile=conftest.$ac_objext
19302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19304 _lt_compiler_boilerplate=`cat conftest.err`
19307 ac_outfile=conftest.$ac_objext
19308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19310 _lt_linker_boilerplate=`cat conftest.err`
19314 # Allow CC to be a program name with arguments.
19319 for cc_temp in $compiler""; do
19321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19327 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19329 lt_cv_prog_compiler_c_o_RC=yes
19331 # The else clause should only fire when bootstrapping the
19332 # libtool distribution, otherwise you forgot to ship ltmain.sh
19333 # with your package, and you will get complaints that there are
19334 # no rules to generate ltmain.sh.
19335 if test -f "$ltmain"; then
19336 # See if we are running on zsh, and set the options which allow our commands through
19337 # without removal of \ escapes.
19338 if test -n "${ZSH_VERSION+set}" ; then
19339 setopt NO_GLOB_SUBST
19341 # Now quote all the things that may contain metacharacters while being
19342 # careful not to overquote the AC_SUBSTed values. We take copies of the
19343 # variables and quote the copies for generation of the libtool script.
19344 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19346 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19347 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19348 deplibs_check_method reload_flag reload_cmds need_locks \
19349 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19350 lt_cv_sys_global_symbol_to_c_name_address \
19351 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19352 old_postinstall_cmds old_postuninstall_cmds \
19356 lt_prog_compiler_wl_RC \
19357 lt_prog_compiler_pic_RC \
19358 lt_prog_compiler_static_RC \
19359 lt_prog_compiler_no_builtin_flag_RC \
19360 export_dynamic_flag_spec_RC \
19361 thread_safe_flag_spec_RC \
19362 whole_archive_flag_spec_RC \
19363 enable_shared_with_static_runtimes_RC \
19364 old_archive_cmds_RC \
19365 old_archive_from_new_cmds_RC \
19366 predep_objects_RC \
19367 postdep_objects_RC \
19370 compiler_lib_search_path_RC \
19372 archive_expsym_cmds_RC \
19373 postinstall_cmds_RC \
19374 postuninstall_cmds_RC \
19375 old_archive_from_expsyms_cmds_RC \
19376 allow_undefined_flag_RC \
19377 no_undefined_flag_RC \
19378 export_symbols_cmds_RC \
19379 hardcode_libdir_flag_spec_RC \
19380 hardcode_libdir_flag_spec_ld_RC \
19381 hardcode_libdir_separator_RC \
19382 hardcode_automatic_RC \
19384 module_expsym_cmds_RC \
19385 lt_cv_prog_compiler_c_o_RC \
19386 exclude_expsyms_RC \
19387 include_expsyms_RC; do
19390 old_archive_cmds_RC | \
19391 old_archive_from_new_cmds_RC | \
19392 archive_cmds_RC | \
19393 archive_expsym_cmds_RC | \
19395 module_expsym_cmds_RC | \
19396 old_archive_from_expsyms_cmds_RC | \
19397 export_symbols_cmds_RC | \
19398 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19399 postinstall_cmds | postuninstall_cmds | \
19400 old_postinstall_cmds | old_postuninstall_cmds | \
19401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19402 # Double-quote double-evaled strings.
19403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19412 *'\$0 --fallback-echo"')
19413 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19419 cat <<__EOF__ >> "$cfgfile"
19420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19424 # Shell to use when invoking shell scripts.
19427 # Whether or not to build shared libraries.
19428 build_libtool_libs=$enable_shared
19430 # Whether or not to build static libraries.
19431 build_old_libs=$enable_static
19433 # Whether or not to add -lc for building shared libraries.
19434 build_libtool_need_lc=$archive_cmds_need_lc_RC
19436 # Whether or not to disallow shared libs when runtime libs are static
19437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19439 # Whether or not to optimize for fast installation.
19440 fast_install=$enable_fast_install
19443 host_alias=$host_alias
19447 # The build system.
19448 build_alias=$build_alias
19452 # An echo program that does not interpret backslashes.
19457 AR_FLAGS=$lt_AR_FLAGS
19462 # A language-specific compiler.
19465 # Is the compiler the GNU C compiler?
19471 # The linker used to build libraries.
19474 # Whether we need hard or soft links.
19477 # A BSD-compatible nm program.
19480 # A symbol stripping program
19483 # Used to examine libraries when file_magic_cmd begins "file"
19484 MAGIC_CMD=$MAGIC_CMD
19486 # Used on cygwin: DLL creation program.
19489 # Used on cygwin: object dumper.
19492 # Used on cygwin: assembler.
19495 # The name of the directory that contains temporary libtool files.
19498 # How to create reloadable object files.
19499 reload_flag=$lt_reload_flag
19500 reload_cmds=$lt_reload_cmds
19502 # How to pass a linker flag through the compiler.
19503 wl=$lt_lt_prog_compiler_wl_RC
19505 # Object file suffix (normally "o").
19506 objext="$ac_objext"
19508 # Old archive suffix (normally "a").
19511 # Shared library suffix (normally ".so").
19512 shrext_cmds='$shrext_cmds'
19514 # Executable file suffix (normally "").
19517 # Additional compiler flags for building library objects.
19518 pic_flag=$lt_lt_prog_compiler_pic_RC
19521 # What is the maximum length of a command?
19522 max_cmd_len=$lt_cv_sys_max_cmd_len
19524 # Does compiler simultaneously support -c and -o options?
19525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19527 # Must we lock files when doing compilation?
19528 need_locks=$lt_need_locks
19530 # Do we need the lib prefix for modules?
19531 need_lib_prefix=$need_lib_prefix
19533 # Do we need a version for libraries?
19534 need_version=$need_version
19536 # Whether dlopen is supported.
19537 dlopen_support=$enable_dlopen
19539 # Whether dlopen of programs is supported.
19540 dlopen_self=$enable_dlopen_self
19542 # Whether dlopen of statically linked programs is supported.
19543 dlopen_self_static=$enable_dlopen_self_static
19545 # Compiler flag to prevent dynamic linking.
19546 link_static_flag=$lt_lt_prog_compiler_static_RC
19548 # Compiler flag to turn off builtin functions.
19549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19551 # Compiler flag to allow reflexive dlopens.
19552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19554 # Compiler flag to generate shared objects directly from archives.
19555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19557 # Compiler flag to generate thread-safe objects.
19558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19560 # Library versioning type.
19561 version_type=$version_type
19563 # Format of library name prefix.
19564 libname_spec=$lt_libname_spec
19566 # List of archive names. First name is the real one, the rest are links.
19567 # The last name is the one that the linker finds with -lNAME.
19568 library_names_spec=$lt_library_names_spec
19570 # The coded name of the library, if different from the real name.
19571 soname_spec=$lt_soname_spec
19573 # Commands used to build and install an old-style archive.
19575 old_archive_cmds=$lt_old_archive_cmds_RC
19576 old_postinstall_cmds=$lt_old_postinstall_cmds
19577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19579 # Create an old-style archive from a shared archive.
19580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19582 # Create a temporary old-style archive to link instead of a shared archive.
19583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19585 # Commands used to build and install a shared archive.
19586 archive_cmds=$lt_archive_cmds_RC
19587 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19588 postinstall_cmds=$lt_postinstall_cmds
19589 postuninstall_cmds=$lt_postuninstall_cmds
19591 # Commands used to build a loadable module (assumed same as above if empty)
19592 module_cmds=$lt_module_cmds_RC
19593 module_expsym_cmds=$lt_module_expsym_cmds_RC
19595 # Commands to strip libraries.
19596 old_striplib=$lt_old_striplib
19597 striplib=$lt_striplib
19599 # Dependencies to place before the objects being linked to create a
19601 predep_objects=$lt_predep_objects_RC
19603 # Dependencies to place after the objects being linked to create a
19605 postdep_objects=$lt_postdep_objects_RC
19607 # Dependencies to place before the objects being linked to create a
19609 predeps=$lt_predeps_RC
19611 # Dependencies to place after the objects being linked to create a
19613 postdeps=$lt_postdeps_RC
19615 # The library search path used internally by the compiler when linking
19616 # a shared library.
19617 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19619 # Method to check whether dependent libraries are shared objects.
19620 deplibs_check_method=$lt_deplibs_check_method
19622 # Command to use when deplibs_check_method == file_magic.
19623 file_magic_cmd=$lt_file_magic_cmd
19625 # Flag that allows shared libraries with undefined symbols to be built.
19626 allow_undefined_flag=$lt_allow_undefined_flag_RC
19628 # Flag that forces no undefined symbols.
19629 no_undefined_flag=$lt_no_undefined_flag_RC
19631 # Commands used to finish a libtool library installation in a directory.
19632 finish_cmds=$lt_finish_cmds
19634 # Same as above, but a single script fragment to be evaled but not shown.
19635 finish_eval=$lt_finish_eval
19637 # Take the output of nm and produce a listing of raw symbols and C names.
19638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19640 # Transform the output of nm in a proper C declaration
19641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19643 # Transform the output of nm in a C name address pair
19644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19646 # This is the shared library runtime path variable.
19647 runpath_var=$runpath_var
19649 # This is the shared library path variable.
19650 shlibpath_var=$shlibpath_var
19652 # Is shlibpath searched before the hard-coded library search path?
19653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19655 # How to hardcode a shared library path into an executable.
19656 hardcode_action=$hardcode_action_RC
19658 # Whether we should hardcode library paths into libraries.
19659 hardcode_into_libs=$hardcode_into_libs
19661 # Flag to hardcode \$libdir into a binary during linking.
19662 # This must work even if \$libdir does not exist.
19663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19665 # If ld is used when linking, flag to hardcode \$libdir into
19666 # a binary during linking. This must work even if \$libdir does
19668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19670 # Whether we need a single -rpath flag with a separated argument.
19671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19673 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19674 # resulting binary.
19675 hardcode_direct=$hardcode_direct_RC
19677 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19678 # resulting binary.
19679 hardcode_minus_L=$hardcode_minus_L_RC
19681 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19682 # the resulting binary.
19683 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19685 # Set to yes if building a shared library automatically hardcodes DIR into the library
19686 # and all subsequent libraries and executables linked against it.
19687 hardcode_automatic=$hardcode_automatic_RC
19689 # Variables whose values should be saved in libtool wrapper scripts and
19690 # restored at relink time.
19691 variables_saved_for_relink="$variables_saved_for_relink"
19693 # Whether libtool must link a program against all its dependency libraries.
19694 link_all_deplibs=$link_all_deplibs_RC
19696 # Compile-time system search path for libraries
19697 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19699 # Run-time system search path for libraries
19700 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19702 # Fix the shell variable \$srcfile for the compiler.
19703 fix_srcfile_path="$fix_srcfile_path_RC"
19705 # Set to yes if exported symbols are required.
19706 always_export_symbols=$always_export_symbols_RC
19708 # The commands to list exported symbols.
19709 export_symbols_cmds=$lt_export_symbols_cmds_RC
19711 # The commands to extract the exported symbol list from a shared archive.
19712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19714 # Symbols that should not be listed in the preloaded symbols.
19715 exclude_expsyms=$lt_exclude_expsyms_RC
19717 # Symbols that must always be exported.
19718 include_expsyms=$lt_include_expsyms_RC
19720 # ### END LIBTOOL TAG CONFIG: $tagname
19726 # If there is no Makefile yet, we rely on a make rule to execute
19727 # `config.status --recheck' to rerun these tests and create the
19728 # libtool script then.
19729 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19730 if test -f "$ltmain_in"; then
19731 test -f Makefile && make "$ltmain"
19737 ac_cpp='$CPP $CPPFLAGS'
19738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19747 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19748 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19749 { (exit 1); exit 1; }; }
19753 # Append the new tag name to the list of available tags.
19754 if test -n "$tagname" ; then
19755 available_tags="$available_tags $tagname"
19761 # Now substitute the updated list of available tags.
19762 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19763 mv "${ofile}T" "$ofile"
19767 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19768 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19769 { (exit 1); exit 1; }; }
19775 # This can be used to rebuild libtool when needed
19776 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19778 # Always use our own libtool.
19779 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19781 # Prevent multiple expansion
19803 # Checks for libraries (hah! ipkg is pretty much self-contained)
19805 # Checks for header files
19811 ac_header_dirent=no
19812 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19813 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19814 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19815 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 #include <sys/types.h>
19837 rm -f conftest.$ac_objext
19838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19839 (eval $ac_compile) 2>conftest.er1
19841 grep -v '^ *+' conftest.er1 >conftest.err
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
19846 { ac_try='test -z "$ac_c_werror_flag"
19847 || test ! -s conftest.err'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; } &&
19853 { ac_try='test -s conftest.$ac_objext'
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19859 eval "$as_ac_Header=yes"
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 eval "$as_ac_Header=no"
19866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19871 cat >>confdefs.h <<_ACEOF
19872 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19875 ac_header_dirent=$ac_hdr; break
19879 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19880 if test $ac_header_dirent = dirent.h; then
19881 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19882 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19883 if test "${ac_cv_search_opendir+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 ac_func_search_save_LIBS=$LIBS
19887 ac_cv_search_opendir=no
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19895 /* Override any gcc2 internal prototype to avoid an error. */
19899 /* We use char because int might match the return type of a gcc2
19900 builtin and then its argument prototype would still apply. */
19910 rm -f conftest.$ac_objext conftest$ac_exeext
19911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19912 (eval $ac_link) 2>conftest.er1
19914 grep -v '^ *+' conftest.er1 >conftest.err
19916 cat conftest.err >&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } &&
19919 { ac_try='test -z "$ac_c_werror_flag"
19920 || test ! -s conftest.err'
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; } &&
19926 { ac_try='test -s conftest$ac_exeext'
19927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928 (eval $ac_try) 2>&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; }; then
19932 ac_cv_search_opendir="none required"
19934 echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19938 rm -f conftest.err conftest.$ac_objext \
19939 conftest$ac_exeext conftest.$ac_ext
19940 if test "$ac_cv_search_opendir" = no; then
19941 for ac_lib in dir; do
19942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19950 /* Override any gcc2 internal prototype to avoid an error. */
19954 /* We use char because int might match the return type of a gcc2
19955 builtin and then its argument prototype would still apply. */
19965 rm -f conftest.$ac_objext conftest$ac_exeext
19966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19967 (eval $ac_link) 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } &&
19974 { ac_try='test -z "$ac_c_werror_flag"
19975 || test ! -s conftest.err'
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest$ac_exeext'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
19987 ac_cv_search_opendir="-l$ac_lib"
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19994 rm -f conftest.err conftest.$ac_objext \
19995 conftest$ac_exeext conftest.$ac_ext
19998 LIBS=$ac_func_search_save_LIBS
20000 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20001 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20002 if test "$ac_cv_search_opendir" != no; then
20003 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20010 if test "${ac_cv_search_opendir+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 ac_func_search_save_LIBS=$LIBS
20014 ac_cv_search_opendir=no
20015 cat >conftest.$ac_ext <<_ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20022 /* Override any gcc2 internal prototype to avoid an error. */
20026 /* We use char because int might match the return type of a gcc2
20027 builtin and then its argument prototype would still apply. */
20037 rm -f conftest.$ac_objext conftest$ac_exeext
20038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20039 (eval $ac_link) 2>conftest.er1
20041 grep -v '^ *+' conftest.er1 >conftest.err
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -z "$ac_c_werror_flag"
20047 || test ! -s conftest.err'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; } &&
20053 { ac_try='test -s conftest$ac_exeext'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 ac_cv_search_opendir="none required"
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20065 rm -f conftest.err conftest.$ac_objext \
20066 conftest$ac_exeext conftest.$ac_ext
20067 if test "$ac_cv_search_opendir" = no; then
20068 for ac_lib in x; do
20069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20070 cat >conftest.$ac_ext <<_ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20077 /* Override any gcc2 internal prototype to avoid an error. */
20081 /* We use char because int might match the return type of a gcc2
20082 builtin and then its argument prototype would still apply. */
20092 rm -f conftest.$ac_objext conftest$ac_exeext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20094 (eval $ac_link) 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag"
20102 || test ! -s conftest.err'
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; } &&
20108 { ac_try='test -s conftest$ac_exeext'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
20114 ac_cv_search_opendir="-l$ac_lib"
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20121 rm -f conftest.err conftest.$ac_objext \
20122 conftest$ac_exeext conftest.$ac_ext
20125 LIBS=$ac_func_search_save_LIBS
20127 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20128 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20129 if test "$ac_cv_search_opendir" != no; then
20130 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20136 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20137 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20138 if test "${ac_cv_header_stdc+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 cat >conftest.$ac_ext <<_ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 #include <stdlib.h>
20148 #include <stdarg.h>
20149 #include <string.h>
20160 rm -f conftest.$ac_objext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20162 (eval $ac_compile) 2>conftest.er1
20164 grep -v '^ *+' conftest.er1 >conftest.err
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
20169 { ac_try='test -z "$ac_c_werror_flag"
20170 || test ! -s conftest.err'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest.$ac_objext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
20182 ac_cv_header_stdc=yes
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20187 ac_cv_header_stdc=no
20189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20191 if test $ac_cv_header_stdc = yes; then
20192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 #include <string.h>
20202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20203 $EGREP "memchr" >/dev/null 2>&1; then
20206 ac_cv_header_stdc=no
20212 if test $ac_cv_header_stdc = yes; then
20213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20214 cat >conftest.$ac_ext <<_ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220 #include <stdlib.h>
20223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20224 $EGREP "free" >/dev/null 2>&1; then
20227 ac_cv_header_stdc=no
20233 if test $ac_cv_header_stdc = yes; then
20234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20235 if test "$cross_compiling" = yes; then
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20245 #if ((' ' & 0x0FF) == 0x020)
20246 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20247 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20249 # define ISLOWER(c) \
20250 (('a' <= (c) && (c) <= 'i') \
20251 || ('j' <= (c) && (c) <= 'r') \
20252 || ('s' <= (c) && (c) <= 'z'))
20253 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20261 for (i = 0; i < 256; i++)
20262 if (XOR (islower (i), ISLOWER (i))
20263 || toupper (i) != TOUPPER (i))
20268 rm -f conftest$ac_exeext
20269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20270 (eval $ac_link) 2>&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20281 echo "$as_me: program exited with status $ac_status" >&5
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ( exit $ac_status )
20286 ac_cv_header_stdc=no
20288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20292 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20293 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20294 if test $ac_cv_header_stdc = yes; then
20296 cat >>confdefs.h <<\_ACEOF
20297 #define STDC_HEADERS 1
20302 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20303 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20304 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20307 cat >conftest.$ac_ext <<_ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20313 #include <sys/types.h>
20314 #include <sys/wait.h>
20315 #ifndef WEXITSTATUS
20316 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20319 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20327 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20332 rm -f conftest.$ac_objext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20334 (eval $ac_compile) 2>conftest.er1
20336 grep -v '^ *+' conftest.er1 >conftest.err
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try='test -z "$ac_c_werror_flag"
20342 || test ! -s conftest.err'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; } &&
20348 { ac_try='test -s conftest.$ac_objext'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; }; then
20354 ac_cv_header_sys_wait_h=yes
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20359 ac_cv_header_sys_wait_h=no
20361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20363 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20364 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20365 if test $ac_cv_header_sys_wait_h = yes; then
20367 cat >>confdefs.h <<\_ACEOF
20368 #define HAVE_SYS_WAIT_H 1
20383 for ac_header in errno.h fcntl.h memory.h regex.h stddef.h stdlib.h string.h strings.h unistd.h utime.h
20385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20387 echo "$as_me:$LINENO: checking for $ac_header" >&5
20388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20395 # Is the header compilable?
20396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20398 cat >conftest.$ac_ext <<_ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 $ac_includes_default
20405 #include <$ac_header>
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_header_compiler=yes
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 ac_header_compiler=no
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20438 echo "${ECHO_T}$ac_header_compiler" >&6
20440 # Is the header present?
20441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20443 cat >conftest.$ac_ext <<_ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20449 #include <$ac_header>
20451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } >/dev/null; then
20459 if test -s conftest.err; then
20460 ac_cpp_err=$ac_c_preproc_warn_flag
20461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20468 if test -z "$ac_cpp_err"; then
20469 ac_header_preproc=yes
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20474 ac_header_preproc=no
20476 rm -f conftest.err conftest.$ac_ext
20477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20478 echo "${ECHO_T}$ac_header_preproc" >&6
20480 # So? What about this header?
20481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20487 ac_header_preproc=yes
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20504 ## ------------------------------------------ ##
20505 ## Report this to the AC_PACKAGE_NAME lists. ##
20506 ## ------------------------------------------ ##
20509 sed "s/^/$as_me: WARNING: /" >&2
20512 echo "$as_me:$LINENO: checking for $ac_header" >&5
20513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20517 eval "$as_ac_Header=\$ac_header_preproc"
20519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20533 # Checks for typedefs, structures, and compiler characteristics.
20534 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20535 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20536 if test "${ac_cv_c_const+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 cat >conftest.$ac_ext <<_ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20549 /* FIXME: Include the comments suggested by Paul. */
20550 #ifndef __cplusplus
20551 /* Ultrix mips cc rejects this. */
20552 typedef int charset[2];
20554 /* SunOS 4.1.1 cc rejects this. */
20555 char const *const *ccp;
20557 /* NEC SVR4.0.2 mips cc rejects this. */
20558 struct point {int x, y;};
20559 static struct point const zero = {0,0};
20560 /* AIX XL C 1.02.0.0 rejects this.
20561 It does not let you subtract one const X* pointer from another in
20562 an arm of an if-expression whose if-part is not a constant
20564 const char *g = "string";
20565 ccp = &g + (g ? g-g : 0);
20566 /* HPUX 7.0 cc rejects these. */
20569 ccp = (char const *const *) p;
20570 { /* SCO 3.2v4 cc rejects this. */
20572 char const *s = 0 ? (char *) 0 : (char const *) 0;
20576 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20577 int x[] = {25, 17};
20578 const int *foo = &x[0];
20581 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20582 typedef const int *iptr;
20586 { /* AIX XL C 1.02.0.0 rejects this saying
20587 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20588 struct s { int j; const int *ap[3]; };
20589 struct s *b; b->j = 5;
20591 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20592 const int foo = 10;
20600 rm -f conftest.$ac_objext
20601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602 (eval $ac_compile) 2>conftest.er1
20604 grep -v '^ *+' conftest.er1 >conftest.err
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
20609 { ac_try='test -z "$ac_c_werror_flag"
20610 || test ! -s conftest.err'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; } &&
20616 { ac_try='test -s conftest.$ac_objext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20631 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20632 echo "${ECHO_T}$ac_cv_c_const" >&6
20633 if test $ac_cv_c_const = no; then
20635 cat >>confdefs.h <<\_ACEOF
20641 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20642 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20643 if test "${ac_cv_type_uid_t+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <sys/types.h>
20655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20656 $EGREP "uid_t" >/dev/null 2>&1; then
20657 ac_cv_type_uid_t=yes
20659 ac_cv_type_uid_t=no
20664 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20665 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20666 if test $ac_cv_type_uid_t = no; then
20668 cat >>confdefs.h <<\_ACEOF
20673 cat >>confdefs.h <<\_ACEOF
20679 echo "$as_me:$LINENO: checking for mode_t" >&5
20680 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
20681 if test "${ac_cv_type_mode_t+set}" = set; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20684 cat >conftest.$ac_ext <<_ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 $ac_includes_default
20696 if (sizeof (mode_t))
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704 (eval $ac_compile) 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -z "$ac_c_werror_flag"
20712 || test ! -s conftest.err'
20713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714 (eval $ac_try) 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; } &&
20718 { ac_try='test -s conftest.$ac_objext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ac_cv_type_mode_t=yes
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20729 ac_cv_type_mode_t=no
20731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20733 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20734 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
20735 if test $ac_cv_type_mode_t = yes; then
20739 cat >>confdefs.h <<_ACEOF
20745 echo "$as_me:$LINENO: checking for off_t" >&5
20746 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20747 if test "${ac_cv_type_off_t+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 cat >conftest.$ac_ext <<_ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756 $ac_includes_default
20762 if (sizeof (off_t))
20768 rm -f conftest.$ac_objext
20769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20770 (eval $ac_compile) 2>conftest.er1
20772 grep -v '^ *+' conftest.er1 >conftest.err
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } &&
20777 { ac_try='test -z "$ac_c_werror_flag"
20778 || test ! -s conftest.err'
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; } &&
20784 { ac_try='test -s conftest.$ac_objext'
20785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; }; then
20790 ac_cv_type_off_t=yes
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 ac_cv_type_off_t=no
20797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20799 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20800 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20801 if test $ac_cv_type_off_t = yes; then
20805 cat >>confdefs.h <<_ACEOF
20811 echo "$as_me:$LINENO: checking for pid_t" >&5
20812 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20813 if test "${ac_cv_type_pid_t+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 $ac_includes_default
20828 if (sizeof (pid_t))
20834 rm -f conftest.$ac_objext
20835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20836 (eval $ac_compile) 2>conftest.er1
20838 grep -v '^ *+' conftest.er1 >conftest.err
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } &&
20843 { ac_try='test -z "$ac_c_werror_flag"
20844 || test ! -s conftest.err'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest.$ac_objext'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 ac_cv_type_pid_t=yes
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_cv_type_pid_t=no
20863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20865 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20866 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20867 if test $ac_cv_type_pid_t = yes; then
20871 cat >>confdefs.h <<_ACEOF
20877 echo "$as_me:$LINENO: checking for size_t" >&5
20878 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20879 if test "${ac_cv_type_size_t+set}" = set; then
20880 echo $ECHO_N "(cached) $ECHO_C" >&6
20882 cat >conftest.$ac_ext <<_ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 $ac_includes_default
20894 if (sizeof (size_t))
20900 rm -f conftest.$ac_objext
20901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20902 (eval $ac_compile) 2>conftest.er1
20904 grep -v '^ *+' conftest.er1 >conftest.err
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } &&
20909 { ac_try='test -z "$ac_c_werror_flag"
20910 || test ! -s conftest.err'
20911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912 (eval $ac_try) 2>&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; } &&
20916 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20922 ac_cv_type_size_t=yes
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20927 ac_cv_type_size_t=no
20929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20931 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20932 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20933 if test $ac_cv_type_size_t = yes; then
20937 cat >>confdefs.h <<_ACEOF
20938 #define size_t unsigned
20943 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20944 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
20945 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 $ac_includes_default
20958 static struct stat ac_aggr;
20959 if (ac_aggr.st_rdev)
20965 rm -f conftest.$ac_objext
20966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20967 (eval $ac_compile) 2>conftest.er1
20969 grep -v '^ *+' conftest.er1 >conftest.err
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -z "$ac_c_werror_flag"
20975 || test ! -s conftest.err'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; } &&
20981 { ac_try='test -s conftest.$ac_objext'
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; }; then
20987 ac_cv_member_struct_stat_st_rdev=yes
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20992 cat >conftest.$ac_ext <<_ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h. */
20998 $ac_includes_default
21002 static struct stat ac_aggr;
21003 if (sizeof ac_aggr.st_rdev)
21009 rm -f conftest.$ac_objext
21010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21011 (eval $ac_compile) 2>conftest.er1
21013 grep -v '^ *+' conftest.er1 >conftest.err
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } &&
21018 { ac_try='test -z "$ac_c_werror_flag"
21019 || test ! -s conftest.err'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; } &&
21025 { ac_try='test -s conftest.$ac_objext'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21031 ac_cv_member_struct_stat_st_rdev=yes
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 ac_cv_member_struct_stat_st_rdev=no
21038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21043 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
21044 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21046 cat >>confdefs.h <<_ACEOF
21047 #define HAVE_STRUCT_STAT_ST_RDEV 1
21054 # Don't do annoying tests that don't work when cross-compiling, just trust them.
21055 # The AC_FUNC_MEMCMP test doesn't work during a cross-compile, disable.
21057 # The AC_FUNC_STAT test doesn't work during a cross-compile, disable.
21060 # Checks for library functions
21062 for ac_header in unistd.h
21064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21066 echo "$as_me:$LINENO: checking for $ac_header" >&5
21067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21069 echo $ECHO_N "(cached) $ECHO_C" >&6
21071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21074 # Is the header compilable?
21075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21084 #include <$ac_header>
21086 rm -f conftest.$ac_objext
21087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088 (eval $ac_compile) 2>conftest.er1
21090 grep -v '^ *+' conftest.er1 >conftest.err
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } &&
21095 { ac_try='test -z "$ac_c_werror_flag"
21096 || test ! -s conftest.err'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; } &&
21102 { ac_try='test -s conftest.$ac_objext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ac_header_compiler=yes
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21113 ac_header_compiler=no
21115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21117 echo "${ECHO_T}$ac_header_compiler" >&6
21119 # Is the header present?
21120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21122 cat >conftest.$ac_ext <<_ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 #include <$ac_header>
21130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21133 grep -v '^ *+' conftest.er1 >conftest.err
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } >/dev/null; then
21138 if test -s conftest.err; then
21139 ac_cpp_err=$ac_c_preproc_warn_flag
21140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21147 if test -z "$ac_cpp_err"; then
21148 ac_header_preproc=yes
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21153 ac_header_preproc=no
21155 rm -f conftest.err conftest.$ac_ext
21156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21157 echo "${ECHO_T}$ac_header_preproc" >&6
21159 # So? What about this header?
21160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21166 ac_header_preproc=yes
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21183 ## ------------------------------------------ ##
21184 ## Report this to the AC_PACKAGE_NAME lists. ##
21185 ## ------------------------------------------ ##
21188 sed "s/^/$as_me: WARNING: /" >&2
21191 echo "$as_me:$LINENO: checking for $ac_header" >&5
21192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 eval "$as_ac_Header=\$ac_header_preproc"
21198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21203 cat >>confdefs.h <<_ACEOF
21204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21211 echo "$as_me:$LINENO: checking for working chown" >&5
21212 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21213 if test "${ac_cv_func_chown_works+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 if test "$cross_compiling" = yes; then
21217 ac_cv_func_chown_works=no
21219 cat >conftest.$ac_ext <<_ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 $ac_includes_default
21231 char *f = "conftest.chown";
21232 struct stat before, after;
21234 if (creat (f, 0600) < 0)
21236 if (stat (f, &before) < 0)
21238 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21240 if (stat (f, &after) < 0)
21242 exit ((before.st_uid == after.st_uid
21243 && before.st_gid == after.st_gid) ? 0 : 1);
21249 rm -f conftest$ac_exeext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21251 (eval $ac_link) 2>&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256 (eval $ac_try) 2>&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; }; then
21260 ac_cv_func_chown_works=yes
21262 echo "$as_me: program exited with status $ac_status" >&5
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ( exit $ac_status )
21267 ac_cv_func_chown_works=no
21269 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21271 rm -f conftest.chown
21274 echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21275 echo "${ECHO_T}$ac_cv_func_chown_works" >&6
21276 if test $ac_cv_func_chown_works = yes; then
21278 cat >>confdefs.h <<\_ACEOF
21279 #define HAVE_CHOWN 1
21286 for ac_header in unistd.h vfork.h
21288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21290 echo "$as_me:$LINENO: checking for $ac_header" >&5
21291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21293 echo $ECHO_N "(cached) $ECHO_C" >&6
21295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21298 # Is the header compilable?
21299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21301 cat >conftest.$ac_ext <<_ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 $ac_includes_default
21308 #include <$ac_header>
21310 rm -f conftest.$ac_objext
21311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21312 (eval $ac_compile) 2>conftest.er1
21314 grep -v '^ *+' conftest.er1 >conftest.err
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } &&
21319 { ac_try='test -z "$ac_c_werror_flag"
21320 || test ! -s conftest.err'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest.$ac_objext'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
21332 ac_header_compiler=yes
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21337 ac_header_compiler=no
21339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21341 echo "${ECHO_T}$ac_header_compiler" >&6
21343 # Is the header present?
21344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21346 cat >conftest.$ac_ext <<_ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h. */
21352 #include <$ac_header>
21354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } >/dev/null; then
21362 if test -s conftest.err; then
21363 ac_cpp_err=$ac_c_preproc_warn_flag
21364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21371 if test -z "$ac_cpp_err"; then
21372 ac_header_preproc=yes
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21377 ac_header_preproc=no
21379 rm -f conftest.err conftest.$ac_ext
21380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21381 echo "${ECHO_T}$ac_header_preproc" >&6
21383 # So? What about this header?
21384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21390 ac_header_preproc=yes
21393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21407 ## ------------------------------------------ ##
21408 ## Report this to the AC_PACKAGE_NAME lists. ##
21409 ## ------------------------------------------ ##
21412 sed "s/^/$as_me: WARNING: /" >&2
21415 echo "$as_me:$LINENO: checking for $ac_header" >&5
21416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21420 eval "$as_ac_Header=\$ac_header_preproc"
21422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21427 cat >>confdefs.h <<_ACEOF
21428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21437 for ac_func in fork vfork
21439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21440 echo "$as_me:$LINENO: checking for $ac_func" >&5
21441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21442 if eval "test \"\${$as_ac_var+set}\" = set"; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21445 cat >conftest.$ac_ext <<_ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21453 #define $ac_func innocuous_$ac_func
21455 /* System header to define __stub macros and hopefully few prototypes,
21456 which can conflict with char $ac_func (); below.
21457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21458 <limits.h> exists even on freestanding compilers. */
21461 # include <limits.h>
21463 # include <assert.h>
21468 /* Override any gcc2 internal prototype to avoid an error. */
21473 /* We use char because int might match the return type of a gcc2
21474 builtin and then its argument prototype would still apply. */
21476 /* The GNU C library defines this for functions which it implements
21477 to always fail with ENOSYS. Some functions are actually named
21478 something starting with __ and the normal name is an alias. */
21479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21482 char (*f) () = $ac_func;
21491 return f != $ac_func;
21496 rm -f conftest.$ac_objext conftest$ac_exeext
21497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21498 (eval $ac_link) 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
21505 { ac_try='test -z "$ac_c_werror_flag"
21506 || test ! -s conftest.err'
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; } &&
21512 { ac_try='test -s conftest$ac_exeext'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21518 eval "$as_ac_var=yes"
21520 echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21523 eval "$as_ac_var=no"
21525 rm -f conftest.err conftest.$ac_objext \
21526 conftest$ac_exeext conftest.$ac_ext
21528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21530 if test `eval echo '${'$as_ac_var'}'` = yes; then
21531 cat >>confdefs.h <<_ACEOF
21532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21538 if test "x$ac_cv_func_fork" = xyes; then
21539 echo "$as_me:$LINENO: checking for working fork" >&5
21540 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21541 if test "${ac_cv_func_fork_works+set}" = set; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21544 if test "$cross_compiling" = yes; then
21545 ac_cv_func_fork_works=cross
21547 cat >conftest.$ac_ext <<_ACEOF
21548 /* By Ruediger Kuhlmann. */
21549 #include <sys/types.h>
21551 # include <unistd.h>
21553 /* Some systems only have a dummy stub for fork() */
21561 rm -f conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563 (eval $ac_link) 2>&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; }; then
21572 ac_cv_func_fork_works=yes
21574 echo "$as_me: program exited with status $ac_status" >&5
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21578 ( exit $ac_status )
21579 ac_cv_func_fork_works=no
21581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21584 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21585 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21588 ac_cv_func_fork_works=$ac_cv_func_fork
21590 if test "x$ac_cv_func_fork_works" = xcross; then
21592 *-*-amigaos* | *-*-msdosdjgpp*)
21593 # Override, as these systems have only a dummy fork() stub
21594 ac_cv_func_fork_works=no
21597 ac_cv_func_fork_works=yes
21600 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21601 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21603 ac_cv_func_vfork_works=$ac_cv_func_vfork
21604 if test "x$ac_cv_func_vfork" = xyes; then
21605 echo "$as_me:$LINENO: checking for working vfork" >&5
21606 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21607 if test "${ac_cv_func_vfork_works+set}" = set; then
21608 echo $ECHO_N "(cached) $ECHO_C" >&6
21610 if test "$cross_compiling" = yes; then
21611 ac_cv_func_vfork_works=cross
21613 cat >conftest.$ac_ext <<_ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 /* Thanks to Paul Eggert for this test. */
21621 #include <stdlib.h>
21622 #include <sys/types.h>
21623 #include <sys/stat.h>
21624 #include <sys/wait.h>
21626 # include <unistd.h>
21629 # include <vfork.h>
21631 /* On some sparc systems, changes by the child to local and incoming
21632 argument registers are propagated back to the parent. The compiler
21633 is told about this with #include <vfork.h>, but some compilers
21634 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21635 static variable whose address is put into a register that is
21636 clobbered by the vfork. */
21639 sparc_address_test (int arg)
21641 sparc_address_test (arg) int arg;
21644 static pid_t child;
21662 pid_t parent = getpid ();
21665 sparc_address_test (0);
21670 /* Here is another test for sparc vfork register problems. This
21671 test uses lots of local variables, at least as many local
21672 variables as main has allocated so far including compiler
21673 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21674 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21675 reuse the register of parent for one of the local variables,
21676 since it will think that parent can't possibly be used any more
21677 in this routine. Assigning to the local variable will thus
21678 munge parent in the parent process. */
21680 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21681 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21682 /* Convince the compiler that p..p7 are live; otherwise, it might
21683 use the same hardware register for all 8 local variables. */
21684 if (p != p1 || p != p2 || p != p3 || p != p4
21685 || p != p5 || p != p6 || p != p7)
21688 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21689 from child file descriptors. If the child closes a descriptor
21690 before it execs or exits, this munges the parent's descriptor
21691 as well. Test for this by closing stdout in the child. */
21692 _exit(close(fileno(stdout)) != 0);
21697 while (wait(&status) != child)
21700 /* Was there some problem with vforking? */
21703 /* Did the child fail? (This shouldn't happen.) */
21706 /* Did the vfork/compiler bug occur? */
21707 || parent != getpid()
21709 /* Did the file descriptor bug occur? */
21710 || fstat(fileno(stdout), &st) != 0
21715 rm -f conftest$ac_exeext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21717 (eval $ac_link) 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; }; then
21726 ac_cv_func_vfork_works=yes
21728 echo "$as_me: program exited with status $ac_status" >&5
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21732 ( exit $ac_status )
21733 ac_cv_func_vfork_works=no
21735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21738 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21739 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21742 if test "x$ac_cv_func_fork_works" = xcross; then
21743 ac_cv_func_vfork_works=$ac_cv_func_vfork
21744 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21745 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21748 if test "x$ac_cv_func_vfork_works" = xyes; then
21750 cat >>confdefs.h <<\_ACEOF
21751 #define HAVE_WORKING_VFORK 1
21756 cat >>confdefs.h <<\_ACEOF
21761 if test "x$ac_cv_func_fork_works" = xyes; then
21763 cat >>confdefs.h <<\_ACEOF
21764 #define HAVE_WORKING_FORK 1
21769 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21770 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21771 if test "${ac_cv_type_signal+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 cat >conftest.$ac_ext <<_ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 #include <sys/types.h>
21781 #include <signal.h>
21786 extern "C" void (*signal (int, void (*)(int)))(int);
21788 void (*signal ()) ();
21799 rm -f conftest.$ac_objext
21800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21801 (eval $ac_compile) 2>conftest.er1
21803 grep -v '^ *+' conftest.er1 >conftest.err
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } &&
21808 { ac_try='test -z "$ac_c_werror_flag"
21809 || test ! -s conftest.err'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; } &&
21815 { ac_try='test -s conftest.$ac_objext'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; }; then
21821 ac_cv_type_signal=void
21823 echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21826 ac_cv_type_signal=int
21828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21830 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21831 echo "${ECHO_T}$ac_cv_type_signal" >&6
21833 cat >>confdefs.h <<_ACEOF
21834 #define RETSIGTYPE $ac_cv_type_signal
21838 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
21839 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
21840 if test "${ac_cv_func_utime_null+set}" = set; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21843 rm -f conftest.data; >conftest.data
21844 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
21845 if test "$cross_compiling" = yes; then
21846 ac_cv_func_utime_null=no
21848 cat >conftest.$ac_ext <<_ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21859 exit (!(stat ("conftest.data", &s) == 0
21860 && utime ("conftest.data", (long *)0) == 0
21861 && stat ("conftest.data", &t) == 0
21862 && t.st_mtime >= s.st_mtime
21863 && t.st_mtime - s.st_mtime < 120));
21868 rm -f conftest$ac_exeext
21869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21870 (eval $ac_link) 2>&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; }; then
21879 ac_cv_func_utime_null=yes
21881 echo "$as_me: program exited with status $ac_status" >&5
21882 echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21885 ( exit $ac_status )
21886 ac_cv_func_utime_null=no
21888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21892 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
21893 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
21894 if test $ac_cv_func_utime_null = yes; then
21896 cat >>confdefs.h <<\_ACEOF
21897 #define HAVE_UTIME_NULL 1
21901 rm -f conftest.data
21904 for ac_func in vprintf
21906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21907 echo "$as_me:$LINENO: checking for $ac_func" >&5
21908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21909 if eval "test \"\${$as_ac_var+set}\" = set"; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 cat >conftest.$ac_ext <<_ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21920 #define $ac_func innocuous_$ac_func
21922 /* System header to define __stub macros and hopefully few prototypes,
21923 which can conflict with char $ac_func (); below.
21924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21925 <limits.h> exists even on freestanding compilers. */
21928 # include <limits.h>
21930 # include <assert.h>
21935 /* Override any gcc2 internal prototype to avoid an error. */
21940 /* We use char because int might match the return type of a gcc2
21941 builtin and then its argument prototype would still apply. */
21943 /* The GNU C library defines this for functions which it implements
21944 to always fail with ENOSYS. Some functions are actually named
21945 something starting with __ and the normal name is an alias. */
21946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21949 char (*f) () = $ac_func;
21958 return f != $ac_func;
21963 rm -f conftest.$ac_objext conftest$ac_exeext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21965 (eval $ac_link) 2>conftest.er1
21967 grep -v '^ *+' conftest.er1 >conftest.err
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
21972 { ac_try='test -z "$ac_c_werror_flag"
21973 || test ! -s conftest.err'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; } &&
21979 { ac_try='test -s conftest$ac_exeext'
21980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; }; then
21985 eval "$as_ac_var=yes"
21987 echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21990 eval "$as_ac_var=no"
21992 rm -f conftest.err conftest.$ac_objext \
21993 conftest$ac_exeext conftest.$ac_ext
21995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21997 if test `eval echo '${'$as_ac_var'}'` = yes; then
21998 cat >>confdefs.h <<_ACEOF
21999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22002 echo "$as_me:$LINENO: checking for _doprnt" >&5
22003 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
22004 if test "${ac_cv_func__doprnt+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 cat >conftest.$ac_ext <<_ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22013 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
22014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22015 #define _doprnt innocuous__doprnt
22017 /* System header to define __stub macros and hopefully few prototypes,
22018 which can conflict with char _doprnt (); below.
22019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22020 <limits.h> exists even on freestanding compilers. */
22023 # include <limits.h>
22025 # include <assert.h>
22030 /* Override any gcc2 internal prototype to avoid an error. */
22035 /* We use char because int might match the return type of a gcc2
22036 builtin and then its argument prototype would still apply. */
22038 /* The GNU C library defines this for functions which it implements
22039 to always fail with ENOSYS. Some functions are actually named
22040 something starting with __ and the normal name is an alias. */
22041 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22044 char (*f) () = _doprnt;
22053 return f != _doprnt;
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22060 (eval $ac_link) 2>conftest.er1
22062 grep -v '^ *+' conftest.er1 >conftest.err
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
22067 { ac_try='test -z "$ac_c_werror_flag"
22068 || test ! -s conftest.err'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest$ac_exeext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 ac_cv_func__doprnt=yes
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22085 ac_cv_func__doprnt=no
22087 rm -f conftest.err conftest.$ac_objext \
22088 conftest$ac_exeext conftest.$ac_ext
22090 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22091 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
22092 if test $ac_cv_func__doprnt = yes; then
22094 cat >>confdefs.h <<\_ACEOF
22095 #define HAVE_DOPRNT 1
22119 for ac_func in memmove memset mkdir regcomp strchr strcspn strdup strerror strndup strrchr strstr strtol strtoul sysinfo utime
22121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22122 echo "$as_me:$LINENO: checking for $ac_func" >&5
22123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22124 if eval "test \"\${$as_ac_var+set}\" = set"; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 cat >conftest.$ac_ext <<_ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h. */
22133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22135 #define $ac_func innocuous_$ac_func
22137 /* System header to define __stub macros and hopefully few prototypes,
22138 which can conflict with char $ac_func (); below.
22139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22140 <limits.h> exists even on freestanding compilers. */
22143 # include <limits.h>
22145 # include <assert.h>
22150 /* Override any gcc2 internal prototype to avoid an error. */
22155 /* We use char because int might match the return type of a gcc2
22156 builtin and then its argument prototype would still apply. */
22158 /* The GNU C library defines this for functions which it implements
22159 to always fail with ENOSYS. Some functions are actually named
22160 something starting with __ and the normal name is an alias. */
22161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22164 char (*f) () = $ac_func;
22173 return f != $ac_func;
22178 rm -f conftest.$ac_objext conftest$ac_exeext
22179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22180 (eval $ac_link) 2>conftest.er1
22182 grep -v '^ *+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } &&
22187 { ac_try='test -z "$ac_c_werror_flag"
22188 || test ! -s conftest.err'
22189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190 (eval $ac_try) 2>&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; } &&
22194 { ac_try='test -s conftest$ac_exeext'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 eval "$as_ac_var=yes"
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 eval "$as_ac_var=no"
22207 rm -f conftest.err conftest.$ac_objext \
22208 conftest$ac_exeext conftest.$ac_ext
22210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22212 if test `eval echo '${'$as_ac_var'}'` = yes; then
22213 cat >>confdefs.h <<_ACEOF
22214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22223 # Check whether --with-ipkglibdir or --without-ipkglibdir was given.
22224 if test "${with_ipkglibdir+set}" = set; then
22225 withval="$with_ipkglibdir"
22226 case "${withval}" in
22227 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for ipkg libs directories " >&5
22228 echo "$as_me: error: bad value ${withval} given for ipkg libs directories " >&2;}
22229 { (exit 1); exit 1; }; } ;;
22231 *) ipkglibdir=$with_ipkglibdir ;;
22235 # Default local prefix if it is empty
22236 if test x$ipkglibdir = x; then
22237 ipkglibdir=/usr/lib
22242 ac_config_files="$ac_config_files Makefile etc/Makefile familiar/Makefile familiar/control familiar/control-unstripped familiar/libipkg-control familiar/libipkg-dev-control libbb/Makefile libipkg.pc ipkg.h"
22243 cat >confcache <<\_ACEOF
22244 # This file is a shell script that caches the results of configure
22245 # tests run on this system so they can be shared between configure
22246 # scripts and configure runs, see configure's option --config-cache.
22247 # It is not useful on other systems. If it contains results you don't
22248 # want to keep, you may remove or edit it.
22250 # config.status only pays attention to the cache file if you give it
22251 # the --recheck option to rerun configure.
22253 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22254 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22255 # following values.
22259 # The following way of writing the cache mishandles newlines in values,
22260 # but we know of no workaround that is simple, portable, and efficient.
22261 # So, don't put newlines in cache variables' values.
22262 # Ultrix sh set writes to stderr and can't be redirected directly,
22263 # and sets the high bit in the cache file unless we assign to the vars.
22266 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22268 # `set' does not quote correctly, so add quotes (double-quote
22269 # substitution turns \\\\ into \\, and sed turns \\ into \).
22272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22275 # `set' quotes correctly as required by POSIX, so do not add quotes.
22277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22286 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22288 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22289 if test -w $cache_file; then
22290 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22291 cat confcache >$cache_file
22293 echo "not updating unwritable cache $cache_file"
22298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22299 # Let make expand exec_prefix.
22300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22302 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22303 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22304 # trailing colons and then remove the whole line if VPATH becomes empty
22305 # (actually we leave an empty line to preserve line numbers).
22306 if test "x$srcdir" = x.; then
22307 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22308 s/:*\$(srcdir):*/:/;
22309 s/:*\${srcdir}:*/:/;
22311 s/^\([^=]*=[ ]*\):*/\1/;
22317 DEFS=-DHAVE_CONFIG_H
22321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22322 # 1. Remove the extension, and $U if already installed.
22323 ac_i=`echo "$ac_i" |
22324 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22326 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22327 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22329 LIBOBJS=$ac_libobjs
22331 LTLIBOBJS=$ac_ltlibobjs
22334 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22335 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22336 Usually this means the macro was only invoked conditionally." >&5
22337 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22338 Usually this means the macro was only invoked conditionally." >&2;}
22339 { (exit 1); exit 1; }; }
22341 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22342 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22343 Usually this means the macro was only invoked conditionally." >&5
22344 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22345 Usually this means the macro was only invoked conditionally." >&2;}
22346 { (exit 1); exit 1; }; }
22348 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22349 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22350 Usually this means the macro was only invoked conditionally." >&5
22351 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22352 Usually this means the macro was only invoked conditionally." >&2;}
22353 { (exit 1); exit 1; }; }
22356 : ${CONFIG_STATUS=./config.status}
22357 ac_clean_files_save=$ac_clean_files
22358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22359 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22360 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22361 cat >$CONFIG_STATUS <<_ACEOF
22363 # Generated by $as_me.
22364 # Run this file to recreate the current configuration.
22365 # Compiler output produced by configure, useful for debugging
22366 # configure, is in config.log if it exists.
22369 ac_cs_recheck=false
22371 SHELL=\${CONFIG_SHELL-$SHELL}
22374 cat >>$CONFIG_STATUS <<\_ACEOF
22375 ## --------------------- ##
22376 ## M4sh Initialization. ##
22377 ## --------------------- ##
22379 # Be Bourne compatible
22380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22383 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22384 # is contrary to our usage. Disable this feature.
22385 alias -g '${1+"$@"}'='"$@"'
22386 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22389 DUALCASE=1; export DUALCASE # for MKS sh
22391 # Support unset when possible.
22392 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22399 # Work around bugs in pre-3.0 UWIN ksh.
22400 $as_unset ENV MAIL MAILPATH
22407 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22408 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22409 LC_TELEPHONE LC_TIME
22411 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22412 eval $as_var=C; export $as_var
22418 # Required to use basename.
22419 if expr a : '\(a\)' >/dev/null 2>&1; then
22425 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22426 as_basename=basename
22432 # Name of the executable.
22433 as_me=`$as_basename "$0" ||
22434 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22435 X"$0" : 'X\(//\)$' \| \
22436 X"$0" : 'X\(/\)$' \| \
22437 . : '\(.\)' 2>/dev/null ||
22439 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22440 /^X\/\(\/\/\)$/{ s//\1/; q; }
22441 /^X\/\(\/\).*/{ s//\1/; q; }
22445 # PATH needs CR, and LINENO needs CR and PATH.
22446 # Avoid depending upon Character Ranges.
22447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22450 as_cr_digits='0123456789'
22451 as_cr_alnum=$as_cr_Letters$as_cr_digits
22453 # The user is always right.
22454 if test "${PATH_SEPARATOR+set}" != set; then
22455 echo "#! /bin/sh" >conf$$.sh
22456 echo "exit 0" >>conf$$.sh
22458 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22467 as_lineno_1=$LINENO
22468 as_lineno_2=$LINENO
22469 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22470 test "x$as_lineno_1" != "x$as_lineno_2" &&
22471 test "x$as_lineno_3" = "x$as_lineno_2" || {
22472 # Find who we are. Look in the path if we contain no path at all
22475 *[\\/]* ) as_myself=$0 ;;
22476 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22477 for as_dir in $PATH
22480 test -z "$as_dir" && as_dir=.
22481 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22486 # We did not find ourselves, most probably we were run as `sh COMMAND'
22487 # in which case we are not to be found in the path.
22488 if test "x$as_myself" = x; then
22491 if test ! -f "$as_myself"; then
22492 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22493 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22494 { (exit 1); exit 1; }; }
22496 case $CONFIG_SHELL in
22498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22499 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22502 test -z "$as_dir" && as_dir=.
22503 for as_base in sh bash ksh sh5; do
22506 if ("$as_dir/$as_base" -c '
22507 as_lineno_1=$LINENO
22508 as_lineno_2=$LINENO
22509 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22510 test "x$as_lineno_1" != "x$as_lineno_2" &&
22511 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22512 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22513 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22514 CONFIG_SHELL=$as_dir/$as_base
22515 export CONFIG_SHELL
22516 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22524 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22525 # uniformly replaced by the line number. The first 'sed' inserts a
22526 # line-number line before each line; the second 'sed' does the real
22527 # work. The second script uses 'N' to pair each line-number line
22528 # with the numbered line, and appends trailing '-' during
22529 # substitution so that $LINENO is not a special case at line end.
22530 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22531 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22532 sed '=' <$as_myself |
22537 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22540 s,^['$as_cr_digits']*\n,,
22541 ' >$as_me.lineno &&
22542 chmod +x $as_me.lineno ||
22543 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22544 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22545 { (exit 1); exit 1; }; }
22547 # Don't try to exec as it changes $[0], causing all sort of problems
22548 # (the dirname of $[0] is not the place where we might find the
22549 # original and so on. Autoconf is especially sensible to this).
22551 # Exit status is that of the last command.
22556 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22557 *c*,-n*) ECHO_N= ECHO_C='
22559 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22560 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22563 if expr a : '\(a\)' >/dev/null 2>&1; then
22569 rm -f conf$$ conf$$.exe conf$$.file
22571 if ln -s conf$$.file conf$$ 2>/dev/null; then
22572 # We could just check for DJGPP; but this test a) works b) is more generic
22573 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22574 if test -f conf$$.exe; then
22575 # Don't use ln at all; we don't have any links
22580 elif ln conf$$.file conf$$ 2>/dev/null; then
22585 rm -f conf$$ conf$$.exe conf$$.file
22587 if mkdir -p . 2>/dev/null; then
22590 test -d ./-p && rmdir ./-p
22594 as_executable_p="test -f"
22596 # Sed expression to map a string onto a valid CPP name.
22597 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22599 # Sed expression to map a string onto a valid variable name.
22600 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22604 # We need space, tab and new line, in precisely that order.
22614 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22615 # report actual input values of CONFIG_FILES etc. instead of their
22616 # values after options handling. Logging --version etc. is OK.
22620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22621 ## Running $as_me. ##
22626 This file was extended by $as_me, which was
22627 generated by GNU Autoconf 2.59. Invocation command line was
22629 CONFIG_FILES = $CONFIG_FILES
22630 CONFIG_HEADERS = $CONFIG_HEADERS
22631 CONFIG_LINKS = $CONFIG_LINKS
22632 CONFIG_COMMANDS = $CONFIG_COMMANDS
22636 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22640 # Files that config.status was made for.
22641 if test -n "$ac_config_files"; then
22642 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22645 if test -n "$ac_config_headers"; then
22646 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22649 if test -n "$ac_config_links"; then
22650 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22653 if test -n "$ac_config_commands"; then
22654 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22657 cat >>$CONFIG_STATUS <<\_ACEOF
22660 \`$as_me' instantiates files from templates according to the
22661 current configuration.
22663 Usage: $0 [OPTIONS] [FILE]...
22665 -h, --help print this help, then exit
22666 -V, --version print version number, then exit
22667 -q, --quiet do not print progress messages
22668 -d, --debug don't remove temporary files
22669 --recheck update $as_me by reconfiguring in the same conditions
22670 --file=FILE[:TEMPLATE]
22671 instantiate the configuration file FILE
22672 --header=FILE[:TEMPLATE]
22673 instantiate the configuration header FILE
22675 Configuration files:
22678 Configuration headers:
22681 Configuration commands:
22684 Report bugs to <bug-autoconf@gnu.org>."
22687 cat >>$CONFIG_STATUS <<_ACEOF
22690 configured by $0, generated by GNU Autoconf 2.59,
22691 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22693 Copyright (C) 2003 Free Software Foundation, Inc.
22694 This config.status script is free software; the Free Software Foundation
22695 gives unlimited permission to copy, distribute and modify it."
22700 cat >>$CONFIG_STATUS <<\_ACEOF
22701 # If no file are specified by the user, then we need to provide default
22702 # value. By we need to know if files were specified by the user.
22708 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22709 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22717 *) # This is not an option, so the user has probably given explicit
22720 ac_need_defaults=false;;
22724 # Handling of the options.
22726 cat >>$CONFIG_STATUS <<\_ACEOF
22727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22729 --version | --vers* | -V )
22730 echo "$ac_cs_version"; exit 0 ;;
22732 # Conflict between --help and --header
22733 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22734 Try \`$0 --help' for more information." >&5
22735 echo "$as_me: error: ambiguous option: $1
22736 Try \`$0 --help' for more information." >&2;}
22737 { (exit 1); exit 1; }; };;
22738 --help | --hel | -h )
22739 echo "$ac_cs_usage"; exit 0 ;;
22740 --debug | --d* | -d )
22742 --file | --fil | --fi | --f )
22744 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22745 ac_need_defaults=false;;
22746 --header | --heade | --head | --hea )
22748 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22749 ac_need_defaults=false;;
22750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22751 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22754 # This is an error.
22755 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22756 Try \`$0 --help' for more information." >&5
22757 echo "$as_me: error: unrecognized option: $1
22758 Try \`$0 --help' for more information." >&2;}
22759 { (exit 1); exit 1; }; } ;;
22761 *) ac_config_targets="$ac_config_targets $1" ;;
22767 ac_configure_extra_args=
22769 if $ac_cs_silent; then
22771 ac_configure_extra_args="$ac_configure_extra_args --silent"
22775 cat >>$CONFIG_STATUS <<_ACEOF
22776 if \$ac_cs_recheck; then
22777 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22778 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22783 cat >>$CONFIG_STATUS <<_ACEOF
22785 # INIT-COMMANDS section.
22788 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22794 cat >>$CONFIG_STATUS <<\_ACEOF
22795 for ac_config_target in $ac_config_targets
22797 case "$ac_config_target" in
22798 # Handling of arguments.
22799 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22800 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
22801 "familiar/Makefile" ) CONFIG_FILES="$CONFIG_FILES familiar/Makefile" ;;
22802 "familiar/control" ) CONFIG_FILES="$CONFIG_FILES familiar/control" ;;
22803 "familiar/control-unstripped" ) CONFIG_FILES="$CONFIG_FILES familiar/control-unstripped" ;;
22804 "familiar/libipkg-control" ) CONFIG_FILES="$CONFIG_FILES familiar/libipkg-control" ;;
22805 "familiar/libipkg-dev-control" ) CONFIG_FILES="$CONFIG_FILES familiar/libipkg-dev-control" ;;
22806 "libbb/Makefile" ) CONFIG_FILES="$CONFIG_FILES libbb/Makefile" ;;
22807 "libipkg.pc" ) CONFIG_FILES="$CONFIG_FILES libipkg.pc" ;;
22808 "ipkg.h" ) CONFIG_FILES="$CONFIG_FILES ipkg.h" ;;
22809 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22810 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22811 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22812 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22813 { (exit 1); exit 1; }; };;
22817 # If the user did not use the arguments to specify the items to instantiate,
22818 # then the envvar interface is used. Set only those that are not.
22819 # We use the long form for the default assignment because of an extremely
22820 # bizarre bug on SunOS 4.1.3.
22821 if $ac_need_defaults; then
22822 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22823 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22824 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22827 # Have a temporary directory for convenience. Make it in the build tree
22828 # simply because there is no reason to put it here, and in addition,
22829 # creating and moving files from /tmp can sometimes cause problems.
22830 # Create a temporary directory, and hook for its removal unless debugging.
22833 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22834 trap '{ (exit 1); exit 1; }' 1 2 13 15
22837 # Create a (secure) tmp directory for tmp files.
22840 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22841 test -n "$tmp" && test -d "$tmp"
22844 tmp=./confstat$$-$RANDOM
22845 (umask 077 && mkdir $tmp)
22848 echo "$me: cannot create a temporary directory in ." >&2
22849 { (exit 1); exit 1; }
22854 cat >>$CONFIG_STATUS <<_ACEOF
22857 # CONFIG_FILES section.
22860 # No need to generate the scripts if there are no CONFIG_FILES.
22861 # This happens for instance when ./config.status config.h
22862 if test -n "\$CONFIG_FILES"; then
22863 # Protect against being on the right side of a sed subst in config.status.
22864 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22865 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22866 s,@SHELL@,$SHELL,;t t
22867 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22868 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22869 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22870 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22871 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22872 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22873 s,@exec_prefix@,$exec_prefix,;t t
22874 s,@prefix@,$prefix,;t t
22875 s,@program_transform_name@,$program_transform_name,;t t
22876 s,@bindir@,$bindir,;t t
22877 s,@sbindir@,$sbindir,;t t
22878 s,@libexecdir@,$libexecdir,;t t
22879 s,@datadir@,$datadir,;t t
22880 s,@sysconfdir@,$sysconfdir,;t t
22881 s,@sharedstatedir@,$sharedstatedir,;t t
22882 s,@localstatedir@,$localstatedir,;t t
22883 s,@libdir@,$libdir,;t t
22884 s,@includedir@,$includedir,;t t
22885 s,@oldincludedir@,$oldincludedir,;t t
22886 s,@infodir@,$infodir,;t t
22887 s,@mandir@,$mandir,;t t
22888 s,@build_alias@,$build_alias,;t t
22889 s,@host_alias@,$host_alias,;t t
22890 s,@target_alias@,$target_alias,;t t
22891 s,@DEFS@,$DEFS,;t t
22892 s,@ECHO_C@,$ECHO_C,;t t
22893 s,@ECHO_N@,$ECHO_N,;t t
22894 s,@ECHO_T@,$ECHO_T,;t t
22895 s,@LIBS@,$LIBS,;t t
22896 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22897 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22898 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22899 s,@CYGPATH_W@,$CYGPATH_W,;t t
22900 s,@PACKAGE@,$PACKAGE,;t t
22901 s,@VERSION@,$VERSION,;t t
22902 s,@ACLOCAL@,$ACLOCAL,;t t
22903 s,@AUTOCONF@,$AUTOCONF,;t t
22904 s,@AUTOMAKE@,$AUTOMAKE,;t t
22905 s,@AUTOHEADER@,$AUTOHEADER,;t t
22906 s,@MAKEINFO@,$MAKEINFO,;t t
22907 s,@install_sh@,$install_sh,;t t
22908 s,@STRIP@,$STRIP,;t t
22909 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22910 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22911 s,@mkdir_p@,$mkdir_p,;t t
22913 s,@SET_MAKE@,$SET_MAKE,;t t
22914 s,@am__leading_dot@,$am__leading_dot,;t t
22915 s,@AMTAR@,$AMTAR,;t t
22916 s,@am__tar@,$am__tar,;t t
22917 s,@am__untar@,$am__untar,;t t
22918 s,@build@,$build,;t t
22919 s,@build_cpu@,$build_cpu,;t t
22920 s,@build_vendor@,$build_vendor,;t t
22921 s,@build_os@,$build_os,;t t
22922 s,@host@,$host,;t t
22923 s,@host_cpu@,$host_cpu,;t t
22924 s,@host_vendor@,$host_vendor,;t t
22925 s,@host_os@,$host_os,;t t
22927 s,@CFLAGS@,$CFLAGS,;t t
22928 s,@LDFLAGS@,$LDFLAGS,;t t
22929 s,@CPPFLAGS@,$CPPFLAGS,;t t
22930 s,@ac_ct_CC@,$ac_ct_CC,;t t
22931 s,@EXEEXT@,$EXEEXT,;t t
22932 s,@OBJEXT@,$OBJEXT,;t t
22933 s,@DEPDIR@,$DEPDIR,;t t
22934 s,@am__include@,$am__include,;t t
22935 s,@am__quote@,$am__quote,;t t
22936 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22937 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22938 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22939 s,@CCDEPMODE@,$CCDEPMODE,;t t
22940 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22941 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22942 s,@LN_S@,$LN_S,;t t
22943 s,@EGREP@,$EGREP,;t t
22944 s,@ECHO@,$ECHO,;t t
22946 s,@ac_ct_AR@,$ac_ct_AR,;t t
22947 s,@RANLIB@,$RANLIB,;t t
22948 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22951 s,@CXXFLAGS@,$CXXFLAGS,;t t
22952 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22953 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22954 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22955 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22956 s,@CXXCPP@,$CXXCPP,;t t
22958 s,@FFLAGS@,$FFLAGS,;t t
22959 s,@ac_ct_F77@,$ac_ct_F77,;t t
22960 s,@LIBTOOL@,$LIBTOOL,;t t
22961 s,@ipkglibdir@,$ipkglibdir,;t t
22962 s,@LIBOBJS@,$LIBOBJS,;t t
22963 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22968 cat >>$CONFIG_STATUS <<\_ACEOF
22969 # Split the substitutions into bite-sized pieces for seds with
22970 # small command number limits, like on Digital OSF/1 and HP-UX.
22971 ac_max_sed_lines=48
22972 ac_sed_frag=1 # Number of current file.
22973 ac_beg=1 # First line for current file.
22974 ac_end=$ac_max_sed_lines # Line after last line for current file.
22977 while $ac_more_lines; do
22978 if test $ac_beg -gt 1; then
22979 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22981 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22983 if test ! -s $tmp/subs.frag; then
22984 ac_more_lines=false
22986 # The purpose of the label and of the branching condition is to
22987 # speed up the sed processing (if there are no `@' at all, there
22988 # is no need to browse any of the substitutions).
22989 # These are the two extra sed commands mentioned above.
22991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22992 if test -z "$ac_sed_cmds"; then
22993 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22995 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22997 ac_sed_frag=`expr $ac_sed_frag + 1`
22999 ac_end=`expr $ac_end + $ac_max_sed_lines`
23002 if test -z "$ac_sed_cmds"; then
23005 fi # test -n "$CONFIG_FILES"
23008 cat >>$CONFIG_STATUS <<\_ACEOF
23009 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23010 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23012 - | *:- | *:-:* ) # input from stdin
23014 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23016 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23017 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23018 * ) ac_file_in=$ac_file.in ;;
23021 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23022 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23024 X"$ac_file" : 'X\(//\)[^/]' \| \
23025 X"$ac_file" : 'X\(//\)$' \| \
23026 X"$ac_file" : 'X\(/\)' \| \
23027 . : '\(.\)' 2>/dev/null ||
23029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23031 /^X\(\/\/\)$/{ s//\1/; q; }
23032 /^X\(\/\).*/{ s//\1/; q; }
23034 { if $as_mkdir_p; then
23039 while test ! -d "$as_dir"; do
23040 as_dirs="$as_dir $as_dirs"
23041 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23043 X"$as_dir" : 'X\(//\)[^/]' \| \
23044 X"$as_dir" : 'X\(//\)$' \| \
23045 X"$as_dir" : 'X\(/\)' \| \
23046 . : '\(.\)' 2>/dev/null ||
23048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23050 /^X\(\/\/\)$/{ s//\1/; q; }
23051 /^X\(\/\).*/{ s//\1/; q; }
23054 test ! -n "$as_dirs" || mkdir $as_dirs
23055 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23056 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23057 { (exit 1); exit 1; }; }; }
23061 if test "$ac_dir" != .; then
23062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23063 # A "../" for each directory in $ac_dir_suffix.
23064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23066 ac_dir_suffix= ac_top_builddir=
23070 .) # No --srcdir option. We are building in place.
23072 if test -z "$ac_top_builddir"; then
23075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23077 [\\/]* | ?:[\\/]* ) # Absolute path.
23078 ac_srcdir=$srcdir$ac_dir_suffix;
23079 ac_top_srcdir=$srcdir ;;
23080 *) # Relative path.
23081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23085 # Do not use `cd foo && pwd` to compute absolute paths, because
23086 # the directories may not exist.
23088 .) ac_abs_builddir="$ac_dir";;
23091 .) ac_abs_builddir=`pwd`;;
23092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23096 case $ac_abs_builddir in
23097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23099 case ${ac_top_builddir}. in
23100 .) ac_abs_top_builddir=$ac_abs_builddir;;
23101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23105 case $ac_abs_builddir in
23106 .) ac_abs_srcdir=$ac_srcdir;;
23109 .) ac_abs_srcdir=$ac_abs_builddir;;
23110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23114 case $ac_abs_builddir in
23115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23117 case $ac_top_srcdir in
23118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23126 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23127 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23130 if test x"$ac_file" != x-; then
23131 { echo "$as_me:$LINENO: creating $ac_file" >&5
23132 echo "$as_me: creating $ac_file" >&6;}
23135 # Let's still pretend it is `configure' which instantiates (i.e., don't
23136 # use $as_me), people would be surprised to read:
23137 # /* config.h. Generated by config.status. */
23138 if test x"$ac_file" = x-; then
23141 configure_input="$ac_file. "
23143 configure_input=$configure_input"Generated from `echo $ac_file_in |
23144 sed 's,.*/,,'` by configure."
23146 # First look for the input files in the build tree, otherwise in the
23148 ac_file_inputs=`IFS=:
23149 for f in $ac_file_in; do
23151 -) echo $tmp/stdin ;;
23153 # Absolute (can't be DOS-style, as IFS=:)
23154 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23155 echo "$as_me: error: cannot find input file: $f" >&2;}
23156 { (exit 1); exit 1; }; }
23159 if test -f "$f"; then
23162 elif test -f "$srcdir/$f"; then
23167 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23168 echo "$as_me: error: cannot find input file: $f" >&2;}
23169 { (exit 1); exit 1; }; }
23172 done` || { (exit 1); exit 1; }
23174 cat >>$CONFIG_STATUS <<_ACEOF
23178 cat >>$CONFIG_STATUS <<\_ACEOF
23180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23181 s,@configure_input@,$configure_input,;t t
23182 s,@srcdir@,$ac_srcdir,;t t
23183 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23184 s,@top_srcdir@,$ac_top_srcdir,;t t
23185 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23186 s,@builddir@,$ac_builddir,;t t
23187 s,@abs_builddir@,$ac_abs_builddir,;t t
23188 s,@top_builddir@,$ac_top_builddir,;t t
23189 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23190 s,@INSTALL@,$ac_INSTALL,;t t
23191 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23193 if test x"$ac_file" != x-; then
23194 mv $tmp/out $ac_file
23202 cat >>$CONFIG_STATUS <<\_ACEOF
23205 # CONFIG_HEADER section.
23208 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23209 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23211 # ac_d sets the value in "#define NAME VALUE" lines.
23212 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23213 ac_dB='[ ].*$,\1#\2'
23216 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23217 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23218 ac_uB='$,\1#\2define\3'
23222 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23225 - | *:- | *:-:* ) # input from stdin
23227 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23228 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23229 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23230 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23231 * ) ac_file_in=$ac_file.in ;;
23234 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23235 echo "$as_me: creating $ac_file" >&6;}
23237 # First look for the input files in the build tree, otherwise in the
23239 ac_file_inputs=`IFS=:
23240 for f in $ac_file_in; do
23242 -) echo $tmp/stdin ;;
23244 # Absolute (can't be DOS-style, as IFS=:)
23245 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23246 echo "$as_me: error: cannot find input file: $f" >&2;}
23247 { (exit 1); exit 1; }; }
23248 # Do quote $f, to prevent DOS paths from being IFS'd.
23251 if test -f "$f"; then
23254 elif test -f "$srcdir/$f"; then
23259 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23260 echo "$as_me: error: cannot find input file: $f" >&2;}
23261 { (exit 1); exit 1; }; }
23264 done` || { (exit 1); exit 1; }
23265 # Remove the trailing spaces.
23266 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23270 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23271 # `conftest.undefs', that substitutes the proper values into
23272 # config.h.in to produce config.h. The first handles `#define'
23273 # templates, and the second `#undef' templates.
23274 # And first: Protect against being on the right side of a sed subst in
23275 # config.status. Protect against being in an unquoted here document
23276 # in config.status.
23277 rm -f conftest.defines conftest.undefs
23278 # Using a here document instead of a string reduces the quoting nightmare.
23279 # Putting comments in sed scripts is not portable.
23281 # `end' is used to avoid that the second main sed command (meant for
23282 # 0-ary CPP macros) applies to n-ary macro definitions.
23283 # See the Autoconf documentation for `clear'.
23284 cat >confdef2sed.sed <<\_ACEOF
23289 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23291 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23294 # If some macros were called several times there might be several times
23295 # the same #defines, which is useless. Nevertheless, we may not want to
23296 # sort them, since we want the *last* AC-DEFINE to be honored.
23297 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23298 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23299 rm -f confdef2sed.sed
23301 # This sed command replaces #undef with comments. This is necessary, for
23302 # example, in the case of _POSIX_SOURCE, which is predefined and required
23303 # on some systems where configure will not decide to define it.
23304 cat >>conftest.undefs <<\_ACEOF
23305 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23308 # Break up conftest.defines because some shells have a limit on the size
23309 # of here documents, and old seds have small limits too (100 cmds).
23310 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23311 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23312 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23313 echo ' :' >>$CONFIG_STATUS
23314 rm -f conftest.tail
23315 while grep . conftest.defines >/dev/null
23317 # Write a limited-size here document to $tmp/defines.sed.
23318 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23319 # Speed up: don't consider the non `#define' lines.
23320 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23321 # Work around the forget-to-reset-the-flag bug.
23322 echo 't clr' >>$CONFIG_STATUS
23323 echo ': clr' >>$CONFIG_STATUS
23324 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23326 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23328 mv $tmp/out $tmp/in
23330 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23331 rm -f conftest.defines
23332 mv conftest.tail conftest.defines
23334 rm -f conftest.defines
23335 echo ' fi # grep' >>$CONFIG_STATUS
23336 echo >>$CONFIG_STATUS
23338 # Break up conftest.undefs because some shells have a limit on the size
23339 # of here documents, and old seds have small limits too (100 cmds).
23340 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23341 rm -f conftest.tail
23342 while grep . conftest.undefs >/dev/null
23344 # Write a limited-size here document to $tmp/undefs.sed.
23345 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23346 # Speed up: don't consider the non `#undef'
23347 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23348 # Work around the forget-to-reset-the-flag bug.
23349 echo 't clr' >>$CONFIG_STATUS
23350 echo ': clr' >>$CONFIG_STATUS
23351 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23353 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23355 mv $tmp/out $tmp/in
23357 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23358 rm -f conftest.undefs
23359 mv conftest.tail conftest.undefs
23361 rm -f conftest.undefs
23363 cat >>$CONFIG_STATUS <<\_ACEOF
23364 # Let's still pretend it is `configure' which instantiates (i.e., don't
23365 # use $as_me), people would be surprised to read:
23366 # /* config.h. Generated by config.status. */
23367 if test x"$ac_file" = x-; then
23368 echo "/* Generated by configure. */" >$tmp/config.h
23370 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23372 cat $tmp/in >>$tmp/config.h
23374 if test x"$ac_file" != x-; then
23375 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23376 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23377 echo "$as_me: $ac_file is unchanged" >&6;}
23379 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23381 X"$ac_file" : 'X\(//\)[^/]' \| \
23382 X"$ac_file" : 'X\(//\)$' \| \
23383 X"$ac_file" : 'X\(/\)' \| \
23384 . : '\(.\)' 2>/dev/null ||
23386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23388 /^X\(\/\/\)$/{ s//\1/; q; }
23389 /^X\(\/\).*/{ s//\1/; q; }
23391 { if $as_mkdir_p; then
23396 while test ! -d "$as_dir"; do
23397 as_dirs="$as_dir $as_dirs"
23398 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23400 X"$as_dir" : 'X\(//\)[^/]' \| \
23401 X"$as_dir" : 'X\(//\)$' \| \
23402 X"$as_dir" : 'X\(/\)' \| \
23403 . : '\(.\)' 2>/dev/null ||
23405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23407 /^X\(\/\/\)$/{ s//\1/; q; }
23408 /^X\(\/\).*/{ s//\1/; q; }
23411 test ! -n "$as_dirs" || mkdir $as_dirs
23412 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23413 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23414 { (exit 1); exit 1; }; }; }
23417 mv $tmp/config.h $ac_file
23421 rm -f $tmp/config.h
23423 # Compute $ac_file's index in $config_headers.
23425 for _am_header in $config_headers :; do
23426 case $_am_header in
23427 $ac_file | $ac_file:* )
23430 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23433 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23434 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23435 X$ac_file : 'X\(//\)[^/]' \| \
23436 X$ac_file : 'X\(//\)$' \| \
23437 X$ac_file : 'X\(/\)' \| \
23438 . : '\(.\)' 2>/dev/null ||
23440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23441 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23442 /^X\(\/\/\)$/{ s//\1/; q; }
23443 /^X\(\/\).*/{ s//\1/; q; }
23444 s/.*/./; q'`/stamp-h$_am_stamp_count
23447 cat >>$CONFIG_STATUS <<\_ACEOF
23450 # CONFIG_COMMANDS section.
23452 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23453 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23454 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23455 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23456 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23457 X"$ac_dest" : 'X\(//\)[^/]' \| \
23458 X"$ac_dest" : 'X\(//\)$' \| \
23459 X"$ac_dest" : 'X\(/\)' \| \
23460 . : '\(.\)' 2>/dev/null ||
23462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23464 /^X\(\/\/\)$/{ s//\1/; q; }
23465 /^X\(\/\).*/{ s//\1/; q; }
23467 { if $as_mkdir_p; then
23472 while test ! -d "$as_dir"; do
23473 as_dirs="$as_dir $as_dirs"
23474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23476 X"$as_dir" : 'X\(//\)[^/]' \| \
23477 X"$as_dir" : 'X\(//\)$' \| \
23478 X"$as_dir" : 'X\(/\)' \| \
23479 . : '\(.\)' 2>/dev/null ||
23481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23483 /^X\(\/\/\)$/{ s//\1/; q; }
23484 /^X\(\/\).*/{ s//\1/; q; }
23487 test ! -n "$as_dirs" || mkdir $as_dirs
23488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23490 { (exit 1); exit 1; }; }; }
23494 if test "$ac_dir" != .; then
23495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23496 # A "../" for each directory in $ac_dir_suffix.
23497 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23499 ac_dir_suffix= ac_top_builddir=
23503 .) # No --srcdir option. We are building in place.
23505 if test -z "$ac_top_builddir"; then
23508 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23510 [\\/]* | ?:[\\/]* ) # Absolute path.
23511 ac_srcdir=$srcdir$ac_dir_suffix;
23512 ac_top_srcdir=$srcdir ;;
23513 *) # Relative path.
23514 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23515 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23518 # Do not use `cd foo && pwd` to compute absolute paths, because
23519 # the directories may not exist.
23521 .) ac_abs_builddir="$ac_dir";;
23524 .) ac_abs_builddir=`pwd`;;
23525 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23526 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23529 case $ac_abs_builddir in
23530 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23532 case ${ac_top_builddir}. in
23533 .) ac_abs_top_builddir=$ac_abs_builddir;;
23534 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23535 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23538 case $ac_abs_builddir in
23539 .) ac_abs_srcdir=$ac_srcdir;;
23542 .) ac_abs_srcdir=$ac_abs_builddir;;
23543 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23544 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23547 case $ac_abs_builddir in
23548 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23550 case $ac_top_srcdir in
23551 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23552 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23553 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23558 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23559 echo "$as_me: executing $ac_dest commands" >&6;}
23561 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23562 # Strip MF so we end up with the name of the file.
23563 mf=`echo "$mf" | sed -e 's/:.*$//'`
23564 # Check whether this is an Automake generated Makefile or not.
23565 # We used to match only the files named `Makefile.in', but
23566 # some people rename them; so instead we look at the file content.
23567 # Grep'ing the first line is not enough: some people post-process
23568 # each Makefile.in and add a new line on top of each file to say so.
23569 # So let's grep whole file.
23570 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23571 dirpart=`(dirname "$mf") 2>/dev/null ||
23572 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23573 X"$mf" : 'X\(//\)[^/]' \| \
23574 X"$mf" : 'X\(//\)$' \| \
23575 X"$mf" : 'X\(/\)' \| \
23576 . : '\(.\)' 2>/dev/null ||
23578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23580 /^X\(\/\/\)$/{ s//\1/; q; }
23581 /^X\(\/\).*/{ s//\1/; q; }
23586 # Extract the definition of DEPDIR, am__include, and am__quote
23587 # from the Makefile without running `make'.
23588 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23589 test -z "$DEPDIR" && continue
23590 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23591 test -z "am__include" && continue
23592 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23593 # When using ansi2knr, U may be empty or an underscore; expand it
23594 U=`sed -n 's/^U = //p' < "$mf"`
23595 # Find all dependency output files, they are included files with
23596 # $(DEPDIR) in their names. We invoke sed twice because it is the
23597 # simplest approach to changing $(DEPDIR) to its actual value in the
23599 for file in `sed -n "
23600 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23601 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23602 # Make sure the directory exists.
23603 test -f "$dirpart/$file" && continue
23604 fdir=`(dirname "$file") 2>/dev/null ||
23605 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23606 X"$file" : 'X\(//\)[^/]' \| \
23607 X"$file" : 'X\(//\)$' \| \
23608 X"$file" : 'X\(/\)' \| \
23609 . : '\(.\)' 2>/dev/null ||
23611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23613 /^X\(\/\/\)$/{ s//\1/; q; }
23614 /^X\(\/\).*/{ s//\1/; q; }
23616 { if $as_mkdir_p; then
23617 mkdir -p $dirpart/$fdir
23619 as_dir=$dirpart/$fdir
23621 while test ! -d "$as_dir"; do
23622 as_dirs="$as_dir $as_dirs"
23623 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23625 X"$as_dir" : 'X\(//\)[^/]' \| \
23626 X"$as_dir" : 'X\(//\)$' \| \
23627 X"$as_dir" : 'X\(/\)' \| \
23628 . : '\(.\)' 2>/dev/null ||
23630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23632 /^X\(\/\/\)$/{ s//\1/; q; }
23633 /^X\(\/\).*/{ s//\1/; q; }
23636 test ! -n "$as_dirs" || mkdir $as_dirs
23637 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23638 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23639 { (exit 1); exit 1; }; }; }
23641 # echo "creating $dirpart/$file"
23642 echo '# dummy' > "$dirpart/$file"
23650 cat >>$CONFIG_STATUS <<\_ACEOF
23652 { (exit 0); exit 0; }
23654 chmod +x $CONFIG_STATUS
23655 ac_clean_files=$ac_clean_files_save
23658 # configure is writing to config.log, and then calls config.status.
23659 # config.status does its own redirection, appending to config.log.
23660 # Unfortunately, on DOS this fails, as config.log is still kept open
23661 # by configure, so config.status won't be able to write to it; its
23662 # output is simply discarded. So we exec the FD to /dev/null,
23663 # effectively closing config.log, so it can be properly (re)opened and
23664 # appended to by config.status. When coming back to configure, we
23665 # need to make the FD available again.
23666 if test "$no_create" != yes; then
23668 ac_config_status_args=
23669 test "$silent" = yes &&
23670 ac_config_status_args="$ac_config_status_args --quiet"
23672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23675 # would make configure fail if this is the last instruction.
23676 $ac_cs_success || { (exit 1); exit 1; }