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="src/file.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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT fsect FSECT5_TRUE FSECT5_FALSE 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 IS_CROSS_COMPILE_TRUE IS_CROSS_COMPILE_FALSE 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 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing) to the casual installer
1028 --disable-elf disable builtin ELF support
1029 --disable-elf-core disable ELF core file support
1030 --enable-fsect-man5 enable file formats in man section 5
1031 --disable-dependency-tracking speeds up one-time build
1032 --enable-dependency-tracking do not reject slow dependency extractors
1033 --enable-shared[=PKGS]
1034 build shared libraries [default=yes]
1035 --enable-static[=PKGS]
1036 build static libraries [default=yes]
1037 --enable-fast-install[=PKGS]
1038 optimize for fast installation [default=yes]
1039 --disable-libtool-lock avoid locking (might break parallel builds)
1040 --disable-largefile omit support for large files
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1051 Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1071 if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1078 if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 ac_dir_suffix= ac_top_builddir=
1087 .) # No --srcdir option. We are building in place.
1089 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1105 .) ac_abs_builddir="$ac_dir";;
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
1150 test -f $ac_srcdir/configure.in; then
1152 $ac_configure --help
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1164 Copyright (C) 2003 Free Software Foundation, Inc.
1165 This configure script is free software; the Free Software Foundation
1166 gives unlimited permission to copy, distribute and modify it.
1172 This file contains any messages produced by compilers while
1173 running configure, to aid debugging if configure makes a mistake.
1175 It was created by $as_me, which was
1176 generated by GNU Autoconf 2.59. Invocation command line was
1187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1196 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1197 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1200 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1201 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1202 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210 test -z "$as_dir" && as_dir=.
1211 echo "PATH: $as_dir"
1226 # Keep a trace of the command line.
1227 # Strip out --no-create and --no-recursion so they do not pile up.
1228 # Strip out --silent because we don't want to record it for future runs.
1229 # Also quote any args containing shell meta-characters.
1230 # Make two passes to allow for proper duplicate-argument suppression.
1235 ac_must_keep_next=false
1241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252 if test $ac_must_keep_next = true; then
1253 ac_must_keep_next=false # Got value, back to normal.
1256 *=* | --config-cache | -C | -disable-* | --disable-* \
1257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259 | -with-* | --with-* | -without-* | --without-* | --x)
1260 case "$ac_configure_args0 " in
1261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264 -* ) ac_must_keep_next=true ;;
1267 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268 # Get rid of the leading space.
1274 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277 # When interrupted or exit'd, cleanup temporary files, and complete
1278 # config.log. We remove comments because anyway the quotes in there
1279 # would cause problems or look ugly.
1280 # WARNING: Be sure not to use single quotes in there, as some shells,
1281 # such as our DU 5.0 friend, will then `close' the trap.
1282 trap 'exit_status=$?
1283 # Save into config.log some information that might help in debugging.
1288 ## ---------------- ##
1289 ## Cache variables. ##
1290 ## ---------------- ##
1293 # The following way of writing the cache mishandles newlines in values,
1296 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311 ## ----------------- ##
1312 ## Output variables. ##
1313 ## ----------------- ##
1316 for ac_var in $ac_subst_vars
1318 eval ac_val=$`echo $ac_var`
1319 echo "$ac_var='"'"'$ac_val'"'"'"
1323 if test -n "$ac_subst_files"; then
1330 for ac_var in $ac_subst_files
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1338 if test -s confdefs.h; then
1345 sed "/^$/d" confdefs.h | sort
1348 test "$ac_signal" != 0 &&
1349 echo "$as_me: caught signal $ac_signal"
1350 echo "$as_me: exit $exit_status"
1352 rm -f core *.core &&
1353 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356 for ac_signal in 1 2 13 15; do
1357 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1362 rm -rf conftest* confdefs.h
1363 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366 # Predefined preprocessor variables.
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_NAME "$PACKAGE_NAME"
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_STRING "$PACKAGE_STRING"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393 # Let the site file select an alternate cache file if it wants to.
1394 # Prefer explicitly selected file to automatically selected ones.
1395 if test -z "$CONFIG_SITE"; then
1396 if test "x$prefix" != xNONE; then
1397 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402 for ac_site_file in $CONFIG_SITE; do
1403 if test -r "$ac_site_file"; then
1404 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405 echo "$as_me: loading site script $ac_site_file" >&6;}
1406 sed 's/^/| /' "$ac_site_file" >&5
1411 if test -r "$cache_file"; then
1412 # Some versions of bash will fail to source /dev/null (special
1413 # files actually), so we avoid doing that.
1414 if test -f "$cache_file"; then
1415 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416 echo "$as_me: loading cache $cache_file" >&6;}
1418 [\\/]* | ?:[\\/]* ) . $cache_file;;
1419 *) . ./$cache_file;;
1423 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424 echo "$as_me: creating cache $cache_file" >&6;}
1428 # Check that the precious variables saved in the cache have kept the same
1430 ac_cache_corrupted=false
1431 for ac_var in `(set) 2>&1 |
1432 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434 eval ac_new_set=\$ac_env_${ac_var}_set
1435 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436 eval ac_new_val="\$ac_env_${ac_var}_value"
1437 case $ac_old_set,$ac_new_set in
1439 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441 ac_cache_corrupted=: ;;
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1448 if test "x$ac_old_val" != "x$ac_new_val"; then
1449 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1452 echo "$as_me: former value: $ac_old_val" >&2;}
1453 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1454 echo "$as_me: current value: $ac_new_val" >&2;}
1455 ac_cache_corrupted=:
1458 # Pass precious variables to config.status.
1459 if test "$ac_new_set" = set; then
1461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463 *) ac_arg=$ac_var=$ac_new_val ;;
1465 case " $ac_configure_args " in
1466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1467 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471 if $ac_cache_corrupted; then
1472 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476 { (exit 1); exit 1; }; }
1480 ac_cpp='$CPP $CPPFLAGS'
1481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504 am__api_version="1.9"
1506 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1507 if test -f $ac_dir/install-sh; then
1509 ac_install_sh="$ac_aux_dir/install-sh -c"
1511 elif test -f $ac_dir/install.sh; then
1513 ac_install_sh="$ac_aux_dir/install.sh -c"
1515 elif test -f $ac_dir/shtool; then
1517 ac_install_sh="$ac_aux_dir/shtool install -c"
1521 if test -z "$ac_aux_dir"; then
1522 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1523 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1524 { (exit 1); exit 1; }; }
1526 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1527 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1528 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530 # Find a good install program. We prefer a C program (faster),
1531 # so one script is as good as another. But avoid the broken or
1532 # incompatible versions:
1533 # SysV /etc/install, /usr/sbin/install
1534 # SunOS /usr/etc/install
1535 # IRIX /sbin/install
1537 # AmigaOS /C/install, which installs bootblocks on floppy discs
1538 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1539 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1540 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1541 # OS/2's system install, which has a completely different semantic
1542 # ./install, which can be erroneously created by make from ./install.sh.
1543 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1544 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1545 if test -z "$INSTALL"; then
1546 if test "${ac_cv_path_install+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 test -z "$as_dir" && as_dir=.
1554 # Account for people who put trailing slashes in PATH elements.
1556 ./ | .// | /cC/* | \
1557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1558 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1561 # OSF1 and SCO ODT 3.0 have their own names for install.
1562 # Don't use installbsd from OSF since it installs stuff as root
1564 for ac_prog in ginstall scoinst install; do
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1567 if test $ac_prog = install &&
1568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569 # AIX install. It has an incompatible calling convention.
1571 elif test $ac_prog = install &&
1572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1573 # program-specific install script used by HP pwplus--don't use.
1576 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1588 if test "${ac_cv_path_install+set}" = set; then
1589 INSTALL=$ac_cv_path_install
1591 # As a last resort, use the slow shell script. We don't cache a
1592 # path for INSTALL within a source directory, because that will
1593 # break other packages using the cache if that directory is
1594 # removed, or if the path is relative.
1595 INSTALL=$ac_install_sh
1598 echo "$as_me:$LINENO: result: $INSTALL" >&5
1599 echo "${ECHO_T}$INSTALL" >&6
1601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1602 # It thinks the first close brace ends the variable substitution.
1603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1609 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1610 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1613 echo timestamp > conftest.file
1614 # Do `set' in a subshell so we don't clobber the current shell's
1615 # arguments. Must try -L first in case configure is actually a
1616 # symlink; some systems play weird games with the mod time of symlinks
1617 # (eg FreeBSD returns the mod time of the symlink's containing
1620 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1621 if test "$*" = "X"; then
1623 set X `ls -t $srcdir/configure conftest.file`
1626 if test "$*" != "X $srcdir/configure conftest.file" \
1627 && test "$*" != "X conftest.file $srcdir/configure"; then
1629 # If neither matched, then we have a broken ls. This can happen
1630 # if, for instance, CONFIG_SHELL is bash and it inherits a
1631 # broken ls alias from the environment. This has actually
1632 # happened. Such a system could not be considered "sane".
1633 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1634 alias in your environment" >&5
1635 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1636 alias in your environment" >&2;}
1637 { (exit 1); exit 1; }; }
1640 test "$2" = conftest.file
1646 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1647 Check your system clock" >&5
1648 echo "$as_me: error: newly created file is older than distributed files!
1649 Check your system clock" >&2;}
1650 { (exit 1); exit 1; }; }
1652 echo "$as_me:$LINENO: result: yes" >&5
1653 echo "${ECHO_T}yes" >&6
1654 test "$program_prefix" != NONE &&
1655 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1656 # Use a double $ so make ignores it.
1657 test "$program_suffix" != NONE &&
1658 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1659 # Double any \ or $. echo might interpret backslashes.
1660 # By default was `s,x,x', remove it if useless.
1661 cat <<\_ACEOF >conftest.sed
1662 s/[\\$]/&&/g;s/;s,x,x,$//
1664 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1667 # expand $ac_aux_dir to an absolute path
1668 am_aux_dir=`cd $ac_aux_dir && pwd`
1670 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1671 # Use eval to expand $SHELL
1672 if eval "$MISSING --run true"; then
1673 am_missing_run="$MISSING --run "
1676 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1677 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1680 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1681 # We used to keeping the `.' as first argument, in order to
1682 # allow $(mkdir_p) to be used without argument. As in
1683 # $(mkdir_p) $(somedir)
1684 # where $(somedir) is conditionally defined. However this is wrong
1686 # 1. if the package is installed by a user who cannot write `.'
1687 # make install will fail,
1688 # 2. the above comment should most certainly read
1689 # $(mkdir_p) $(DESTDIR)$(somedir)
1690 # so it does not work when $(somedir) is undefined and
1691 # $(DESTDIR) is not.
1692 # To support the latter case, we have to write
1693 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1694 # so the `.' trick is pointless.
1695 mkdir_p='mkdir -p --'
1697 # On NextStep and OpenStep, the `mkdir' command does not
1698 # recognize any option. It will interpret all options as
1699 # directories to create, and then abort because `.' already
1701 for d in ./-p ./--version;
1703 test -d $d && rmdir $d
1705 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1706 if test -f "$ac_aux_dir/mkinstalldirs"; then
1707 mkdir_p='$(mkinstalldirs)'
1709 mkdir_p='$(install_sh) -d'
1713 for ac_prog in gawk mawk nawk awk
1715 # Extract the first word of "$ac_prog", so it can be a program name with args.
1716 set dummy $ac_prog; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_AWK+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$AWK"; then
1723 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_AWK="$ac_prog"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 if test -n "$AWK"; then
1743 echo "$as_me:$LINENO: result: $AWK" >&5
1744 echo "${ECHO_T}$AWK" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1750 test -n "$AWK" && break
1753 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1754 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1755 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1756 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 cat >conftest.make <<\_ACEOF
1761 @echo 'ac_maketemp="$(MAKE)"'
1763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1764 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1765 if test -n "$ac_maketemp"; then
1766 eval ac_cv_prog_make_${ac_make}_set=yes
1768 eval ac_cv_prog_make_${ac_make}_set=no
1772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1773 echo "$as_me:$LINENO: result: yes" >&5
1774 echo "${ECHO_T}yes" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 SET_MAKE="MAKE=${MAKE-make}"
1782 rm -rf .tst 2>/dev/null
1783 mkdir .tst 2>/dev/null
1784 if test -d .tst; then
1789 rmdir .tst 2>/dev/null
1791 # test to see if srcdir already configured
1792 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1793 test -f $srcdir/config.status; then
1794 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1795 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1796 { (exit 1); exit 1; }; }
1799 # test whether we have cygpath
1800 if test -z "$CYGPATH_W"; then
1801 if (cygpath --version) >/dev/null 2>/dev/null; then
1802 CYGPATH_W='cygpath -w'
1809 # Define the identity of the package.
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE "$PACKAGE"
1819 cat >>confdefs.h <<_ACEOF
1820 #define VERSION "$VERSION"
1823 # Some tools Automake needs.
1825 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1828 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1831 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1834 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1837 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1839 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1841 # Installed binaries are usually stripped using `strip' when the user
1842 # run `make install-strip'. However `strip' might not be the right
1843 # tool to use in cross-compilation environments, therefore Automake
1844 # will honor the `STRIP' environment variable to overrule this program.
1845 if test "$cross_compiling" != no; then
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1848 set dummy ${ac_tool_prefix}strip; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_STRIP+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test -n "$STRIP"; then
1855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 STRIP=$ac_cv_prog_STRIP
1874 if test -n "$STRIP"; then
1875 echo "$as_me:$LINENO: result: $STRIP" >&5
1876 echo "${ECHO_T}$STRIP" >&6
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1883 if test -z "$ac_cv_prog_STRIP"; then
1885 # Extract the first word of "strip", so it can be a program name with args.
1886 set dummy strip; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$ac_ct_STRIP"; then
1893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_STRIP="strip"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1912 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1913 if test -n "$ac_ct_STRIP"; then
1914 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1915 echo "${ECHO_T}$ac_ct_STRIP" >&6
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1923 STRIP="$ac_cv_prog_STRIP"
1927 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1929 # We need awk for the "check" target. The system "awk" is bad on
1931 # Always define AMTAR for backward compatibility.
1933 AMTAR=${AMTAR-"${am_missing_run}tar"}
1935 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1941 ac_config_headers="$ac_config_headers config.h"
1943 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1944 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1945 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1946 if test "${enable_maintainer_mode+set}" = set; then
1947 enableval="$enable_maintainer_mode"
1948 USE_MAINTAINER_MODE=$enableval
1950 USE_MAINTAINER_MODE=no
1952 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1953 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1956 if test $USE_MAINTAINER_MODE = yes; then
1957 MAINTAINER_MODE_TRUE=
1958 MAINTAINER_MODE_FALSE='#'
1960 MAINTAINER_MODE_TRUE='#'
1961 MAINTAINER_MODE_FALSE=
1964 MAINT=$MAINTAINER_MODE_TRUE
1968 echo "$as_me:$LINENO: checking for builtin ELF support" >&5
1969 echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6
1970 # Check whether --enable-elf or --disable-elf was given.
1971 if test "${enable_elf+set}" = set; then
1972 enableval="$enable_elf"
1973 if test "${enableval}" = yes; then
1974 echo "$as_me:$LINENO: result: yes" >&5
1975 echo "${ECHO_T}yes" >&6
1976 cat >>confdefs.h <<\_ACEOF
1977 #define BUILTIN_ELF 1
1981 echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1987 echo "$as_me:$LINENO: result: yes" >&5
1988 echo "${ECHO_T}yes" >&6
1989 cat >>confdefs.h <<\_ACEOF
1990 #define BUILTIN_ELF 1
1996 echo "$as_me:$LINENO: checking for ELF core file support" >&5
1997 echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6
1998 # Check whether --enable-elf-core or --disable-elf-core was given.
1999 if test "${enable_elf_core+set}" = set; then
2000 enableval="$enable_elf_core"
2001 if test "${enableval}" = yes; then
2002 echo "$as_me:$LINENO: result: yes" >&5
2003 echo "${ECHO_T}yes" >&6
2004 cat >>confdefs.h <<\_ACEOF
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2015 echo "$as_me:$LINENO: result: yes" >&5
2016 echo "${ECHO_T}yes" >&6
2017 cat >>confdefs.h <<\_ACEOF
2024 echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
2025 echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6
2026 # Check whether --enable-fsect-man5 or --disable-fsect-man5 was given.
2027 if test "${enable_fsect_man5+set}" = set; then
2028 enableval="$enable_fsect_man5"
2029 if test "${enableval}" = yes; then
2030 echo "$as_me:$LINENO: result: yes" >&5
2031 echo "${ECHO_T}yes" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2040 # disable by default
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2049 if test x$fsect = x5; then
2059 ac_cpp='$CPP $CPPFLAGS'
2060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063 if test -n "$ac_tool_prefix"; then
2064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 if test -n "$CC"; then
2072 ac_cv_prog_CC="$CC" # Let the user override the test.
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 if test -n "$CC"; then
2092 echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2100 if test -z "$ac_cv_prog_CC"; then
2102 # Extract the first word of "gcc", so it can be a program name with args.
2103 set dummy gcc; ac_word=$2
2104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 if test -n "$ac_ct_CC"; then
2110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119 ac_cv_prog_ac_ct_CC="gcc"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2129 if test -n "$ac_ct_CC"; then
2130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2131 echo "${ECHO_T}$ac_ct_CC" >&6
2133 echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6
2142 if test -z "$CC"; then
2143 if test -n "$ac_tool_prefix"; then
2144 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2145 set dummy ${ac_tool_prefix}cc; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 if test -n "$CC"; then
2152 ac_cv_prog_CC="$CC" # Let the user override the test.
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 ac_cv_prog_CC="${ac_tool_prefix}cc"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 if test -n "$CC"; then
2172 echo "$as_me:$LINENO: result: $CC" >&5
2173 echo "${ECHO_T}$CC" >&6
2175 echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2180 if test -z "$ac_cv_prog_CC"; then
2182 # Extract the first word of "cc", so it can be a program name with args.
2183 set dummy cc; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 if test -n "$ac_ct_CC"; then
2190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_ac_ct_CC="cc"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211 echo "${ECHO_T}$ac_ct_CC" >&6
2213 echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2223 if test -z "$CC"; then
2224 # Extract the first word of "cc", so it can be a program name with args.
2225 set dummy cc; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$CC"; then
2232 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2243 ac_prog_rejected=yes
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 if test $ac_prog_rejected = yes; then
2254 # We found a bogon in the path, so make sure we never use it.
2255 set dummy $ac_cv_prog_CC
2257 if test $# != 0; then
2258 # We chose a different compiler from the bogus one.
2259 # However, it has the same basename, so the bogon will be chosen
2260 # first if we set CC to just the basename; use the full file name.
2262 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2268 if test -n "$CC"; then
2269 echo "$as_me:$LINENO: result: $CC" >&5
2270 echo "${ECHO_T}$CC" >&6
2272 echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2277 if test -z "$CC"; then
2278 if test -n "$ac_tool_prefix"; then
2281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2283 echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285 if test "${ac_cv_prog_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$CC"; then
2289 ac_cv_prog_CC="$CC" # Let the user override the test.
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 if test -n "$CC"; then
2309 echo "$as_me:$LINENO: result: $CC" >&5
2310 echo "${ECHO_T}$CC" >&6
2312 echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6
2316 test -n "$CC" && break
2319 if test -z "$CC"; then
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$ac_ct_CC"; then
2331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_ac_ct_CC="$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2350 if test -n "$ac_ct_CC"; then
2351 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2352 echo "${ECHO_T}$ac_ct_CC" >&6
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2358 test -n "$ac_ct_CC" && break
2367 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: no acceptable C compiler found in \$PATH
2370 See \`config.log' for more details." >&2;}
2371 { (exit 1); exit 1; }; }
2373 # Provide some information about the compiler.
2374 echo "$as_me:$LINENO:" \
2375 "checking for C compiler version" >&5
2376 ac_compiler=`set X $ac_compile; echo $2`
2377 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2378 (eval $ac_compiler --version </dev/null >&5) 2>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }
2382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2383 (eval $ac_compiler -v </dev/null >&5) 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }
2387 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2388 (eval $ac_compiler -V </dev/null >&5) 2>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }
2393 cat >conftest.$ac_ext <<_ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h. */
2408 ac_clean_files_save=$ac_clean_files
2409 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2410 # Try to create an executable without -o first, disregard a.out.
2411 # It will help us diagnose broken compilers, and finding out an intuition
2413 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2414 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2415 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2416 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2417 (eval $ac_link_default) 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 # Find the output, starting from the most likely. This scheme is
2422 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2425 # Be careful to initialize this variable, since it used to be cached.
2426 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2428 # b.out is created by i960 compilers.
2429 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2431 test -f "$ac_file" || continue
2433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2436 # This is the source file.
2439 # We found the default executable, but exeext='' is most
2443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 # FIXME: I believe we export ac_cv_exeext for Libtool,
2445 # but it would be cool to find out if it's true. Does anybody
2446 # maintain Libtool? --akim.
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2457 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: C compiler cannot create executables
2460 See \`config.log' for more details." >&2;}
2461 { (exit 77); exit 77; }; }
2464 ac_exeext=$ac_cv_exeext
2465 echo "$as_me:$LINENO: result: $ac_file" >&5
2466 echo "${ECHO_T}$ac_file" >&6
2468 # Check the compiler produces executables we can run. If not, either
2469 # the compiler is broken, or we cross compile.
2470 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2471 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2473 # If not cross compiling, check that we can run a simple program.
2474 if test "$cross_compiling" != yes; then
2475 if { ac_try='./$ac_file'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2483 if test "$cross_compiling" = maybe; then
2486 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2487 If you meant to cross compile, use \`--host'.
2488 See \`config.log' for more details." >&5
2489 echo "$as_me: error: cannot run C compiled programs.
2490 If you meant to cross compile, use \`--host'.
2491 See \`config.log' for more details." >&2;}
2492 { (exit 1); exit 1; }; }
2496 echo "$as_me:$LINENO: result: yes" >&5
2497 echo "${ECHO_T}yes" >&6
2499 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2500 ac_clean_files=$ac_clean_files_save
2501 # Check the compiler produces executables we can run. If not, either
2502 # the compiler is broken, or we cross compile.
2503 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2504 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2505 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2506 echo "${ECHO_T}$cross_compiling" >&6
2508 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2509 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2511 (eval $ac_link) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; then
2515 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2516 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2517 # work properly (i.e., refer to `conftest.exe'), while it won't with
2519 for ac_file in conftest.exe conftest conftest.*; do
2520 test -f "$ac_file" || continue
2522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2523 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2537 rm -f conftest$ac_cv_exeext
2538 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 echo "${ECHO_T}$ac_cv_exeext" >&6
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2544 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546 if test "${ac_cv_objext+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 cat >conftest.$ac_ext <<_ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2564 rm -f conftest.o conftest.obj
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2581 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2582 See \`config.log' for more details." >&5
2583 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2588 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2590 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2591 echo "${ECHO_T}$ac_cv_objext" >&6
2592 OBJEXT=$ac_cv_objext
2594 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2595 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2596 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2621 grep -v '^ *+' conftest.er1 >conftest.err
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2650 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2651 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2652 GCC=`test $ac_compiler_gnu = yes && echo yes`
2653 ac_test_CFLAGS=${CFLAGS+set}
2654 ac_save_CFLAGS=$CFLAGS
2656 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2657 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2658 if test "${ac_cv_prog_cc_g+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 cat >conftest.$ac_ext <<_ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2676 rm -f conftest.$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>conftest.er1
2680 grep -v '^ *+' conftest.er1 >conftest.err
2682 cat conftest.err >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2708 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2709 if test "$ac_test_CFLAGS" = set; then
2710 CFLAGS=$ac_save_CFLAGS
2711 elif test $ac_cv_prog_cc_g = yes; then
2712 if test "$GCC" = yes; then
2718 if test "$GCC" = yes; then
2724 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2725 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2726 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 ac_cv_prog_cc_stdc=no
2731 cat >conftest.$ac_ext <<_ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2739 #include <sys/types.h>
2740 #include <sys/stat.h>
2741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2742 struct buf { int x; };
2743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2744 static char *e (p, i)
2750 static char *f (char * (*g) (char **, int), char **p, ...)
2755 s = g (p, va_arg (v,int));
2760 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2761 function prototypes and stuff, but not '\xHH' hex character constants.
2762 These don't provoke an error unfortunately, instead are silently treated
2763 as 'x'. The following induces an error, until -std1 is added to get
2764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2765 array size at least. It's necessary to write '\x00'==0 to get something
2766 that's true only with -std1. */
2767 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2769 int test (int i, double x);
2770 struct s1 {int (*f) (int a);};
2771 struct s2 {int (*f) (double a);};
2772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2783 # Don't try gcc -ansi; that turns off useful extensions and
2784 # breaks some systems' header files.
2785 # AIX -qlanglvl=ansi
2786 # Ultrix and OSF/1 -std1
2787 # HP-UX 10.20 and later -Ae
2788 # HP-UX older versions -Aa -D_HPUX_SOURCE
2789 # SVR4 -Xc -D__EXTENSIONS__
2790 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2792 CC="$ac_save_CC $ac_arg"
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2797 grep -v '^ *+' conftest.er1 >conftest.err
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_prog_cc_stdc=$ac_arg
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2822 rm -f conftest.err conftest.$ac_objext
2824 rm -f conftest.$ac_ext conftest.$ac_objext
2829 case "x$ac_cv_prog_cc_stdc" in
2831 echo "$as_me:$LINENO: result: none needed" >&5
2832 echo "${ECHO_T}none needed" >&6 ;;
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2836 CC="$CC $ac_cv_prog_cc_stdc" ;;
2839 # Some people use a C++ compiler to compile C. Since we use `exit',
2840 # in C++ we need to declare it. In case someone uses the same compiler
2841 # for both compiling C and C++ we need to have the C++ compiler decide
2842 # the declaration of exit, since it's the most demanding environment.
2843 cat >conftest.$ac_ext <<_ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>conftest.er1
2852 grep -v '^ *+' conftest.er1 >conftest.err
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 for ac_declaration in \
2872 'extern "C" void std::exit (int) throw (); using std::exit;' \
2873 'extern "C" void std::exit (int); using std::exit;' \
2874 'extern "C" void exit (int) throw ();' \
2875 'extern "C" void exit (int);' \
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -z "$ac_c_werror_flag"
2904 || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924 cat >conftest.$ac_ext <<_ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_c_werror_flag"
2949 || test ! -s conftest.err'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try='test -s conftest.$ac_objext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2970 if test -n "$ac_declaration"; then
2971 echo '#ifdef __cplusplus' >>confdefs.h
2972 echo $ac_declaration >>confdefs.h
2973 echo '#endif' >>confdefs.h
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 DEPDIR="${am__leading_dot}deps"
2989 ac_config_commands="$ac_config_commands depfiles"
2992 am_make=${MAKE-make}
2993 cat > confinc << 'END'
2998 # If we don't find an include directive, just comment out the code.
2999 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3000 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3004 # First try GNU make style include.
3005 echo "include confinc" > confmf
3006 # We grep out `Entering directory' and `Leaving directory'
3007 # messages which can occur if `w' ends up in MAKEFLAGS.
3008 # In particular we don't look at `^make:' because GNU make might
3009 # be invoked under some other name (usually "gmake"), in which
3010 # case it prints its new name instead of `make'.
3011 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3016 # Now try BSD make style include.
3017 if test "$am__include" = "#"; then
3018 echo '.include "confinc"' > confmf
3019 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3020 am__include=.include
3027 echo "$as_me:$LINENO: result: $_am_result" >&5
3028 echo "${ECHO_T}$_am_result" >&6
3029 rm -f confinc confmf
3031 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3032 if test "${enable_dependency_tracking+set}" = set; then
3033 enableval="$enable_dependency_tracking"
3036 if test "x$enable_dependency_tracking" != xno; then
3037 am_depcomp="$ac_aux_dir/depcomp"
3042 if test "x$enable_dependency_tracking" != xno; then
3053 depcc="$CC" am_compiler_list=
3055 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3056 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3057 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3061 # We make a subdir and do the tests there. Otherwise we can end up
3062 # making bogus files that we don't know about and never remove. For
3063 # instance it was reported that on HP-UX the gcc test will end up
3064 # making a dummy file named `D' -- because `-MD' means `put the output
3067 # Copy depcomp to subdir because otherwise we won't find it if we're
3068 # using a relative directory.
3069 cp "$am_depcomp" conftest.dir
3071 # We will build objects and dependencies in a subdirectory because
3072 # it helps to detect inapplicable dependency modes. For instance
3073 # both Tru64's cc and ICC support -MD to output dependencies as a
3074 # side effect of compilation, but ICC will put the dependencies in
3075 # the current directory while Tru64 will put them in the object
3079 am_cv_CC_dependencies_compiler_type=none
3080 if test "$am_compiler_list" = ""; then
3081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3083 for depmode in $am_compiler_list; do
3084 # Setup a source with many dependencies, because some compilers
3085 # like to wrap large dependency lists on column 80 (with \), and
3086 # we should not choose a depcomp mode which is confused by this.
3088 # We need to recreate these files for each test, as the compiler may
3089 # overwrite some of them when testing with obscure command lines.
3090 # This happens at least with the AIX C compiler.
3092 for i in 1 2 3 4 5 6; do
3093 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3094 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3095 # Solaris 8's {/usr,}/bin/sh.
3096 touch sub/conftst$i.h
3098 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3102 # after this tag, mechanisms are not by side-effect, so they'll
3103 # only be used when explicitly requested
3104 if test "x$enable_dependency_tracking" = xyes; then
3112 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3113 # mode. It turns out that the SunPro C++ compiler does not properly
3114 # handle `-M -o', and we need to detect this.
3115 if depmode=$depmode \
3116 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3117 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3118 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3119 >/dev/null 2>conftest.err &&
3120 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3121 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3122 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3123 # icc doesn't choke on unknown options, it will just issue warnings
3124 # or remarks (even with -Werror). So we grep stderr for any message
3125 # that says an option was ignored or not supported.
3126 # When given -MP, icc 7.0 and 7.1 complain thusly:
3127 # icc: Command line warning: ignoring option '-M'; no argument required
3128 # The diagnosis changed in icc 8.0:
3129 # icc: Command line remark: option '-MP' not supported
3130 if (grep 'ignoring option' conftest.err ||
3131 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3132 am_cv_CC_dependencies_compiler_type=$depmode
3141 am_cv_CC_dependencies_compiler_type=none
3145 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3146 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3147 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3152 test "x$enable_dependency_tracking" != xno \
3153 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3155 am__fastdepCC_FALSE='#'
3157 am__fastdepCC_TRUE='#'
3158 am__fastdepCC_FALSE=
3162 # Find a good install program. We prefer a C program (faster),
3163 # so one script is as good as another. But avoid the broken or
3164 # incompatible versions:
3165 # SysV /etc/install, /usr/sbin/install
3166 # SunOS /usr/etc/install
3167 # IRIX /sbin/install
3169 # AmigaOS /C/install, which installs bootblocks on floppy discs
3170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3173 # OS/2's system install, which has a completely different semantic
3174 # ./install, which can be erroneously created by make from ./install.sh.
3175 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3176 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3177 if test -z "$INSTALL"; then
3178 if test "${ac_cv_path_install+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 # Account for people who put trailing slashes in PATH elements.
3188 ./ | .// | /cC/* | \
3189 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3190 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3193 # OSF1 and SCO ODT 3.0 have their own names for install.
3194 # Don't use installbsd from OSF since it installs stuff as root
3196 for ac_prog in ginstall scoinst install; do
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3199 if test $ac_prog = install &&
3200 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3201 # AIX install. It has an incompatible calling convention.
3203 elif test $ac_prog = install &&
3204 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3205 # program-specific install script used by HP pwplus--don't use.
3208 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3220 if test "${ac_cv_path_install+set}" = set; then
3221 INSTALL=$ac_cv_path_install
3223 # As a last resort, use the slow shell script. We don't cache a
3224 # path for INSTALL within a source directory, because that will
3225 # break other packages using the cache if that directory is
3226 # removed, or if the path is relative.
3227 INSTALL=$ac_install_sh
3230 echo "$as_me:$LINENO: result: $INSTALL" >&5
3231 echo "${ECHO_T}$INSTALL" >&6
3233 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3234 # It thinks the first close brace ends the variable substitution.
3235 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3237 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3239 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3241 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3242 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3244 if test "$LN_S" = "ln -s"; then
3245 echo "$as_me:$LINENO: result: yes" >&5
3246 echo "${ECHO_T}yes" >&6
3248 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3249 echo "${ECHO_T}no, using $LN_S" >&6
3252 # Check whether --enable-shared or --disable-shared was given.
3253 if test "${enable_shared+set}" = set; then
3254 enableval="$enable_shared"
3255 p=${PACKAGE-default}
3257 yes) enable_shared=yes ;;
3258 no) enable_shared=no ;;
3261 # Look at the argument we got. We use all the common list separators.
3262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3263 for pkg in $enableval; do
3265 if test "X$pkg" = "X$p"; then
3276 # Check whether --enable-static or --disable-static was given.
3277 if test "${enable_static+set}" = set; then
3278 enableval="$enable_static"
3279 p=${PACKAGE-default}
3281 yes) enable_static=yes ;;
3282 no) enable_static=no ;;
3285 # Look at the argument we got. We use all the common list separators.
3286 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3287 for pkg in $enableval; do
3289 if test "X$pkg" = "X$p"; then
3300 # Check whether --enable-fast-install or --disable-fast-install was given.
3301 if test "${enable_fast_install+set}" = set; then
3302 enableval="$enable_fast_install"
3303 p=${PACKAGE-default}
3305 yes) enable_fast_install=yes ;;
3306 no) enable_fast_install=no ;;
3308 enable_fast_install=no
3309 # Look at the argument we got. We use all the common list separators.
3310 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3311 for pkg in $enableval; do
3313 if test "X$pkg" = "X$p"; then
3314 enable_fast_install=yes
3321 enable_fast_install=yes
3324 # Make sure we can run config.sub.
3325 $ac_config_sub sun4 >/dev/null 2>&1 ||
3326 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3327 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3328 { (exit 1); exit 1; }; }
3330 echo "$as_me:$LINENO: checking build system type" >&5
3331 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3332 if test "${ac_cv_build+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 ac_cv_build_alias=$build_alias
3336 test -z "$ac_cv_build_alias" &&
3337 ac_cv_build_alias=`$ac_config_guess`
3338 test -z "$ac_cv_build_alias" &&
3339 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3340 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3341 { (exit 1); exit 1; }; }
3342 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3343 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3344 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3345 { (exit 1); exit 1; }; }
3348 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3349 echo "${ECHO_T}$ac_cv_build" >&6
3351 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3352 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3353 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3356 echo "$as_me:$LINENO: checking host system type" >&5
3357 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3358 if test "${ac_cv_host+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 ac_cv_host_alias=$host_alias
3362 test -z "$ac_cv_host_alias" &&
3363 ac_cv_host_alias=$ac_cv_build_alias
3364 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3366 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3367 { (exit 1); exit 1; }; }
3370 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3371 echo "${ECHO_T}$ac_cv_host" >&6
3373 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3374 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3375 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3378 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3379 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3380 if test "${lt_cv_path_SED+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 # Loop through the user's path and test for sed and gsed.
3384 # Then use that list of sed's as ones to test for truncation.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for lt_ac_prog in sed gsed; do
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3393 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3400 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3401 # along with /bin/sed that truncates output.
3402 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3403 test ! -f $lt_ac_sed && continue
3404 cat /dev/null > conftest.in
3406 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3407 # Check for GNU sed and select it if it is found.
3408 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3409 lt_cv_path_SED=$lt_ac_sed
3413 cat conftest.in conftest.in >conftest.tmp
3414 mv conftest.tmp conftest.in
3415 cp conftest.in conftest.nl
3417 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3418 cmp -s conftest.out conftest.nl || break
3419 # 10000 chars as input seems more than enough
3420 test $lt_ac_count -gt 10 && break
3421 lt_ac_count=`expr $lt_ac_count + 1`
3422 if test $lt_ac_count -gt $lt_ac_max; then
3423 lt_ac_max=$lt_ac_count
3424 lt_cv_path_SED=$lt_ac_sed
3432 echo "$as_me:$LINENO: result: $SED" >&5
3433 echo "${ECHO_T}$SED" >&6
3435 echo "$as_me:$LINENO: checking for egrep" >&5
3436 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3437 if test "${ac_cv_prog_egrep+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3441 then ac_cv_prog_egrep='grep -E'
3442 else ac_cv_prog_egrep='egrep'
3445 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3446 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3447 EGREP=$ac_cv_prog_egrep
3451 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3452 if test "${with_gnu_ld+set}" = set; then
3453 withval="$with_gnu_ld"
3454 test "$withval" = no || with_gnu_ld=yes
3459 if test "$GCC" = yes; then
3460 # Check if gcc -print-prog-name=ld gives a path.
3461 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3462 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3465 # gcc leaves a trailing carriage return which upsets mingw
3466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3471 # Accept absolute paths.
3473 re_direlt='/[^/][^/]*/\.\./'
3474 # Canonicalize the pathname of ld
3475 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3476 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3477 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3479 test -z "$LD" && LD="$ac_prog"
3482 # If it fails, then pretend we aren't using GCC.
3486 # If it is relative, then search for the first ld in PATH.
3490 elif test "$with_gnu_ld" = yes; then
3491 echo "$as_me:$LINENO: checking for GNU ld" >&5
3492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3494 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3497 if test "${lt_cv_path_LD+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 if test -z "$LD"; then
3501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3502 for ac_dir in $PATH; do
3504 test -z "$ac_dir" && ac_dir=.
3505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3506 lt_cv_path_LD="$ac_dir/$ac_prog"
3507 # Check to see if the program is GNU ld. I'd rather use --version,
3508 # but apparently some GNU ld's only accept -v.
3509 # Break only if it was the GNU/non-GNU ld that we prefer.
3510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3511 *GNU* | *'with BFD'*)
3512 test "$with_gnu_ld" != no && break
3515 test "$with_gnu_ld" != yes && break
3522 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3527 if test -n "$LD"; then
3528 echo "$as_me:$LINENO: result: $LD" >&5
3529 echo "${ECHO_T}$LD" >&6
3531 echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3536 { (exit 1); exit 1; }; }
3537 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3539 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3543 case `$LD -v 2>&1 </dev/null` in
3544 *GNU* | *'with BFD'*)
3545 lt_cv_prog_gnu_ld=yes
3548 lt_cv_prog_gnu_ld=no
3552 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3553 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3554 with_gnu_ld=$lt_cv_prog_gnu_ld
3557 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3558 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3559 if test "${lt_cv_ld_reload_flag+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 lt_cv_ld_reload_flag='-r'
3564 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3565 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3566 reload_flag=$lt_cv_ld_reload_flag
3567 case $reload_flag in
3569 *) reload_flag=" $reload_flag" ;;
3571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3574 if test "$GCC" = yes; then
3575 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3582 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3583 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3584 if test "${lt_cv_path_NM+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$NM"; then
3588 # Let the user override the test.
3591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3592 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3594 test -z "$ac_dir" && ac_dir=.
3595 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3596 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3597 # Check to see if the nm accepts a BSD-compat flag.
3598 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3599 # nm: unknown option "B" ignored
3600 # Tru64's nm complains that /dev/null is an invalid object file
3601 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3602 */dev/null* | *'Invalid file or object type'*)
3603 lt_cv_path_NM="$tmp_nm -B"
3607 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3609 lt_cv_path_NM="$tmp_nm -p"
3613 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3614 continue # so that we can try to find one that supports BSD flags
3621 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3624 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3625 echo "${ECHO_T}$lt_cv_path_NM" >&6
3628 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3629 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3630 if test "${lt_cv_deplibs_check_method+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 lt_cv_file_magic_cmd='$MAGIC_CMD'
3634 lt_cv_file_magic_test_file=
3635 lt_cv_deplibs_check_method='unknown'
3636 # Need to set the preceding variable on all platforms that support
3637 # interlibrary dependencies.
3638 # 'none' -- dependencies not supported.
3639 # `unknown' -- same as none, but documents that we really don't know.
3640 # 'pass_all' -- all dependencies passed with no checks.
3641 # 'test_compile' -- check by making test program.
3642 # 'file_magic [[regex]]' -- check by looking for files in library path
3643 # which responds to the $file_magic_cmd with a given extended regex.
3644 # If you have `file' or equivalent on your system and you're not sure
3645 # whether `pass_all' will *always* work, you probably want this one.
3649 lt_cv_deplibs_check_method=pass_all
3653 lt_cv_deplibs_check_method=pass_all
3657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3658 lt_cv_file_magic_cmd='/usr/bin/file -L'
3659 lt_cv_file_magic_test_file=/shlib/libc.so
3663 # func_win32_libid is a shell function defined in ltmain.sh
3664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3665 lt_cv_file_magic_cmd='func_win32_libid'
3669 # Base MSYS/MinGW do not provide the 'file' command needed by
3670 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3671 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3672 lt_cv_file_magic_cmd='$OBJDUMP -f'
3675 darwin* | rhapsody*)
3676 lt_cv_deplibs_check_method=pass_all
3679 freebsd* | kfreebsd*-gnu | dragonfly*)
3680 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3683 # Not sure whether the presence of OpenBSD here was a mistake.
3684 # Let's accept both of them until this is cleared up.
3685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3686 lt_cv_file_magic_cmd=/usr/bin/file
3687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3691 lt_cv_deplibs_check_method=pass_all
3696 lt_cv_deplibs_check_method=pass_all
3699 hpux10.20* | hpux11*)
3700 lt_cv_file_magic_cmd=/usr/bin/file
3703 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3704 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3707 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]'
3708 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3711 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3712 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3717 irix5* | irix6* | nonstopux*)
3719 *-32|*"-32 ") libmagic=32-bit;;
3720 *-n32|*"-n32 ") libmagic=N32;;
3721 *-64|*"-64 ") libmagic=64-bit;;
3722 *) libmagic=never-match;;
3724 lt_cv_deplibs_check_method=pass_all
3727 # This must be Linux ELF.
3729 lt_cv_deplibs_check_method=pass_all
3733 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3742 lt_cv_file_magic_cmd=/usr/bin/file
3743 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3747 lt_cv_deplibs_check_method=unknown
3751 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3758 osf3* | osf4* | osf5*)
3759 lt_cv_deplibs_check_method=pass_all
3763 lt_cv_deplibs_check_method=pass_all
3767 lt_cv_deplibs_check_method=pass_all
3770 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3771 case $host_vendor in
3773 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]'
3774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3777 lt_cv_deplibs_check_method=pass_all
3780 lt_cv_file_magic_cmd='/bin/file'
3781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3784 lt_cv_file_magic_cmd='/bin/file'
3785 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3786 lt_cv_file_magic_test_file=/lib/libc.so
3789 lt_cv_deplibs_check_method=pass_all
3794 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3795 lt_cv_deplibs_check_method=pass_all
3800 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3801 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3802 file_magic_cmd=$lt_cv_file_magic_cmd
3803 deplibs_check_method=$lt_cv_deplibs_check_method
3804 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3809 # If no C compiler was specified, use CC.
3812 # Allow CC to be a program name with arguments.
3816 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3817 if test "${enable_libtool_lock+set}" = set; then
3818 enableval="$enable_libtool_lock"
3821 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3823 # Some flags need to be propagated to the compiler or linker for good
3827 # Find out which ABI we are using.
3828 echo 'int i;' > conftest.$ac_ext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; then
3834 case `/usr/bin/file conftest.$ac_objext` in
3846 # Find out which ABI we are using.
3847 echo '#line 3847 "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
3854 case `/usr/bin/file conftest.$ac_objext` in
3856 LD="${LD-ld} -melf32bsmip"
3859 LD="${LD-ld} -melf32bmipn32"
3862 LD="${LD-ld} -melf64bmip"
3866 case `/usr/bin/file conftest.$ac_objext` in
3882 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3883 # Find out which ABI we are using.
3884 echo 'int i;' > conftest.$ac_ext
3885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; then
3890 case "`/usr/bin/file conftest.o`" in
3894 LD="${LD-ld} -m elf_i386"
3896 ppc64-*linux*|powerpc64-*linux*)
3897 LD="${LD-ld} -m elf32ppclinux"
3900 LD="${LD-ld} -m elf_s390"
3903 LD="${LD-ld} -m elf32_sparc"
3910 LD="${LD-ld} -m elf_x86_64"
3912 ppc*-*linux*|powerpc*-*linux*)
3913 LD="${LD-ld} -m elf64ppc"
3916 LD="${LD-ld} -m elf64_s390"
3919 LD="${LD-ld} -m elf64_sparc"
3929 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3930 SAVE_CFLAGS="$CFLAGS"
3931 CFLAGS="$CFLAGS -belf"
3932 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3933 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3934 if test "${lt_cv_cc_needs_belf+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3958 rm -f conftest.$ac_objext conftest$ac_exeext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960 (eval $ac_link) 2>conftest.er1
3962 grep -v '^ *+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } &&
3967 { ac_try='test -z "$ac_c_werror_flag"
3968 || test ! -s conftest.err'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; } &&
3974 { ac_try='test -s conftest$ac_exeext'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3980 lt_cv_cc_needs_belf=yes
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 lt_cv_cc_needs_belf=no
3987 rm -f conftest.err conftest.$ac_objext \
3988 conftest$ac_exeext conftest.$ac_ext
3990 ac_cpp='$CPP $CPPFLAGS'
3991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3997 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3998 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3999 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4000 CFLAGS="$SAVE_CFLAGS"
4006 need_locks="$enable_libtool_lock"
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4015 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4016 # On Suns, sometimes $CPP names a directory.
4017 if test -n "$CPP" && test -d "$CPP"; then
4020 if test -z "$CPP"; then
4021 if test "${ac_cv_prog_CPP+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 # Double quotes because CPP needs to be expanded
4025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4028 for ac_c_preproc_warn_flag in '' yes
4030 # Use a header file that comes with gcc, so configuring glibc
4031 # with a fresh cross-compiler works.
4032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033 # <limits.h> exists even on freestanding compilers.
4034 # On the NeXT, cc -E runs the code through the compiler's parser,
4035 # not just through cpp. "Syntax error" is here to catch this case.
4036 cat >conftest.$ac_ext <<_ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4043 # include <limits.h>
4045 # include <assert.h>
4049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4052 grep -v '^ *+' conftest.er1 >conftest.err
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } >/dev/null; then
4057 if test -s conftest.err; then
4058 ac_cpp_err=$ac_c_preproc_warn_flag
4059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4066 if test -z "$ac_cpp_err"; then
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 # Broken: fails on valid input.
4075 rm -f conftest.err conftest.$ac_ext
4077 # OK, works on sane cases. Now check whether non-existent headers
4078 # can be detected and how.
4079 cat >conftest.$ac_ext <<_ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 #include <ac_nonexistent.h>
4087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4090 grep -v '^ *+' conftest.er1 >conftest.err
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } >/dev/null; then
4095 if test -s conftest.err; then
4096 ac_cpp_err=$ac_c_preproc_warn_flag
4097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4104 if test -z "$ac_cpp_err"; then
4105 # Broken: success on invalid input.
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 # Passes both tests.
4115 rm -f conftest.err conftest.$ac_ext
4118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4119 rm -f conftest.err conftest.$ac_ext
4120 if $ac_preproc_ok; then
4132 echo "$as_me:$LINENO: result: $CPP" >&5
4133 echo "${ECHO_T}$CPP" >&6
4135 for ac_c_preproc_warn_flag in '' yes
4137 # Use a header file that comes with gcc, so configuring glibc
4138 # with a fresh cross-compiler works.
4139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140 # <limits.h> exists even on freestanding compilers.
4141 # On the NeXT, cc -E runs the code through the compiler's parser,
4142 # not just through cpp. "Syntax error" is here to catch this case.
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4150 # include <limits.h>
4152 # include <assert.h>
4156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } >/dev/null; then
4164 if test -s conftest.err; then
4165 ac_cpp_err=$ac_c_preproc_warn_flag
4166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4173 if test -z "$ac_cpp_err"; then
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 # Broken: fails on valid input.
4182 rm -f conftest.err conftest.$ac_ext
4184 # OK, works on sane cases. Now check whether non-existent headers
4185 # can be detected and how.
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 #include <ac_nonexistent.h>
4194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4197 grep -v '^ *+' conftest.er1 >conftest.err
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } >/dev/null; then
4202 if test -s conftest.err; then
4203 ac_cpp_err=$ac_c_preproc_warn_flag
4204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4211 if test -z "$ac_cpp_err"; then
4212 # Broken: success on invalid input.
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 # Passes both tests.
4222 rm -f conftest.err conftest.$ac_ext
4225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4226 rm -f conftest.err conftest.$ac_ext
4227 if $ac_preproc_ok; then
4230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4233 See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4245 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4246 if test "${ac_cv_header_stdc+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4268 rm -f conftest.$ac_objext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_header_stdc=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_cv_header_stdc=no
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4299 if test $ac_cv_header_stdc = yes; then
4300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311 $EGREP "memchr" >/dev/null 2>&1; then
4314 ac_cv_header_stdc=no
4320 if test $ac_cv_header_stdc = yes; then
4321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332 $EGREP "free" >/dev/null 2>&1; then
4335 ac_cv_header_stdc=no
4341 if test $ac_cv_header_stdc = yes; then
4342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4343 if test "$cross_compiling" = yes; then
4346 cat >conftest.$ac_ext <<_ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4353 #if ((' ' & 0x0FF) == 0x020)
4354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4357 # define ISLOWER(c) \
4358 (('a' <= (c) && (c) <= 'i') \
4359 || ('j' <= (c) && (c) <= 'r') \
4360 || ('s' <= (c) && (c) <= 'z'))
4361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4369 for (i = 0; i < 256; i++)
4370 if (XOR (islower (i), ISLOWER (i))
4371 || toupper (i) != TOUPPER (i))
4376 rm -f conftest$ac_exeext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4378 (eval $ac_link) 2>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4389 echo "$as_me: program exited with status $ac_status" >&5
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4394 ac_cv_header_stdc=no
4396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4400 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4401 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4402 if test $ac_cv_header_stdc = yes; then
4404 cat >>confdefs.h <<\_ACEOF
4405 #define STDC_HEADERS 1
4410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4420 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4421 inttypes.h stdint.h unistd.h
4423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4424 echo "$as_me:$LINENO: checking for $ac_header" >&5
4425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 cat >conftest.$ac_ext <<_ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 $ac_includes_default
4437 #include <$ac_header>
4439 rm -f conftest.$ac_objext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441 (eval $ac_compile) 2>conftest.er1
4443 grep -v '^ *+' conftest.er1 >conftest.err
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -z "$ac_c_werror_flag"
4449 || test ! -s conftest.err'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 eval "$as_ac_Header=yes"
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 eval "$as_ac_Header=no"
4468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473 cat >>confdefs.h <<_ACEOF
4474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4483 for ac_header in dlfcn.h
4485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4487 echo "$as_me:$LINENO: checking for $ac_header" >&5
4488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495 # Is the header compilable?
4496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4498 cat >conftest.$ac_ext <<_ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 $ac_includes_default
4505 #include <$ac_header>
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4511 grep -v '^ *+' conftest.er1 >conftest.err
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_header_compiler=yes
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 ac_header_compiler=no
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4538 echo "${ECHO_T}$ac_header_compiler" >&6
4540 # Is the header present?
4541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4543 cat >conftest.$ac_ext <<_ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 #include <$ac_header>
4551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4554 grep -v '^ *+' conftest.er1 >conftest.err
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null; then
4559 if test -s conftest.err; then
4560 ac_cpp_err=$ac_c_preproc_warn_flag
4561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4568 if test -z "$ac_cpp_err"; then
4569 ac_header_preproc=yes
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_header_preproc=no
4576 rm -f conftest.err conftest.$ac_ext
4577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4578 echo "${ECHO_T}$ac_header_preproc" >&6
4580 # So? What about this header?
4581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4587 ac_header_preproc=yes
4590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4604 ## ------------------------------------------ ##
4605 ## Report this to the AC_PACKAGE_NAME lists. ##
4606 ## ------------------------------------------ ##
4609 sed "s/^/$as_me: WARNING: /" >&2
4612 echo "$as_me:$LINENO: checking for $ac_header" >&5
4613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 eval "$as_ac_Header=\$ac_header_preproc"
4619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4624 cat >>confdefs.h <<_ACEOF
4625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4633 ac_cpp='$CXXCPP $CPPFLAGS'
4634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4637 if test -n "$ac_tool_prefix"; then
4638 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_prog_CXX+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 if test -n "$CXX"; then
4648 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 if test -n "$CXX"; then
4668 echo "$as_me:$LINENO: result: $CXX" >&5
4669 echo "${ECHO_T}$CXX" >&6
4671 echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6
4675 test -n "$CXX" && break
4678 if test -z "$CXX"; then
4680 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4682 # Extract the first word of "$ac_prog", so it can be a program name with args.
4683 set dummy $ac_prog; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 if test -n "$ac_ct_CXX"; then
4690 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699 ac_cv_prog_ac_ct_CXX="$ac_prog"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4709 if test -n "$ac_ct_CXX"; then
4710 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4711 echo "${ECHO_T}$ac_ct_CXX" >&6
4713 echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6
4717 test -n "$ac_ct_CXX" && break
4719 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4725 # Provide some information about the compiler.
4726 echo "$as_me:$LINENO:" \
4727 "checking for C++ compiler version" >&5
4728 ac_compiler=`set X $ac_compile; echo $2`
4729 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4730 (eval $ac_compiler --version </dev/null >&5) 2>&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }
4734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4735 (eval $ac_compiler -v </dev/null >&5) 2>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }
4739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4740 (eval $ac_compiler -V </dev/null >&5) 2>&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }
4745 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4746 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4747 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 cat >conftest.$ac_ext <<_ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_cxx_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4801 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4802 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4803 GXX=`test $ac_compiler_gnu = yes && echo yes`
4804 ac_test_CXXFLAGS=${CXXFLAGS+set}
4805 ac_save_CXXFLAGS=$CXXFLAGS
4807 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4808 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4809 if test "${ac_cv_prog_cxx_g+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 cat >conftest.$ac_ext <<_ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_cxx_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_prog_cxx_g=yes
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4859 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4860 if test "$ac_test_CXXFLAGS" = set; then
4861 CXXFLAGS=$ac_save_CXXFLAGS
4862 elif test $ac_cv_prog_cxx_g = yes; then
4863 if test "$GXX" = yes; then
4869 if test "$GXX" = yes; then
4875 for ac_declaration in \
4877 'extern "C" void std::exit (int) throw (); using std::exit;' \
4878 'extern "C" void std::exit (int); using std::exit;' \
4879 'extern "C" void exit (int) throw ();' \
4880 'extern "C" void exit (int);' \
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4899 rm -f conftest.$ac_objext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901 (eval $ac_compile) 2>conftest.er1
4903 grep -v '^ *+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -z "$ac_cxx_werror_flag"
4909 || test ! -s conftest.err'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; } &&
4915 { ac_try='test -s conftest.$ac_objext'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4929 cat >conftest.$ac_ext <<_ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4944 rm -f conftest.$ac_objext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>conftest.er1
4948 grep -v '^ *+' conftest.er1 >conftest.err
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try='test -z "$ac_cxx_werror_flag"
4954 || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try='test -s conftest.$ac_objext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4975 if test -n "$ac_declaration"; then
4976 echo '#ifdef __cplusplus' >>confdefs.h
4977 echo $ac_declaration >>confdefs.h
4978 echo '#endif' >>confdefs.h
4982 ac_cpp='$CXXCPP $CPPFLAGS'
4983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4987 depcc="$CXX" am_compiler_list=
4989 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4990 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4991 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4995 # We make a subdir and do the tests there. Otherwise we can end up
4996 # making bogus files that we don't know about and never remove. For
4997 # instance it was reported that on HP-UX the gcc test will end up
4998 # making a dummy file named `D' -- because `-MD' means `put the output
5001 # Copy depcomp to subdir because otherwise we won't find it if we're
5002 # using a relative directory.
5003 cp "$am_depcomp" conftest.dir
5005 # We will build objects and dependencies in a subdirectory because
5006 # it helps to detect inapplicable dependency modes. For instance
5007 # both Tru64's cc and ICC support -MD to output dependencies as a
5008 # side effect of compilation, but ICC will put the dependencies in
5009 # the current directory while Tru64 will put them in the object
5013 am_cv_CXX_dependencies_compiler_type=none
5014 if test "$am_compiler_list" = ""; then
5015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5017 for depmode in $am_compiler_list; do
5018 # Setup a source with many dependencies, because some compilers
5019 # like to wrap large dependency lists on column 80 (with \), and
5020 # we should not choose a depcomp mode which is confused by this.
5022 # We need to recreate these files for each test, as the compiler may
5023 # overwrite some of them when testing with obscure command lines.
5024 # This happens at least with the AIX C compiler.
5026 for i in 1 2 3 4 5 6; do
5027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5029 # Solaris 8's {/usr,}/bin/sh.
5030 touch sub/conftst$i.h
5032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5036 # after this tag, mechanisms are not by side-effect, so they'll
5037 # only be used when explicitly requested
5038 if test "x$enable_dependency_tracking" = xyes; then
5046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5047 # mode. It turns out that the SunPro C++ compiler does not properly
5048 # handle `-M -o', and we need to detect this.
5049 if depmode=$depmode \
5050 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5052 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5053 >/dev/null 2>conftest.err &&
5054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5055 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5057 # icc doesn't choke on unknown options, it will just issue warnings
5058 # or remarks (even with -Werror). So we grep stderr for any message
5059 # that says an option was ignored or not supported.
5060 # When given -MP, icc 7.0 and 7.1 complain thusly:
5061 # icc: Command line warning: ignoring option '-M'; no argument required
5062 # The diagnosis changed in icc 8.0:
5063 # icc: Command line remark: option '-MP' not supported
5064 if (grep 'ignoring option' conftest.err ||
5065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5066 am_cv_CXX_dependencies_compiler_type=$depmode
5075 am_cv_CXX_dependencies_compiler_type=none
5079 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5080 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5081 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5086 test "x$enable_dependency_tracking" != xno \
5087 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5088 am__fastdepCXX_TRUE=
5089 am__fastdepCXX_FALSE='#'
5091 am__fastdepCXX_TRUE='#'
5092 am__fastdepCXX_FALSE=
5098 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5099 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5100 (test "X$CXX" != "Xg++"))) ; then
5102 ac_cpp='$CXXCPP $CPPFLAGS'
5103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5107 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5108 if test -z "$CXXCPP"; then
5109 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 # Double quotes because CXXCPP needs to be expanded
5113 for CXXCPP in "$CXX -E" "/lib/cpp"
5116 for ac_cxx_preproc_warn_flag in '' yes
5118 # Use a header file that comes with gcc, so configuring glibc
5119 # with a fresh cross-compiler works.
5120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5121 # <limits.h> exists even on freestanding compilers.
5122 # On the NeXT, cc -E runs the code through the compiler's parser,
5123 # not just through cpp. "Syntax error" is here to catch this case.
5124 cat >conftest.$ac_ext <<_ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5131 # include <limits.h>
5133 # include <assert.h>
5137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5140 grep -v '^ *+' conftest.er1 >conftest.err
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } >/dev/null; then
5145 if test -s conftest.err; then
5146 ac_cpp_err=$ac_cxx_preproc_warn_flag
5147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5154 if test -z "$ac_cpp_err"; then
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5160 # Broken: fails on valid input.
5163 rm -f conftest.err conftest.$ac_ext
5165 # OK, works on sane cases. Now check whether non-existent headers
5166 # can be detected and how.
5167 cat >conftest.$ac_ext <<_ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 #include <ac_nonexistent.h>
5175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5178 grep -v '^ *+' conftest.er1 >conftest.err
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null; then
5183 if test -s conftest.err; then
5184 ac_cpp_err=$ac_cxx_preproc_warn_flag
5185 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5192 if test -z "$ac_cpp_err"; then
5193 # Broken: success on invalid input.
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 # Passes both tests.
5203 rm -f conftest.err conftest.$ac_ext
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then
5213 ac_cv_prog_CXXCPP=$CXXCPP
5216 CXXCPP=$ac_cv_prog_CXXCPP
5218 ac_cv_prog_CXXCPP=$CXXCPP
5220 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5221 echo "${ECHO_T}$CXXCPP" >&6
5223 for ac_cxx_preproc_warn_flag in '' yes
5225 # Use a header file that comes with gcc, so configuring glibc
5226 # with a fresh cross-compiler works.
5227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228 # <limits.h> exists even on freestanding compilers.
5229 # On the NeXT, cc -E runs the code through the compiler's parser,
5230 # not just through cpp. "Syntax error" is here to catch this case.
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5238 # include <limits.h>
5240 # include <assert.h>
5244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5247 grep -v '^ *+' conftest.er1 >conftest.err
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } >/dev/null; then
5252 if test -s conftest.err; then
5253 ac_cpp_err=$ac_cxx_preproc_warn_flag
5254 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5261 if test -z "$ac_cpp_err"; then
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5267 # Broken: fails on valid input.
5270 rm -f conftest.err conftest.$ac_ext
5272 # OK, works on sane cases. Now check whether non-existent headers
5273 # can be detected and how.
5274 cat >conftest.$ac_ext <<_ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 #include <ac_nonexistent.h>
5282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5285 grep -v '^ *+' conftest.er1 >conftest.err
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } >/dev/null; then
5290 if test -s conftest.err; then
5291 ac_cpp_err=$ac_cxx_preproc_warn_flag
5292 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5299 if test -z "$ac_cpp_err"; then
5300 # Broken: success on invalid input.
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5306 # Passes both tests.
5310 rm -f conftest.err conftest.$ac_ext
5313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5314 rm -f conftest.err conftest.$ac_ext
5315 if $ac_preproc_ok; then
5318 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5319 See \`config.log' for more details." >&5
5320 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5321 See \`config.log' for more details." >&2;}
5322 { (exit 1); exit 1; }; }
5326 ac_cpp='$CXXCPP $CPPFLAGS'
5327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5335 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5336 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5338 if test -n "$ac_tool_prefix"; then
5339 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_prog_F77+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 if test -n "$F77"; then
5349 ac_cv_prog_F77="$F77" # Let the user override the test.
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 if test -n "$F77"; then
5369 echo "$as_me:$LINENO: result: $F77" >&5
5370 echo "${ECHO_T}$F77" >&6
5372 echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5376 test -n "$F77" && break
5379 if test -z "$F77"; then
5381 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5383 # Extract the first word of "$ac_prog", so it can be a program name with args.
5384 set dummy $ac_prog; ac_word=$2
5385 echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5387 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 if test -n "$ac_ct_F77"; then
5391 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_ac_ct_F77="$ac_prog"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5410 if test -n "$ac_ct_F77"; then
5411 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5412 echo "${ECHO_T}$ac_ct_F77" >&6
5414 echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5418 test -n "$ac_ct_F77" && break
5425 # Provide some information about the compiler.
5426 echo "$as_me:5426:" \
5427 "checking for Fortran 77 compiler version" >&5
5428 ac_compiler=`set X $ac_compile; echo $2`
5429 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5430 (eval $ac_compiler --version </dev/null >&5) 2>&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }
5434 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5435 (eval $ac_compiler -v </dev/null >&5) 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }
5439 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5440 (eval $ac_compiler -V </dev/null >&5) 2>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }
5446 # If we don't use `.F' as extension, the preprocessor is not run on the
5447 # input file. (Note that this only needs to work for GNU compilers.)
5450 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5451 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5452 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 cat >conftest.$ac_ext <<_ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5465 (eval $ac_compile) 2>conftest.er1
5467 grep -v '^ *+' conftest.er1 >conftest.err
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try='test -z "$ac_f77_werror_flag"
5473 || test ! -s conftest.err'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; } &&
5479 { ac_try='test -s conftest.$ac_objext'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; }; then
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5493 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5496 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5497 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5499 ac_test_FFLAGS=${FFLAGS+set}
5500 ac_save_FFLAGS=$FFLAGS
5502 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5503 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5504 if test "${ac_cv_prog_f77_g+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 cat >conftest.$ac_ext <<_ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515 (eval $ac_compile) 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_f77_werror_flag"
5523 || test ! -s conftest.err'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; } &&
5529 { ac_try='test -s conftest.$ac_objext'
5530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; }; then
5535 ac_cv_prog_f77_g=yes
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5545 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5546 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5547 if test "$ac_test_FFLAGS" = set; then
5548 FFLAGS=$ac_save_FFLAGS
5549 elif test $ac_cv_prog_f77_g = yes; then
5550 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5556 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5563 G77=`test $ac_compiler_gnu = yes && echo yes`
5565 ac_cpp='$CPP $CPPFLAGS'
5566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5572 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5574 # find the maximum length of command line arguments
5575 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5576 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5577 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 # On DJGPP, this test can blow up pretty badly due to problems in libc
5586 # (any single argument exceeding 2000 bytes causes a buffer overrun
5587 # during glob expansion). Even if it were fixed, the result of this
5588 # check would be larger than it should be.
5589 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5593 # Under GNU Hurd, this test is not required because there is
5594 # no limit to the length of command line arguments.
5595 # Libtool will interpret -1 as no limit whatsoever
5596 lt_cv_sys_max_cmd_len=-1;
5600 # On Win9x/ME, this test blows up -- it succeeds, but takes
5601 # about 5 minutes as the teststring grows exponentially.
5602 # Worse, since 9x/ME are not pre-emptively multitasking,
5603 # you end up with a "frozen" computer, even though with patience
5604 # the test eventually succeeds (with a max line length of 256k).
5605 # Instead, let's just punt: use the minimum linelength reported by
5606 # all of the supported platforms: 8192 (on NT/2K/XP).
5607 lt_cv_sys_max_cmd_len=8192;
5611 # On AmigaOS with pdksh, this test takes hours, literally.
5612 # So we just punt and use a minimum line length of 8192.
5613 lt_cv_sys_max_cmd_len=8192;
5616 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5617 # This has been around since 386BSD, at least. Likely further.
5618 if test -x /sbin/sysctl; then
5619 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5620 elif test -x /usr/sbin/sysctl; then
5621 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5623 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5625 # And add a safety zone
5626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5630 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5631 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5632 # nice to cause kernel panics so lets avoid the loop below.
5633 # First set a reasonable default.
5634 lt_cv_sys_max_cmd_len=16384
5636 if test -x /sbin/sysconfig; then
5637 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5638 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5643 # If test is not a shell built-in, we'll probably end up computing a
5644 # maximum length that is only half of the actual maximum length, but
5646 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5647 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5648 = "XX$teststring") >/dev/null 2>&1 &&
5649 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5650 lt_cv_sys_max_cmd_len=$new_result &&
5651 test $i != 17 # 1/2 MB should be enough
5654 teststring=$teststring$teststring
5657 # Add a significant safety factor because C++ compilers can tack on massive
5658 # amounts of additional arguments before passing them to the linker.
5659 # It appears as though 1/2 is a usable value.
5660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5666 if test -n $lt_cv_sys_max_cmd_len ; then
5667 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5668 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5670 echo "$as_me:$LINENO: result: none" >&5
5671 echo "${ECHO_T}none" >&6
5677 # Check for command to grab the raw symbol name followed by C symbol from nm.
5678 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5679 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5680 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 # These are sane defaults that work on at least a few old systems.
5685 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5687 # Character class describing NM global symbol codes.
5688 symcode='[BCDEGRST]'
5690 # Regexp to match symbols that can be accessed directly from C.
5691 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5693 # Transform an extracted symbol line into a proper C declaration
5694 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5696 # Transform an extracted symbol line into symbol name and symbol address
5697 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'"
5699 # Define system-specific variables.
5704 cygwin* | mingw* | pw32*)
5705 symcode='[ABCDGISTW]'
5707 hpux*) # Its linker distinguishes data from code symbols
5708 if test "$host_cpu" = ia64; then
5709 symcode='[ABCDEGRST]'
5711 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5712 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'"
5715 if test "$host_cpu" = ia64; then
5716 symcode='[ABCDGIRSTW]'
5717 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5718 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'"
5722 symcode='[BCDEGRST]'
5725 symcode='[BCDEGQRST]'
5735 # Handle CRLF in mingw tool chain
5739 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5743 # If we're using GNU nm, then use its standard symbol codes.
5744 case `$NM -V 2>&1` in
5745 *GNU* | *'with BFD'*)
5746 symcode='[ABCDGIRSTW]' ;;
5749 # Try without a prefix undercore, then with it.
5750 for ac_symprfx in "" "_"; do
5752 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5753 symxfrm="\\1 $ac_symprfx\\2 \\2"
5755 # Write the raw and C identifiers.
5756 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5758 # Check to see that the pipe works correctly.
5762 cat > conftest.$ac_ext <<EOF
5767 void nm_test_func(){}
5771 int main(){nm_test_var='a';nm_test_func();return(0);}
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; then
5779 # Now try to grab the symbols.
5781 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5782 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && test -s "$nlist"; then
5786 # Try sorting and uniquifying the output.
5787 if sort "$nlist" | uniq > "$nlist"T; then
5788 mv -f "$nlist"T "$nlist"
5793 # Make sure that we snagged all the symbols we need.
5794 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5795 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5796 cat <<EOF > conftest.$ac_ext
5802 # Now generate the symbol file.
5803 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5805 cat <<EOF >> conftest.$ac_ext
5806 #if defined (__STDC__) && __STDC__
5807 # define lt_ptr_t void *
5809 # define lt_ptr_t char *
5813 /* The mapping between symbol names and symbols. */
5818 lt_preloaded_symbols[] =
5821 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5822 cat <<\EOF >> conftest.$ac_ext
5830 # Now try linking the two files.
5831 mv conftest.$ac_objext conftstm.$ac_objext
5832 lt_save_LIBS="$LIBS"
5833 lt_save_CFLAGS="$CFLAGS"
5834 LIBS="conftstm.$ac_objext"
5835 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5843 LIBS="$lt_save_LIBS"
5844 CFLAGS="$lt_save_CFLAGS"
5846 echo "cannot find nm_test_func in $nlist" >&5
5849 echo "cannot find nm_test_var in $nlist" >&5
5852 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5855 echo "$progname: failed program was:" >&5
5856 cat conftest.$ac_ext >&5
5858 rm -f conftest* conftst*
5860 # Do not use the global_symbol_pipe unless it works.
5861 if test "$pipe_works" = yes; then
5864 lt_cv_sys_global_symbol_pipe=
5870 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5871 lt_cv_sys_global_symbol_to_cdecl=
5873 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5874 echo "$as_me:$LINENO: result: failed" >&5
5875 echo "${ECHO_T}failed" >&6
5877 echo "$as_me:$LINENO: result: ok" >&5
5878 echo "${ECHO_T}ok" >&6
5881 echo "$as_me:$LINENO: checking for objdir" >&5
5882 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5883 if test "${lt_cv_objdir+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 rm -f .libs 2>/dev/null
5887 mkdir .libs 2>/dev/null
5888 if test -d .libs; then
5891 # MS-DOS does not allow filenames that begin with a dot.
5894 rmdir .libs 2>/dev/null
5896 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5897 echo "${ECHO_T}$lt_cv_objdir" >&6
5898 objdir=$lt_cv_objdir
5906 # AIX sometimes has problems with the GCC collect2 program. For some
5907 # reason, if we set the COLLECT_NAMES environment variable, the problems
5908 # vanish in a puff of smoke.
5909 if test "X${COLLECT_NAMES+set}" != Xset; then
5911 export COLLECT_NAMES
5916 # Sed substitution that helps us do robust quoting. It backslashifies
5917 # metacharacters that are still active within double-quoted strings.
5918 Xsed='sed -e 1s/^X//'
5919 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5921 # Same as above, but do not quote variable references.
5922 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5924 # Sed substitution to delay expansion of an escaped shell variable in a
5925 # double_quote_subst'ed string.
5926 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5928 # Sed substitution to avoid accidental globbing in evaled expressions
5929 no_glob_subst='s/\*/\\\*/g'
5935 default_ofile=libtool
5936 can_build_shared=yes
5938 # All known linkers require a `.a' archive for static linking (except M$VC,
5939 # which needs '.lib').
5941 ltmain="$ac_aux_dir/ltmain.sh"
5942 ofile="$default_ofile"
5943 with_gnu_ld="$lt_cv_prog_gnu_ld"
5945 if test -n "$ac_tool_prefix"; then
5946 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5947 set dummy ${ac_tool_prefix}ar; ac_word=$2
5948 echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950 if test "${ac_cv_prog_AR+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 if test -n "$AR"; then
5954 ac_cv_prog_AR="$AR" # Let the user override the test.
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963 ac_cv_prog_AR="${ac_tool_prefix}ar"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 if test -n "$AR"; then
5974 echo "$as_me:$LINENO: result: $AR" >&5
5975 echo "${ECHO_T}$AR" >&6
5977 echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6
5982 if test -z "$ac_cv_prog_AR"; then
5984 # Extract the first word of "ar", so it can be a program name with args.
5985 set dummy ar; ac_word=$2
5986 echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5988 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 if test -n "$ac_ct_AR"; then
5992 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6001 ac_cv_prog_ac_ct_AR="ar"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6011 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6012 if test -n "$ac_ct_AR"; then
6013 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6014 echo "${ECHO_T}$ac_ct_AR" >&6
6016 echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6028 echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030 if test "${ac_cv_prog_RANLIB+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 if test -n "$RANLIB"; then
6034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054 echo "$as_me:$LINENO: result: $RANLIB" >&5
6055 echo "${ECHO_T}$RANLIB" >&6
6057 echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6
6062 if test -z "$ac_cv_prog_RANLIB"; then
6063 ac_ct_RANLIB=$RANLIB
6064 # Extract the first word of "ranlib", so it can be a program name with args.
6065 set dummy ranlib; ac_word=$2
6066 echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 if test -n "$ac_ct_RANLIB"; then
6072 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081 ac_cv_prog_ac_ct_RANLIB="ranlib"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6091 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6092 if test -n "$ac_ct_RANLIB"; then
6093 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6094 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6096 echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6100 RANLIB=$ac_ct_RANLIB
6102 RANLIB="$ac_cv_prog_RANLIB"
6105 if test -n "$ac_tool_prefix"; then
6106 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6107 set dummy ${ac_tool_prefix}strip; ac_word=$2
6108 echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6110 if test "${ac_cv_prog_STRIP+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 if test -n "$STRIP"; then
6114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 STRIP=$ac_cv_prog_STRIP
6133 if test -n "$STRIP"; then
6134 echo "$as_me:$LINENO: result: $STRIP" >&5
6135 echo "${ECHO_T}$STRIP" >&6
6137 echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6
6142 if test -z "$ac_cv_prog_STRIP"; then
6144 # Extract the first word of "strip", so it can be a program name with args.
6145 set dummy strip; ac_word=$2
6146 echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 if test -n "$ac_ct_STRIP"; then
6152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_ac_ct_STRIP="strip"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6172 if test -n "$ac_ct_STRIP"; then
6173 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6174 echo "${ECHO_T}$ac_ct_STRIP" >&6
6176 echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6
6182 STRIP="$ac_cv_prog_STRIP"
6187 old_CFLAGS="$CFLAGS"
6189 # Set sane defaults for various variables
6190 test -z "$AR" && AR=ar
6191 test -z "$AR_FLAGS" && AR_FLAGS=cru
6192 test -z "$AS" && AS=as
6193 test -z "$CC" && CC=cc
6194 test -z "$LTCC" && LTCC=$CC
6195 test -z "$DLLTOOL" && DLLTOOL=dlltool
6196 test -z "$LD" && LD=ld
6197 test -z "$LN_S" && LN_S="ln -s"
6198 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6199 test -z "$NM" && NM=nm
6200 test -z "$SED" && SED=sed
6201 test -z "$OBJDUMP" && OBJDUMP=objdump
6202 test -z "$RANLIB" && RANLIB=:
6203 test -z "$STRIP" && STRIP=:
6204 test -z "$ac_objext" && ac_objext=o
6206 # Determine commands to create old-style static archives.
6207 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6208 old_postinstall_cmds='chmod 644 $oldlib'
6209 old_postuninstall_cmds=
6211 if test -n "$RANLIB"; then
6214 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6217 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6220 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6223 for cc_temp in $compiler""; do
6225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6231 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6234 # Only perform the check for file, if the check method requires it
6235 case $deplibs_check_method in
6237 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6238 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6239 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6240 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6248 lt_save_MAGIC_CMD="$MAGIC_CMD"
6249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6250 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6251 for ac_dir in $ac_dummy; do
6253 test -z "$ac_dir" && ac_dir=.
6254 if test -f $ac_dir/${ac_tool_prefix}file; then
6255 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6256 if test -n "$file_magic_test_file"; then
6257 case $deplibs_check_method in
6259 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6262 $EGREP "$file_magic_regex" > /dev/null; then
6267 *** Warning: the command libtool uses to detect shared libraries,
6268 *** $file_magic_cmd, produces output that libtool cannot recognize.
6269 *** The result is that libtool may fail to recognize shared libraries
6270 *** as such. This will affect the creation of libtool libraries that
6271 *** depend on shared libraries, but programs linked with such libtool
6272 *** libraries will work regardless of this problem. Nevertheless, you
6273 *** may want to report the problem to your system manager and/or to
6274 *** bug-libtool@gnu.org
6284 MAGIC_CMD="$lt_save_MAGIC_CMD"
6289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6290 if test -n "$MAGIC_CMD"; then
6291 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6292 echo "${ECHO_T}$MAGIC_CMD" >&6
6294 echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6
6298 if test -z "$lt_cv_path_MAGIC_CMD"; then
6299 if test -n "$ac_tool_prefix"; then
6300 echo "$as_me:$LINENO: checking for file" >&5
6301 echo $ECHO_N "checking for file... $ECHO_C" >&6
6302 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6310 lt_save_MAGIC_CMD="$MAGIC_CMD"
6311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6312 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6313 for ac_dir in $ac_dummy; do
6315 test -z "$ac_dir" && ac_dir=.
6316 if test -f $ac_dir/file; then
6317 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6318 if test -n "$file_magic_test_file"; then
6319 case $deplibs_check_method in
6321 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6324 $EGREP "$file_magic_regex" > /dev/null; then
6329 *** Warning: the command libtool uses to detect shared libraries,
6330 *** $file_magic_cmd, produces output that libtool cannot recognize.
6331 *** The result is that libtool may fail to recognize shared libraries
6332 *** as such. This will affect the creation of libtool libraries that
6333 *** depend on shared libraries, but programs linked with such libtool
6334 *** libraries will work regardless of this problem. Nevertheless, you
6335 *** may want to report the problem to your system manager and/or to
6336 *** bug-libtool@gnu.org
6346 MAGIC_CMD="$lt_save_MAGIC_CMD"
6351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6352 if test -n "$MAGIC_CMD"; then
6353 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6354 echo "${ECHO_T}$MAGIC_CMD" >&6
6356 echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6372 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6373 if test "${enable_libtool_lock+set}" = set; then
6374 enableval="$enable_libtool_lock"
6377 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6380 # Check whether --with-pic or --without-pic was given.
6381 if test "${with_pic+set}" = set; then
6387 test -z "$pic_mode" && pic_mode=default
6389 # Use C for the default configuration in the libtool script
6393 ac_cpp='$CPP $CPPFLAGS'
6394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6399 # Source file extension for C test sources.
6402 # Object file extension for compiled C test sources.
6406 # Code to be used in simple compile tests
6407 lt_simple_compile_test_code="int some_variable = 0;\n"
6409 # Code to be used in simple link tests
6410 lt_simple_link_test_code='int main(){return(0);}\n'
6413 # If no C compiler was specified, use CC.
6416 # Allow CC to be a program name with arguments.
6420 # save warnings/boilerplate of simple test code
6421 ac_outfile=conftest.$ac_objext
6422 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6424 _lt_compiler_boilerplate=`cat conftest.err`
6427 ac_outfile=conftest.$ac_objext
6428 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6429 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6430 _lt_linker_boilerplate=`cat conftest.err`
6435 # Check for any special shared library compilation flags.
6438 if test "$GCC" = no; then
6441 lt_prog_cc_shlib='-belf'
6445 if test -n "$lt_prog_cc_shlib"; then
6446 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6447 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6448 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6450 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6451 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6452 lt_cv_prog_cc_can_build_shared=no
6458 # Check to make sure the static flag actually works.
6460 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6461 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6462 if test "${lt_prog_compiler_static_works+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 lt_prog_compiler_static_works=no
6466 save_LDFLAGS="$LDFLAGS"
6467 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6468 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6470 # The compiler can only warn and ignore the option if not recognized
6471 # So say no if there are warnings
6472 if test -s conftest.err; then
6473 # Append any errors to the config.log.
6474 cat conftest.err 1>&5
6475 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6476 $SED '/^$/d' conftest.err >conftest.er2
6477 if diff conftest.exp conftest.er2 >/dev/null; then
6478 lt_prog_compiler_static_works=yes
6481 lt_prog_compiler_static_works=yes
6485 LDFLAGS="$save_LDFLAGS"
6488 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6489 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6491 if test x"$lt_prog_compiler_static_works" = xyes; then
6494 lt_prog_compiler_static=
6500 lt_prog_compiler_no_builtin_flag=
6502 if test "$GCC" = yes; then
6503 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6506 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6507 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6508 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 lt_cv_prog_compiler_rtti_exceptions=no
6512 ac_outfile=conftest.$ac_objext
6513 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6514 lt_compiler_flag="-fno-rtti -fno-exceptions"
6515 # Insert the option either (1) after the last *FLAGS variable, or
6516 # (2) before a word containing "conftest.", or (3) at the end.
6517 # Note that $ac_compile itself does not contain backslashes and begins
6518 # with a dollar sign (not a hyphen), so the echo should work correctly.
6519 # The option is referenced via a variable to avoid confusing sed.
6520 lt_compile=`echo "$ac_compile" | $SED \
6521 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6523 -e 's:$: $lt_compiler_flag:'`
6524 (eval echo "\"\$as_me:6524: $lt_compile\"" >&5)
6525 (eval "$lt_compile" 2>conftest.err)
6527 cat conftest.err >&5
6528 echo "$as_me:6528: \$? = $ac_status" >&5
6529 if (exit $ac_status) && test -s "$ac_outfile"; then
6530 # The compiler can only warn and ignore the option if not recognized
6531 # So say no if there are warnings other than the usual output.
6532 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6533 $SED '/^$/d' conftest.err >conftest.er2
6534 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6535 lt_cv_prog_compiler_rtti_exceptions=yes
6541 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6542 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6544 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6545 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6552 lt_prog_compiler_wl=
6553 lt_prog_compiler_pic=
6554 lt_prog_compiler_static=
6556 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6557 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6559 if test "$GCC" = yes; then
6560 lt_prog_compiler_wl='-Wl,'
6561 lt_prog_compiler_static='-static'
6565 # All AIX code is PIC.
6566 if test "$host_cpu" = ia64; then
6567 # AIX 5 now supports IA64 processor
6568 lt_prog_compiler_static='-Bstatic'
6573 # FIXME: we need at least 68020 code to build shared libraries, but
6574 # adding the `-m68020' flag to GCC prevents building anything better,
6576 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6579 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6580 # PIC is the default for these OSes.
6583 mingw* | pw32* | os2*)
6584 # This hack is so that the source file can tell whether it is being
6585 # built for inclusion in a dll (and should export symbols for example).
6586 lt_prog_compiler_pic='-DDLL_EXPORT'
6589 darwin* | rhapsody*)
6590 # PIC is the default on this platform
6591 # Common symbols not allowed in MH_DYLIB files
6592 lt_prog_compiler_pic='-fno-common'
6596 # Just because we use GCC doesn't mean we suddenly get shared libraries
6597 # on systems that don't support them.
6598 lt_prog_compiler_can_build_shared=no
6603 if test -d /usr/nec; then
6604 lt_prog_compiler_pic=-Kconform_pic
6609 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6616 lt_prog_compiler_pic='-fPIC'
6622 lt_prog_compiler_pic='-fPIC'
6626 # PORTME Check for flag to pass linker flags through the system compiler.
6629 lt_prog_compiler_wl='-Wl,'
6630 if test "$host_cpu" = ia64; then
6631 # AIX 5 now supports IA64 processor
6632 lt_prog_compiler_static='-Bstatic'
6634 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6638 # PIC is the default on this platform
6639 # Common symbols not allowed in MH_DYLIB files
6640 case $cc_basename in
6642 lt_prog_compiler_pic='-qnocommon'
6643 lt_prog_compiler_wl='-Wl,'
6648 mingw* | pw32* | os2*)
6649 # This hack is so that the source file can tell whether it is being
6650 # built for inclusion in a dll (and should export symbols for example).
6651 lt_prog_compiler_pic='-DDLL_EXPORT'
6654 hpux9* | hpux10* | hpux11*)
6655 lt_prog_compiler_wl='-Wl,'
6656 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6663 lt_prog_compiler_pic='+Z'
6666 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6667 lt_prog_compiler_static='${wl}-a ${wl}archive'
6670 irix5* | irix6* | nonstopux*)
6671 lt_prog_compiler_wl='-Wl,'
6672 # PIC (with -KPIC) is the default.
6673 lt_prog_compiler_static='-non_shared'
6677 lt_prog_compiler_pic='-KPIC'
6678 lt_prog_compiler_static='-Bstatic'
6682 case $cc_basename in
6684 lt_prog_compiler_wl='-Wl,'
6685 lt_prog_compiler_pic='-KPIC'
6686 lt_prog_compiler_static='-static'
6688 pgcc* | pgf77* | pgf90*)
6689 # Portland Group compilers (*not* the Pentium gcc compiler,
6690 # which looks to be a dead project)
6691 lt_prog_compiler_wl='-Wl,'
6692 lt_prog_compiler_pic='-fpic'
6693 lt_prog_compiler_static='-static'
6696 lt_prog_compiler_wl='-Wl,'
6697 # All Alpha code is PIC.
6698 lt_prog_compiler_static='-non_shared'
6703 osf3* | osf4* | osf5*)
6704 lt_prog_compiler_wl='-Wl,'
6705 # All OSF/1 code is PIC.
6706 lt_prog_compiler_static='-non_shared'
6710 lt_prog_compiler_pic='-Kpic'
6711 lt_prog_compiler_static='-dn'
6715 lt_prog_compiler_pic='-KPIC'
6716 lt_prog_compiler_static='-Bstatic'
6717 case $cc_basename in
6719 lt_prog_compiler_wl='-Qoption ld ';;
6721 lt_prog_compiler_wl='-Wl,';;
6726 lt_prog_compiler_wl='-Qoption ld '
6727 lt_prog_compiler_pic='-PIC'
6728 lt_prog_compiler_static='-Bstatic'
6731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6732 lt_prog_compiler_wl='-Wl,'
6733 lt_prog_compiler_pic='-KPIC'
6734 lt_prog_compiler_static='-Bstatic'
6738 if test -d /usr/nec ;then
6739 lt_prog_compiler_pic='-Kconform_pic'
6740 lt_prog_compiler_static='-Bstatic'
6745 lt_prog_compiler_wl='-Wl,'
6746 lt_prog_compiler_can_build_shared=no
6750 lt_prog_compiler_pic='-pic'
6751 lt_prog_compiler_static='-Bstatic'
6755 lt_prog_compiler_can_build_shared=no
6760 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6761 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6764 # Check to make sure the PIC flag actually works.
6766 if test -n "$lt_prog_compiler_pic"; then
6768 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6769 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6770 if test "${lt_prog_compiler_pic_works+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 lt_prog_compiler_pic_works=no
6774 ac_outfile=conftest.$ac_objext
6775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6776 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6777 # Insert the option either (1) after the last *FLAGS variable, or
6778 # (2) before a word containing "conftest.", or (3) at the end.
6779 # Note that $ac_compile itself does not contain backslashes and begins
6780 # with a dollar sign (not a hyphen), so the echo should work correctly.
6781 # The option is referenced via a variable to avoid confusing sed.
6782 lt_compile=`echo "$ac_compile" | $SED \
6783 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6785 -e 's:$: $lt_compiler_flag:'`
6786 (eval echo "\"\$as_me:6786: $lt_compile\"" >&5)
6787 (eval "$lt_compile" 2>conftest.err)
6789 cat conftest.err >&5
6790 echo "$as_me:6790: \$? = $ac_status" >&5
6791 if (exit $ac_status) && test -s "$ac_outfile"; then
6792 # The compiler can only warn and ignore the option if not recognized
6793 # So say no if there are warnings other than the usual output.
6794 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6795 $SED '/^$/d' conftest.err >conftest.er2
6796 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6797 lt_prog_compiler_pic_works=yes
6803 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6804 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6806 if test x"$lt_prog_compiler_pic_works" = xyes; then
6807 case $lt_prog_compiler_pic in
6809 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6812 lt_prog_compiler_pic=
6813 lt_prog_compiler_can_build_shared=no
6818 # For platforms which do not support PIC, -DPIC is meaningless:
6820 lt_prog_compiler_pic=
6823 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6827 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6828 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6829 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 lt_cv_prog_compiler_c_o=no
6833 $rm -r conftest 2>/dev/null
6837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6839 lt_compiler_flag="-o out/conftest2.$ac_objext"
6840 # Insert the option either (1) after the last *FLAGS variable, or
6841 # (2) before a word containing "conftest.", or (3) at the end.
6842 # Note that $ac_compile itself does not contain backslashes and begins
6843 # with a dollar sign (not a hyphen), so the echo should work correctly.
6844 lt_compile=`echo "$ac_compile" | $SED \
6845 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6847 -e 's:$: $lt_compiler_flag:'`
6848 (eval echo "\"\$as_me:6848: $lt_compile\"" >&5)
6849 (eval "$lt_compile" 2>out/conftest.err)
6851 cat out/conftest.err >&5
6852 echo "$as_me:6852: \$? = $ac_status" >&5
6853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6855 # The compiler can only warn and ignore the option if not recognized
6856 # So say no if there are warnings
6857 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6858 $SED '/^$/d' out/conftest.err >out/conftest.er2
6859 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6860 lt_cv_prog_compiler_c_o=yes
6865 # SGI C++ compiler will create directory out/ii_files/ for
6866 # template instantiation
6867 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6868 $rm out/* && rmdir out
6874 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6875 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6878 hard_links="nottested"
6879 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6880 # do not overwrite the value of need_locks provided by the user
6881 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6882 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6887 ln conftest.a conftest.b 2>&5 || hard_links=no
6888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6889 echo "$as_me:$LINENO: result: $hard_links" >&5
6890 echo "${ECHO_T}$hard_links" >&6
6891 if test "$hard_links" = no; then
6892 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6893 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6900 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6901 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6904 allow_undefined_flag=
6905 enable_shared_with_static_runtimes=no
6907 archive_expsym_cmds=
6908 old_archive_From_new_cmds=
6909 old_archive_from_expsyms_cmds=
6910 export_dynamic_flag_spec=
6911 whole_archive_flag_spec=
6912 thread_safe_flag_spec=
6913 hardcode_libdir_flag_spec=
6914 hardcode_libdir_flag_spec_ld=
6915 hardcode_libdir_separator=
6918 hardcode_shlibpath_var=unsupported
6919 link_all_deplibs=unknown
6920 hardcode_automatic=no
6923 always_export_symbols=no
6924 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6925 # include_expsyms should be a list of space-separated symbols to be *always*
6926 # included in the symbol list
6928 # exclude_expsyms can be an extended regexp of symbols to exclude
6929 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6930 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6931 # as well as any symbol that contains `d'.
6932 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6933 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6934 # platforms (ab)use it in PIC code, but their linkers get confused if
6935 # the symbol is explicitly referenced. Since portable code cannot
6936 # rely on this symbol name, it's probably fine to never include it in
6937 # preloaded symbol tables.
6938 extract_expsyms_cmds=
6939 # Just being paranoid about ensuring that cc_basename is set.
6940 for cc_temp in $compiler""; do
6942 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6943 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6948 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6951 cygwin* | mingw* | pw32*)
6952 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6953 # When not using gcc, we currently assume that we are using
6954 # Microsoft Visual C++.
6955 if test "$GCC" != yes; then
6965 if test "$with_gnu_ld" = yes; then
6966 # If archive_cmds runs LD, not CC, wlarc should be empty
6969 # Set some defaults for GNU ld with shared library support. These
6970 # are reset later if shared libraries are not supported. Putting them
6971 # here allows them to be overridden if necessary.
6972 runpath_var=LD_RUN_PATH
6973 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6974 export_dynamic_flag_spec='${wl}--export-dynamic'
6975 # ancient GNU ld didn't support --whole-archive et. al.
6976 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6977 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6979 whole_archive_flag_spec=
6981 supports_anon_versioning=no
6982 case `$LD -v 2>/dev/null` in
6983 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6984 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6985 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6986 *\ 2.11.*) ;; # other 2.11 versions
6987 *) supports_anon_versioning=yes ;;
6990 # See if GNU ld supports shared libraries.
6992 aix3* | aix4* | aix5*)
6993 # On AIX/PPC, the GNU linker is very broken
6994 if test "$host_cpu" != ia64; then
6998 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6999 *** to be unable to reliably create shared libraries on AIX.
7000 *** Therefore, libtool is disabling shared libraries support. If you
7001 *** really care for shared libraries, you may want to modify your PATH
7002 *** so that a non-GNU linker is found, and then restart.
7009 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)'
7010 hardcode_libdir_flag_spec='-L$libdir'
7011 hardcode_minus_L=yes
7013 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7014 # that the semantics of dynamic libraries on AmigaOS, at least up
7015 # to version 4, is to share data among multiple programs linked
7016 # with the same dynamic library. Since this doesn't match the
7017 # behavior of shared libraries on other platforms, we can't use
7023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7024 allow_undefined_flag=unsupported
7025 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7026 # support --undefined. This deserves some investigation. FIXME
7027 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7033 cygwin* | mingw* | pw32*)
7034 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7035 # as there is no search path for DLLs.
7036 hardcode_libdir_flag_spec='-L$libdir'
7037 allow_undefined_flag=unsupported
7038 always_export_symbols=no
7039 enable_shared_with_static_runtimes=yes
7040 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7042 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7044 # If the export-symbols file already is a .def file (1st line
7045 # is EXPORTS), use it as is; otherwise, prepend...
7046 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7047 cp $export_symbols $output_objdir/$soname.def;
7049 echo EXPORTS > $output_objdir/$soname.def;
7050 cat $export_symbols >> $output_objdir/$soname.def;
7052 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7061 case $cc_basename,$host_cpu in
7062 pgcc*) # Portland Group C compiler
7063 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'
7064 tmp_addflag=' $pic_flag'
7066 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7067 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'
7068 tmp_addflag=' $pic_flag -Mnomain' ;;
7069 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7070 tmp_addflag=' -i_dynamic' ;;
7071 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7072 tmp_addflag=' -i_dynamic -nofor_main' ;;
7073 ifc* | ifort*) # Intel Fortran compiler
7074 tmp_addflag=' -nofor_main' ;;
7076 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7078 if test $supports_anon_versioning = yes; then
7079 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7081 $echo "local: *; };" >> $output_objdir/$libname.ver~
7082 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7091 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7100 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7104 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7105 *** create shared libraries on Solaris systems. Therefore, libtool
7106 *** is disabling shared libraries support. We urge you to upgrade GNU
7107 *** binutils to release 2.9.1 or newer. Another option is to modify
7108 *** your PATH or compiler configuration so that the native linker is
7109 *** used, and then restart.
7112 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
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'
7121 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7124 hardcode_shlibpath_var=no
7128 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7130 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7137 if test "$ld_shlibs" = no; then
7139 hardcode_libdir_flag_spec=
7140 export_dynamic_flag_spec=
7141 whole_archive_flag_spec=
7144 # PORTME fill in a description of your system's linker (not GNU ld)
7147 allow_undefined_flag=unsupported
7148 always_export_symbols=yes
7149 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'
7150 # Note: this linker hardcodes the directories in LIBPATH if there
7151 # are no directories specified by -L.
7152 hardcode_minus_L=yes
7153 if test "$GCC" = yes && test -z "$link_static_flag"; then
7154 # Neither direct hardcoding nor static linking is supported with a
7156 hardcode_direct=unsupported
7161 if test "$host_cpu" = ia64; then
7162 # On IA64, the linker does run time linking by default, so we don't
7163 # have to do anything special.
7164 aix_use_runtimelinking=no
7165 exp_sym_flag='-Bexport'
7168 # If we're using GNU nm, then we don't want the "-C" option.
7169 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7170 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7171 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'
7173 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'
7175 aix_use_runtimelinking=no
7177 # Test if we are trying to use run time linking or normal
7178 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7179 # need to do runtime linking.
7180 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7181 for ld_flag in $LDFLAGS; do
7182 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7183 aix_use_runtimelinking=yes
7189 exp_sym_flag='-bexport'
7190 no_entry_flag='-bnoentry'
7193 # When large executables or shared objects are built, AIX ld can
7194 # have problems creating the table of contents. If linking a library
7195 # or program results in "error TOC overflow" add -mminimal-toc to
7196 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7197 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7201 hardcode_libdir_separator=':'
7202 link_all_deplibs=yes
7204 if test "$GCC" = yes; then
7205 case $host_os in aix4.[012]|aix4.[012].*)
7206 # We only want to do this on AIX 4.2 and lower, the check
7207 # below for broken collect2 doesn't work under 4.3+
7208 collect2name=`${CC} -print-prog-name=collect2`
7209 if test -f "$collect2name" && \
7210 strings "$collect2name" | grep resolve_lib_name >/dev/null
7212 # We have reworked collect2
7215 # We have old collect2
7216 hardcode_direct=unsupported
7217 # It fails to find uninstalled libraries when the uninstalled
7218 # path is not listed in the libpath. Setting hardcode_minus_L
7219 # to unsupported forces relinking
7220 hardcode_minus_L=yes
7221 hardcode_libdir_flag_spec='-L$libdir'
7222 hardcode_libdir_separator=
7225 shared_flag='-shared'
7226 if test "$aix_use_runtimelinking" = yes; then
7227 shared_flag="$shared_flag "'${wl}-G'
7231 if test "$host_cpu" = ia64; then
7232 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7233 # chokes on -Wl,-G. The following line is correct:
7236 if test "$aix_use_runtimelinking" = yes; then
7237 shared_flag='${wl}-G'
7239 shared_flag='${wl}-bM:SRE'
7244 # It seems that -bexpall does not export symbols beginning with
7245 # underscore (_), so it is better to generate a list of symbols to export.
7246 always_export_symbols=yes
7247 if test "$aix_use_runtimelinking" = yes; then
7248 # Warning - without using the other runtime loading flags (-brtl),
7249 # -berok will link without error, but may produce a broken library.
7250 allow_undefined_flag='-berok'
7251 # Determine the default libpath from the value encoded in an empty executable.
7252 cat >conftest.$ac_ext <<_ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7267 rm -f conftest.$ac_objext conftest$ac_exeext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7269 (eval $ac_link) 2>conftest.er1
7271 grep -v '^ *+' conftest.er1 >conftest.err
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -z "$ac_c_werror_flag"
7277 || test ! -s conftest.err'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; } &&
7283 { ac_try='test -s conftest$ac_exeext'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7292 # Check for a 64-bit object if we didn't find anything.
7293 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; }
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7300 rm -f conftest.err conftest.$ac_objext \
7301 conftest$ac_exeext conftest.$ac_ext
7302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7304 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7305 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"
7307 if test "$host_cpu" = ia64; then
7308 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7309 allow_undefined_flag="-z nodefs"
7310 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"
7312 # Determine the default libpath from the value encoded in an empty executable.
7313 cat >conftest.$ac_ext <<_ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7328 rm -f conftest.$ac_objext conftest$ac_exeext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7330 (eval $ac_link) 2>conftest.er1
7332 grep -v '^ *+' conftest.er1 >conftest.err
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -z "$ac_c_werror_flag"
7338 || test ! -s conftest.err'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; } &&
7344 { ac_try='test -s conftest$ac_exeext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7353 # Check for a 64-bit object if we didn't find anything.
7354 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; }
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7361 rm -f conftest.err conftest.$ac_objext \
7362 conftest$ac_exeext conftest.$ac_ext
7363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7365 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7366 # Warning - without using the other run time loading flags,
7367 # -berok will link without error, but may produce a broken library.
7368 no_undefined_flag=' ${wl}-bernotok'
7369 allow_undefined_flag=' ${wl}-berok'
7370 # -bexpall does not export symbols beginning with underscore (_)
7371 always_export_symbols=yes
7372 # Exported symbols can be pulled into shared objects from archives
7373 whole_archive_flag_spec=' '
7374 archive_cmds_need_lc=yes
7375 # This is similar to how AIX traditionally builds it's shared libraries.
7376 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'
7382 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)'
7383 hardcode_libdir_flag_spec='-L$libdir'
7384 hardcode_minus_L=yes
7385 # see comment about different semantics on the GNU ld section
7390 export_dynamic_flag_spec=-rdynamic
7393 cygwin* | mingw* | pw32*)
7394 # When not using gcc, we currently assume that we are using
7395 # Microsoft Visual C++.
7396 # hardcode_libdir_flag_spec is actually meaningless, as there is
7397 # no search path for DLLs.
7398 hardcode_libdir_flag_spec=' '
7399 allow_undefined_flag=unsupported
7400 # Tell ltmain to make .lib files, not .a files.
7402 # Tell ltmain to make .dll files, not .so files.
7404 # FIXME: Setting linknames here is a bad hack.
7405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7406 # The linker will automatically build a .lib file if we build a DLL.
7407 old_archive_From_new_cmds='true'
7408 # FIXME: Should let the user specify the lib program.
7409 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7410 fix_srcfile_path='`cygpath -w "$srcfile"`'
7411 enable_shared_with_static_runtimes=yes
7414 darwin* | rhapsody*)
7416 rhapsody* | darwin1.[012])
7417 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7420 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7421 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7423 case ${MACOSX_DEPLOYMENT_TARGET} in
7425 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7428 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7434 archive_cmds_need_lc=no
7436 hardcode_automatic=yes
7437 hardcode_shlibpath_var=unsupported
7438 whole_archive_flag_spec=''
7439 link_all_deplibs=yes
7440 if test "$GCC" = yes ; then
7441 output_verbose_link_cmd='echo'
7442 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7443 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7444 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7445 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}'
7446 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}'
7448 case $cc_basename in
7450 output_verbose_link_cmd='echo'
7451 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7452 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7453 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7454 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}'
7455 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}'
7465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7466 hardcode_libdir_flag_spec='-L$libdir'
7467 hardcode_shlibpath_var=no
7474 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7475 # support. Future versions do this automatically, but an explicit c++rt0.o
7476 # does not break anything, and helps significantly (at the cost of a little
7479 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7480 hardcode_libdir_flag_spec='-R$libdir'
7482 hardcode_shlibpath_var=no
7485 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7489 hardcode_minus_L=yes
7490 hardcode_shlibpath_var=no
7493 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7494 freebsd* | kfreebsd*-gnu | dragonfly*)
7495 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7496 hardcode_libdir_flag_spec='-R$libdir'
7498 hardcode_shlibpath_var=no
7502 if test "$GCC" = yes; then
7503 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'
7505 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'
7507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7508 hardcode_libdir_separator=:
7511 # hardcode_minus_L: Not really in the search PATH,
7512 # but as the default location of the library.
7513 hardcode_minus_L=yes
7514 export_dynamic_flag_spec='${wl}-E'
7518 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7521 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7524 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7530 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7533 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7537 if test "$with_gnu_ld" = no; then
7540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7541 hardcode_libdir_flag_spec_ld='+b $libdir'
7542 hardcode_libdir_separator=:
7544 hardcode_shlibpath_var=no
7547 hardcode_libdir_flag_spec='-L$libdir'
7549 hardcode_shlibpath_var=no
7551 # hardcode_minus_L: Not really in the search PATH,
7552 # but as the default location of the library.
7553 hardcode_minus_L=yes
7556 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7557 hardcode_libdir_separator=:
7559 export_dynamic_flag_spec='${wl}-E'
7561 # hardcode_minus_L: Not really in the search PATH,
7562 # but as the default location of the library.
7563 hardcode_minus_L=yes
7569 irix5* | irix6* | nonstopux*)
7570 if test "$GCC" = yes; then
7571 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'
7573 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'
7574 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7577 hardcode_libdir_separator=:
7578 link_all_deplibs=yes
7582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7585 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7587 hardcode_libdir_flag_spec='-R$libdir'
7589 hardcode_shlibpath_var=no
7593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7596 hardcode_libdir_separator=:
7597 hardcode_shlibpath_var=no
7602 hardcode_shlibpath_var=no
7603 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7605 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7606 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7607 export_dynamic_flag_spec='${wl}-E'
7610 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7612 hardcode_libdir_flag_spec='-R$libdir'
7615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7616 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7623 hardcode_libdir_flag_spec='-L$libdir'
7624 hardcode_minus_L=yes
7625 allow_undefined_flag=unsupported
7626 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'
7627 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7631 if test "$GCC" = yes; then
7632 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7633 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'
7635 allow_undefined_flag=' -expect_unresolved \*'
7636 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'
7638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7639 hardcode_libdir_separator=:
7642 osf4* | osf5*) # as osf3* with the addition of -msym flag
7643 if test "$GCC" = yes; then
7644 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7645 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'
7646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7648 allow_undefined_flag=' -expect_unresolved \*'
7649 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'
7650 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7651 $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'
7653 # Both c and cxx compiler support -rpath directly
7654 hardcode_libdir_flag_spec='-rpath $libdir'
7656 hardcode_libdir_separator=:
7660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7661 hardcode_shlibpath_var=no
7662 export_dynamic_flag_spec='${wl}-Bexport'
7663 runpath_var=LD_RUN_PATH
7664 hardcode_runpath_var=yes
7668 no_undefined_flag=' -z text'
7669 if test "$GCC" = yes; then
7671 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7672 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7673 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7676 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7677 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7678 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7680 hardcode_libdir_flag_spec='-R$libdir'
7681 hardcode_shlibpath_var=no
7683 solaris2.[0-5] | solaris2.[0-5].*) ;;
7685 # The compiler driver will combine linker options so we
7686 # cannot just pass the convience library names through
7687 # without $wl, iff we do not link with $LD.
7688 # Luckily, gcc supports the same syntax we need for Sun Studio.
7689 # Supported since Solaris 2.6 (maybe 2.5.1?)
7692 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7694 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' ;;
7697 link_all_deplibs=yes
7701 if test "x$host_vendor" = xsequent; then
7702 # Use $CC to link under sequent, because it throws in some extra .o
7703 # files that make .init and .fini sections work.
7704 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7706 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7708 hardcode_libdir_flag_spec='-L$libdir'
7710 hardcode_minus_L=yes
7711 hardcode_shlibpath_var=no
7715 case $host_vendor in
7717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7718 hardcode_direct=yes # is this really true???
7721 ## LD is ld it makes a PLAMLIB
7722 ## CC just makes a GrossModule.
7723 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7724 reload_cmds='$CC -r -o $output$reload_objs'
7728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7729 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7732 runpath_var='LD_RUN_PATH'
7733 hardcode_shlibpath_var=no
7737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7738 hardcode_shlibpath_var=no
7739 export_dynamic_flag_spec='-Bexport'
7743 if test -d /usr/nec; then
7744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7745 hardcode_shlibpath_var=no
7746 runpath_var=LD_RUN_PATH
7747 hardcode_runpath_var=yes
7753 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7756 hardcode_shlibpath_var=no
7757 hardcode_runpath_var=yes
7758 runpath_var=LD_RUN_PATH
7761 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7762 no_undefined_flag='${wl}-z ${wl}text'
7763 if test "$GCC" = yes; then
7764 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7766 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7768 runpath_var='LD_RUN_PATH'
7769 hardcode_shlibpath_var=no
7773 no_undefined_flag=' -z text'
7774 # $CC -shared without GNU ld will not create a library from C++
7775 # object files and a static libstdc++, better avoid it by now
7776 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7777 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7778 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7779 hardcode_libdir_flag_spec=
7780 hardcode_shlibpath_var=no
7781 runpath_var='LD_RUN_PATH'
7785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7786 hardcode_libdir_flag_spec='-L$libdir'
7787 hardcode_shlibpath_var=no
7796 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7797 echo "${ECHO_T}$ld_shlibs" >&6
7798 test "$ld_shlibs" = no && can_build_shared=no
7800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7801 if test "$GCC" = yes; then
7802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7806 # Do we need to explicitly link libc?
7808 case "x$archive_cmds_need_lc" in
7810 # Assume -lc should be added
7811 archive_cmds_need_lc=yes
7813 if test "$enable_shared" = yes && test "$GCC" = yes; then
7814 case $archive_cmds in
7816 # FIXME: we may have to deal with multi-command sequences.
7819 # Test whether the compiler implicitly links with -lc since on some
7820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7821 # to ld, don't add -lc before -lgcc.
7822 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7823 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7828 (eval $ac_compile) 2>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } 2>conftest.err; then
7834 libobjs=conftest.$ac_objext
7836 wl=$lt_prog_compiler_wl
7842 lt_save_allow_undefined_flag=$allow_undefined_flag
7843 allow_undefined_flag=
7844 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7845 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }
7850 archive_cmds_need_lc=no
7852 archive_cmds_need_lc=yes
7854 allow_undefined_flag=$lt_save_allow_undefined_flag
7856 cat conftest.err 1>&5
7859 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7860 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7867 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7868 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7870 libname_spec='lib$name'
7878 shlibpath_overrides_runpath=unknown
7880 dynamic_linker="$host_os ld.so"
7881 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7882 if test "$GCC" = yes; then
7883 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7884 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7885 # if the path contains ";" then we assume it to be the separator
7886 # otherwise default to the standard path separator (i.e. ":") - it is
7887 # assumed that no part of a normal pathname contains ";" but that should
7888 # okay in the real world where ";" in dirpaths is itself problematic.
7889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7894 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7896 need_lib_prefix=unknown
7897 hardcode_into_libs=no
7899 # when you set need_version to no, make sure it does not cause -set_version
7900 # flags to be left without arguments
7901 need_version=unknown
7906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7907 shlibpath_var=LIBPATH
7909 # AIX 3 has no versioning support, so we append a major version to the name.
7910 soname_spec='${libname}${release}${shared_ext}$major'
7917 hardcode_into_libs=yes
7918 if test "$host_cpu" = ia64; then
7919 # AIX 5 supports IA64
7920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7921 shlibpath_var=LD_LIBRARY_PATH
7923 # With GCC up to 2.95.x, collect2 would create an import file
7924 # for dependence libraries. The import file would start with
7925 # the line `#! .'. This would cause the generated library to
7926 # depend on `.', always an invalid library. This was fixed in
7927 # development snapshots of GCC prior to 3.0.
7929 aix4 | aix4.[01] | aix4.[01].*)
7930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7932 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7940 # soname into executable. Probably we can add versioning support to
7941 # collect2, so additional links can be useful in future.
7942 if test "$aix_use_runtimelinking" = yes; then
7943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7944 # instead of lib<name>.a to let people know that these are not
7945 # typical AIX shared libraries.
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7948 # We preserve .a as extension for shared libraries through AIX4.2
7949 # and later when we are not doing run time linking.
7950 library_names_spec='${libname}${release}.a $libname.a'
7951 soname_spec='${libname}${release}${shared_ext}$major'
7953 shlibpath_var=LIBPATH
7958 library_names_spec='$libname.ixlibrary $libname.a'
7959 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7960 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'
7964 library_names_spec='${libname}${shared_ext}'
7965 dynamic_linker="$host_os ld.so"
7966 shlibpath_var=LIBRARY_PATH
7972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7973 soname_spec='${libname}${release}${shared_ext}$major'
7974 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7975 shlibpath_var=LD_LIBRARY_PATH
7976 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7977 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7978 # the default ld.so.conf also contains /usr/contrib/lib and
7979 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7980 # libtool to hard-code these into programs
7983 cygwin* | mingw* | pw32*)
7984 version_type=windows
7989 case $GCC,$host_os in
7990 yes,cygwin* | yes,mingw* | yes,pw32*)
7991 library_names_spec='$libname.dll.a'
7992 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7993 postinstall_cmds='base_file=`basename \${file}`~
7994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7995 dldir=$destdir/`dirname \$dlpath`~
7996 test -d \$dldir || mkdir -p \$dldir~
7997 $install_prog $dir/$dlname \$dldir/$dlname'
7998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7999 dlpath=$dir/\$dldll~
8001 shlibpath_overrides_runpath=yes
8005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8010 # MinGW DLLs use traditional 'lib' prefix
8011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8013 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8014 # It is most probably a Windows format PATH printed by
8015 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8016 # path with ; separators, and with drive letters. We can handle the
8017 # drive letters (cygwin fileutils understands them), so leave them,
8018 # especially as we might pass files found there to a mingw objdump,
8019 # which wouldn't understand a cygwinified path. Ahh.
8020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8026 # pw32 DLLs use 'pw' prefix rather than 'lib'
8027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8036 dynamic_linker='Win32 ld.exe'
8037 # FIXME: first we should search . and the directory the executable is in
8041 darwin* | rhapsody*)
8042 dynamic_linker="$host_os dyld"
8046 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8047 soname_spec='${libname}${release}${major}$shared_ext'
8048 shlibpath_overrides_runpath=yes
8049 shlibpath_var=DYLD_LIBRARY_PATH
8050 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8051 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8052 if test "$GCC" = yes; then
8053 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"`
8055 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8057 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8065 soname_spec='${libname}${release}${shared_ext}$major'
8066 shlibpath_var=LD_LIBRARY_PATH
8077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8078 soname_spec='${libname}${release}${shared_ext}$major'
8079 shlibpath_var=LD_LIBRARY_PATH
8080 shlibpath_overrides_runpath=no
8081 hardcode_into_libs=yes
8082 dynamic_linker='GNU ld.so'
8085 freebsd* | dragonfly*)
8086 # DragonFly does not have aout. When/if they implement a new
8087 # versioning mechanism, adjust this.
8088 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8089 version_type=freebsd-$objformat
8090 case $version_type in
8092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8101 shlibpath_var=LD_LIBRARY_PATH
8104 shlibpath_overrides_runpath=yes
8106 freebsd3.[01]* | freebsdelf3.[01]*)
8107 shlibpath_overrides_runpath=yes
8108 hardcode_into_libs=yes
8111 shlibpath_overrides_runpath=no
8112 hardcode_into_libs=yes
8121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8122 soname_spec='${libname}${release}${shared_ext}$major'
8123 shlibpath_var=LD_LIBRARY_PATH
8124 hardcode_into_libs=yes
8127 hpux9* | hpux10* | hpux11*)
8128 # Give a soname corresponding to the major version so that dld.sl refuses to
8129 # link against other versions.
8136 hardcode_into_libs=yes
8137 dynamic_linker="$host_os dld.so"
8138 shlibpath_var=LD_LIBRARY_PATH
8139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8141 soname_spec='${libname}${release}${shared_ext}$major'
8142 if test "X$HPUX_IA64_MODE" = X32; then
8143 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8145 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8151 hardcode_into_libs=yes
8152 dynamic_linker="$host_os dld.sl"
8153 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8156 soname_spec='${libname}${release}${shared_ext}$major'
8157 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8162 dynamic_linker="$host_os dld.sl"
8163 shlibpath_var=SHLIB_PATH
8164 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8166 soname_spec='${libname}${release}${shared_ext}$major'
8169 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8170 postinstall_cmds='chmod 555 $lib'
8173 irix5* | irix6* | nonstopux*)
8175 nonstopux*) version_type=nonstopux ;;
8177 if test "$lt_cv_prog_gnu_ld" = yes; then
8185 soname_spec='${libname}${release}${shared_ext}$major'
8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8188 irix5* | nonstopux*)
8192 case $LD in # libtool.m4 will add one of these switches to LD
8193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8194 libsuff= shlibsuff= libmagic=32-bit;;
8195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8196 libsuff=32 shlibsuff=N32 libmagic=N32;;
8197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8198 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8199 *) libsuff= shlibsuff= libmagic=never-match;;
8203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8204 shlibpath_overrides_runpath=no
8205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8207 hardcode_into_libs=yes
8210 # No shared lib support for Linux oldld, aout, or coff.
8211 linux*oldld* | linux*aout* | linux*coff*)
8215 # This must be Linux ELF.
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8221 soname_spec='${libname}${release}${shared_ext}$major'
8222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8223 shlibpath_var=LD_LIBRARY_PATH
8224 shlibpath_overrides_runpath=no
8225 # This implies no fast_install, which is unacceptable.
8226 # Some rework will be needed to allow for fast_install
8227 # before this can be enabled.
8228 hardcode_into_libs=yes
8230 # Append ld.so.conf contents to the search path
8231 if test -f /etc/ld.so.conf; then
8232 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' ' '`
8233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8236 # We used to test for /lib/ld.so.1 and disable shared libraries on
8237 # powerpc, because MkLinux only supported shared libraries with the
8238 # GNU dynamic linker. Since this was broken with cross compilers,
8239 # most powerpc-linux boxes support dynamic linking these days and
8240 # people can always --disable-shared, the test was removed, and we
8241 # assume the GNU/Linux dynamic linker is in use.
8242 dynamic_linker='GNU/Linux ld.so'
8249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8250 soname_spec='${libname}${release}${shared_ext}$major'
8251 shlibpath_var=LD_LIBRARY_PATH
8252 shlibpath_overrides_runpath=no
8253 hardcode_into_libs=yes
8254 dynamic_linker='GNU ld.so'
8261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8264 dynamic_linker='NetBSD (a.out) ld.so'
8266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8267 soname_spec='${libname}${release}${shared_ext}$major'
8268 dynamic_linker='NetBSD ld.elf_so'
8270 shlibpath_var=LD_LIBRARY_PATH
8271 shlibpath_overrides_runpath=yes
8272 hardcode_into_libs=yes
8277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8278 shlibpath_var=LD_LIBRARY_PATH
8279 shlibpath_overrides_runpath=yes
8286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8287 soname_spec='${libname}${release}${shared_ext}$major'
8288 shlibpath_var=LD_LIBRARY_PATH
8289 shlibpath_overrides_runpath=yes
8295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8298 *) need_version=no ;;
8300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8302 shlibpath_var=LD_LIBRARY_PATH
8303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8305 openbsd2.[89] | openbsd2.[89].*)
8306 shlibpath_overrides_runpath=no
8309 shlibpath_overrides_runpath=yes
8313 shlibpath_overrides_runpath=yes
8318 libname_spec='$name'
8321 library_names_spec='$libname${shared_ext} $libname.a'
8322 dynamic_linker='OS/2 ld.exe'
8323 shlibpath_var=LIBPATH
8326 osf3* | osf4* | osf5*)
8330 soname_spec='${libname}${release}${shared_ext}$major'
8331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8332 shlibpath_var=LD_LIBRARY_PATH
8333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8339 soname_spec='${libname}${release}${shared_ext}$major'
8340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8341 shlibpath_var=LD_LIBRARY_PATH
8348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8349 soname_spec='${libname}${release}${shared_ext}$major'
8350 shlibpath_var=LD_LIBRARY_PATH
8351 shlibpath_overrides_runpath=yes
8352 hardcode_into_libs=yes
8353 # ldd complains unless libraries are executable
8354 postinstall_cmds='chmod +x $lib'
8359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8361 shlibpath_var=LD_LIBRARY_PATH
8362 shlibpath_overrides_runpath=yes
8363 if test "$with_gnu_ld" = yes; then
8369 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8372 soname_spec='${libname}${release}${shared_ext}$major'
8373 shlibpath_var=LD_LIBRARY_PATH
8374 case $host_vendor in
8376 shlibpath_overrides_runpath=no
8378 export_dynamic_flag_spec='${wl}-Blargedynsym'
8379 runpath_var=LD_RUN_PATH
8387 shlibpath_overrides_runpath=no
8388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8394 if test -d /usr/nec ;then
8396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8397 soname_spec='$libname${shared_ext}.$major'
8398 shlibpath_var=LD_LIBRARY_PATH
8404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8405 soname_spec='${libname}${release}${shared_ext}$major'
8406 shlibpath_var=LD_LIBRARY_PATH
8413 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8414 echo "${ECHO_T}$dynamic_linker" >&6
8415 test "$dynamic_linker" = no && can_build_shared=no
8417 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8418 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8420 if test -n "$hardcode_libdir_flag_spec" || \
8421 test -n "$runpath_var" || \
8422 test "X$hardcode_automatic" = "Xyes" ; then
8424 # We can hardcode non-existant directories.
8425 if test "$hardcode_direct" != no &&
8426 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8427 # have to relink, otherwise we might link with an installed library
8428 # when we should be linking with a yet-to-be-installed one
8429 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8430 test "$hardcode_minus_L" != no; then
8431 # Linking always hardcodes the temporary library directory.
8432 hardcode_action=relink
8434 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8435 hardcode_action=immediate
8438 # We cannot hardcode anything, or else we can only hardcode existing
8440 hardcode_action=unsupported
8442 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8443 echo "${ECHO_T}$hardcode_action" >&6
8445 if test "$hardcode_action" = relink; then
8446 # Fast installation is not supported
8447 enable_fast_install=no
8448 elif test "$shlibpath_overrides_runpath" = yes ||
8449 test "$enable_shared" = no; then
8450 # Fast installation is not necessary
8451 enable_fast_install=needless
8456 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8457 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8458 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8459 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8460 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8461 echo "$as_me:$LINENO: result: yes" >&5
8462 echo "${ECHO_T}yes" >&6
8464 # FIXME - insert some real tests, host_os isn't really good enough
8467 if test -n "$STRIP" ; then
8468 striplib="$STRIP -x"
8469 echo "$as_me:$LINENO: result: yes" >&5
8470 echo "${ECHO_T}yes" >&6
8472 echo "$as_me:$LINENO: result: no" >&5
8473 echo "${ECHO_T}no" >&6
8477 echo "$as_me:$LINENO: result: no" >&5
8478 echo "${ECHO_T}no" >&6
8483 if test "x$enable_dlopen" != xyes; then
8484 enable_dlopen=unknown
8485 enable_dlopen_self=unknown
8486 enable_dlopen_self_static=unknown
8493 lt_cv_dlopen="load_add_on"
8495 lt_cv_dlopen_self=yes
8499 lt_cv_dlopen="LoadLibrary"
8504 lt_cv_dlopen="dlopen"
8509 # if libdl is installed we need to link against it
8510 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8511 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8512 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 ac_check_lib_save_LIBS=$LIBS
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8524 /* Override any gcc2 internal prototype to avoid an error. */
8528 /* We use char because int might match the return type of a gcc2
8529 builtin and then its argument prototype would still apply. */
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541 (eval $ac_link) 2>conftest.er1
8543 grep -v '^ *+' conftest.er1 >conftest.err
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try='test -z "$ac_c_werror_flag"
8549 || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_lib_dl_dlopen=yes
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 ac_cv_lib_dl_dlopen=no
8568 rm -f conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8572 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8573 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8574 if test $ac_cv_lib_dl_dlopen = yes; then
8575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8580 lt_cv_dlopen_self=yes
8587 echo "$as_me:$LINENO: checking for shl_load" >&5
8588 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8589 if test "${ac_cv_func_shl_load+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8598 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8600 #define shl_load innocuous_shl_load
8602 /* System header to define __stub macros and hopefully few prototypes,
8603 which can conflict with char shl_load (); below.
8604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8605 <limits.h> exists even on freestanding compilers. */
8608 # include <limits.h>
8610 # include <assert.h>
8615 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8623 /* The GNU C library defines this for functions which it implements
8624 to always fail with ENOSYS. Some functions are actually named
8625 something starting with __ and the normal name is an alias. */
8626 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8629 char (*f) () = shl_load;
8638 return f != shl_load;
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645 (eval $ac_link) 2>conftest.er1
8647 grep -v '^ *+' conftest.er1 >conftest.err
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag"
8653 || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_func_shl_load=yes
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 ac_cv_func_shl_load=no
8672 rm -f conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8676 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8677 if test $ac_cv_func_shl_load = yes; then
8678 lt_cv_dlopen="shl_load"
8680 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8681 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8682 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 ac_check_lib_save_LIBS=$LIBS
8687 cat >conftest.$ac_ext <<_ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8694 /* Override any gcc2 internal prototype to avoid an error. */
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8713 grep -v '^ *+' conftest.er1 >conftest.err
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag"
8719 || test ! -s conftest.err'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; } &&
8725 { ac_try='test -s conftest$ac_exeext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 ac_cv_lib_dld_shl_load=yes
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 ac_cv_lib_dld_shl_load=no
8738 rm -f conftest.err conftest.$ac_objext \
8739 conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8742 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8743 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8744 if test $ac_cv_lib_dld_shl_load = yes; then
8745 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8747 echo "$as_me:$LINENO: checking for dlopen" >&5
8748 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8749 if test "${ac_cv_func_dlopen+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8760 #define dlopen innocuous_dlopen
8762 /* System header to define __stub macros and hopefully few prototypes,
8763 which can conflict with char dlopen (); below.
8764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8765 <limits.h> exists even on freestanding compilers. */
8768 # include <limits.h>
8770 # include <assert.h>
8775 /* Override any gcc2 internal prototype to avoid an error. */
8780 /* We use char because int might match the return type of a gcc2
8781 builtin and then its argument prototype would still apply. */
8783 /* The GNU C library defines this for functions which it implements
8784 to always fail with ENOSYS. Some functions are actually named
8785 something starting with __ and the normal name is an alias. */
8786 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8789 char (*f) () = dlopen;
8803 rm -f conftest.$ac_objext conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>conftest.er1
8807 grep -v '^ *+' conftest.er1 >conftest.err
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -z "$ac_c_werror_flag"
8813 || test ! -s conftest.err'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; } &&
8819 { ac_try='test -s conftest$ac_exeext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_func_dlopen=yes
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 ac_cv_func_dlopen=no
8832 rm -f conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8836 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8837 if test $ac_cv_func_dlopen = yes; then
8838 lt_cv_dlopen="dlopen"
8840 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8841 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 ac_check_lib_save_LIBS=$LIBS
8847 cat >conftest.$ac_ext <<_ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8854 /* Override any gcc2 internal prototype to avoid an error. */
8858 /* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8873 grep -v '^ *+' conftest.er1 >conftest.err
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag"
8879 || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_lib_dl_dlopen=yes
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8896 ac_cv_lib_dl_dlopen=no
8898 rm -f conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_check_lib_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8903 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8904 if test $ac_cv_lib_dl_dlopen = yes; then
8905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8907 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8908 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8909 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 ac_check_lib_save_LIBS=$LIBS
8914 cat >conftest.$ac_ext <<_ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8921 /* Override any gcc2 internal prototype to avoid an error. */
8925 /* We use char because int might match the return type of a gcc2
8926 builtin and then its argument prototype would still apply. */
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938 (eval $ac_link) 2>conftest.er1
8940 grep -v '^ *+' conftest.er1 >conftest.err
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -z "$ac_c_werror_flag"
8946 || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 ac_cv_lib_svld_dlopen=yes
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 ac_cv_lib_svld_dlopen=no
8965 rm -f conftest.err conftest.$ac_objext \
8966 conftest$ac_exeext conftest.$ac_ext
8967 LIBS=$ac_check_lib_save_LIBS
8969 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8970 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8971 if test $ac_cv_lib_svld_dlopen = yes; then
8972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8974 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8975 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8976 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 ac_check_lib_save_LIBS=$LIBS
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8988 /* Override any gcc2 internal prototype to avoid an error. */
8992 /* We use char because int might match the return type of a gcc2
8993 builtin and then its argument prototype would still apply. */
9003 rm -f conftest.$ac_objext conftest$ac_exeext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9005 (eval $ac_link) 2>conftest.er1
9007 grep -v '^ *+' conftest.er1 >conftest.err
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } &&
9012 { ac_try='test -z "$ac_c_werror_flag"
9013 || test ! -s conftest.err'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; } &&
9019 { ac_try='test -s conftest$ac_exeext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_cv_lib_dld_dld_link=yes
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9030 ac_cv_lib_dld_dld_link=no
9032 rm -f conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9034 LIBS=$ac_check_lib_save_LIBS
9036 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9037 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9038 if test $ac_cv_lib_dld_dld_link = yes; then
9039 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9060 if test "x$lt_cv_dlopen" != xno; then
9066 case $lt_cv_dlopen in
9068 save_CPPFLAGS="$CPPFLAGS"
9069 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9071 save_LDFLAGS="$LDFLAGS"
9072 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9075 LIBS="$lt_cv_dlopen_libs $LIBS"
9077 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9078 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9079 if test "${lt_cv_dlopen_self+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 if test "$cross_compiling" = yes; then :
9083 lt_cv_dlopen_self=cross
9085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9086 lt_status=$lt_dlunknown
9087 cat > conftest.$ac_ext <<EOF
9088 #line 9088 "configure"
9089 #include "confdefs.h"
9098 # define LT_DLGLOBAL RTLD_GLOBAL
9101 # define LT_DLGLOBAL DL_GLOBAL
9103 # define LT_DLGLOBAL 0
9107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9108 find out it does not work in some platform. */
9109 #ifndef LT_DLLAZY_OR_NOW
9111 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9114 # define LT_DLLAZY_OR_NOW DL_LAZY
9117 # define LT_DLLAZY_OR_NOW RTLD_NOW
9120 # define LT_DLLAZY_OR_NOW DL_NOW
9122 # define LT_DLLAZY_OR_NOW 0
9130 extern "C" void exit (int);
9133 void fnord() { int i=42;}
9136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9137 int status = $lt_dlunknown;
9141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9143 /* dlclose (self); */
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9154 (./conftest; exit; ) 2>/dev/null
9157 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9158 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9159 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9162 # compilation failed
9163 lt_cv_dlopen_self=no
9170 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9171 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9173 if test "x$lt_cv_dlopen_self" = xyes; then
9174 LDFLAGS="$LDFLAGS $link_static_flag"
9175 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9176 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9177 if test "${lt_cv_dlopen_self_static+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 if test "$cross_compiling" = yes; then :
9181 lt_cv_dlopen_self_static=cross
9183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9184 lt_status=$lt_dlunknown
9185 cat > conftest.$ac_ext <<EOF
9186 #line 9186 "configure"
9187 #include "confdefs.h"
9196 # define LT_DLGLOBAL RTLD_GLOBAL
9199 # define LT_DLGLOBAL DL_GLOBAL
9201 # define LT_DLGLOBAL 0
9205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9206 find out it does not work in some platform. */
9207 #ifndef LT_DLLAZY_OR_NOW
9209 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9212 # define LT_DLLAZY_OR_NOW DL_LAZY
9215 # define LT_DLLAZY_OR_NOW RTLD_NOW
9218 # define LT_DLLAZY_OR_NOW DL_NOW
9220 # define LT_DLLAZY_OR_NOW 0
9228 extern "C" void exit (int);
9231 void fnord() { int i=42;}
9234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9235 int status = $lt_dlunknown;
9239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9240 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9241 /* dlclose (self); */
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9252 (./conftest; exit; ) 2>/dev/null
9255 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9256 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9257 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9260 # compilation failed
9261 lt_cv_dlopen_self_static=no
9268 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9269 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9272 CPPFLAGS="$save_CPPFLAGS"
9273 LDFLAGS="$save_LDFLAGS"
9278 case $lt_cv_dlopen_self in
9279 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9280 *) enable_dlopen_self=unknown ;;
9283 case $lt_cv_dlopen_self_static in
9284 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9285 *) enable_dlopen_self_static=unknown ;;
9290 # Report which librarie types wil actually be built
9291 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9292 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9293 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9294 echo "${ECHO_T}$can_build_shared" >&6
9296 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9297 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9298 test "$can_build_shared" = "no" && enable_shared=no
9300 # On AIX, shared libraries and static libraries use the same namespace, and
9301 # are all built from PIC.
9304 test "$enable_shared" = yes && enable_static=no
9305 if test -n "$RANLIB"; then
9306 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9307 postinstall_cmds='$RANLIB $lib'
9312 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9313 test "$enable_shared" = yes && enable_static=no
9317 echo "$as_me:$LINENO: result: $enable_shared" >&5
9318 echo "${ECHO_T}$enable_shared" >&6
9320 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9321 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9322 # Make sure either enable_shared or enable_static is yes.
9323 test "$enable_shared" = yes || enable_static=yes
9324 echo "$as_me:$LINENO: result: $enable_static" >&5
9325 echo "${ECHO_T}$enable_static" >&6
9327 # The else clause should only fire when bootstrapping the
9328 # libtool distribution, otherwise you forgot to ship ltmain.sh
9329 # with your package, and you will get complaints that there are
9330 # no rules to generate ltmain.sh.
9331 if test -f "$ltmain"; then
9332 # See if we are running on zsh, and set the options which allow our commands through
9333 # without removal of \ escapes.
9334 if test -n "${ZSH_VERSION+set}" ; then
9335 setopt NO_GLOB_SUBST
9337 # Now quote all the things that may contain metacharacters while being
9338 # careful not to overquote the AC_SUBSTed values. We take copies of the
9339 # variables and quote the copies for generation of the libtool script.
9340 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9344 deplibs_check_method reload_flag reload_cmds need_locks \
9345 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9346 lt_cv_sys_global_symbol_to_c_name_address \
9347 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9348 old_postinstall_cmds old_postuninstall_cmds \
9352 lt_prog_compiler_wl \
9353 lt_prog_compiler_pic \
9354 lt_prog_compiler_static \
9355 lt_prog_compiler_no_builtin_flag \
9356 export_dynamic_flag_spec \
9357 thread_safe_flag_spec \
9358 whole_archive_flag_spec \
9359 enable_shared_with_static_runtimes \
9361 old_archive_from_new_cmds \
9366 compiler_lib_search_path \
9368 archive_expsym_cmds \
9370 postuninstall_cmds \
9371 old_archive_from_expsyms_cmds \
9372 allow_undefined_flag \
9374 export_symbols_cmds \
9375 hardcode_libdir_flag_spec \
9376 hardcode_libdir_flag_spec_ld \
9377 hardcode_libdir_separator \
9378 hardcode_automatic \
9380 module_expsym_cmds \
9381 lt_cv_prog_compiler_c_o \
9386 old_archive_cmds | \
9387 old_archive_from_new_cmds | \
9389 archive_expsym_cmds | \
9391 module_expsym_cmds | \
9392 old_archive_from_expsyms_cmds | \
9393 export_symbols_cmds | \
9394 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9395 postinstall_cmds | postuninstall_cmds | \
9396 old_postinstall_cmds | old_postuninstall_cmds | \
9397 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9398 # Double-quote double-evaled strings.
9399 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9408 *'\$0 --fallback-echo"')
9409 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9414 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9416 { echo "$as_me:$LINENO: creating $ofile" >&5
9417 echo "$as_me: creating $ofile" >&6;}
9419 cat <<__EOF__ >> "$cfgfile"
9422 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9423 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9424 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9426 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9427 # Free Software Foundation, Inc.
9429 # This file is part of GNU Libtool:
9430 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9432 # This program is free software; you can redistribute it and/or modify
9433 # it under the terms of the GNU General Public License as published by
9434 # the Free Software Foundation; either version 2 of the License, or
9435 # (at your option) any later version.
9437 # This program is distributed in the hope that it will be useful, but
9438 # WITHOUT ANY WARRANTY; without even the implied warranty of
9439 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9440 # General Public License for more details.
9442 # You should have received a copy of the GNU General Public License
9443 # along with this program; if not, write to the Free Software
9444 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9446 # As a special exception to the GNU General Public License, if you
9447 # distribute this file as part of a program that contains a
9448 # configuration script generated by Autoconf, you may include it under
9449 # the same distribution terms that you use for the rest of that program.
9451 # A sed program that does not truncate output.
9454 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9455 Xsed="$SED -e 1s/^X//"
9457 # The HP-UX ksh and POSIX shell print the target directory to stdout
9459 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9461 # The names of the tagged configurations supported by this script.
9464 # ### BEGIN LIBTOOL CONFIG
9466 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9468 # Shell to use when invoking shell scripts.
9471 # Whether or not to build shared libraries.
9472 build_libtool_libs=$enable_shared
9474 # Whether or not to build static libraries.
9475 build_old_libs=$enable_static
9477 # Whether or not to add -lc for building shared libraries.
9478 build_libtool_need_lc=$archive_cmds_need_lc
9480 # Whether or not to disallow shared libs when runtime libs are static
9481 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9483 # Whether or not to optimize for fast installation.
9484 fast_install=$enable_fast_install
9487 host_alias=$host_alias
9492 build_alias=$build_alias
9496 # An echo program that does not interpret backslashes.
9501 AR_FLAGS=$lt_AR_FLAGS
9506 # A language-specific compiler.
9509 # Is the compiler the GNU C compiler?
9515 # The linker used to build libraries.
9518 # Whether we need hard or soft links.
9521 # A BSD-compatible nm program.
9524 # A symbol stripping program
9527 # Used to examine libraries when file_magic_cmd begins "file"
9528 MAGIC_CMD=$MAGIC_CMD
9530 # Used on cygwin: DLL creation program.
9533 # Used on cygwin: object dumper.
9536 # Used on cygwin: assembler.
9539 # The name of the directory that contains temporary libtool files.
9542 # How to create reloadable object files.
9543 reload_flag=$lt_reload_flag
9544 reload_cmds=$lt_reload_cmds
9546 # How to pass a linker flag through the compiler.
9547 wl=$lt_lt_prog_compiler_wl
9549 # Object file suffix (normally "o").
9552 # Old archive suffix (normally "a").
9555 # Shared library suffix (normally ".so").
9556 shrext_cmds='$shrext_cmds'
9558 # Executable file suffix (normally "").
9561 # Additional compiler flags for building library objects.
9562 pic_flag=$lt_lt_prog_compiler_pic
9565 # What is the maximum length of a command?
9566 max_cmd_len=$lt_cv_sys_max_cmd_len
9568 # Does compiler simultaneously support -c and -o options?
9569 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9571 # Must we lock files when doing compilation?
9572 need_locks=$lt_need_locks
9574 # Do we need the lib prefix for modules?
9575 need_lib_prefix=$need_lib_prefix
9577 # Do we need a version for libraries?
9578 need_version=$need_version
9580 # Whether dlopen is supported.
9581 dlopen_support=$enable_dlopen
9583 # Whether dlopen of programs is supported.
9584 dlopen_self=$enable_dlopen_self
9586 # Whether dlopen of statically linked programs is supported.
9587 dlopen_self_static=$enable_dlopen_self_static
9589 # Compiler flag to prevent dynamic linking.
9590 link_static_flag=$lt_lt_prog_compiler_static
9592 # Compiler flag to turn off builtin functions.
9593 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9595 # Compiler flag to allow reflexive dlopens.
9596 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9598 # Compiler flag to generate shared objects directly from archives.
9599 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9601 # Compiler flag to generate thread-safe objects.
9602 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9604 # Library versioning type.
9605 version_type=$version_type
9607 # Format of library name prefix.
9608 libname_spec=$lt_libname_spec
9610 # List of archive names. First name is the real one, the rest are links.
9611 # The last name is the one that the linker finds with -lNAME.
9612 library_names_spec=$lt_library_names_spec
9614 # The coded name of the library, if different from the real name.
9615 soname_spec=$lt_soname_spec
9617 # Commands used to build and install an old-style archive.
9619 old_archive_cmds=$lt_old_archive_cmds
9620 old_postinstall_cmds=$lt_old_postinstall_cmds
9621 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9623 # Create an old-style archive from a shared archive.
9624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9626 # Create a temporary old-style archive to link instead of a shared archive.
9627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9629 # Commands used to build and install a shared archive.
9630 archive_cmds=$lt_archive_cmds
9631 archive_expsym_cmds=$lt_archive_expsym_cmds
9632 postinstall_cmds=$lt_postinstall_cmds
9633 postuninstall_cmds=$lt_postuninstall_cmds
9635 # Commands used to build a loadable module (assumed same as above if empty)
9636 module_cmds=$lt_module_cmds
9637 module_expsym_cmds=$lt_module_expsym_cmds
9639 # Commands to strip libraries.
9640 old_striplib=$lt_old_striplib
9641 striplib=$lt_striplib
9643 # Dependencies to place before the objects being linked to create a
9645 predep_objects=$lt_predep_objects
9647 # Dependencies to place after the objects being linked to create a
9649 postdep_objects=$lt_postdep_objects
9651 # Dependencies to place before the objects being linked to create a
9655 # Dependencies to place after the objects being linked to create a
9657 postdeps=$lt_postdeps
9659 # The library search path used internally by the compiler when linking
9661 compiler_lib_search_path=$lt_compiler_lib_search_path
9663 # Method to check whether dependent libraries are shared objects.
9664 deplibs_check_method=$lt_deplibs_check_method
9666 # Command to use when deplibs_check_method == file_magic.
9667 file_magic_cmd=$lt_file_magic_cmd
9669 # Flag that allows shared libraries with undefined symbols to be built.
9670 allow_undefined_flag=$lt_allow_undefined_flag
9672 # Flag that forces no undefined symbols.
9673 no_undefined_flag=$lt_no_undefined_flag
9675 # Commands used to finish a libtool library installation in a directory.
9676 finish_cmds=$lt_finish_cmds
9678 # Same as above, but a single script fragment to be evaled but not shown.
9679 finish_eval=$lt_finish_eval
9681 # Take the output of nm and produce a listing of raw symbols and C names.
9682 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9684 # Transform the output of nm in a proper C declaration
9685 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9687 # Transform the output of nm in a C name address pair
9688 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9690 # This is the shared library runtime path variable.
9691 runpath_var=$runpath_var
9693 # This is the shared library path variable.
9694 shlibpath_var=$shlibpath_var
9696 # Is shlibpath searched before the hard-coded library search path?
9697 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9699 # How to hardcode a shared library path into an executable.
9700 hardcode_action=$hardcode_action
9702 # Whether we should hardcode library paths into libraries.
9703 hardcode_into_libs=$hardcode_into_libs
9705 # Flag to hardcode \$libdir into a binary during linking.
9706 # This must work even if \$libdir does not exist.
9707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9709 # If ld is used when linking, flag to hardcode \$libdir into
9710 # a binary during linking. This must work even if \$libdir does
9712 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9714 # Whether we need a single -rpath flag with a separated argument.
9715 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9717 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9719 hardcode_direct=$hardcode_direct
9721 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9723 hardcode_minus_L=$hardcode_minus_L
9725 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9726 # the resulting binary.
9727 hardcode_shlibpath_var=$hardcode_shlibpath_var
9729 # Set to yes if building a shared library automatically hardcodes DIR into the library
9730 # and all subsequent libraries and executables linked against it.
9731 hardcode_automatic=$hardcode_automatic
9733 # Variables whose values should be saved in libtool wrapper scripts and
9734 # restored at relink time.
9735 variables_saved_for_relink="$variables_saved_for_relink"
9737 # Whether libtool must link a program against all its dependency libraries.
9738 link_all_deplibs=$link_all_deplibs
9740 # Compile-time system search path for libraries
9741 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9743 # Run-time system search path for libraries
9744 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9746 # Fix the shell variable \$srcfile for the compiler.
9747 fix_srcfile_path="$fix_srcfile_path"
9749 # Set to yes if exported symbols are required.
9750 always_export_symbols=$always_export_symbols
9752 # The commands to list exported symbols.
9753 export_symbols_cmds=$lt_export_symbols_cmds
9755 # The commands to extract the exported symbol list from a shared archive.
9756 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9758 # Symbols that should not be listed in the preloaded symbols.
9759 exclude_expsyms=$lt_exclude_expsyms
9761 # Symbols that must always be exported.
9762 include_expsyms=$lt_include_expsyms
9764 # ### END LIBTOOL CONFIG
9771 cat <<\EOF >> "$cfgfile"
9773 # AIX sometimes has problems with the GCC collect2 program. For some
9774 # reason, if we set the COLLECT_NAMES environment variable, the problems
9775 # vanish in a puff of smoke.
9776 if test "X${COLLECT_NAMES+set}" != Xset; then
9778 export COLLECT_NAMES
9784 # We use sed instead of cat because bash on DJGPP gets confused if
9785 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9786 # text mode, it properly converts lines to CR/LF. This bash problem
9787 # is reportedly fixed, but why not run on old versions too?
9788 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9790 mv -f "$cfgfile" "$ofile" || \
9791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9795 # If there is no Makefile yet, we rely on a make rule to execute
9796 # `config.status --recheck' to rerun these tests and create the
9797 # libtool script then.
9798 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9799 if test -f "$ltmain_in"; then
9800 test -f Makefile && make "$ltmain"
9806 ac_cpp='$CPP $CPPFLAGS'
9807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9814 # Check whether --with-tags or --without-tags was given.
9815 if test "${with_tags+set}" = set; then
9816 withval="$with_tags"
9820 if test -f "$ltmain" && test -n "$tagnames"; then
9821 if test ! -f "${ofile}"; then
9822 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9823 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9826 if test -z "$LTCC"; then
9827 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9828 if test -z "$LTCC"; then
9829 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9830 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9833 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9837 # Extract list of available tagged configurations in $ofile.
9838 # Note that this assumes the entire list is on one line.
9839 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9842 for tagname in $tagnames; do
9844 # Check whether tagname contains only valid characters
9845 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9847 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9848 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9849 { (exit 1); exit 1; }; }
9853 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9855 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9856 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9857 { (exit 1); exit 1; }; }
9860 # Update the list of available tags.
9861 if test -n "$tagname"; then
9862 echo appending configuration tag \"$tagname\" to $ofile
9866 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9867 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9868 (test "X$CXX" != "Xg++"))) ; then
9870 ac_cpp='$CXXCPP $CPPFLAGS'
9871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9878 archive_cmds_need_lc_CXX=no
9879 allow_undefined_flag_CXX=
9880 always_export_symbols_CXX=no
9881 archive_expsym_cmds_CXX=
9882 export_dynamic_flag_spec_CXX=
9883 hardcode_direct_CXX=no
9884 hardcode_libdir_flag_spec_CXX=
9885 hardcode_libdir_flag_spec_ld_CXX=
9886 hardcode_libdir_separator_CXX=
9887 hardcode_minus_L_CXX=no
9888 hardcode_automatic_CXX=no
9890 module_expsym_cmds_CXX=
9891 link_all_deplibs_CXX=unknown
9892 old_archive_cmds_CXX=$old_archive_cmds
9893 no_undefined_flag_CXX=
9894 whole_archive_flag_spec_CXX=
9895 enable_shared_with_static_runtimes_CXX=no
9897 # Dependencies to place before and after the object being linked:
9899 postdep_objects_CXX=
9902 compiler_lib_search_path_CXX=
9904 # Source file extension for C++ test sources.
9907 # Object file extension for compiled C++ test sources.
9911 # Code to be used in simple compile tests
9912 lt_simple_compile_test_code="int some_variable = 0;\n"
9914 # Code to be used in simple link tests
9915 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9917 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9919 # If no C compiler was specified, use CC.
9922 # Allow CC to be a program name with arguments.
9926 # save warnings/boilerplate of simple test code
9927 ac_outfile=conftest.$ac_objext
9928 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9929 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9930 _lt_compiler_boilerplate=`cat conftest.err`
9933 ac_outfile=conftest.$ac_objext
9934 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9935 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9936 _lt_linker_boilerplate=`cat conftest.err`
9940 # Allow CC to be a program name with arguments.
9945 lt_save_with_gnu_ld=$with_gnu_ld
9946 lt_save_path_LD=$lt_cv_path_LD
9947 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9948 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9950 unset lt_cv_prog_gnu_ld
9952 if test -n "${lt_cv_path_LDCXX+set}"; then
9953 lt_cv_path_LD=$lt_cv_path_LDCXX
9957 test -z "${LDCXX+set}" || LD=$LDCXX
9961 for cc_temp in $compiler""; do
9963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9969 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9972 # We don't want -fno-exception wen compiling C++ code, so set the
9973 # no_builtin_flag separately
9974 if test "$GXX" = yes; then
9975 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9977 lt_prog_compiler_no_builtin_flag_CXX=
9980 if test "$GXX" = yes; then
9981 # Set up default GNU C++ configuration
9984 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9985 if test "${with_gnu_ld+set}" = set; then
9986 withval="$with_gnu_ld"
9987 test "$withval" = no || with_gnu_ld=yes
9992 if test "$GCC" = yes; then
9993 # Check if gcc -print-prog-name=ld gives a path.
9994 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9995 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9998 # gcc leaves a trailing carriage return which upsets mingw
9999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10004 # Accept absolute paths.
10006 re_direlt='/[^/][^/]*/\.\./'
10007 # Canonicalize the pathname of ld
10008 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10009 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10010 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10012 test -z "$LD" && LD="$ac_prog"
10015 # If it fails, then pretend we aren't using GCC.
10019 # If it is relative, then search for the first ld in PATH.
10020 with_gnu_ld=unknown
10023 elif test "$with_gnu_ld" = yes; then
10024 echo "$as_me:$LINENO: checking for GNU ld" >&5
10025 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10027 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10028 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10030 if test "${lt_cv_path_LD+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 if test -z "$LD"; then
10034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10035 for ac_dir in $PATH; do
10037 test -z "$ac_dir" && ac_dir=.
10038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10039 lt_cv_path_LD="$ac_dir/$ac_prog"
10040 # Check to see if the program is GNU ld. I'd rather use --version,
10041 # but apparently some GNU ld's only accept -v.
10042 # Break only if it was the GNU/non-GNU ld that we prefer.
10043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10044 *GNU* | *'with BFD'*)
10045 test "$with_gnu_ld" != no && break
10048 test "$with_gnu_ld" != yes && break
10055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10059 LD="$lt_cv_path_LD"
10060 if test -n "$LD"; then
10061 echo "$as_me:$LINENO: result: $LD" >&5
10062 echo "${ECHO_T}$LD" >&6
10064 echo "$as_me:$LINENO: result: no" >&5
10065 echo "${ECHO_T}no" >&6
10067 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10068 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10069 { (exit 1); exit 1; }; }
10070 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10071 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10072 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10076 case `$LD -v 2>&1 </dev/null` in
10077 *GNU* | *'with BFD'*)
10078 lt_cv_prog_gnu_ld=yes
10081 lt_cv_prog_gnu_ld=no
10085 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10086 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10087 with_gnu_ld=$lt_cv_prog_gnu_ld
10091 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10092 # archiving commands below assume that GNU ld is being used.
10093 if test "$with_gnu_ld" = yes; then
10094 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095 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'
10097 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10098 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10100 # If archive_cmds runs LD, not CC, wlarc should be empty
10101 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10102 # investigate it a little bit more. (MM)
10105 # ancient GNU ld didn't support --whole-archive et. al.
10106 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10107 grep 'no-whole-archive' > /dev/null; then
10108 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10110 whole_archive_flag_spec_CXX=
10116 # A generic and very simple default shared library creation
10117 # command for GNU C++ for the case where it uses the native
10118 # linker, instead of GNU ld. If possible, this setting should
10119 # overridden to take advantage of the native linker features on
10120 # the platform it is being used on.
10121 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10124 # Commands to make compiler produce verbose output that lists
10125 # what "hidden" libraries, object files and flags are used when
10126 # linking a shared library.
10127 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10135 # PORTME: fill in a description of your system's C++ link characteristics
10136 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10137 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10141 # FIXME: insert proper C++ library support
10145 if test "$host_cpu" = ia64; then
10146 # On IA64, the linker does run time linking by default, so we don't
10147 # have to do anything special.
10148 aix_use_runtimelinking=no
10149 exp_sym_flag='-Bexport'
10152 aix_use_runtimelinking=no
10154 # Test if we are trying to use run time linking or normal
10155 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10156 # need to do runtime linking.
10157 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10158 for ld_flag in $LDFLAGS; do
10161 aix_use_runtimelinking=yes
10168 exp_sym_flag='-bexport'
10169 no_entry_flag='-bnoentry'
10172 # When large executables or shared objects are built, AIX ld can
10173 # have problems creating the table of contents. If linking a library
10174 # or program results in "error TOC overflow" add -mminimal-toc to
10175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10178 archive_cmds_CXX=''
10179 hardcode_direct_CXX=yes
10180 hardcode_libdir_separator_CXX=':'
10181 link_all_deplibs_CXX=yes
10183 if test "$GXX" = yes; then
10184 case $host_os in aix4.[012]|aix4.[012].*)
10185 # We only want to do this on AIX 4.2 and lower, the check
10186 # below for broken collect2 doesn't work under 4.3+
10187 collect2name=`${CC} -print-prog-name=collect2`
10188 if test -f "$collect2name" && \
10189 strings "$collect2name" | grep resolve_lib_name >/dev/null
10191 # We have reworked collect2
10192 hardcode_direct_CXX=yes
10194 # We have old collect2
10195 hardcode_direct_CXX=unsupported
10196 # It fails to find uninstalled libraries when the uninstalled
10197 # path is not listed in the libpath. Setting hardcode_minus_L
10198 # to unsupported forces relinking
10199 hardcode_minus_L_CXX=yes
10200 hardcode_libdir_flag_spec_CXX='-L$libdir'
10201 hardcode_libdir_separator_CXX=
10204 shared_flag='-shared'
10205 if test "$aix_use_runtimelinking" = yes; then
10206 shared_flag="$shared_flag "'${wl}-G'
10210 if test "$host_cpu" = ia64; then
10211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10212 # chokes on -Wl,-G. The following line is correct:
10215 if test "$aix_use_runtimelinking" = yes; then
10216 shared_flag='${wl}-G'
10218 shared_flag='${wl}-bM:SRE'
10223 # It seems that -bexpall does not export symbols beginning with
10224 # underscore (_), so it is better to generate a list of symbols to export.
10225 always_export_symbols_CXX=yes
10226 if test "$aix_use_runtimelinking" = yes; then
10227 # Warning - without using the other runtime loading flags (-brtl),
10228 # -berok will link without error, but may produce a broken library.
10229 allow_undefined_flag_CXX='-berok'
10230 # Determine the default libpath from the value encoded in an empty executable.
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248 (eval $ac_link) 2>conftest.er1
10250 grep -v '^ *+' conftest.er1 >conftest.err
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -z "$ac_cxx_werror_flag"
10256 || test ! -s conftest.err'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10271 # Check for a 64-bit object if we didn't find anything.
10272 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; }
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10279 rm -f conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10283 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10285 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"
10287 if test "$host_cpu" = ia64; then
10288 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10289 allow_undefined_flag_CXX="-z nodefs"
10290 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"
10292 # Determine the default libpath from the value encoded in an empty executable.
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>conftest.er1
10312 grep -v '^ *+' conftest.er1 >conftest.err
10314 cat conftest.err >&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -z "$ac_cxx_werror_flag"
10318 || test ! -s conftest.err'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; } &&
10324 { ac_try='test -s conftest$ac_exeext'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; }; then
10331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10333 # Check for a 64-bit object if we didn't find anything.
10334 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; }
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10341 rm -f conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10345 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10346 # Warning - without using the other run time loading flags,
10347 # -berok will link without error, but may produce a broken library.
10348 no_undefined_flag_CXX=' ${wl}-bernotok'
10349 allow_undefined_flag_CXX=' ${wl}-berok'
10350 # -bexpall does not export symbols beginning with underscore (_)
10351 always_export_symbols_CXX=yes
10352 # Exported symbols can be pulled into shared objects from archives
10353 whole_archive_flag_spec_CXX=' '
10354 archive_cmds_need_lc_CXX=yes
10355 # This is similar to how AIX traditionally builds it's shared libraries.
10356 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'
10361 case $cc_basename in
10363 # FIXME: insert proper C++ library support
10370 cygwin* | mingw* | pw32*)
10371 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10372 # as there is no search path for DLLs.
10373 hardcode_libdir_flag_spec_CXX='-L$libdir'
10374 allow_undefined_flag_CXX=unsupported
10375 always_export_symbols_CXX=no
10376 enable_shared_with_static_runtimes_CXX=yes
10378 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10379 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'
10380 # If the export-symbols file already is a .def file (1st line
10381 # is EXPORTS), use it as is; otherwise, prepend...
10382 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10383 cp $export_symbols $output_objdir/$soname.def;
10385 echo EXPORTS > $output_objdir/$soname.def;
10386 cat $export_symbols >> $output_objdir/$soname.def;
10388 $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'
10393 darwin* | rhapsody*)
10395 rhapsody* | darwin1.[012])
10396 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10399 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10400 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10402 case ${MACOSX_DEPLOYMENT_TARGET} in
10404 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10407 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10413 archive_cmds_need_lc_CXX=no
10414 hardcode_direct_CXX=no
10415 hardcode_automatic_CXX=yes
10416 hardcode_shlibpath_var_CXX=unsupported
10417 whole_archive_flag_spec_CXX=''
10418 link_all_deplibs_CXX=yes
10420 if test "$GXX" = yes ; then
10421 lt_int_apple_cc_single_mod=no
10422 output_verbose_link_cmd='echo'
10423 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10424 lt_int_apple_cc_single_mod=yes
10426 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10427 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10429 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'
10431 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10432 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10433 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10434 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}'
10436 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}'
10438 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}'
10440 case $cc_basename in
10442 output_verbose_link_cmd='echo'
10443 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'
10444 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10446 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}'
10447 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}'
10457 case $cc_basename in
10459 # FIXME: insert proper C++ library support
10463 # Green Hills C++ Compiler
10464 # FIXME: insert proper C++ library support
10468 # FIXME: insert proper C++ library support
10474 # C++ shared libraries reported to be fairly broken before switch to ELF
10478 archive_cmds_need_lc_CXX=no
10480 freebsd* | kfreebsd*-gnu | dragonfly*)
10481 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10488 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10489 hardcode_libdir_separator_CXX=:
10490 export_dynamic_flag_spec_CXX='${wl}-E'
10491 hardcode_direct_CXX=yes
10492 hardcode_minus_L_CXX=yes # Not in the search PATH,
10493 # but as the default
10494 # location of the library.
10496 case $cc_basename in
10498 # FIXME: insert proper C++ library support
10502 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'
10503 # Commands to make compiler produce verbose output that lists
10504 # what "hidden" libraries, object files and flags are used when
10505 # linking a shared library.
10507 # There doesn't appear to be a way to prevent this compiler from
10508 # explicitly linking system object files so we need to strip them
10509 # from the output so that they don't get included in the library
10511 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'
10514 if test "$GXX" = yes; then
10515 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'
10517 # FIXME: insert proper C++ library support
10524 if test $with_gnu_ld = no; then
10525 case "$host_cpu" in
10527 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10528 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10529 hardcode_libdir_separator_CXX=:
10532 hardcode_libdir_flag_spec_CXX='-L$libdir'
10535 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10536 hardcode_libdir_separator_CXX=:
10537 export_dynamic_flag_spec_CXX='${wl}-E'
10541 case "$host_cpu" in
10543 hardcode_direct_CXX=no
10544 hardcode_shlibpath_var_CXX=no
10547 hardcode_direct_CXX=no
10548 hardcode_shlibpath_var_CXX=no
10549 hardcode_minus_L_CXX=yes # Not in the search PATH,
10550 # but as the default
10551 # location of the library.
10554 hardcode_direct_CXX=yes
10555 hardcode_minus_L_CXX=yes # Not in the search PATH,
10556 # but as the default
10557 # location of the library.
10561 case $cc_basename in
10563 # FIXME: insert proper C++ library support
10567 case "$host_cpu" in
10569 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10572 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10575 # Commands to make compiler produce verbose output that lists
10576 # what "hidden" libraries, object files and flags are used when
10577 # linking a shared library.
10579 # There doesn't appear to be a way to prevent this compiler from
10580 # explicitly linking system object files so we need to strip them
10581 # from the output so that they don't get included in the library
10583 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'
10586 if test "$GXX" = yes; then
10587 if test $with_gnu_ld = no; then
10588 case "$host_cpu" in
10590 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10593 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'
10598 # FIXME: insert proper C++ library support
10605 case $cc_basename in
10608 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'
10610 # Archives containing C++ object files must be created using
10611 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10612 # necessary to make sure instantiated templates are included
10614 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10617 if test "$GXX" = yes; then
10618 if test "$with_gnu_ld" = no; then
10619 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'
10621 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'
10624 link_all_deplibs_CXX=yes
10627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10628 hardcode_libdir_separator_CXX=:
10631 case $cc_basename in
10633 # Kuck and Associates, Inc. (KAI) C++ Compiler
10635 # KCC will only create a shared library if the output file
10636 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10637 # to its proper name (with version) after linking.
10638 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'
10639 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'
10640 # Commands to make compiler produce verbose output that lists
10641 # what "hidden" libraries, object files and flags are used when
10642 # linking a shared library.
10644 # There doesn't appear to be a way to prevent this compiler from
10645 # explicitly linking system object files so we need to strip them
10646 # from the output so that they don't get included in the library
10648 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'
10650 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10651 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10653 # Archives containing C++ object files must be created using
10654 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10655 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10660 # version 8.0 and above of icpc choke on multiply defined symbols
10661 # if we add $predep_objects and $postdep_objects, however 7.1 and
10662 # earlier do not add the objects themselves.
10663 case `$CC -V 2>&1` in
10665 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10666 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'
10668 *) # Version 8.0 or newer
10671 ia64*) tmp_idyn=' -i_dynamic';;
10673 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10674 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'
10677 archive_cmds_need_lc_CXX=no
10678 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10680 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10683 # Portland Group C++ compiler
10684 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10685 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'
10687 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10689 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'
10693 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10694 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'
10696 runpath_var=LD_RUN_PATH
10697 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10698 hardcode_libdir_separator_CXX=:
10700 # Commands to make compiler produce verbose output that lists
10701 # what "hidden" libraries, object files and flags are used when
10702 # linking a shared library.
10704 # There doesn't appear to be a way to prevent this compiler from
10705 # explicitly linking system object files so we need to strip them
10706 # from the output so that they don't get included in the library
10708 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'
10713 # FIXME: insert proper C++ library support
10717 # FIXME: insert proper C++ library support
10721 case $cc_basename in
10723 # FIXME: insert proper C++ library support
10727 # FIXME: insert proper C++ library support
10733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10734 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10736 hardcode_libdir_flag_spec_CXX='-R$libdir'
10737 hardcode_direct_CXX=yes
10738 hardcode_shlibpath_var_CXX=no
10740 # Workaround some broken pre-1.5 toolchains
10741 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10744 # C++ shared libraries are fairly broken
10748 hardcode_direct_CXX=yes
10749 hardcode_shlibpath_var_CXX=no
10750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10753 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10754 export_dynamic_flag_spec_CXX='${wl}-E'
10755 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10757 output_verbose_link_cmd='echo'
10760 case $cc_basename in
10762 # Kuck and Associates, Inc. (KAI) C++ Compiler
10764 # KCC will only create a shared library if the output file
10765 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10766 # to its proper name (with version) after linking.
10767 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'
10769 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10770 hardcode_libdir_separator_CXX=:
10772 # Archives containing C++ object files must be created using
10773 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10774 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10778 # Rational C++ 2.4.1
10779 # FIXME: insert proper C++ library support
10783 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10784 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'
10786 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10787 hardcode_libdir_separator_CXX=:
10789 # Commands to make compiler produce verbose output that lists
10790 # what "hidden" libraries, object files and flags are used when
10791 # linking a shared library.
10793 # There doesn't appear to be a way to prevent this compiler from
10794 # explicitly linking system object files so we need to strip them
10795 # from the output so that they don't get included in the library
10797 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'
10800 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10801 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10802 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'
10804 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10805 hardcode_libdir_separator_CXX=:
10807 # Commands to make compiler produce verbose output that lists
10808 # what "hidden" libraries, object files and flags are used when
10809 # linking a shared library.
10810 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10813 # FIXME: insert proper C++ library support
10820 case $cc_basename in
10822 # Kuck and Associates, Inc. (KAI) C++ Compiler
10824 # KCC will only create a shared library if the output file
10825 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10826 # to its proper name (with version) after linking.
10827 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'
10829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10830 hardcode_libdir_separator_CXX=:
10832 # Archives containing C++ object files must be created using
10833 # the KAI C++ compiler.
10834 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10837 # Rational C++ 2.4.1
10838 # FIXME: insert proper C++ library support
10842 allow_undefined_flag_CXX=' -expect_unresolved \*'
10843 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'
10844 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10845 echo "-hidden">> $lib.exp~
10846 $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~
10849 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10850 hardcode_libdir_separator_CXX=:
10852 # Commands to make compiler produce verbose output that lists
10853 # what "hidden" libraries, object files and flags are used when
10854 # linking a shared library.
10856 # There doesn't appear to be a way to prevent this compiler from
10857 # explicitly linking system object files so we need to strip them
10858 # from the output so that they don't get included in the library
10860 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'
10863 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10864 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10865 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'
10867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10868 hardcode_libdir_separator_CXX=:
10870 # Commands to make compiler produce verbose output that lists
10871 # what "hidden" libraries, object files and flags are used when
10872 # linking a shared library.
10873 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10876 # FIXME: insert proper C++ library support
10883 # FIXME: insert proper C++ library support
10887 archive_cmds_need_lc_CXX=no
10888 case $cc_basename in
10890 # FIXME: insert proper C++ library support
10894 # FIXME: insert proper C++ library support
10900 case $cc_basename in
10903 # FIXME: insert proper C++ library support
10908 # FIXME: insert proper C++ library support
10912 # FIXME: insert proper C++ library support
10918 case $cc_basename in
10920 # Sun C++ 4.2, 5.x and Centerline C++
10921 no_undefined_flag_CXX=' -zdefs'
10922 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10923 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10924 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10926 hardcode_libdir_flag_spec_CXX='-R$libdir'
10927 hardcode_shlibpath_var_CXX=no
10929 solaris2.[0-5] | solaris2.[0-5].*) ;;
10931 # The C++ compiler is used as linker so we must use $wl
10932 # flag to pass the commands to the underlying system
10933 # linker. We must also pass each convience library through
10934 # to the system linker between allextract/defaultextract.
10935 # The C++ compiler will combine linker options so we
10936 # cannot just pass the convience library names through
10938 # Supported since Solaris 2.6 (maybe 2.5.1?)
10939 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'
10942 link_all_deplibs_CXX=yes
10944 # Commands to make compiler produce verbose output that lists
10945 # what "hidden" libraries, object files and flags are used when
10946 # linking a shared library.
10948 # There doesn't appear to be a way to prevent this compiler from
10949 # explicitly linking system object files so we need to strip them
10950 # from the output so that they don't get included in the library
10952 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10954 # Archives containing C++ object files must be created using
10955 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10956 # necessary to make sure instantiated templates are included
10958 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10961 # Green Hills C++ Compiler
10962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10964 # The C++ compiler must be used to create the archive.
10965 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10968 # GNU C++ compiler with Solaris linker
10969 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10970 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10971 if $CC --version | grep -v '^2\.7' > /dev/null; then
10972 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10973 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10974 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10976 # Commands to make compiler produce verbose output that lists
10977 # what "hidden" libraries, object files and flags are used when
10978 # linking a shared library.
10979 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10981 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10983 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10984 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10985 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10987 # Commands to make compiler produce verbose output that lists
10988 # what "hidden" libraries, object files and flags are used when
10989 # linking a shared library.
10990 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10993 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10998 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10999 archive_cmds_need_lc_CXX=no
11002 case $cc_basename in
11004 # NonStop-UX NCC 3.20
11005 # FIXME: insert proper C++ library support
11009 # FIXME: insert proper C++ library support
11015 # FIXME: insert proper C++ library support
11019 # FIXME: insert proper C++ library support
11023 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11024 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11025 test "$ld_shlibs_CXX" = no && can_build_shared=no
11031 cat > conftest.$ac_ext <<EOF
11035 Foo (void) { a = 0; }
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; then
11046 # Parse the compiler output and extract the necessary
11047 # objects, libraries and library flags.
11049 # Sentinel used to keep track of whether or not we are before
11050 # the conftest object file.
11051 pre_test_object_deps_done=no
11053 # The `*' in the case matches for architectures that use `case' in
11054 # $output_verbose_cmd can trigger glob expansion during the loop
11055 # eval without this substitution.
11056 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11058 for p in `eval $output_verbose_link_cmd`; do
11062 # Some compilers place space between "-{L,R}" and the path.
11063 # Remove the space.
11064 if test $p = "-L" \
11065 || test $p = "-R"; then
11072 if test "$pre_test_object_deps_done" = no; then
11075 # Internal compiler library paths should come after those
11076 # provided the user. The postdeps already come after the
11077 # user supplied libs so there is no need to process them.
11078 if test -z "$compiler_lib_search_path_CXX"; then
11079 compiler_lib_search_path_CXX="${prev}${p}"
11081 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11084 # The "-l" case would never come before the object being
11085 # linked, so don't bother handling this case.
11088 if test -z "$postdeps_CXX"; then
11089 postdeps_CXX="${prev}${p}"
11091 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11097 # This assumes that the test object file only shows up
11098 # once in the compiler output.
11099 if test "$p" = "conftest.$objext"; then
11100 pre_test_object_deps_done=yes
11104 if test "$pre_test_object_deps_done" = no; then
11105 if test -z "$predep_objects_CXX"; then
11106 predep_objects_CXX="$p"
11108 predep_objects_CXX="$predep_objects_CXX $p"
11111 if test -z "$postdep_objects_CXX"; then
11112 postdep_objects_CXX="$p"
11114 postdep_objects_CXX="$postdep_objects_CXX $p"
11119 *) ;; # Ignore the rest.
11127 echo "libtool.m4: error: problem compiling CXX test program"
11130 $rm -f confest.$objext
11132 case " $postdeps_CXX " in
11133 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11136 lt_prog_compiler_wl_CXX=
11137 lt_prog_compiler_pic_CXX=
11138 lt_prog_compiler_static_CXX=
11140 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11141 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11143 # C++ specific cases for pic, static, wl, etc.
11144 if test "$GXX" = yes; then
11145 lt_prog_compiler_wl_CXX='-Wl,'
11146 lt_prog_compiler_static_CXX='-static'
11150 # All AIX code is PIC.
11151 if test "$host_cpu" = ia64; then
11152 # AIX 5 now supports IA64 processor
11153 lt_prog_compiler_static_CXX='-Bstatic'
11157 # FIXME: we need at least 68020 code to build shared libraries, but
11158 # adding the `-m68020' flag to GCC prevents building anything better,
11160 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11162 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11163 # PIC is the default for these OSes.
11165 mingw* | os2* | pw32*)
11166 # This hack is so that the source file can tell whether it is being
11167 # built for inclusion in a dll (and should export symbols for example).
11168 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11170 darwin* | rhapsody*)
11171 # PIC is the default on this platform
11172 # Common symbols not allowed in MH_DYLIB files
11173 lt_prog_compiler_pic_CXX='-fno-common'
11176 # DJGPP does not support shared libraries at all
11177 lt_prog_compiler_pic_CXX=
11180 if test -d /usr/nec; then
11181 lt_prog_compiler_pic_CXX=-Kconform_pic
11185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11186 # not for PA HP-UX.
11187 case "$host_cpu" in
11191 lt_prog_compiler_pic_CXX='-fPIC'
11196 lt_prog_compiler_pic_CXX='-fPIC'
11202 # All AIX code is PIC.
11203 if test "$host_cpu" = ia64; then
11204 # AIX 5 now supports IA64 processor
11205 lt_prog_compiler_static_CXX='-Bstatic'
11207 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11211 case $cc_basename in
11213 # Green Hills C++ Compiler
11214 # _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"
11219 # PIC is the default on this platform
11220 # Common symbols not allowed in MH_DYLIB files
11221 case $cc_basename in
11223 lt_prog_compiler_pic_CXX='-qnocommon'
11224 lt_prog_compiler_wl_CXX='-Wl,'
11229 case $cc_basename in
11231 lt_prog_compiler_pic_CXX='-KPIC'
11234 # Green Hills C++ Compiler
11235 lt_prog_compiler_pic_CXX='-pic'
11241 freebsd* | kfreebsd*-gnu | dragonfly*)
11242 # FreeBSD uses GNU C++
11244 hpux9* | hpux10* | hpux11*)
11245 case $cc_basename in
11247 lt_prog_compiler_wl_CXX='-Wl,'
11248 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11249 if test "$host_cpu" != ia64; then
11250 lt_prog_compiler_pic_CXX='+Z'
11254 lt_prog_compiler_wl_CXX='-Wl,'
11255 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11256 case "$host_cpu" in
11261 lt_prog_compiler_pic_CXX='+Z'
11269 irix5* | irix6* | nonstopux*)
11270 case $cc_basename in
11272 lt_prog_compiler_wl_CXX='-Wl,'
11273 lt_prog_compiler_static_CXX='-non_shared'
11274 # CC pic flag -KPIC is the default.
11281 case $cc_basename in
11284 lt_prog_compiler_wl_CXX='--backend -Wl,'
11285 lt_prog_compiler_pic_CXX='-fPIC'
11289 lt_prog_compiler_wl_CXX='-Wl,'
11290 lt_prog_compiler_pic_CXX='-KPIC'
11291 lt_prog_compiler_static_CXX='-static'
11294 # Portland Group C++ compiler.
11295 lt_prog_compiler_wl_CXX='-Wl,'
11296 lt_prog_compiler_pic_CXX='-fpic'
11297 lt_prog_compiler_static_CXX='-static'
11301 # Make sure the PIC flag is empty. It appears that all Alpha
11302 # Linux and Compaq Tru64 Unix objects are PIC.
11303 lt_prog_compiler_pic_CXX=
11304 lt_prog_compiler_static_CXX='-non_shared'
11315 case $cc_basename in
11317 lt_prog_compiler_pic_CXX='-W c,exportall'
11325 osf3* | osf4* | osf5*)
11326 case $cc_basename in
11328 lt_prog_compiler_wl_CXX='--backend -Wl,'
11331 # Rational C++ 2.4.1
11332 lt_prog_compiler_pic_CXX='-pic'
11335 # Digital/Compaq C++
11336 lt_prog_compiler_wl_CXX='-Wl,'
11337 # Make sure the PIC flag is empty. It appears that all Alpha
11338 # Linux and Compaq Tru64 Unix objects are PIC.
11339 lt_prog_compiler_pic_CXX=
11340 lt_prog_compiler_static_CXX='-non_shared'
11349 case $cc_basename in
11351 lt_prog_compiler_pic_CXX='-fPIC'
11358 case $cc_basename in
11360 # Sun C++ 4.2, 5.x and Centerline C++
11361 lt_prog_compiler_pic_CXX='-KPIC'
11362 lt_prog_compiler_static_CXX='-Bstatic'
11363 lt_prog_compiler_wl_CXX='-Qoption ld '
11366 # Green Hills C++ Compiler
11367 lt_prog_compiler_pic_CXX='-PIC'
11374 case $cc_basename in
11377 lt_prog_compiler_pic_CXX='-pic'
11378 lt_prog_compiler_static_CXX='-Bstatic'
11382 lt_prog_compiler_pic_CXX='-pic'
11389 case $cc_basename in
11391 # NonStop-UX NCC 3.20
11392 lt_prog_compiler_pic_CXX='-KPIC'
11403 lt_prog_compiler_can_build_shared_CXX=no
11408 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11409 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11412 # Check to make sure the PIC flag actually works.
11414 if test -n "$lt_prog_compiler_pic_CXX"; then
11416 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11417 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11418 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 lt_prog_compiler_pic_works_CXX=no
11422 ac_outfile=conftest.$ac_objext
11423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11424 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11425 # Insert the option either (1) after the last *FLAGS variable, or
11426 # (2) before a word containing "conftest.", or (3) at the end.
11427 # Note that $ac_compile itself does not contain backslashes and begins
11428 # with a dollar sign (not a hyphen), so the echo should work correctly.
11429 # The option is referenced via a variable to avoid confusing sed.
11430 lt_compile=`echo "$ac_compile" | $SED \
11431 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11433 -e 's:$: $lt_compiler_flag:'`
11434 (eval echo "\"\$as_me:11434: $lt_compile\"" >&5)
11435 (eval "$lt_compile" 2>conftest.err)
11437 cat conftest.err >&5
11438 echo "$as_me:11438: \$? = $ac_status" >&5
11439 if (exit $ac_status) && test -s "$ac_outfile"; then
11440 # The compiler can only warn and ignore the option if not recognized
11441 # So say no if there are warnings other than the usual output.
11442 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11443 $SED '/^$/d' conftest.err >conftest.er2
11444 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11445 lt_prog_compiler_pic_works_CXX=yes
11451 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11452 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11454 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11455 case $lt_prog_compiler_pic_CXX in
11457 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11460 lt_prog_compiler_pic_CXX=
11461 lt_prog_compiler_can_build_shared_CXX=no
11466 # For platforms which do not support PIC, -DPIC is meaningless:
11468 lt_prog_compiler_pic_CXX=
11471 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11475 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11476 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11477 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 lt_cv_prog_compiler_c_o_CXX=no
11481 $rm -r conftest 2>/dev/null
11485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11487 lt_compiler_flag="-o out/conftest2.$ac_objext"
11488 # Insert the option either (1) after the last *FLAGS variable, or
11489 # (2) before a word containing "conftest.", or (3) at the end.
11490 # Note that $ac_compile itself does not contain backslashes and begins
11491 # with a dollar sign (not a hyphen), so the echo should work correctly.
11492 lt_compile=`echo "$ac_compile" | $SED \
11493 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11495 -e 's:$: $lt_compiler_flag:'`
11496 (eval echo "\"\$as_me:11496: $lt_compile\"" >&5)
11497 (eval "$lt_compile" 2>out/conftest.err)
11499 cat out/conftest.err >&5
11500 echo "$as_me:11500: \$? = $ac_status" >&5
11501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11503 # The compiler can only warn and ignore the option if not recognized
11504 # So say no if there are warnings
11505 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11506 $SED '/^$/d' out/conftest.err >out/conftest.er2
11507 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11508 lt_cv_prog_compiler_c_o_CXX=yes
11513 # SGI C++ compiler will create directory out/ii_files/ for
11514 # template instantiation
11515 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11516 $rm out/* && rmdir out
11522 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11523 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11526 hard_links="nottested"
11527 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11528 # do not overwrite the value of need_locks provided by the user
11529 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11530 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11535 ln conftest.a conftest.b 2>&5 || hard_links=no
11536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11537 echo "$as_me:$LINENO: result: $hard_links" >&5
11538 echo "${ECHO_T}$hard_links" >&6
11539 if test "$hard_links" = no; then
11540 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11541 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11548 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11549 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11551 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11554 # If we're using GNU nm, then we don't want the "-C" option.
11555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11556 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11557 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'
11559 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'
11563 export_symbols_cmds_CXX="$ltdll_cmds"
11566 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'
11569 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11573 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11574 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11575 test "$ld_shlibs_CXX" = no && can_build_shared=no
11577 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11578 if test "$GCC" = yes; then
11579 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11583 # Do we need to explicitly link libc?
11585 case "x$archive_cmds_need_lc_CXX" in
11587 # Assume -lc should be added
11588 archive_cmds_need_lc_CXX=yes
11590 if test "$enable_shared" = yes && test "$GCC" = yes; then
11591 case $archive_cmds_CXX in
11593 # FIXME: we may have to deal with multi-command sequences.
11596 # Test whether the compiler implicitly links with -lc since on some
11597 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11598 # to ld, don't add -lc before -lgcc.
11599 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11600 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11602 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11605 (eval $ac_compile) 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } 2>conftest.err; then
11611 libobjs=conftest.$ac_objext
11613 wl=$lt_prog_compiler_wl_CXX
11619 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11620 allow_undefined_flag_CXX=
11621 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11622 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }
11627 archive_cmds_need_lc_CXX=no
11629 archive_cmds_need_lc_CXX=yes
11631 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11633 cat conftest.err 1>&5
11636 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11637 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11644 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11645 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11646 library_names_spec=
11647 libname_spec='lib$name'
11651 postuninstall_cmds=
11655 shlibpath_overrides_runpath=unknown
11657 dynamic_linker="$host_os ld.so"
11658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11659 if test "$GCC" = yes; then
11660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11661 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11662 # if the path contains ";" then we assume it to be the separator
11663 # otherwise default to the standard path separator (i.e. ":") - it is
11664 # assumed that no part of a normal pathname contains ";" but that should
11665 # okay in the real world where ";" in dirpaths is itself problematic.
11666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11673 need_lib_prefix=unknown
11674 hardcode_into_libs=no
11676 # when you set need_version to no, make sure it does not cause -set_version
11677 # flags to be left without arguments
11678 need_version=unknown
11683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11684 shlibpath_var=LIBPATH
11686 # AIX 3 has no versioning support, so we append a major version to the name.
11687 soname_spec='${libname}${release}${shared_ext}$major'
11694 hardcode_into_libs=yes
11695 if test "$host_cpu" = ia64; then
11696 # AIX 5 supports IA64
11697 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11698 shlibpath_var=LD_LIBRARY_PATH
11700 # With GCC up to 2.95.x, collect2 would create an import file
11701 # for dependence libraries. The import file would start with
11702 # the line `#! .'. This would cause the generated library to
11703 # depend on `.', always an invalid library. This was fixed in
11704 # development snapshots of GCC prior to 3.0.
11706 aix4 | aix4.[01] | aix4.[01].*)
11707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11709 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11712 can_build_shared=no
11716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11717 # soname into executable. Probably we can add versioning support to
11718 # collect2, so additional links can be useful in future.
11719 if test "$aix_use_runtimelinking" = yes; then
11720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11721 # instead of lib<name>.a to let people know that these are not
11722 # typical AIX shared libraries.
11723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 # We preserve .a as extension for shared libraries through AIX4.2
11726 # and later when we are not doing run time linking.
11727 library_names_spec='${libname}${release}.a $libname.a'
11728 soname_spec='${libname}${release}${shared_ext}$major'
11730 shlibpath_var=LIBPATH
11735 library_names_spec='$libname.ixlibrary $libname.a'
11736 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11737 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'
11741 library_names_spec='${libname}${shared_ext}'
11742 dynamic_linker="$host_os ld.so"
11743 shlibpath_var=LIBRARY_PATH
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750 soname_spec='${libname}${release}${shared_ext}$major'
11751 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11754 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11755 # the default ld.so.conf also contains /usr/contrib/lib and
11756 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11757 # libtool to hard-code these into programs
11760 cygwin* | mingw* | pw32*)
11761 version_type=windows
11766 case $GCC,$host_os in
11767 yes,cygwin* | yes,mingw* | yes,pw32*)
11768 library_names_spec='$libname.dll.a'
11769 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11770 postinstall_cmds='base_file=`basename \${file}`~
11771 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11772 dldir=$destdir/`dirname \$dlpath`~
11773 test -d \$dldir || mkdir -p \$dldir~
11774 $install_prog $dir/$dlname \$dldir/$dlname'
11775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11776 dlpath=$dir/\$dldll~
11778 shlibpath_overrides_runpath=yes
11782 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11783 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11784 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11787 # MinGW DLLs use traditional 'lib' prefix
11788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11789 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11790 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11791 # It is most probably a Windows format PATH printed by
11792 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11793 # path with ; separators, and with drive letters. We can handle the
11794 # drive letters (cygwin fileutils understands them), so leave them,
11795 # especially as we might pass files found there to a mingw objdump,
11796 # which wouldn't understand a cygwinified path. Ahh.
11797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11803 # pw32 DLLs use 'pw' prefix rather than 'lib'
11804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11813 dynamic_linker='Win32 ld.exe'
11814 # FIXME: first we should search . and the directory the executable is in
11818 darwin* | rhapsody*)
11819 dynamic_linker="$host_os dyld"
11820 version_type=darwin
11823 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11824 soname_spec='${libname}${release}${major}$shared_ext'
11825 shlibpath_overrides_runpath=yes
11826 shlibpath_var=DYLD_LIBRARY_PATH
11827 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11828 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11829 if test "$GCC" = yes; then
11830 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"`
11832 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11834 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11842 soname_spec='${libname}${release}${shared_ext}$major'
11843 shlibpath_var=LD_LIBRARY_PATH
11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11855 soname_spec='${libname}${release}${shared_ext}$major'
11856 shlibpath_var=LD_LIBRARY_PATH
11857 shlibpath_overrides_runpath=no
11858 hardcode_into_libs=yes
11859 dynamic_linker='GNU ld.so'
11862 freebsd* | dragonfly*)
11863 # DragonFly does not have aout. When/if they implement a new
11864 # versioning mechanism, adjust this.
11865 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11866 version_type=freebsd-$objformat
11867 case $version_type in
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11878 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=yes
11883 freebsd3.[01]* | freebsdelf3.[01]*)
11884 shlibpath_overrides_runpath=yes
11885 hardcode_into_libs=yes
11888 shlibpath_overrides_runpath=no
11889 hardcode_into_libs=yes
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11899 soname_spec='${libname}${release}${shared_ext}$major'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 hardcode_into_libs=yes
11904 hpux9* | hpux10* | hpux11*)
11905 # Give a soname corresponding to the major version so that dld.sl refuses to
11906 # link against other versions.
11910 case "$host_cpu" in
11913 hardcode_into_libs=yes
11914 dynamic_linker="$host_os dld.so"
11915 shlibpath_var=LD_LIBRARY_PATH
11916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918 soname_spec='${libname}${release}${shared_ext}$major'
11919 if test "X$HPUX_IA64_MODE" = X32; then
11920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11922 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11928 hardcode_into_libs=yes
11929 dynamic_linker="$host_os dld.sl"
11930 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11939 dynamic_linker="$host_os dld.sl"
11940 shlibpath_var=SHLIB_PATH
11941 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943 soname_spec='${libname}${release}${shared_ext}$major'
11946 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11947 postinstall_cmds='chmod 555 $lib'
11950 irix5* | irix6* | nonstopux*)
11952 nonstopux*) version_type=nonstopux ;;
11954 if test "$lt_cv_prog_gnu_ld" = yes; then
11962 soname_spec='${libname}${release}${shared_ext}$major'
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11965 irix5* | nonstopux*)
11966 libsuff= shlibsuff=
11969 case $LD in # libtool.m4 will add one of these switches to LD
11970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11971 libsuff= shlibsuff= libmagic=32-bit;;
11972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11973 libsuff=32 shlibsuff=N32 libmagic=N32;;
11974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11976 *) libsuff= shlibsuff= libmagic=never-match;;
11980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11981 shlibpath_overrides_runpath=no
11982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11984 hardcode_into_libs=yes
11987 # No shared lib support for Linux oldld, aout, or coff.
11988 linux*oldld* | linux*aout* | linux*coff*)
11992 # This must be Linux ELF.
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11998 soname_spec='${libname}${release}${shared_ext}$major'
11999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12000 shlibpath_var=LD_LIBRARY_PATH
12001 shlibpath_overrides_runpath=no
12002 # This implies no fast_install, which is unacceptable.
12003 # Some rework will be needed to allow for fast_install
12004 # before this can be enabled.
12005 hardcode_into_libs=yes
12007 # Append ld.so.conf contents to the search path
12008 if test -f /etc/ld.so.conf; then
12009 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' ' '`
12010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12013 # We used to test for /lib/ld.so.1 and disable shared libraries on
12014 # powerpc, because MkLinux only supported shared libraries with the
12015 # GNU dynamic linker. Since this was broken with cross compilers,
12016 # most powerpc-linux boxes support dynamic linking these days and
12017 # people can always --disable-shared, the test was removed, and we
12018 # assume the GNU/Linux dynamic linker is in use.
12019 dynamic_linker='GNU/Linux ld.so'
12026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12027 soname_spec='${libname}${release}${shared_ext}$major'
12028 shlibpath_var=LD_LIBRARY_PATH
12029 shlibpath_overrides_runpath=no
12030 hardcode_into_libs=yes
12031 dynamic_linker='GNU ld.so'
12038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12041 dynamic_linker='NetBSD (a.out) ld.so'
12043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12044 soname_spec='${libname}${release}${shared_ext}$major'
12045 dynamic_linker='NetBSD ld.elf_so'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=yes
12049 hardcode_into_libs=yes
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055 shlibpath_var=LD_LIBRARY_PATH
12056 shlibpath_overrides_runpath=yes
12063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12064 soname_spec='${libname}${release}${shared_ext}$major'
12065 shlibpath_var=LD_LIBRARY_PATH
12066 shlibpath_overrides_runpath=yes
12072 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12074 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12075 *) need_version=no ;;
12077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12082 openbsd2.[89] | openbsd2.[89].*)
12083 shlibpath_overrides_runpath=no
12086 shlibpath_overrides_runpath=yes
12090 shlibpath_overrides_runpath=yes
12095 libname_spec='$name'
12098 library_names_spec='$libname${shared_ext} $libname.a'
12099 dynamic_linker='OS/2 ld.exe'
12100 shlibpath_var=LIBPATH
12103 osf3* | osf4* | osf5*)
12107 soname_spec='${libname}${release}${shared_ext}$major'
12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12109 shlibpath_var=LD_LIBRARY_PATH
12110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12116 soname_spec='${libname}${release}${shared_ext}$major'
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118 shlibpath_var=LD_LIBRARY_PATH
12125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12126 soname_spec='${libname}${release}${shared_ext}$major'
12127 shlibpath_var=LD_LIBRARY_PATH
12128 shlibpath_overrides_runpath=yes
12129 hardcode_into_libs=yes
12130 # ldd complains unless libraries are executable
12131 postinstall_cmds='chmod +x $lib'
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12138 shlibpath_var=LD_LIBRARY_PATH
12139 shlibpath_overrides_runpath=yes
12140 if test "$with_gnu_ld" = yes; then
12146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149 soname_spec='${libname}${release}${shared_ext}$major'
12150 shlibpath_var=LD_LIBRARY_PATH
12151 case $host_vendor in
12153 shlibpath_overrides_runpath=no
12155 export_dynamic_flag_spec='${wl}-Blargedynsym'
12156 runpath_var=LD_RUN_PATH
12164 shlibpath_overrides_runpath=no
12165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12171 if test -d /usr/nec ;then
12173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12174 soname_spec='$libname${shared_ext}.$major'
12175 shlibpath_var=LD_LIBRARY_PATH
12181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12182 soname_spec='${libname}${release}${shared_ext}$major'
12183 shlibpath_var=LD_LIBRARY_PATH
12190 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12191 echo "${ECHO_T}$dynamic_linker" >&6
12192 test "$dynamic_linker" = no && can_build_shared=no
12194 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12195 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12196 hardcode_action_CXX=
12197 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12198 test -n "$runpath_var_CXX" || \
12199 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12201 # We can hardcode non-existant directories.
12202 if test "$hardcode_direct_CXX" != no &&
12203 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12204 # have to relink, otherwise we might link with an installed library
12205 # when we should be linking with a yet-to-be-installed one
12206 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12207 test "$hardcode_minus_L_CXX" != no; then
12208 # Linking always hardcodes the temporary library directory.
12209 hardcode_action_CXX=relink
12211 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12212 hardcode_action_CXX=immediate
12215 # We cannot hardcode anything, or else we can only hardcode existing
12217 hardcode_action_CXX=unsupported
12219 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12220 echo "${ECHO_T}$hardcode_action_CXX" >&6
12222 if test "$hardcode_action_CXX" = relink; then
12223 # Fast installation is not supported
12224 enable_fast_install=no
12225 elif test "$shlibpath_overrides_runpath" = yes ||
12226 test "$enable_shared" = no; then
12227 # Fast installation is not necessary
12228 enable_fast_install=needless
12233 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12234 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12235 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12236 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12237 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12238 echo "$as_me:$LINENO: result: yes" >&5
12239 echo "${ECHO_T}yes" >&6
12241 # FIXME - insert some real tests, host_os isn't really good enough
12244 if test -n "$STRIP" ; then
12245 striplib="$STRIP -x"
12246 echo "$as_me:$LINENO: result: yes" >&5
12247 echo "${ECHO_T}yes" >&6
12249 echo "$as_me:$LINENO: result: no" >&5
12250 echo "${ECHO_T}no" >&6
12254 echo "$as_me:$LINENO: result: no" >&5
12255 echo "${ECHO_T}no" >&6
12260 if test "x$enable_dlopen" != xyes; then
12261 enable_dlopen=unknown
12262 enable_dlopen_self=unknown
12263 enable_dlopen_self_static=unknown
12270 lt_cv_dlopen="load_add_on"
12272 lt_cv_dlopen_self=yes
12276 lt_cv_dlopen="LoadLibrary"
12281 lt_cv_dlopen="dlopen"
12286 # if libdl is installed we need to link against it
12287 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12288 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 ac_check_lib_save_LIBS=$LIBS
12294 cat >conftest.$ac_ext <<_ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h. */
12301 /* Override any gcc2 internal prototype to avoid an error. */
12305 /* We use char because int might match the return type of a gcc2
12306 builtin and then its argument prototype would still apply. */
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12318 (eval $ac_link) 2>conftest.er1
12320 grep -v '^ *+' conftest.er1 >conftest.err
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_cxx_werror_flag"
12326 || test ! -s conftest.err'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; } &&
12332 { ac_try='test -s conftest$ac_exeext'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 ac_cv_lib_dl_dlopen=yes
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 ac_cv_lib_dl_dlopen=no
12345 rm -f conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12347 LIBS=$ac_check_lib_save_LIBS
12349 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12350 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12351 if test $ac_cv_lib_dl_dlopen = yes; then
12352 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12355 lt_cv_dlopen="dyld"
12357 lt_cv_dlopen_self=yes
12364 echo "$as_me:$LINENO: checking for shl_load" >&5
12365 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12366 if test "${ac_cv_func_shl_load+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12375 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12377 #define shl_load innocuous_shl_load
12379 /* System header to define __stub macros and hopefully few prototypes,
12380 which can conflict with char shl_load (); below.
12381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12382 <limits.h> exists even on freestanding compilers. */
12385 # include <limits.h>
12387 # include <assert.h>
12392 /* Override any gcc2 internal prototype to avoid an error. */
12397 /* We use char because int might match the return type of a gcc2
12398 builtin and then its argument prototype would still apply. */
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12406 char (*f) () = shl_load;
12415 return f != shl_load;
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422 (eval $ac_link) 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -z "$ac_cxx_werror_flag"
12430 || test ! -s conftest.err'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest$ac_exeext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_func_shl_load=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_func_shl_load=no
12449 rm -f conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
12452 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12453 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12454 if test $ac_cv_func_shl_load = yes; then
12455 lt_cv_dlopen="shl_load"
12457 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12458 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12459 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 ac_check_lib_save_LIBS=$LIBS
12464 cat >conftest.$ac_ext <<_ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12471 /* Override any gcc2 internal prototype to avoid an error. */
12475 /* We use char because int might match the return type of a gcc2
12476 builtin and then its argument prototype would still apply. */
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488 (eval $ac_link) 2>conftest.er1
12490 grep -v '^ *+' conftest.er1 >conftest.err
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -z "$ac_cxx_werror_flag"
12496 || test ! -s conftest.err'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; } &&
12502 { ac_try='test -s conftest$ac_exeext'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12508 ac_cv_lib_dld_shl_load=yes
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12513 ac_cv_lib_dld_shl_load=no
12515 rm -f conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext conftest.$ac_ext
12517 LIBS=$ac_check_lib_save_LIBS
12519 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12520 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12521 if test $ac_cv_lib_dld_shl_load = yes; then
12522 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12524 echo "$as_me:$LINENO: checking for dlopen" >&5
12525 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12526 if test "${ac_cv_func_dlopen+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 cat >conftest.$ac_ext <<_ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12535 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12537 #define dlopen innocuous_dlopen
12539 /* System header to define __stub macros and hopefully few prototypes,
12540 which can conflict with char dlopen (); below.
12541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12542 <limits.h> exists even on freestanding compilers. */
12545 # include <limits.h>
12547 # include <assert.h>
12552 /* Override any gcc2 internal prototype to avoid an error. */
12557 /* We use char because int might match the return type of a gcc2
12558 builtin and then its argument prototype would still apply. */
12560 /* The GNU C library defines this for functions which it implements
12561 to always fail with ENOSYS. Some functions are actually named
12562 something starting with __ and the normal name is an alias. */
12563 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12566 char (*f) () = dlopen;
12575 return f != dlopen;
12580 rm -f conftest.$ac_objext conftest$ac_exeext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12582 (eval $ac_link) 2>conftest.er1
12584 grep -v '^ *+' conftest.er1 >conftest.err
12586 cat conftest.err >&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } &&
12589 { ac_try='test -z "$ac_cxx_werror_flag"
12590 || test ! -s conftest.err'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; } &&
12596 { ac_try='test -s conftest$ac_exeext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_cv_func_dlopen=yes
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12607 ac_cv_func_dlopen=no
12609 rm -f conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12612 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12613 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12614 if test $ac_cv_func_dlopen = yes; then
12615 lt_cv_dlopen="dlopen"
12617 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12618 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12619 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 ac_check_lib_save_LIBS=$LIBS
12624 cat >conftest.$ac_ext <<_ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12631 /* Override any gcc2 internal prototype to avoid an error. */
12635 /* We use char because int might match the return type of a gcc2
12636 builtin and then its argument prototype would still apply. */
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>conftest.er1
12650 grep -v '^ *+' conftest.er1 >conftest.err
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_cxx_werror_flag"
12656 || test ! -s conftest.err'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try='test -s conftest$ac_exeext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 ac_cv_lib_dl_dlopen=yes
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12673 ac_cv_lib_dl_dlopen=no
12675 rm -f conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
12677 LIBS=$ac_check_lib_save_LIBS
12679 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12680 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12681 if test $ac_cv_lib_dl_dlopen = yes; then
12682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12684 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12685 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12686 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 ac_check_lib_save_LIBS=$LIBS
12690 LIBS="-lsvld $LIBS"
12691 cat >conftest.$ac_ext <<_ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12698 /* Override any gcc2 internal prototype to avoid an error. */
12702 /* We use char because int might match the return type of a gcc2
12703 builtin and then its argument prototype would still apply. */
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715 (eval $ac_link) 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -z "$ac_cxx_werror_flag"
12723 || test ! -s conftest.err'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; } &&
12729 { ac_try='test -s conftest$ac_exeext'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 ac_cv_lib_svld_dlopen=yes
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 ac_cv_lib_svld_dlopen=no
12742 rm -f conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12746 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12747 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12748 if test $ac_cv_lib_svld_dlopen = yes; then
12749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12751 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12752 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12753 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 ac_check_lib_save_LIBS=$LIBS
12758 cat >conftest.$ac_ext <<_ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 /* Override any gcc2 internal prototype to avoid an error. */
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12784 grep -v '^ *+' conftest.er1 >conftest.err
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_cxx_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_lib_dld_dld_link=yes
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_cv_lib_dld_dld_link=no
12809 rm -f conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_lib_save_LIBS
12813 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12814 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12815 if test $ac_cv_lib_dld_dld_link = yes; then
12816 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12837 if test "x$lt_cv_dlopen" != xno; then
12843 case $lt_cv_dlopen in
12845 save_CPPFLAGS="$CPPFLAGS"
12846 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12848 save_LDFLAGS="$LDFLAGS"
12849 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12852 LIBS="$lt_cv_dlopen_libs $LIBS"
12854 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12855 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12856 if test "${lt_cv_dlopen_self+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 if test "$cross_compiling" = yes; then :
12860 lt_cv_dlopen_self=cross
12862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12863 lt_status=$lt_dlunknown
12864 cat > conftest.$ac_ext <<EOF
12865 #line 12865 "configure"
12866 #include "confdefs.h"
12875 # define LT_DLGLOBAL RTLD_GLOBAL
12878 # define LT_DLGLOBAL DL_GLOBAL
12880 # define LT_DLGLOBAL 0
12884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12885 find out it does not work in some platform. */
12886 #ifndef LT_DLLAZY_OR_NOW
12888 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12891 # define LT_DLLAZY_OR_NOW DL_LAZY
12894 # define LT_DLLAZY_OR_NOW RTLD_NOW
12897 # define LT_DLLAZY_OR_NOW DL_NOW
12899 # define LT_DLLAZY_OR_NOW 0
12907 extern "C" void exit (int);
12910 void fnord() { int i=42;}
12913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12914 int status = $lt_dlunknown;
12918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12919 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12920 /* dlclose (self); */
12926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12927 (eval $ac_link) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12931 (./conftest; exit; ) 2>/dev/null
12933 case x$lt_status in
12934 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12935 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12936 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12939 # compilation failed
12940 lt_cv_dlopen_self=no
12947 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12948 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12950 if test "x$lt_cv_dlopen_self" = xyes; then
12951 LDFLAGS="$LDFLAGS $link_static_flag"
12952 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12953 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12954 if test "${lt_cv_dlopen_self_static+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 if test "$cross_compiling" = yes; then :
12958 lt_cv_dlopen_self_static=cross
12960 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12961 lt_status=$lt_dlunknown
12962 cat > conftest.$ac_ext <<EOF
12963 #line 12963 "configure"
12964 #include "confdefs.h"
12973 # define LT_DLGLOBAL RTLD_GLOBAL
12976 # define LT_DLGLOBAL DL_GLOBAL
12978 # define LT_DLGLOBAL 0
12982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12983 find out it does not work in some platform. */
12984 #ifndef LT_DLLAZY_OR_NOW
12986 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12989 # define LT_DLLAZY_OR_NOW DL_LAZY
12992 # define LT_DLLAZY_OR_NOW RTLD_NOW
12995 # define LT_DLLAZY_OR_NOW DL_NOW
12997 # define LT_DLLAZY_OR_NOW 0
13005 extern "C" void exit (int);
13008 void fnord() { int i=42;}
13011 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13012 int status = $lt_dlunknown;
13016 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13017 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13018 /* dlclose (self); */
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13029 (./conftest; exit; ) 2>/dev/null
13031 case x$lt_status in
13032 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13033 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13034 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13037 # compilation failed
13038 lt_cv_dlopen_self_static=no
13045 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13046 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13049 CPPFLAGS="$save_CPPFLAGS"
13050 LDFLAGS="$save_LDFLAGS"
13055 case $lt_cv_dlopen_self in
13056 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13057 *) enable_dlopen_self=unknown ;;
13060 case $lt_cv_dlopen_self_static in
13061 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13062 *) enable_dlopen_self_static=unknown ;;
13067 # The else clause should only fire when bootstrapping the
13068 # libtool distribution, otherwise you forgot to ship ltmain.sh
13069 # with your package, and you will get complaints that there are
13070 # no rules to generate ltmain.sh.
13071 if test -f "$ltmain"; then
13072 # See if we are running on zsh, and set the options which allow our commands through
13073 # without removal of \ escapes.
13074 if test -n "${ZSH_VERSION+set}" ; then
13075 setopt NO_GLOB_SUBST
13077 # Now quote all the things that may contain metacharacters while being
13078 # careful not to overquote the AC_SUBSTed values. We take copies of the
13079 # variables and quote the copies for generation of the libtool script.
13080 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13082 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13083 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13084 deplibs_check_method reload_flag reload_cmds need_locks \
13085 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13086 lt_cv_sys_global_symbol_to_c_name_address \
13087 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13088 old_postinstall_cmds old_postuninstall_cmds \
13092 lt_prog_compiler_wl_CXX \
13093 lt_prog_compiler_pic_CXX \
13094 lt_prog_compiler_static_CXX \
13095 lt_prog_compiler_no_builtin_flag_CXX \
13096 export_dynamic_flag_spec_CXX \
13097 thread_safe_flag_spec_CXX \
13098 whole_archive_flag_spec_CXX \
13099 enable_shared_with_static_runtimes_CXX \
13100 old_archive_cmds_CXX \
13101 old_archive_from_new_cmds_CXX \
13102 predep_objects_CXX \
13103 postdep_objects_CXX \
13106 compiler_lib_search_path_CXX \
13108 archive_expsym_cmds_CXX \
13109 postinstall_cmds_CXX \
13110 postuninstall_cmds_CXX \
13111 old_archive_from_expsyms_cmds_CXX \
13112 allow_undefined_flag_CXX \
13113 no_undefined_flag_CXX \
13114 export_symbols_cmds_CXX \
13115 hardcode_libdir_flag_spec_CXX \
13116 hardcode_libdir_flag_spec_ld_CXX \
13117 hardcode_libdir_separator_CXX \
13118 hardcode_automatic_CXX \
13120 module_expsym_cmds_CXX \
13121 lt_cv_prog_compiler_c_o_CXX \
13122 exclude_expsyms_CXX \
13123 include_expsyms_CXX; do
13126 old_archive_cmds_CXX | \
13127 old_archive_from_new_cmds_CXX | \
13128 archive_cmds_CXX | \
13129 archive_expsym_cmds_CXX | \
13130 module_cmds_CXX | \
13131 module_expsym_cmds_CXX | \
13132 old_archive_from_expsyms_cmds_CXX | \
13133 export_symbols_cmds_CXX | \
13134 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13135 postinstall_cmds | postuninstall_cmds | \
13136 old_postinstall_cmds | old_postuninstall_cmds | \
13137 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13138 # Double-quote double-evaled strings.
13139 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13148 *'\$0 --fallback-echo"')
13149 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13155 cat <<__EOF__ >> "$cfgfile"
13156 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13160 # Shell to use when invoking shell scripts.
13163 # Whether or not to build shared libraries.
13164 build_libtool_libs=$enable_shared
13166 # Whether or not to build static libraries.
13167 build_old_libs=$enable_static
13169 # Whether or not to add -lc for building shared libraries.
13170 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13172 # Whether or not to disallow shared libs when runtime libs are static
13173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13175 # Whether or not to optimize for fast installation.
13176 fast_install=$enable_fast_install
13179 host_alias=$host_alias
13183 # The build system.
13184 build_alias=$build_alias
13188 # An echo program that does not interpret backslashes.
13193 AR_FLAGS=$lt_AR_FLAGS
13198 # A language-specific compiler.
13199 CC=$lt_compiler_CXX
13201 # Is the compiler the GNU C compiler?
13207 # The linker used to build libraries.
13210 # Whether we need hard or soft links.
13213 # A BSD-compatible nm program.
13216 # A symbol stripping program
13219 # Used to examine libraries when file_magic_cmd begins "file"
13220 MAGIC_CMD=$MAGIC_CMD
13222 # Used on cygwin: DLL creation program.
13225 # Used on cygwin: object dumper.
13228 # Used on cygwin: assembler.
13231 # The name of the directory that contains temporary libtool files.
13234 # How to create reloadable object files.
13235 reload_flag=$lt_reload_flag
13236 reload_cmds=$lt_reload_cmds
13238 # How to pass a linker flag through the compiler.
13239 wl=$lt_lt_prog_compiler_wl_CXX
13241 # Object file suffix (normally "o").
13242 objext="$ac_objext"
13244 # Old archive suffix (normally "a").
13247 # Shared library suffix (normally ".so").
13248 shrext_cmds='$shrext_cmds'
13250 # Executable file suffix (normally "").
13253 # Additional compiler flags for building library objects.
13254 pic_flag=$lt_lt_prog_compiler_pic_CXX
13257 # What is the maximum length of a command?
13258 max_cmd_len=$lt_cv_sys_max_cmd_len
13260 # Does compiler simultaneously support -c and -o options?
13261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13263 # Must we lock files when doing compilation?
13264 need_locks=$lt_need_locks
13266 # Do we need the lib prefix for modules?
13267 need_lib_prefix=$need_lib_prefix
13269 # Do we need a version for libraries?
13270 need_version=$need_version
13272 # Whether dlopen is supported.
13273 dlopen_support=$enable_dlopen
13275 # Whether dlopen of programs is supported.
13276 dlopen_self=$enable_dlopen_self
13278 # Whether dlopen of statically linked programs is supported.
13279 dlopen_self_static=$enable_dlopen_self_static
13281 # Compiler flag to prevent dynamic linking.
13282 link_static_flag=$lt_lt_prog_compiler_static_CXX
13284 # Compiler flag to turn off builtin functions.
13285 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13287 # Compiler flag to allow reflexive dlopens.
13288 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13290 # Compiler flag to generate shared objects directly from archives.
13291 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13293 # Compiler flag to generate thread-safe objects.
13294 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13296 # Library versioning type.
13297 version_type=$version_type
13299 # Format of library name prefix.
13300 libname_spec=$lt_libname_spec
13302 # List of archive names. First name is the real one, the rest are links.
13303 # The last name is the one that the linker finds with -lNAME.
13304 library_names_spec=$lt_library_names_spec
13306 # The coded name of the library, if different from the real name.
13307 soname_spec=$lt_soname_spec
13309 # Commands used to build and install an old-style archive.
13311 old_archive_cmds=$lt_old_archive_cmds_CXX
13312 old_postinstall_cmds=$lt_old_postinstall_cmds
13313 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13315 # Create an old-style archive from a shared archive.
13316 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13318 # Create a temporary old-style archive to link instead of a shared archive.
13319 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13321 # Commands used to build and install a shared archive.
13322 archive_cmds=$lt_archive_cmds_CXX
13323 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13324 postinstall_cmds=$lt_postinstall_cmds
13325 postuninstall_cmds=$lt_postuninstall_cmds
13327 # Commands used to build a loadable module (assumed same as above if empty)
13328 module_cmds=$lt_module_cmds_CXX
13329 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13331 # Commands to strip libraries.
13332 old_striplib=$lt_old_striplib
13333 striplib=$lt_striplib
13335 # Dependencies to place before the objects being linked to create a
13337 predep_objects=$lt_predep_objects_CXX
13339 # Dependencies to place after the objects being linked to create a
13341 postdep_objects=$lt_postdep_objects_CXX
13343 # Dependencies to place before the objects being linked to create a
13345 predeps=$lt_predeps_CXX
13347 # Dependencies to place after the objects being linked to create a
13349 postdeps=$lt_postdeps_CXX
13351 # The library search path used internally by the compiler when linking
13352 # a shared library.
13353 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13355 # Method to check whether dependent libraries are shared objects.
13356 deplibs_check_method=$lt_deplibs_check_method
13358 # Command to use when deplibs_check_method == file_magic.
13359 file_magic_cmd=$lt_file_magic_cmd
13361 # Flag that allows shared libraries with undefined symbols to be built.
13362 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13364 # Flag that forces no undefined symbols.
13365 no_undefined_flag=$lt_no_undefined_flag_CXX
13367 # Commands used to finish a libtool library installation in a directory.
13368 finish_cmds=$lt_finish_cmds
13370 # Same as above, but a single script fragment to be evaled but not shown.
13371 finish_eval=$lt_finish_eval
13373 # Take the output of nm and produce a listing of raw symbols and C names.
13374 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13376 # Transform the output of nm in a proper C declaration
13377 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13379 # Transform the output of nm in a C name address pair
13380 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13382 # This is the shared library runtime path variable.
13383 runpath_var=$runpath_var
13385 # This is the shared library path variable.
13386 shlibpath_var=$shlibpath_var
13388 # Is shlibpath searched before the hard-coded library search path?
13389 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13391 # How to hardcode a shared library path into an executable.
13392 hardcode_action=$hardcode_action_CXX
13394 # Whether we should hardcode library paths into libraries.
13395 hardcode_into_libs=$hardcode_into_libs
13397 # Flag to hardcode \$libdir into a binary during linking.
13398 # This must work even if \$libdir does not exist.
13399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13401 # If ld is used when linking, flag to hardcode \$libdir into
13402 # a binary during linking. This must work even if \$libdir does
13404 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13406 # Whether we need a single -rpath flag with a separated argument.
13407 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13409 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13410 # resulting binary.
13411 hardcode_direct=$hardcode_direct_CXX
13413 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13414 # resulting binary.
13415 hardcode_minus_L=$hardcode_minus_L_CXX
13417 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13418 # the resulting binary.
13419 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13421 # Set to yes if building a shared library automatically hardcodes DIR into the library
13422 # and all subsequent libraries and executables linked against it.
13423 hardcode_automatic=$hardcode_automatic_CXX
13425 # Variables whose values should be saved in libtool wrapper scripts and
13426 # restored at relink time.
13427 variables_saved_for_relink="$variables_saved_for_relink"
13429 # Whether libtool must link a program against all its dependency libraries.
13430 link_all_deplibs=$link_all_deplibs_CXX
13432 # Compile-time system search path for libraries
13433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13435 # Run-time system search path for libraries
13436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13438 # Fix the shell variable \$srcfile for the compiler.
13439 fix_srcfile_path="$fix_srcfile_path_CXX"
13441 # Set to yes if exported symbols are required.
13442 always_export_symbols=$always_export_symbols_CXX
13444 # The commands to list exported symbols.
13445 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13447 # The commands to extract the exported symbol list from a shared archive.
13448 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13450 # Symbols that should not be listed in the preloaded symbols.
13451 exclude_expsyms=$lt_exclude_expsyms_CXX
13453 # Symbols that must always be exported.
13454 include_expsyms=$lt_include_expsyms_CXX
13456 # ### END LIBTOOL TAG CONFIG: $tagname
13462 # If there is no Makefile yet, we rely on a make rule to execute
13463 # `config.status --recheck' to rerun these tests and create the
13464 # libtool script then.
13465 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13466 if test -f "$ltmain_in"; then
13467 test -f Makefile && make "$ltmain"
13473 ac_cpp='$CPP $CPPFLAGS'
13474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13482 with_gnu_ldcxx=$with_gnu_ld
13483 with_gnu_ld=$lt_save_with_gnu_ld
13484 lt_cv_path_LDCXX=$lt_cv_path_LD
13485 lt_cv_path_LD=$lt_save_path_LD
13486 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13487 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13495 if test -n "$F77" && test "X$F77" != "Xno"; then
13498 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13499 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13500 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13503 archive_cmds_need_lc_F77=no
13504 allow_undefined_flag_F77=
13505 always_export_symbols_F77=no
13506 archive_expsym_cmds_F77=
13507 export_dynamic_flag_spec_F77=
13508 hardcode_direct_F77=no
13509 hardcode_libdir_flag_spec_F77=
13510 hardcode_libdir_flag_spec_ld_F77=
13511 hardcode_libdir_separator_F77=
13512 hardcode_minus_L_F77=no
13513 hardcode_automatic_F77=no
13515 module_expsym_cmds_F77=
13516 link_all_deplibs_F77=unknown
13517 old_archive_cmds_F77=$old_archive_cmds
13518 no_undefined_flag_F77=
13519 whole_archive_flag_spec_F77=
13520 enable_shared_with_static_runtimes_F77=no
13522 # Source file extension for f77 test sources.
13525 # Object file extension for compiled f77 test sources.
13529 # Code to be used in simple compile tests
13530 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13532 # Code to be used in simple link tests
13533 lt_simple_link_test_code=" program t\n end\n"
13535 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13537 # If no C compiler was specified, use CC.
13540 # Allow CC to be a program name with arguments.
13544 # save warnings/boilerplate of simple test code
13545 ac_outfile=conftest.$ac_objext
13546 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13547 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13548 _lt_compiler_boilerplate=`cat conftest.err`
13551 ac_outfile=conftest.$ac_objext
13552 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13553 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13554 _lt_linker_boilerplate=`cat conftest.err`
13558 # Allow CC to be a program name with arguments.
13563 for cc_temp in $compiler""; do
13565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13574 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13575 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13576 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13577 echo "${ECHO_T}$can_build_shared" >&6
13579 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13580 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13581 test "$can_build_shared" = "no" && enable_shared=no
13583 # On AIX, shared libraries and static libraries use the same namespace, and
13584 # are all built from PIC.
13587 test "$enable_shared" = yes && enable_static=no
13588 if test -n "$RANLIB"; then
13589 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13590 postinstall_cmds='$RANLIB $lib'
13594 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13595 test "$enable_shared" = yes && enable_static=no
13599 echo "$as_me:$LINENO: result: $enable_shared" >&5
13600 echo "${ECHO_T}$enable_shared" >&6
13602 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13603 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13604 # Make sure either enable_shared or enable_static is yes.
13605 test "$enable_shared" = yes || enable_static=yes
13606 echo "$as_me:$LINENO: result: $enable_static" >&5
13607 echo "${ECHO_T}$enable_static" >&6
13609 test "$ld_shlibs_F77" = no && can_build_shared=no
13614 lt_prog_compiler_wl_F77=
13615 lt_prog_compiler_pic_F77=
13616 lt_prog_compiler_static_F77=
13618 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13619 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13621 if test "$GCC" = yes; then
13622 lt_prog_compiler_wl_F77='-Wl,'
13623 lt_prog_compiler_static_F77='-static'
13627 # All AIX code is PIC.
13628 if test "$host_cpu" = ia64; then
13629 # AIX 5 now supports IA64 processor
13630 lt_prog_compiler_static_F77='-Bstatic'
13635 # FIXME: we need at least 68020 code to build shared libraries, but
13636 # adding the `-m68020' flag to GCC prevents building anything better,
13638 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13641 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13642 # PIC is the default for these OSes.
13645 mingw* | pw32* | os2*)
13646 # This hack is so that the source file can tell whether it is being
13647 # built for inclusion in a dll (and should export symbols for example).
13648 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13651 darwin* | rhapsody*)
13652 # PIC is the default on this platform
13653 # Common symbols not allowed in MH_DYLIB files
13654 lt_prog_compiler_pic_F77='-fno-common'
13658 # Just because we use GCC doesn't mean we suddenly get shared libraries
13659 # on systems that don't support them.
13660 lt_prog_compiler_can_build_shared_F77=no
13665 if test -d /usr/nec; then
13666 lt_prog_compiler_pic_F77=-Kconform_pic
13671 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13672 # not for PA HP-UX.
13673 case "$host_cpu" in
13678 lt_prog_compiler_pic_F77='-fPIC'
13684 lt_prog_compiler_pic_F77='-fPIC'
13688 # PORTME Check for flag to pass linker flags through the system compiler.
13691 lt_prog_compiler_wl_F77='-Wl,'
13692 if test "$host_cpu" = ia64; then
13693 # AIX 5 now supports IA64 processor
13694 lt_prog_compiler_static_F77='-Bstatic'
13696 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13700 # PIC is the default on this platform
13701 # Common symbols not allowed in MH_DYLIB files
13702 case $cc_basename in
13704 lt_prog_compiler_pic_F77='-qnocommon'
13705 lt_prog_compiler_wl_F77='-Wl,'
13710 mingw* | pw32* | os2*)
13711 # This hack is so that the source file can tell whether it is being
13712 # built for inclusion in a dll (and should export symbols for example).
13713 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13716 hpux9* | hpux10* | hpux11*)
13717 lt_prog_compiler_wl_F77='-Wl,'
13718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13719 # not for PA HP-UX.
13720 case "$host_cpu" in
13725 lt_prog_compiler_pic_F77='+Z'
13728 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13729 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13732 irix5* | irix6* | nonstopux*)
13733 lt_prog_compiler_wl_F77='-Wl,'
13734 # PIC (with -KPIC) is the default.
13735 lt_prog_compiler_static_F77='-non_shared'
13739 lt_prog_compiler_pic_F77='-KPIC'
13740 lt_prog_compiler_static_F77='-Bstatic'
13744 case $cc_basename in
13746 lt_prog_compiler_wl_F77='-Wl,'
13747 lt_prog_compiler_pic_F77='-KPIC'
13748 lt_prog_compiler_static_F77='-static'
13750 pgcc* | pgf77* | pgf90*)
13751 # Portland Group compilers (*not* the Pentium gcc compiler,
13752 # which looks to be a dead project)
13753 lt_prog_compiler_wl_F77='-Wl,'
13754 lt_prog_compiler_pic_F77='-fpic'
13755 lt_prog_compiler_static_F77='-static'
13758 lt_prog_compiler_wl_F77='-Wl,'
13759 # All Alpha code is PIC.
13760 lt_prog_compiler_static_F77='-non_shared'
13765 osf3* | osf4* | osf5*)
13766 lt_prog_compiler_wl_F77='-Wl,'
13767 # All OSF/1 code is PIC.
13768 lt_prog_compiler_static_F77='-non_shared'
13772 lt_prog_compiler_pic_F77='-Kpic'
13773 lt_prog_compiler_static_F77='-dn'
13777 lt_prog_compiler_pic_F77='-KPIC'
13778 lt_prog_compiler_static_F77='-Bstatic'
13779 case $cc_basename in
13780 f77* | f90* | f95*)
13781 lt_prog_compiler_wl_F77='-Qoption ld ';;
13783 lt_prog_compiler_wl_F77='-Wl,';;
13788 lt_prog_compiler_wl_F77='-Qoption ld '
13789 lt_prog_compiler_pic_F77='-PIC'
13790 lt_prog_compiler_static_F77='-Bstatic'
13793 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13794 lt_prog_compiler_wl_F77='-Wl,'
13795 lt_prog_compiler_pic_F77='-KPIC'
13796 lt_prog_compiler_static_F77='-Bstatic'
13800 if test -d /usr/nec ;then
13801 lt_prog_compiler_pic_F77='-Kconform_pic'
13802 lt_prog_compiler_static_F77='-Bstatic'
13807 lt_prog_compiler_wl_F77='-Wl,'
13808 lt_prog_compiler_can_build_shared_F77=no
13812 lt_prog_compiler_pic_F77='-pic'
13813 lt_prog_compiler_static_F77='-Bstatic'
13817 lt_prog_compiler_can_build_shared_F77=no
13822 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13823 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13826 # Check to make sure the PIC flag actually works.
13828 if test -n "$lt_prog_compiler_pic_F77"; then
13830 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13831 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13832 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 lt_prog_compiler_pic_works_F77=no
13836 ac_outfile=conftest.$ac_objext
13837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13838 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13839 # Insert the option either (1) after the last *FLAGS variable, or
13840 # (2) before a word containing "conftest.", or (3) at the end.
13841 # Note that $ac_compile itself does not contain backslashes and begins
13842 # with a dollar sign (not a hyphen), so the echo should work correctly.
13843 # The option is referenced via a variable to avoid confusing sed.
13844 lt_compile=`echo "$ac_compile" | $SED \
13845 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13847 -e 's:$: $lt_compiler_flag:'`
13848 (eval echo "\"\$as_me:13848: $lt_compile\"" >&5)
13849 (eval "$lt_compile" 2>conftest.err)
13851 cat conftest.err >&5
13852 echo "$as_me:13852: \$? = $ac_status" >&5
13853 if (exit $ac_status) && test -s "$ac_outfile"; then
13854 # The compiler can only warn and ignore the option if not recognized
13855 # So say no if there are warnings other than the usual output.
13856 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13857 $SED '/^$/d' conftest.err >conftest.er2
13858 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13859 lt_prog_compiler_pic_works_F77=yes
13865 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13866 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13868 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13869 case $lt_prog_compiler_pic_F77 in
13871 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13874 lt_prog_compiler_pic_F77=
13875 lt_prog_compiler_can_build_shared_F77=no
13880 # For platforms which do not support PIC, -DPIC is meaningless:
13882 lt_prog_compiler_pic_F77=
13885 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13889 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13890 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13891 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 lt_cv_prog_compiler_c_o_F77=no
13895 $rm -r conftest 2>/dev/null
13899 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13901 lt_compiler_flag="-o out/conftest2.$ac_objext"
13902 # Insert the option either (1) after the last *FLAGS variable, or
13903 # (2) before a word containing "conftest.", or (3) at the end.
13904 # Note that $ac_compile itself does not contain backslashes and begins
13905 # with a dollar sign (not a hyphen), so the echo should work correctly.
13906 lt_compile=`echo "$ac_compile" | $SED \
13907 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13909 -e 's:$: $lt_compiler_flag:'`
13910 (eval echo "\"\$as_me:13910: $lt_compile\"" >&5)
13911 (eval "$lt_compile" 2>out/conftest.err)
13913 cat out/conftest.err >&5
13914 echo "$as_me:13914: \$? = $ac_status" >&5
13915 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13917 # The compiler can only warn and ignore the option if not recognized
13918 # So say no if there are warnings
13919 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13920 $SED '/^$/d' out/conftest.err >out/conftest.er2
13921 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13922 lt_cv_prog_compiler_c_o_F77=yes
13927 # SGI C++ compiler will create directory out/ii_files/ for
13928 # template instantiation
13929 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13930 $rm out/* && rmdir out
13936 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13937 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13940 hard_links="nottested"
13941 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13942 # do not overwrite the value of need_locks provided by the user
13943 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13944 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13949 ln conftest.a conftest.b 2>&5 || hard_links=no
13950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13951 echo "$as_me:$LINENO: result: $hard_links" >&5
13952 echo "${ECHO_T}$hard_links" >&6
13953 if test "$hard_links" = no; then
13954 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13955 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13962 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13963 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13966 allow_undefined_flag_F77=
13967 enable_shared_with_static_runtimes_F77=no
13969 archive_expsym_cmds_F77=
13970 old_archive_From_new_cmds_F77=
13971 old_archive_from_expsyms_cmds_F77=
13972 export_dynamic_flag_spec_F77=
13973 whole_archive_flag_spec_F77=
13974 thread_safe_flag_spec_F77=
13975 hardcode_libdir_flag_spec_F77=
13976 hardcode_libdir_flag_spec_ld_F77=
13977 hardcode_libdir_separator_F77=
13978 hardcode_direct_F77=no
13979 hardcode_minus_L_F77=no
13980 hardcode_shlibpath_var_F77=unsupported
13981 link_all_deplibs_F77=unknown
13982 hardcode_automatic_F77=no
13984 module_expsym_cmds_F77=
13985 always_export_symbols_F77=no
13986 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13987 # include_expsyms should be a list of space-separated symbols to be *always*
13988 # included in the symbol list
13989 include_expsyms_F77=
13990 # exclude_expsyms can be an extended regexp of symbols to exclude
13991 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13992 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13993 # as well as any symbol that contains `d'.
13994 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13995 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13996 # platforms (ab)use it in PIC code, but their linkers get confused if
13997 # the symbol is explicitly referenced. Since portable code cannot
13998 # rely on this symbol name, it's probably fine to never include it in
13999 # preloaded symbol tables.
14000 extract_expsyms_cmds=
14001 # Just being paranoid about ensuring that cc_basename is set.
14002 for cc_temp in $compiler""; do
14004 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14005 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14010 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14013 cygwin* | mingw* | pw32*)
14014 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14015 # When not using gcc, we currently assume that we are using
14016 # Microsoft Visual C++.
14017 if test "$GCC" != yes; then
14027 if test "$with_gnu_ld" = yes; then
14028 # If archive_cmds runs LD, not CC, wlarc should be empty
14031 # Set some defaults for GNU ld with shared library support. These
14032 # are reset later if shared libraries are not supported. Putting them
14033 # here allows them to be overridden if necessary.
14034 runpath_var=LD_RUN_PATH
14035 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14036 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14037 # ancient GNU ld didn't support --whole-archive et. al.
14038 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14039 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14041 whole_archive_flag_spec_F77=
14043 supports_anon_versioning=no
14044 case `$LD -v 2>/dev/null` in
14045 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14046 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14047 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14048 *\ 2.11.*) ;; # other 2.11 versions
14049 *) supports_anon_versioning=yes ;;
14052 # See if GNU ld supports shared libraries.
14054 aix3* | aix4* | aix5*)
14055 # On AIX/PPC, the GNU linker is very broken
14056 if test "$host_cpu" != ia64; then
14060 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14061 *** to be unable to reliably create shared libraries on AIX.
14062 *** Therefore, libtool is disabling shared libraries support. If you
14063 *** really care for shared libraries, you may want to modify your PATH
14064 *** so that a non-GNU linker is found, and then restart.
14071 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)'
14072 hardcode_libdir_flag_spec_F77='-L$libdir'
14073 hardcode_minus_L_F77=yes
14075 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14076 # that the semantics of dynamic libraries on AmigaOS, at least up
14077 # to version 4, is to share data among multiple programs linked
14078 # with the same dynamic library. Since this doesn't match the
14079 # behavior of shared libraries on other platforms, we can't use
14085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14086 allow_undefined_flag_F77=unsupported
14087 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14088 # support --undefined. This deserves some investigation. FIXME
14089 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14095 cygwin* | mingw* | pw32*)
14096 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14097 # as there is no search path for DLLs.
14098 hardcode_libdir_flag_spec_F77='-L$libdir'
14099 allow_undefined_flag_F77=unsupported
14100 always_export_symbols_F77=no
14101 enable_shared_with_static_runtimes_F77=yes
14102 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14104 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14105 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14106 # If the export-symbols file already is a .def file (1st line
14107 # is EXPORTS), use it as is; otherwise, prepend...
14108 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14109 cp $export_symbols $output_objdir/$soname.def;
14111 echo EXPORTS > $output_objdir/$soname.def;
14112 cat $export_symbols >> $output_objdir/$soname.def;
14114 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14123 case $cc_basename,$host_cpu in
14124 pgcc*) # Portland Group C compiler
14125 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'
14126 tmp_addflag=' $pic_flag'
14128 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14129 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'
14130 tmp_addflag=' $pic_flag -Mnomain' ;;
14131 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14132 tmp_addflag=' -i_dynamic' ;;
14133 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14134 tmp_addflag=' -i_dynamic -nofor_main' ;;
14135 ifc* | ifort*) # Intel Fortran compiler
14136 tmp_addflag=' -nofor_main' ;;
14138 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14140 if test $supports_anon_versioning = yes; then
14141 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14142 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14143 $echo "local: *; };" >> $output_objdir/$libname.ver~
14144 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14153 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14156 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14162 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14166 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14167 *** create shared libraries on Solaris systems. Therefore, libtool
14168 *** is disabling shared libraries support. We urge you to upgrade GNU
14169 *** binutils to release 2.9.1 or newer. Another option is to modify
14170 *** your PATH or compiler configuration so that the native linker is
14171 *** used, and then restart.
14174 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14175 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14176 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14183 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14185 hardcode_direct_F77=yes
14186 hardcode_shlibpath_var_F77=no
14190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14191 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14192 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14199 if test "$ld_shlibs_F77" = no; then
14201 hardcode_libdir_flag_spec_F77=
14202 export_dynamic_flag_spec_F77=
14203 whole_archive_flag_spec_F77=
14206 # PORTME fill in a description of your system's linker (not GNU ld)
14209 allow_undefined_flag_F77=unsupported
14210 always_export_symbols_F77=yes
14211 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'
14212 # Note: this linker hardcodes the directories in LIBPATH if there
14213 # are no directories specified by -L.
14214 hardcode_minus_L_F77=yes
14215 if test "$GCC" = yes && test -z "$link_static_flag"; then
14216 # Neither direct hardcoding nor static linking is supported with a
14218 hardcode_direct_F77=unsupported
14223 if test "$host_cpu" = ia64; then
14224 # On IA64, the linker does run time linking by default, so we don't
14225 # have to do anything special.
14226 aix_use_runtimelinking=no
14227 exp_sym_flag='-Bexport'
14230 # If we're using GNU nm, then we don't want the "-C" option.
14231 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14232 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14233 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'
14235 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'
14237 aix_use_runtimelinking=no
14239 # Test if we are trying to use run time linking or normal
14240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14241 # need to do runtime linking.
14242 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14243 for ld_flag in $LDFLAGS; do
14244 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14245 aix_use_runtimelinking=yes
14251 exp_sym_flag='-bexport'
14252 no_entry_flag='-bnoentry'
14255 # When large executables or shared objects are built, AIX ld can
14256 # have problems creating the table of contents. If linking a library
14257 # or program results in "error TOC overflow" add -mminimal-toc to
14258 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14259 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14261 archive_cmds_F77=''
14262 hardcode_direct_F77=yes
14263 hardcode_libdir_separator_F77=':'
14264 link_all_deplibs_F77=yes
14266 if test "$GCC" = yes; then
14267 case $host_os in aix4.[012]|aix4.[012].*)
14268 # We only want to do this on AIX 4.2 and lower, the check
14269 # below for broken collect2 doesn't work under 4.3+
14270 collect2name=`${CC} -print-prog-name=collect2`
14271 if test -f "$collect2name" && \
14272 strings "$collect2name" | grep resolve_lib_name >/dev/null
14274 # We have reworked collect2
14275 hardcode_direct_F77=yes
14277 # We have old collect2
14278 hardcode_direct_F77=unsupported
14279 # It fails to find uninstalled libraries when the uninstalled
14280 # path is not listed in the libpath. Setting hardcode_minus_L
14281 # to unsupported forces relinking
14282 hardcode_minus_L_F77=yes
14283 hardcode_libdir_flag_spec_F77='-L$libdir'
14284 hardcode_libdir_separator_F77=
14287 shared_flag='-shared'
14288 if test "$aix_use_runtimelinking" = yes; then
14289 shared_flag="$shared_flag "'${wl}-G'
14293 if test "$host_cpu" = ia64; then
14294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14295 # chokes on -Wl,-G. The following line is correct:
14298 if test "$aix_use_runtimelinking" = yes; then
14299 shared_flag='${wl}-G'
14301 shared_flag='${wl}-bM:SRE'
14306 # It seems that -bexpall does not export symbols beginning with
14307 # underscore (_), so it is better to generate a list of symbols to export.
14308 always_export_symbols_F77=yes
14309 if test "$aix_use_runtimelinking" = yes; then
14310 # Warning - without using the other runtime loading flags (-brtl),
14311 # -berok will link without error, but may produce a broken library.
14312 allow_undefined_flag_F77='-berok'
14313 # Determine the default libpath from the value encoded in an empty executable.
14314 cat >conftest.$ac_ext <<_ACEOF
14319 rm -f conftest.$ac_objext conftest$ac_exeext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321 (eval $ac_link) 2>conftest.er1
14323 grep -v '^ *+' conftest.er1 >conftest.err
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_f77_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest$ac_exeext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14344 # Check for a 64-bit object if we didn't find anything.
14345 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; }
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14352 rm -f conftest.err conftest.$ac_objext \
14353 conftest$ac_exeext conftest.$ac_ext
14354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14356 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14357 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"
14359 if test "$host_cpu" = ia64; then
14360 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14361 allow_undefined_flag_F77="-z nodefs"
14362 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"
14364 # Determine the default libpath from the value encoded in an empty executable.
14365 cat >conftest.$ac_ext <<_ACEOF
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14372 (eval $ac_link) 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -z "$ac_f77_werror_flag"
14380 || test ! -s conftest.err'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } &&
14386 { ac_try='test -s conftest$ac_exeext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14395 # Check for a 64-bit object if we didn't find anything.
14396 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; }
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14403 rm -f conftest.err conftest.$ac_objext \
14404 conftest$ac_exeext conftest.$ac_ext
14405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14407 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14408 # Warning - without using the other run time loading flags,
14409 # -berok will link without error, but may produce a broken library.
14410 no_undefined_flag_F77=' ${wl}-bernotok'
14411 allow_undefined_flag_F77=' ${wl}-berok'
14412 # -bexpall does not export symbols beginning with underscore (_)
14413 always_export_symbols_F77=yes
14414 # Exported symbols can be pulled into shared objects from archives
14415 whole_archive_flag_spec_F77=' '
14416 archive_cmds_need_lc_F77=yes
14417 # This is similar to how AIX traditionally builds it's shared libraries.
14418 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'
14424 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)'
14425 hardcode_libdir_flag_spec_F77='-L$libdir'
14426 hardcode_minus_L_F77=yes
14427 # see comment about different semantics on the GNU ld section
14432 export_dynamic_flag_spec_F77=-rdynamic
14435 cygwin* | mingw* | pw32*)
14436 # When not using gcc, we currently assume that we are using
14437 # Microsoft Visual C++.
14438 # hardcode_libdir_flag_spec is actually meaningless, as there is
14439 # no search path for DLLs.
14440 hardcode_libdir_flag_spec_F77=' '
14441 allow_undefined_flag_F77=unsupported
14442 # Tell ltmain to make .lib files, not .a files.
14444 # Tell ltmain to make .dll files, not .so files.
14446 # FIXME: Setting linknames here is a bad hack.
14447 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14448 # The linker will automatically build a .lib file if we build a DLL.
14449 old_archive_From_new_cmds_F77='true'
14450 # FIXME: Should let the user specify the lib program.
14451 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14452 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14453 enable_shared_with_static_runtimes_F77=yes
14456 darwin* | rhapsody*)
14458 rhapsody* | darwin1.[012])
14459 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14462 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14463 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14465 case ${MACOSX_DEPLOYMENT_TARGET} in
14467 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14470 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14476 archive_cmds_need_lc_F77=no
14477 hardcode_direct_F77=no
14478 hardcode_automatic_F77=yes
14479 hardcode_shlibpath_var_F77=unsupported
14480 whole_archive_flag_spec_F77=''
14481 link_all_deplibs_F77=yes
14482 if test "$GCC" = yes ; then
14483 output_verbose_link_cmd='echo'
14484 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14485 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14486 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14487 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}'
14488 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}'
14490 case $cc_basename in
14492 output_verbose_link_cmd='echo'
14493 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14494 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14495 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14496 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}'
14497 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}'
14507 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14508 hardcode_libdir_flag_spec_F77='-L$libdir'
14509 hardcode_shlibpath_var_F77=no
14516 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14517 # support. Future versions do this automatically, but an explicit c++rt0.o
14518 # does not break anything, and helps significantly (at the cost of a little
14521 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14522 hardcode_libdir_flag_spec_F77='-R$libdir'
14523 hardcode_direct_F77=yes
14524 hardcode_shlibpath_var_F77=no
14527 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14529 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14530 hardcode_direct_F77=yes
14531 hardcode_minus_L_F77=yes
14532 hardcode_shlibpath_var_F77=no
14535 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14536 freebsd* | kfreebsd*-gnu | dragonfly*)
14537 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14538 hardcode_libdir_flag_spec_F77='-R$libdir'
14539 hardcode_direct_F77=yes
14540 hardcode_shlibpath_var_F77=no
14544 if test "$GCC" = yes; then
14545 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'
14547 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'
14549 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14550 hardcode_libdir_separator_F77=:
14551 hardcode_direct_F77=yes
14553 # hardcode_minus_L: Not really in the search PATH,
14554 # but as the default location of the library.
14555 hardcode_minus_L_F77=yes
14556 export_dynamic_flag_spec_F77='${wl}-E'
14560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14561 case "$host_cpu" in
14563 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14566 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14570 case "$host_cpu" in
14572 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14575 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14579 if test "$with_gnu_ld" = no; then
14580 case "$host_cpu" in
14582 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14583 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14584 hardcode_libdir_separator_F77=:
14585 hardcode_direct_F77=no
14586 hardcode_shlibpath_var_F77=no
14589 hardcode_libdir_flag_spec_F77='-L$libdir'
14590 hardcode_direct_F77=no
14591 hardcode_shlibpath_var_F77=no
14593 # hardcode_minus_L: Not really in the search PATH,
14594 # but as the default location of the library.
14595 hardcode_minus_L_F77=yes
14598 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14599 hardcode_libdir_separator_F77=:
14600 hardcode_direct_F77=yes
14601 export_dynamic_flag_spec_F77='${wl}-E'
14603 # hardcode_minus_L: Not really in the search PATH,
14604 # but as the default location of the library.
14605 hardcode_minus_L_F77=yes
14611 irix5* | irix6* | nonstopux*)
14612 if test "$GCC" = yes; then
14613 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'
14615 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'
14616 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14618 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14619 hardcode_libdir_separator_F77=:
14620 link_all_deplibs_F77=yes
14624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14625 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14627 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14629 hardcode_libdir_flag_spec_F77='-R$libdir'
14630 hardcode_direct_F77=yes
14631 hardcode_shlibpath_var_F77=no
14635 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14636 hardcode_direct_F77=yes
14637 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14638 hardcode_libdir_separator_F77=:
14639 hardcode_shlibpath_var_F77=no
14643 hardcode_direct_F77=yes
14644 hardcode_shlibpath_var_F77=no
14645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14646 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14647 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14648 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14649 export_dynamic_flag_spec_F77='${wl}-E'
14652 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14653 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14654 hardcode_libdir_flag_spec_F77='-R$libdir'
14657 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14658 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14665 hardcode_libdir_flag_spec_F77='-L$libdir'
14666 hardcode_minus_L_F77=yes
14667 allow_undefined_flag_F77=unsupported
14668 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'
14669 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14673 if test "$GCC" = yes; then
14674 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14675 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'
14677 allow_undefined_flag_F77=' -expect_unresolved \*'
14678 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'
14680 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14681 hardcode_libdir_separator_F77=:
14684 osf4* | osf5*) # as osf3* with the addition of -msym flag
14685 if test "$GCC" = yes; then
14686 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14687 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'
14688 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14690 allow_undefined_flag_F77=' -expect_unresolved \*'
14691 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'
14692 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~
14693 $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'
14695 # Both c and cxx compiler support -rpath directly
14696 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14698 hardcode_libdir_separator_F77=:
14702 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14703 hardcode_shlibpath_var_F77=no
14704 export_dynamic_flag_spec_F77='${wl}-Bexport'
14705 runpath_var=LD_RUN_PATH
14706 hardcode_runpath_var=yes
14710 no_undefined_flag_F77=' -z text'
14711 if test "$GCC" = yes; then
14713 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14714 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14715 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14718 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14720 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14722 hardcode_libdir_flag_spec_F77='-R$libdir'
14723 hardcode_shlibpath_var_F77=no
14725 solaris2.[0-5] | solaris2.[0-5].*) ;;
14727 # The compiler driver will combine linker options so we
14728 # cannot just pass the convience library names through
14729 # without $wl, iff we do not link with $LD.
14730 # Luckily, gcc supports the same syntax we need for Sun Studio.
14731 # Supported since Solaris 2.6 (maybe 2.5.1?)
14734 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14736 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' ;;
14739 link_all_deplibs_F77=yes
14743 if test "x$host_vendor" = xsequent; then
14744 # Use $CC to link under sequent, because it throws in some extra .o
14745 # files that make .init and .fini sections work.
14746 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14748 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14750 hardcode_libdir_flag_spec_F77='-L$libdir'
14751 hardcode_direct_F77=yes
14752 hardcode_minus_L_F77=yes
14753 hardcode_shlibpath_var_F77=no
14757 case $host_vendor in
14759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760 hardcode_direct_F77=yes # is this really true???
14763 ## LD is ld it makes a PLAMLIB
14764 ## CC just makes a GrossModule.
14765 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14766 reload_cmds_F77='$CC -r -o $output$reload_objs'
14767 hardcode_direct_F77=no
14770 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14771 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14774 runpath_var='LD_RUN_PATH'
14775 hardcode_shlibpath_var_F77=no
14779 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14780 hardcode_shlibpath_var_F77=no
14781 export_dynamic_flag_spec_F77='-Bexport'
14785 if test -d /usr/nec; then
14786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787 hardcode_shlibpath_var_F77=no
14788 runpath_var=LD_RUN_PATH
14789 hardcode_runpath_var=yes
14795 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14796 hardcode_direct_F77=yes
14797 hardcode_minus_L_F77=no
14798 hardcode_shlibpath_var_F77=no
14799 hardcode_runpath_var=yes
14800 runpath_var=LD_RUN_PATH
14803 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14804 no_undefined_flag_F77='${wl}-z ${wl}text'
14805 if test "$GCC" = yes; then
14806 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14808 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14810 runpath_var='LD_RUN_PATH'
14811 hardcode_shlibpath_var_F77=no
14815 no_undefined_flag_F77=' -z text'
14816 # $CC -shared without GNU ld will not create a library from C++
14817 # object files and a static libstdc++, better avoid it by now
14818 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14819 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14821 hardcode_libdir_flag_spec_F77=
14822 hardcode_shlibpath_var_F77=no
14823 runpath_var='LD_RUN_PATH'
14827 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14828 hardcode_libdir_flag_spec_F77='-L$libdir'
14829 hardcode_shlibpath_var_F77=no
14838 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14839 echo "${ECHO_T}$ld_shlibs_F77" >&6
14840 test "$ld_shlibs_F77" = no && can_build_shared=no
14842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14843 if test "$GCC" = yes; then
14844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14848 # Do we need to explicitly link libc?
14850 case "x$archive_cmds_need_lc_F77" in
14852 # Assume -lc should be added
14853 archive_cmds_need_lc_F77=yes
14855 if test "$enable_shared" = yes && test "$GCC" = yes; then
14856 case $archive_cmds_F77 in
14858 # FIXME: we may have to deal with multi-command sequences.
14861 # Test whether the compiler implicitly links with -lc since on some
14862 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14863 # to ld, don't add -lc before -lgcc.
14864 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14865 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14867 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14870 (eval $ac_compile) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } 2>conftest.err; then
14876 libobjs=conftest.$ac_objext
14878 wl=$lt_prog_compiler_wl_F77
14884 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14885 allow_undefined_flag_F77=
14886 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14887 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }
14892 archive_cmds_need_lc_F77=no
14894 archive_cmds_need_lc_F77=yes
14896 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14898 cat conftest.err 1>&5
14901 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14902 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14909 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14911 library_names_spec=
14912 libname_spec='lib$name'
14916 postuninstall_cmds=
14920 shlibpath_overrides_runpath=unknown
14922 dynamic_linker="$host_os ld.so"
14923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14924 if test "$GCC" = yes; then
14925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14926 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14927 # if the path contains ";" then we assume it to be the separator
14928 # otherwise default to the standard path separator (i.e. ":") - it is
14929 # assumed that no part of a normal pathname contains ";" but that should
14930 # okay in the real world where ";" in dirpaths is itself problematic.
14931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14938 need_lib_prefix=unknown
14939 hardcode_into_libs=no
14941 # when you set need_version to no, make sure it does not cause -set_version
14942 # flags to be left without arguments
14943 need_version=unknown
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14949 shlibpath_var=LIBPATH
14951 # AIX 3 has no versioning support, so we append a major version to the name.
14952 soname_spec='${libname}${release}${shared_ext}$major'
14959 hardcode_into_libs=yes
14960 if test "$host_cpu" = ia64; then
14961 # AIX 5 supports IA64
14962 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14963 shlibpath_var=LD_LIBRARY_PATH
14965 # With GCC up to 2.95.x, collect2 would create an import file
14966 # for dependence libraries. The import file would start with
14967 # the line `#! .'. This would cause the generated library to
14968 # depend on `.', always an invalid library. This was fixed in
14969 # development snapshots of GCC prior to 3.0.
14971 aix4 | aix4.[01] | aix4.[01].*)
14972 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14974 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14977 can_build_shared=no
14981 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14982 # soname into executable. Probably we can add versioning support to
14983 # collect2, so additional links can be useful in future.
14984 if test "$aix_use_runtimelinking" = yes; then
14985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14986 # instead of lib<name>.a to let people know that these are not
14987 # typical AIX shared libraries.
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990 # We preserve .a as extension for shared libraries through AIX4.2
14991 # and later when we are not doing run time linking.
14992 library_names_spec='${libname}${release}.a $libname.a'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LIBPATH
15000 library_names_spec='$libname.ixlibrary $libname.a'
15001 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15002 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'
15006 library_names_spec='${libname}${shared_ext}'
15007 dynamic_linker="$host_os ld.so"
15008 shlibpath_var=LIBRARY_PATH
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15020 # the default ld.so.conf also contains /usr/contrib/lib and
15021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15022 # libtool to hard-code these into programs
15025 cygwin* | mingw* | pw32*)
15026 version_type=windows
15031 case $GCC,$host_os in
15032 yes,cygwin* | yes,mingw* | yes,pw32*)
15033 library_names_spec='$libname.dll.a'
15034 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15035 postinstall_cmds='base_file=`basename \${file}`~
15036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15037 dldir=$destdir/`dirname \$dlpath`~
15038 test -d \$dldir || mkdir -p \$dldir~
15039 $install_prog $dir/$dlname \$dldir/$dlname'
15040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15041 dlpath=$dir/\$dldll~
15043 shlibpath_overrides_runpath=yes
15047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15048 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15049 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15052 # MinGW DLLs use traditional 'lib' prefix
15053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15055 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15056 # It is most probably a Windows format PATH printed by
15057 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15058 # path with ; separators, and with drive letters. We can handle the
15059 # drive letters (cygwin fileutils understands them), so leave them,
15060 # especially as we might pass files found there to a mingw objdump,
15061 # which wouldn't understand a cygwinified path. Ahh.
15062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15068 # pw32 DLLs use 'pw' prefix rather than 'lib'
15069 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15078 dynamic_linker='Win32 ld.exe'
15079 # FIXME: first we should search . and the directory the executable is in
15083 darwin* | rhapsody*)
15084 dynamic_linker="$host_os dyld"
15085 version_type=darwin
15088 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15089 soname_spec='${libname}${release}${major}$shared_ext'
15090 shlibpath_overrides_runpath=yes
15091 shlibpath_var=DYLD_LIBRARY_PATH
15092 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15093 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15094 if test "$GCC" = yes; then
15095 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"`
15097 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15099 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 shlibpath_var=LD_LIBRARY_PATH
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 shlibpath_overrides_runpath=no
15123 hardcode_into_libs=yes
15124 dynamic_linker='GNU ld.so'
15127 freebsd* | dragonfly*)
15128 # DragonFly does not have aout. When/if they implement a new
15129 # versioning mechanism, adjust this.
15130 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15131 version_type=freebsd-$objformat
15132 case $version_type in
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15143 shlibpath_var=LD_LIBRARY_PATH
15146 shlibpath_overrides_runpath=yes
15148 freebsd3.[01]* | freebsdelf3.[01]*)
15149 shlibpath_overrides_runpath=yes
15150 hardcode_into_libs=yes
15153 shlibpath_overrides_runpath=no
15154 hardcode_into_libs=yes
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15164 soname_spec='${libname}${release}${shared_ext}$major'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 hardcode_into_libs=yes
15169 hpux9* | hpux10* | hpux11*)
15170 # Give a soname corresponding to the major version so that dld.sl refuses to
15171 # link against other versions.
15175 case "$host_cpu" in
15178 hardcode_into_libs=yes
15179 dynamic_linker="$host_os dld.so"
15180 shlibpath_var=LD_LIBRARY_PATH
15181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 if test "X$HPUX_IA64_MODE" = X32; then
15185 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15187 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15193 hardcode_into_libs=yes
15194 dynamic_linker="$host_os dld.sl"
15195 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15204 dynamic_linker="$host_os dld.sl"
15205 shlibpath_var=SHLIB_PATH
15206 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15211 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15212 postinstall_cmds='chmod 555 $lib'
15215 irix5* | irix6* | nonstopux*)
15217 nonstopux*) version_type=nonstopux ;;
15219 if test "$lt_cv_prog_gnu_ld" = yes; then
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15230 irix5* | nonstopux*)
15231 libsuff= shlibsuff=
15234 case $LD in # libtool.m4 will add one of these switches to LD
15235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15236 libsuff= shlibsuff= libmagic=32-bit;;
15237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15238 libsuff=32 shlibsuff=N32 libmagic=N32;;
15239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15240 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15241 *) libsuff= shlibsuff= libmagic=never-match;;
15245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15246 shlibpath_overrides_runpath=no
15247 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15248 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15249 hardcode_into_libs=yes
15252 # No shared lib support for Linux oldld, aout, or coff.
15253 linux*oldld* | linux*aout* | linux*coff*)
15257 # This must be Linux ELF.
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 shlibpath_overrides_runpath=no
15267 # This implies no fast_install, which is unacceptable.
15268 # Some rework will be needed to allow for fast_install
15269 # before this can be enabled.
15270 hardcode_into_libs=yes
15272 # Append ld.so.conf contents to the search path
15273 if test -f /etc/ld.so.conf; then
15274 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' ' '`
15275 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15278 # We used to test for /lib/ld.so.1 and disable shared libraries on
15279 # powerpc, because MkLinux only supported shared libraries with the
15280 # GNU dynamic linker. Since this was broken with cross compilers,
15281 # most powerpc-linux boxes support dynamic linking these days and
15282 # people can always --disable-shared, the test was removed, and we
15283 # assume the GNU/Linux dynamic linker is in use.
15284 dynamic_linker='GNU/Linux ld.so'
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=no
15295 hardcode_into_libs=yes
15296 dynamic_linker='GNU ld.so'
15303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15306 dynamic_linker='NetBSD (a.out) ld.so'
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15309 soname_spec='${libname}${release}${shared_ext}$major'
15310 dynamic_linker='NetBSD ld.elf_so'
15312 shlibpath_var=LD_LIBRARY_PATH
15313 shlibpath_overrides_runpath=yes
15314 hardcode_into_libs=yes
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=yes
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15329 soname_spec='${libname}${release}${shared_ext}$major'
15330 shlibpath_var=LD_LIBRARY_PATH
15331 shlibpath_overrides_runpath=yes
15337 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15339 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15340 *) need_version=no ;;
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15347 openbsd2.[89] | openbsd2.[89].*)
15348 shlibpath_overrides_runpath=no
15351 shlibpath_overrides_runpath=yes
15355 shlibpath_overrides_runpath=yes
15360 libname_spec='$name'
15363 library_names_spec='$libname${shared_ext} $libname.a'
15364 dynamic_linker='OS/2 ld.exe'
15365 shlibpath_var=LIBPATH
15368 osf3* | osf4* | osf5*)
15372 soname_spec='${libname}${release}${shared_ext}$major'
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15376 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15381 soname_spec='${libname}${release}${shared_ext}$major'
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 shlibpath_var=LD_LIBRARY_PATH
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 shlibpath_var=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath=yes
15394 hardcode_into_libs=yes
15395 # ldd complains unless libraries are executable
15396 postinstall_cmds='chmod +x $lib'
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15402 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15403 shlibpath_var=LD_LIBRARY_PATH
15404 shlibpath_overrides_runpath=yes
15405 if test "$with_gnu_ld" = yes; then
15411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 shlibpath_var=LD_LIBRARY_PATH
15416 case $host_vendor in
15418 shlibpath_overrides_runpath=no
15420 export_dynamic_flag_spec='${wl}-Blargedynsym'
15421 runpath_var=LD_RUN_PATH
15429 shlibpath_overrides_runpath=no
15430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15436 if test -d /usr/nec ;then
15438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15439 soname_spec='$libname${shared_ext}.$major'
15440 shlibpath_var=LD_LIBRARY_PATH
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 shlibpath_var=LD_LIBRARY_PATH
15455 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15456 echo "${ECHO_T}$dynamic_linker" >&6
15457 test "$dynamic_linker" = no && can_build_shared=no
15459 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15460 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15461 hardcode_action_F77=
15462 if test -n "$hardcode_libdir_flag_spec_F77" || \
15463 test -n "$runpath_var_F77" || \
15464 test "X$hardcode_automatic_F77" = "Xyes" ; then
15466 # We can hardcode non-existant directories.
15467 if test "$hardcode_direct_F77" != no &&
15468 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15469 # have to relink, otherwise we might link with an installed library
15470 # when we should be linking with a yet-to-be-installed one
15471 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15472 test "$hardcode_minus_L_F77" != no; then
15473 # Linking always hardcodes the temporary library directory.
15474 hardcode_action_F77=relink
15476 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15477 hardcode_action_F77=immediate
15480 # We cannot hardcode anything, or else we can only hardcode existing
15482 hardcode_action_F77=unsupported
15484 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15485 echo "${ECHO_T}$hardcode_action_F77" >&6
15487 if test "$hardcode_action_F77" = relink; then
15488 # Fast installation is not supported
15489 enable_fast_install=no
15490 elif test "$shlibpath_overrides_runpath" = yes ||
15491 test "$enable_shared" = no; then
15492 # Fast installation is not necessary
15493 enable_fast_install=needless
15498 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15499 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15500 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15501 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15502 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15503 echo "$as_me:$LINENO: result: yes" >&5
15504 echo "${ECHO_T}yes" >&6
15506 # FIXME - insert some real tests, host_os isn't really good enough
15509 if test -n "$STRIP" ; then
15510 striplib="$STRIP -x"
15511 echo "$as_me:$LINENO: result: yes" >&5
15512 echo "${ECHO_T}yes" >&6
15514 echo "$as_me:$LINENO: result: no" >&5
15515 echo "${ECHO_T}no" >&6
15519 echo "$as_me:$LINENO: result: no" >&5
15520 echo "${ECHO_T}no" >&6
15527 # The else clause should only fire when bootstrapping the
15528 # libtool distribution, otherwise you forgot to ship ltmain.sh
15529 # with your package, and you will get complaints that there are
15530 # no rules to generate ltmain.sh.
15531 if test -f "$ltmain"; then
15532 # See if we are running on zsh, and set the options which allow our commands through
15533 # without removal of \ escapes.
15534 if test -n "${ZSH_VERSION+set}" ; then
15535 setopt NO_GLOB_SUBST
15537 # Now quote all the things that may contain metacharacters while being
15538 # careful not to overquote the AC_SUBSTed values. We take copies of the
15539 # variables and quote the copies for generation of the libtool script.
15540 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15542 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15543 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15544 deplibs_check_method reload_flag reload_cmds need_locks \
15545 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15546 lt_cv_sys_global_symbol_to_c_name_address \
15547 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15548 old_postinstall_cmds old_postuninstall_cmds \
15552 lt_prog_compiler_wl_F77 \
15553 lt_prog_compiler_pic_F77 \
15554 lt_prog_compiler_static_F77 \
15555 lt_prog_compiler_no_builtin_flag_F77 \
15556 export_dynamic_flag_spec_F77 \
15557 thread_safe_flag_spec_F77 \
15558 whole_archive_flag_spec_F77 \
15559 enable_shared_with_static_runtimes_F77 \
15560 old_archive_cmds_F77 \
15561 old_archive_from_new_cmds_F77 \
15562 predep_objects_F77 \
15563 postdep_objects_F77 \
15566 compiler_lib_search_path_F77 \
15568 archive_expsym_cmds_F77 \
15569 postinstall_cmds_F77 \
15570 postuninstall_cmds_F77 \
15571 old_archive_from_expsyms_cmds_F77 \
15572 allow_undefined_flag_F77 \
15573 no_undefined_flag_F77 \
15574 export_symbols_cmds_F77 \
15575 hardcode_libdir_flag_spec_F77 \
15576 hardcode_libdir_flag_spec_ld_F77 \
15577 hardcode_libdir_separator_F77 \
15578 hardcode_automatic_F77 \
15580 module_expsym_cmds_F77 \
15581 lt_cv_prog_compiler_c_o_F77 \
15582 exclude_expsyms_F77 \
15583 include_expsyms_F77; do
15586 old_archive_cmds_F77 | \
15587 old_archive_from_new_cmds_F77 | \
15588 archive_cmds_F77 | \
15589 archive_expsym_cmds_F77 | \
15590 module_cmds_F77 | \
15591 module_expsym_cmds_F77 | \
15592 old_archive_from_expsyms_cmds_F77 | \
15593 export_symbols_cmds_F77 | \
15594 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15595 postinstall_cmds | postuninstall_cmds | \
15596 old_postinstall_cmds | old_postuninstall_cmds | \
15597 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15598 # Double-quote double-evaled strings.
15599 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15602 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15608 *'\$0 --fallback-echo"')
15609 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15615 cat <<__EOF__ >> "$cfgfile"
15616 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15618 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15620 # Shell to use when invoking shell scripts.
15623 # Whether or not to build shared libraries.
15624 build_libtool_libs=$enable_shared
15626 # Whether or not to build static libraries.
15627 build_old_libs=$enable_static
15629 # Whether or not to add -lc for building shared libraries.
15630 build_libtool_need_lc=$archive_cmds_need_lc_F77
15632 # Whether or not to disallow shared libs when runtime libs are static
15633 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15635 # Whether or not to optimize for fast installation.
15636 fast_install=$enable_fast_install
15639 host_alias=$host_alias
15643 # The build system.
15644 build_alias=$build_alias
15648 # An echo program that does not interpret backslashes.
15653 AR_FLAGS=$lt_AR_FLAGS
15658 # A language-specific compiler.
15659 CC=$lt_compiler_F77
15661 # Is the compiler the GNU C compiler?
15667 # The linker used to build libraries.
15670 # Whether we need hard or soft links.
15673 # A BSD-compatible nm program.
15676 # A symbol stripping program
15679 # Used to examine libraries when file_magic_cmd begins "file"
15680 MAGIC_CMD=$MAGIC_CMD
15682 # Used on cygwin: DLL creation program.
15685 # Used on cygwin: object dumper.
15688 # Used on cygwin: assembler.
15691 # The name of the directory that contains temporary libtool files.
15694 # How to create reloadable object files.
15695 reload_flag=$lt_reload_flag
15696 reload_cmds=$lt_reload_cmds
15698 # How to pass a linker flag through the compiler.
15699 wl=$lt_lt_prog_compiler_wl_F77
15701 # Object file suffix (normally "o").
15702 objext="$ac_objext"
15704 # Old archive suffix (normally "a").
15707 # Shared library suffix (normally ".so").
15708 shrext_cmds='$shrext_cmds'
15710 # Executable file suffix (normally "").
15713 # Additional compiler flags for building library objects.
15714 pic_flag=$lt_lt_prog_compiler_pic_F77
15717 # What is the maximum length of a command?
15718 max_cmd_len=$lt_cv_sys_max_cmd_len
15720 # Does compiler simultaneously support -c and -o options?
15721 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15723 # Must we lock files when doing compilation?
15724 need_locks=$lt_need_locks
15726 # Do we need the lib prefix for modules?
15727 need_lib_prefix=$need_lib_prefix
15729 # Do we need a version for libraries?
15730 need_version=$need_version
15732 # Whether dlopen is supported.
15733 dlopen_support=$enable_dlopen
15735 # Whether dlopen of programs is supported.
15736 dlopen_self=$enable_dlopen_self
15738 # Whether dlopen of statically linked programs is supported.
15739 dlopen_self_static=$enable_dlopen_self_static
15741 # Compiler flag to prevent dynamic linking.
15742 link_static_flag=$lt_lt_prog_compiler_static_F77
15744 # Compiler flag to turn off builtin functions.
15745 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15747 # Compiler flag to allow reflexive dlopens.
15748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15750 # Compiler flag to generate shared objects directly from archives.
15751 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15753 # Compiler flag to generate thread-safe objects.
15754 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15756 # Library versioning type.
15757 version_type=$version_type
15759 # Format of library name prefix.
15760 libname_spec=$lt_libname_spec
15762 # List of archive names. First name is the real one, the rest are links.
15763 # The last name is the one that the linker finds with -lNAME.
15764 library_names_spec=$lt_library_names_spec
15766 # The coded name of the library, if different from the real name.
15767 soname_spec=$lt_soname_spec
15769 # Commands used to build and install an old-style archive.
15771 old_archive_cmds=$lt_old_archive_cmds_F77
15772 old_postinstall_cmds=$lt_old_postinstall_cmds
15773 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15775 # Create an old-style archive from a shared archive.
15776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15778 # Create a temporary old-style archive to link instead of a shared archive.
15779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15781 # Commands used to build and install a shared archive.
15782 archive_cmds=$lt_archive_cmds_F77
15783 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15784 postinstall_cmds=$lt_postinstall_cmds
15785 postuninstall_cmds=$lt_postuninstall_cmds
15787 # Commands used to build a loadable module (assumed same as above if empty)
15788 module_cmds=$lt_module_cmds_F77
15789 module_expsym_cmds=$lt_module_expsym_cmds_F77
15791 # Commands to strip libraries.
15792 old_striplib=$lt_old_striplib
15793 striplib=$lt_striplib
15795 # Dependencies to place before the objects being linked to create a
15797 predep_objects=$lt_predep_objects_F77
15799 # Dependencies to place after the objects being linked to create a
15801 postdep_objects=$lt_postdep_objects_F77
15803 # Dependencies to place before the objects being linked to create a
15805 predeps=$lt_predeps_F77
15807 # Dependencies to place after the objects being linked to create a
15809 postdeps=$lt_postdeps_F77
15811 # The library search path used internally by the compiler when linking
15812 # a shared library.
15813 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15815 # Method to check whether dependent libraries are shared objects.
15816 deplibs_check_method=$lt_deplibs_check_method
15818 # Command to use when deplibs_check_method == file_magic.
15819 file_magic_cmd=$lt_file_magic_cmd
15821 # Flag that allows shared libraries with undefined symbols to be built.
15822 allow_undefined_flag=$lt_allow_undefined_flag_F77
15824 # Flag that forces no undefined symbols.
15825 no_undefined_flag=$lt_no_undefined_flag_F77
15827 # Commands used to finish a libtool library installation in a directory.
15828 finish_cmds=$lt_finish_cmds
15830 # Same as above, but a single script fragment to be evaled but not shown.
15831 finish_eval=$lt_finish_eval
15833 # Take the output of nm and produce a listing of raw symbols and C names.
15834 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15836 # Transform the output of nm in a proper C declaration
15837 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15839 # Transform the output of nm in a C name address pair
15840 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15842 # This is the shared library runtime path variable.
15843 runpath_var=$runpath_var
15845 # This is the shared library path variable.
15846 shlibpath_var=$shlibpath_var
15848 # Is shlibpath searched before the hard-coded library search path?
15849 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15851 # How to hardcode a shared library path into an executable.
15852 hardcode_action=$hardcode_action_F77
15854 # Whether we should hardcode library paths into libraries.
15855 hardcode_into_libs=$hardcode_into_libs
15857 # Flag to hardcode \$libdir into a binary during linking.
15858 # This must work even if \$libdir does not exist.
15859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15861 # If ld is used when linking, flag to hardcode \$libdir into
15862 # a binary during linking. This must work even if \$libdir does
15864 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15866 # Whether we need a single -rpath flag with a separated argument.
15867 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15869 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15870 # resulting binary.
15871 hardcode_direct=$hardcode_direct_F77
15873 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15874 # resulting binary.
15875 hardcode_minus_L=$hardcode_minus_L_F77
15877 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15878 # the resulting binary.
15879 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15881 # Set to yes if building a shared library automatically hardcodes DIR into the library
15882 # and all subsequent libraries and executables linked against it.
15883 hardcode_automatic=$hardcode_automatic_F77
15885 # Variables whose values should be saved in libtool wrapper scripts and
15886 # restored at relink time.
15887 variables_saved_for_relink="$variables_saved_for_relink"
15889 # Whether libtool must link a program against all its dependency libraries.
15890 link_all_deplibs=$link_all_deplibs_F77
15892 # Compile-time system search path for libraries
15893 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15895 # Run-time system search path for libraries
15896 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15898 # Fix the shell variable \$srcfile for the compiler.
15899 fix_srcfile_path="$fix_srcfile_path_F77"
15901 # Set to yes if exported symbols are required.
15902 always_export_symbols=$always_export_symbols_F77
15904 # The commands to list exported symbols.
15905 export_symbols_cmds=$lt_export_symbols_cmds_F77
15907 # The commands to extract the exported symbol list from a shared archive.
15908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15910 # Symbols that should not be listed in the preloaded symbols.
15911 exclude_expsyms=$lt_exclude_expsyms_F77
15913 # Symbols that must always be exported.
15914 include_expsyms=$lt_include_expsyms_F77
15916 # ### END LIBTOOL TAG CONFIG: $tagname
15922 # If there is no Makefile yet, we rely on a make rule to execute
15923 # `config.status --recheck' to rerun these tests and create the
15924 # libtool script then.
15925 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15926 if test -f "$ltmain_in"; then
15927 test -f Makefile && make "$ltmain"
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15946 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15950 # Source file extension for Java test sources.
15953 # Object file extension for compiled Java test sources.
15957 # Code to be used in simple compile tests
15958 lt_simple_compile_test_code="class foo {}\n"
15960 # Code to be used in simple link tests
15961 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15965 # If no C compiler was specified, use CC.
15968 # Allow CC to be a program name with arguments.
15972 # save warnings/boilerplate of simple test code
15973 ac_outfile=conftest.$ac_objext
15974 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15976 _lt_compiler_boilerplate=`cat conftest.err`
15979 ac_outfile=conftest.$ac_objext
15980 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15982 _lt_linker_boilerplate=`cat conftest.err`
15986 # Allow CC to be a program name with arguments.
15991 for cc_temp in $compiler""; do
15993 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15994 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15999 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16002 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16003 archive_cmds_need_lc_GCJ=no
16005 old_archive_cmds_GCJ=$old_archive_cmds
16008 lt_prog_compiler_no_builtin_flag_GCJ=
16010 if test "$GCC" = yes; then
16011 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16014 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16015 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16016 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16019 lt_cv_prog_compiler_rtti_exceptions=no
16020 ac_outfile=conftest.$ac_objext
16021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16022 lt_compiler_flag="-fno-rtti -fno-exceptions"
16023 # Insert the option either (1) after the last *FLAGS variable, or
16024 # (2) before a word containing "conftest.", or (3) at the end.
16025 # Note that $ac_compile itself does not contain backslashes and begins
16026 # with a dollar sign (not a hyphen), so the echo should work correctly.
16027 # The option is referenced via a variable to avoid confusing sed.
16028 lt_compile=`echo "$ac_compile" | $SED \
16029 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16031 -e 's:$: $lt_compiler_flag:'`
16032 (eval echo "\"\$as_me:16032: $lt_compile\"" >&5)
16033 (eval "$lt_compile" 2>conftest.err)
16035 cat conftest.err >&5
16036 echo "$as_me:16036: \$? = $ac_status" >&5
16037 if (exit $ac_status) && test -s "$ac_outfile"; then
16038 # The compiler can only warn and ignore the option if not recognized
16039 # So say no if there are warnings other than the usual output.
16040 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16041 $SED '/^$/d' conftest.err >conftest.er2
16042 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16043 lt_cv_prog_compiler_rtti_exceptions=yes
16049 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16050 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16052 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16053 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16060 lt_prog_compiler_wl_GCJ=
16061 lt_prog_compiler_pic_GCJ=
16062 lt_prog_compiler_static_GCJ=
16064 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16065 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16067 if test "$GCC" = yes; then
16068 lt_prog_compiler_wl_GCJ='-Wl,'
16069 lt_prog_compiler_static_GCJ='-static'
16073 # All AIX code is PIC.
16074 if test "$host_cpu" = ia64; then
16075 # AIX 5 now supports IA64 processor
16076 lt_prog_compiler_static_GCJ='-Bstatic'
16081 # FIXME: we need at least 68020 code to build shared libraries, but
16082 # adding the `-m68020' flag to GCC prevents building anything better,
16084 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16087 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16088 # PIC is the default for these OSes.
16091 mingw* | pw32* | os2*)
16092 # This hack is so that the source file can tell whether it is being
16093 # built for inclusion in a dll (and should export symbols for example).
16094 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16097 darwin* | rhapsody*)
16098 # PIC is the default on this platform
16099 # Common symbols not allowed in MH_DYLIB files
16100 lt_prog_compiler_pic_GCJ='-fno-common'
16104 # Just because we use GCC doesn't mean we suddenly get shared libraries
16105 # on systems that don't support them.
16106 lt_prog_compiler_can_build_shared_GCJ=no
16111 if test -d /usr/nec; then
16112 lt_prog_compiler_pic_GCJ=-Kconform_pic
16117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16118 # not for PA HP-UX.
16119 case "$host_cpu" in
16124 lt_prog_compiler_pic_GCJ='-fPIC'
16130 lt_prog_compiler_pic_GCJ='-fPIC'
16134 # PORTME Check for flag to pass linker flags through the system compiler.
16137 lt_prog_compiler_wl_GCJ='-Wl,'
16138 if test "$host_cpu" = ia64; then
16139 # AIX 5 now supports IA64 processor
16140 lt_prog_compiler_static_GCJ='-Bstatic'
16142 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16146 # PIC is the default on this platform
16147 # Common symbols not allowed in MH_DYLIB files
16148 case $cc_basename in
16150 lt_prog_compiler_pic_GCJ='-qnocommon'
16151 lt_prog_compiler_wl_GCJ='-Wl,'
16156 mingw* | pw32* | os2*)
16157 # This hack is so that the source file can tell whether it is being
16158 # built for inclusion in a dll (and should export symbols for example).
16159 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16162 hpux9* | hpux10* | hpux11*)
16163 lt_prog_compiler_wl_GCJ='-Wl,'
16164 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16165 # not for PA HP-UX.
16166 case "$host_cpu" in
16171 lt_prog_compiler_pic_GCJ='+Z'
16174 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16175 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16178 irix5* | irix6* | nonstopux*)
16179 lt_prog_compiler_wl_GCJ='-Wl,'
16180 # PIC (with -KPIC) is the default.
16181 lt_prog_compiler_static_GCJ='-non_shared'
16185 lt_prog_compiler_pic_GCJ='-KPIC'
16186 lt_prog_compiler_static_GCJ='-Bstatic'
16190 case $cc_basename in
16192 lt_prog_compiler_wl_GCJ='-Wl,'
16193 lt_prog_compiler_pic_GCJ='-KPIC'
16194 lt_prog_compiler_static_GCJ='-static'
16196 pgcc* | pgf77* | pgf90*)
16197 # Portland Group compilers (*not* the Pentium gcc compiler,
16198 # which looks to be a dead project)
16199 lt_prog_compiler_wl_GCJ='-Wl,'
16200 lt_prog_compiler_pic_GCJ='-fpic'
16201 lt_prog_compiler_static_GCJ='-static'
16204 lt_prog_compiler_wl_GCJ='-Wl,'
16205 # All Alpha code is PIC.
16206 lt_prog_compiler_static_GCJ='-non_shared'
16211 osf3* | osf4* | osf5*)
16212 lt_prog_compiler_wl_GCJ='-Wl,'
16213 # All OSF/1 code is PIC.
16214 lt_prog_compiler_static_GCJ='-non_shared'
16218 lt_prog_compiler_pic_GCJ='-Kpic'
16219 lt_prog_compiler_static_GCJ='-dn'
16223 lt_prog_compiler_pic_GCJ='-KPIC'
16224 lt_prog_compiler_static_GCJ='-Bstatic'
16225 case $cc_basename in
16226 f77* | f90* | f95*)
16227 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16229 lt_prog_compiler_wl_GCJ='-Wl,';;
16234 lt_prog_compiler_wl_GCJ='-Qoption ld '
16235 lt_prog_compiler_pic_GCJ='-PIC'
16236 lt_prog_compiler_static_GCJ='-Bstatic'
16239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16240 lt_prog_compiler_wl_GCJ='-Wl,'
16241 lt_prog_compiler_pic_GCJ='-KPIC'
16242 lt_prog_compiler_static_GCJ='-Bstatic'
16246 if test -d /usr/nec ;then
16247 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16248 lt_prog_compiler_static_GCJ='-Bstatic'
16253 lt_prog_compiler_wl_GCJ='-Wl,'
16254 lt_prog_compiler_can_build_shared_GCJ=no
16258 lt_prog_compiler_pic_GCJ='-pic'
16259 lt_prog_compiler_static_GCJ='-Bstatic'
16263 lt_prog_compiler_can_build_shared_GCJ=no
16268 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16269 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16272 # Check to make sure the PIC flag actually works.
16274 if test -n "$lt_prog_compiler_pic_GCJ"; then
16276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16277 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16278 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 lt_prog_compiler_pic_works_GCJ=no
16282 ac_outfile=conftest.$ac_objext
16283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16284 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16285 # Insert the option either (1) after the last *FLAGS variable, or
16286 # (2) before a word containing "conftest.", or (3) at the end.
16287 # Note that $ac_compile itself does not contain backslashes and begins
16288 # with a dollar sign (not a hyphen), so the echo should work correctly.
16289 # The option is referenced via a variable to avoid confusing sed.
16290 lt_compile=`echo "$ac_compile" | $SED \
16291 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16293 -e 's:$: $lt_compiler_flag:'`
16294 (eval echo "\"\$as_me:16294: $lt_compile\"" >&5)
16295 (eval "$lt_compile" 2>conftest.err)
16297 cat conftest.err >&5
16298 echo "$as_me:16298: \$? = $ac_status" >&5
16299 if (exit $ac_status) && test -s "$ac_outfile"; then
16300 # The compiler can only warn and ignore the option if not recognized
16301 # So say no if there are warnings other than the usual output.
16302 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16303 $SED '/^$/d' conftest.err >conftest.er2
16304 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16305 lt_prog_compiler_pic_works_GCJ=yes
16311 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16312 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16314 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16315 case $lt_prog_compiler_pic_GCJ in
16317 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16320 lt_prog_compiler_pic_GCJ=
16321 lt_prog_compiler_can_build_shared_GCJ=no
16326 # For platforms which do not support PIC, -DPIC is meaningless:
16328 lt_prog_compiler_pic_GCJ=
16331 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16335 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16337 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 lt_cv_prog_compiler_c_o_GCJ=no
16341 $rm -r conftest 2>/dev/null
16345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16347 lt_compiler_flag="-o out/conftest2.$ac_objext"
16348 # Insert the option either (1) after the last *FLAGS variable, or
16349 # (2) before a word containing "conftest.", or (3) at the end.
16350 # Note that $ac_compile itself does not contain backslashes and begins
16351 # with a dollar sign (not a hyphen), so the echo should work correctly.
16352 lt_compile=`echo "$ac_compile" | $SED \
16353 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16355 -e 's:$: $lt_compiler_flag:'`
16356 (eval echo "\"\$as_me:16356: $lt_compile\"" >&5)
16357 (eval "$lt_compile" 2>out/conftest.err)
16359 cat out/conftest.err >&5
16360 echo "$as_me:16360: \$? = $ac_status" >&5
16361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16363 # The compiler can only warn and ignore the option if not recognized
16364 # So say no if there are warnings
16365 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16366 $SED '/^$/d' out/conftest.err >out/conftest.er2
16367 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16368 lt_cv_prog_compiler_c_o_GCJ=yes
16373 # SGI C++ compiler will create directory out/ii_files/ for
16374 # template instantiation
16375 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16376 $rm out/* && rmdir out
16382 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16386 hard_links="nottested"
16387 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16388 # do not overwrite the value of need_locks provided by the user
16389 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16395 ln conftest.a conftest.b 2>&5 || hard_links=no
16396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16397 echo "$as_me:$LINENO: result: $hard_links" >&5
16398 echo "${ECHO_T}$hard_links" >&6
16399 if test "$hard_links" = no; then
16400 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16408 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16412 allow_undefined_flag_GCJ=
16413 enable_shared_with_static_runtimes_GCJ=no
16415 archive_expsym_cmds_GCJ=
16416 old_archive_From_new_cmds_GCJ=
16417 old_archive_from_expsyms_cmds_GCJ=
16418 export_dynamic_flag_spec_GCJ=
16419 whole_archive_flag_spec_GCJ=
16420 thread_safe_flag_spec_GCJ=
16421 hardcode_libdir_flag_spec_GCJ=
16422 hardcode_libdir_flag_spec_ld_GCJ=
16423 hardcode_libdir_separator_GCJ=
16424 hardcode_direct_GCJ=no
16425 hardcode_minus_L_GCJ=no
16426 hardcode_shlibpath_var_GCJ=unsupported
16427 link_all_deplibs_GCJ=unknown
16428 hardcode_automatic_GCJ=no
16430 module_expsym_cmds_GCJ=
16431 always_export_symbols_GCJ=no
16432 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16433 # include_expsyms should be a list of space-separated symbols to be *always*
16434 # included in the symbol list
16435 include_expsyms_GCJ=
16436 # exclude_expsyms can be an extended regexp of symbols to exclude
16437 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16438 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16439 # as well as any symbol that contains `d'.
16440 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16441 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16442 # platforms (ab)use it in PIC code, but their linkers get confused if
16443 # the symbol is explicitly referenced. Since portable code cannot
16444 # rely on this symbol name, it's probably fine to never include it in
16445 # preloaded symbol tables.
16446 extract_expsyms_cmds=
16447 # Just being paranoid about ensuring that cc_basename is set.
16448 for cc_temp in $compiler""; do
16450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16459 cygwin* | mingw* | pw32*)
16460 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16461 # When not using gcc, we currently assume that we are using
16462 # Microsoft Visual C++.
16463 if test "$GCC" != yes; then
16473 if test "$with_gnu_ld" = yes; then
16474 # If archive_cmds runs LD, not CC, wlarc should be empty
16477 # Set some defaults for GNU ld with shared library support. These
16478 # are reset later if shared libraries are not supported. Putting them
16479 # here allows them to be overridden if necessary.
16480 runpath_var=LD_RUN_PATH
16481 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16482 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16483 # ancient GNU ld didn't support --whole-archive et. al.
16484 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16485 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16487 whole_archive_flag_spec_GCJ=
16489 supports_anon_versioning=no
16490 case `$LD -v 2>/dev/null` in
16491 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16492 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16493 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16494 *\ 2.11.*) ;; # other 2.11 versions
16495 *) supports_anon_versioning=yes ;;
16498 # See if GNU ld supports shared libraries.
16500 aix3* | aix4* | aix5*)
16501 # On AIX/PPC, the GNU linker is very broken
16502 if test "$host_cpu" != ia64; then
16506 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16507 *** to be unable to reliably create shared libraries on AIX.
16508 *** Therefore, libtool is disabling shared libraries support. If you
16509 *** really care for shared libraries, you may want to modify your PATH
16510 *** so that a non-GNU linker is found, and then restart.
16517 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)'
16518 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16519 hardcode_minus_L_GCJ=yes
16521 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16522 # that the semantics of dynamic libraries on AmigaOS, at least up
16523 # to version 4, is to share data among multiple programs linked
16524 # with the same dynamic library. Since this doesn't match the
16525 # behavior of shared libraries on other platforms, we can't use
16531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16532 allow_undefined_flag_GCJ=unsupported
16533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16534 # support --undefined. This deserves some investigation. FIXME
16535 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16541 cygwin* | mingw* | pw32*)
16542 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16543 # as there is no search path for DLLs.
16544 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16545 allow_undefined_flag_GCJ=unsupported
16546 always_export_symbols_GCJ=no
16547 enable_shared_with_static_runtimes_GCJ=yes
16548 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16550 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16551 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16552 # If the export-symbols file already is a .def file (1st line
16553 # is EXPORTS), use it as is; otherwise, prepend...
16554 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16555 cp $export_symbols $output_objdir/$soname.def;
16557 echo EXPORTS > $output_objdir/$soname.def;
16558 cat $export_symbols >> $output_objdir/$soname.def;
16560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16567 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16569 case $cc_basename,$host_cpu in
16570 pgcc*) # Portland Group C compiler
16571 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'
16572 tmp_addflag=' $pic_flag'
16574 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16575 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'
16576 tmp_addflag=' $pic_flag -Mnomain' ;;
16577 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16578 tmp_addflag=' -i_dynamic' ;;
16579 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16580 tmp_addflag=' -i_dynamic -nofor_main' ;;
16581 ifc* | ifort*) # Intel Fortran compiler
16582 tmp_addflag=' -nofor_main' ;;
16584 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16586 if test $supports_anon_versioning = yes; then
16587 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16588 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16589 $echo "local: *; };" >> $output_objdir/$libname.ver~
16590 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16599 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16602 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16603 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16608 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16613 *** create shared libraries on Solaris systems. Therefore, libtool
16614 *** is disabling shared libraries support. We urge you to upgrade GNU
16615 *** binutils to release 2.9.1 or newer. Another option is to modify
16616 *** your PATH or compiler configuration so that the native linker is
16617 *** used, and then restart.
16620 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16621 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16622 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16629 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16631 hardcode_direct_GCJ=yes
16632 hardcode_shlibpath_var_GCJ=no
16636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16637 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16638 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16645 if test "$ld_shlibs_GCJ" = no; then
16647 hardcode_libdir_flag_spec_GCJ=
16648 export_dynamic_flag_spec_GCJ=
16649 whole_archive_flag_spec_GCJ=
16652 # PORTME fill in a description of your system's linker (not GNU ld)
16655 allow_undefined_flag_GCJ=unsupported
16656 always_export_symbols_GCJ=yes
16657 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'
16658 # Note: this linker hardcodes the directories in LIBPATH if there
16659 # are no directories specified by -L.
16660 hardcode_minus_L_GCJ=yes
16661 if test "$GCC" = yes && test -z "$link_static_flag"; then
16662 # Neither direct hardcoding nor static linking is supported with a
16664 hardcode_direct_GCJ=unsupported
16669 if test "$host_cpu" = ia64; then
16670 # On IA64, the linker does run time linking by default, so we don't
16671 # have to do anything special.
16672 aix_use_runtimelinking=no
16673 exp_sym_flag='-Bexport'
16676 # If we're using GNU nm, then we don't want the "-C" option.
16677 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16678 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16679 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'
16681 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'
16683 aix_use_runtimelinking=no
16685 # Test if we are trying to use run time linking or normal
16686 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16687 # need to do runtime linking.
16688 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16689 for ld_flag in $LDFLAGS; do
16690 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16691 aix_use_runtimelinking=yes
16697 exp_sym_flag='-bexport'
16698 no_entry_flag='-bnoentry'
16701 # When large executables or shared objects are built, AIX ld can
16702 # have problems creating the table of contents. If linking a library
16703 # or program results in "error TOC overflow" add -mminimal-toc to
16704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16707 archive_cmds_GCJ=''
16708 hardcode_direct_GCJ=yes
16709 hardcode_libdir_separator_GCJ=':'
16710 link_all_deplibs_GCJ=yes
16712 if test "$GCC" = yes; then
16713 case $host_os in aix4.[012]|aix4.[012].*)
16714 # We only want to do this on AIX 4.2 and lower, the check
16715 # below for broken collect2 doesn't work under 4.3+
16716 collect2name=`${CC} -print-prog-name=collect2`
16717 if test -f "$collect2name" && \
16718 strings "$collect2name" | grep resolve_lib_name >/dev/null
16720 # We have reworked collect2
16721 hardcode_direct_GCJ=yes
16723 # We have old collect2
16724 hardcode_direct_GCJ=unsupported
16725 # It fails to find uninstalled libraries when the uninstalled
16726 # path is not listed in the libpath. Setting hardcode_minus_L
16727 # to unsupported forces relinking
16728 hardcode_minus_L_GCJ=yes
16729 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16730 hardcode_libdir_separator_GCJ=
16733 shared_flag='-shared'
16734 if test "$aix_use_runtimelinking" = yes; then
16735 shared_flag="$shared_flag "'${wl}-G'
16739 if test "$host_cpu" = ia64; then
16740 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16741 # chokes on -Wl,-G. The following line is correct:
16744 if test "$aix_use_runtimelinking" = yes; then
16745 shared_flag='${wl}-G'
16747 shared_flag='${wl}-bM:SRE'
16752 # It seems that -bexpall does not export symbols beginning with
16753 # underscore (_), so it is better to generate a list of symbols to export.
16754 always_export_symbols_GCJ=yes
16755 if test "$aix_use_runtimelinking" = yes; then
16756 # Warning - without using the other runtime loading flags (-brtl),
16757 # -berok will link without error, but may produce a broken library.
16758 allow_undefined_flag_GCJ='-berok'
16759 # Determine the default libpath from the value encoded in an empty executable.
16760 cat >conftest.$ac_ext <<_ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16775 rm -f conftest.$ac_objext conftest$ac_exeext
16776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16777 (eval $ac_link) 2>conftest.er1
16779 grep -v '^ *+' conftest.er1 >conftest.err
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } &&
16784 { ac_try='test -z "$ac_c_werror_flag"
16785 || test ! -s conftest.err'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try='test -s conftest$ac_exeext'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16798 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16800 # Check for a 64-bit object if we didn't find anything.
16801 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; }
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16808 rm -f conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16810 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16812 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16813 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"
16815 if test "$host_cpu" = ia64; then
16816 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16817 allow_undefined_flag_GCJ="-z nodefs"
16818 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"
16820 # Determine the default libpath from the value encoded in an empty executable.
16821 cat >conftest.$ac_ext <<_ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16836 rm -f conftest.$ac_objext conftest$ac_exeext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16838 (eval $ac_link) 2>conftest.er1
16840 grep -v '^ *+' conftest.er1 >conftest.err
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
16845 { ac_try='test -z "$ac_c_werror_flag"
16846 || test ! -s conftest.err'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest$ac_exeext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16861 # Check for a 64-bit object if we didn't find anything.
16862 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; }
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16869 rm -f conftest.err conftest.$ac_objext \
16870 conftest$ac_exeext conftest.$ac_ext
16871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16873 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16874 # Warning - without using the other run time loading flags,
16875 # -berok will link without error, but may produce a broken library.
16876 no_undefined_flag_GCJ=' ${wl}-bernotok'
16877 allow_undefined_flag_GCJ=' ${wl}-berok'
16878 # -bexpall does not export symbols beginning with underscore (_)
16879 always_export_symbols_GCJ=yes
16880 # Exported symbols can be pulled into shared objects from archives
16881 whole_archive_flag_spec_GCJ=' '
16882 archive_cmds_need_lc_GCJ=yes
16883 # This is similar to how AIX traditionally builds it's shared libraries.
16884 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'
16890 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)'
16891 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16892 hardcode_minus_L_GCJ=yes
16893 # see comment about different semantics on the GNU ld section
16898 export_dynamic_flag_spec_GCJ=-rdynamic
16901 cygwin* | mingw* | pw32*)
16902 # When not using gcc, we currently assume that we are using
16903 # Microsoft Visual C++.
16904 # hardcode_libdir_flag_spec is actually meaningless, as there is
16905 # no search path for DLLs.
16906 hardcode_libdir_flag_spec_GCJ=' '
16907 allow_undefined_flag_GCJ=unsupported
16908 # Tell ltmain to make .lib files, not .a files.
16910 # Tell ltmain to make .dll files, not .so files.
16912 # FIXME: Setting linknames here is a bad hack.
16913 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16914 # The linker will automatically build a .lib file if we build a DLL.
16915 old_archive_From_new_cmds_GCJ='true'
16916 # FIXME: Should let the user specify the lib program.
16917 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16918 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16919 enable_shared_with_static_runtimes_GCJ=yes
16922 darwin* | rhapsody*)
16924 rhapsody* | darwin1.[012])
16925 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16928 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16929 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16931 case ${MACOSX_DEPLOYMENT_TARGET} in
16933 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16936 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16942 archive_cmds_need_lc_GCJ=no
16943 hardcode_direct_GCJ=no
16944 hardcode_automatic_GCJ=yes
16945 hardcode_shlibpath_var_GCJ=unsupported
16946 whole_archive_flag_spec_GCJ=''
16947 link_all_deplibs_GCJ=yes
16948 if test "$GCC" = yes ; then
16949 output_verbose_link_cmd='echo'
16950 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16951 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16952 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16953 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}'
16954 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}'
16956 case $cc_basename in
16958 output_verbose_link_cmd='echo'
16959 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16960 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16962 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}'
16963 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}'
16973 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16975 hardcode_shlibpath_var_GCJ=no
16982 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16983 # support. Future versions do this automatically, but an explicit c++rt0.o
16984 # does not break anything, and helps significantly (at the cost of a little
16987 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16988 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16989 hardcode_direct_GCJ=yes
16990 hardcode_shlibpath_var_GCJ=no
16993 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16995 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16996 hardcode_direct_GCJ=yes
16997 hardcode_minus_L_GCJ=yes
16998 hardcode_shlibpath_var_GCJ=no
17001 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17002 freebsd* | kfreebsd*-gnu | dragonfly*)
17003 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17004 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17005 hardcode_direct_GCJ=yes
17006 hardcode_shlibpath_var_GCJ=no
17010 if test "$GCC" = yes; then
17011 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'
17013 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'
17015 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17016 hardcode_libdir_separator_GCJ=:
17017 hardcode_direct_GCJ=yes
17019 # hardcode_minus_L: Not really in the search PATH,
17020 # but as the default location of the library.
17021 hardcode_minus_L_GCJ=yes
17022 export_dynamic_flag_spec_GCJ='${wl}-E'
17026 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17027 case "$host_cpu" in
17029 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17032 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17036 case "$host_cpu" in
17038 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17041 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17045 if test "$with_gnu_ld" = no; then
17046 case "$host_cpu" in
17048 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17049 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17050 hardcode_libdir_separator_GCJ=:
17051 hardcode_direct_GCJ=no
17052 hardcode_shlibpath_var_GCJ=no
17055 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17056 hardcode_direct_GCJ=no
17057 hardcode_shlibpath_var_GCJ=no
17059 # hardcode_minus_L: Not really in the search PATH,
17060 # but as the default location of the library.
17061 hardcode_minus_L_GCJ=yes
17064 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17065 hardcode_libdir_separator_GCJ=:
17066 hardcode_direct_GCJ=yes
17067 export_dynamic_flag_spec_GCJ='${wl}-E'
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
17077 irix5* | irix6* | nonstopux*)
17078 if test "$GCC" = yes; then
17079 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'
17081 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'
17082 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17084 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17085 hardcode_libdir_separator_GCJ=:
17086 link_all_deplibs_GCJ=yes
17090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17091 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17093 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17095 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17096 hardcode_direct_GCJ=yes
17097 hardcode_shlibpath_var_GCJ=no
17101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102 hardcode_direct_GCJ=yes
17103 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17104 hardcode_libdir_separator_GCJ=:
17105 hardcode_shlibpath_var_GCJ=no
17109 hardcode_direct_GCJ=yes
17110 hardcode_shlibpath_var_GCJ=no
17111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17112 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17113 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17114 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17115 export_dynamic_flag_spec_GCJ='${wl}-E'
17118 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17119 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17120 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17123 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17124 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17131 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17132 hardcode_minus_L_GCJ=yes
17133 allow_undefined_flag_GCJ=unsupported
17134 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'
17135 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17139 if test "$GCC" = yes; then
17140 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17141 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'
17143 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17144 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'
17146 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17147 hardcode_libdir_separator_GCJ=:
17150 osf4* | osf5*) # as osf3* with the addition of -msym flag
17151 if test "$GCC" = yes; then
17152 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17153 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'
17154 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17156 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17157 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'
17158 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~
17159 $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'
17161 # Both c and cxx compiler support -rpath directly
17162 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17164 hardcode_libdir_separator_GCJ=:
17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_shlibpath_var_GCJ=no
17170 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17171 runpath_var=LD_RUN_PATH
17172 hardcode_runpath_var=yes
17176 no_undefined_flag_GCJ=' -z text'
17177 if test "$GCC" = yes; then
17179 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17180 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17181 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17184 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17186 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17188 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17189 hardcode_shlibpath_var_GCJ=no
17191 solaris2.[0-5] | solaris2.[0-5].*) ;;
17193 # The compiler driver will combine linker options so we
17194 # cannot just pass the convience library names through
17195 # without $wl, iff we do not link with $LD.
17196 # Luckily, gcc supports the same syntax we need for Sun Studio.
17197 # Supported since Solaris 2.6 (maybe 2.5.1?)
17200 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17202 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' ;;
17205 link_all_deplibs_GCJ=yes
17209 if test "x$host_vendor" = xsequent; then
17210 # Use $CC to link under sequent, because it throws in some extra .o
17211 # files that make .init and .fini sections work.
17212 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17214 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17216 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17217 hardcode_direct_GCJ=yes
17218 hardcode_minus_L_GCJ=yes
17219 hardcode_shlibpath_var_GCJ=no
17223 case $host_vendor in
17225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226 hardcode_direct_GCJ=yes # is this really true???
17229 ## LD is ld it makes a PLAMLIB
17230 ## CC just makes a GrossModule.
17231 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17232 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17233 hardcode_direct_GCJ=no
17236 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17237 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17240 runpath_var='LD_RUN_PATH'
17241 hardcode_shlibpath_var_GCJ=no
17245 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17246 hardcode_shlibpath_var_GCJ=no
17247 export_dynamic_flag_spec_GCJ='-Bexport'
17251 if test -d /usr/nec; then
17252 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17253 hardcode_shlibpath_var_GCJ=no
17254 runpath_var=LD_RUN_PATH
17255 hardcode_runpath_var=yes
17261 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17262 hardcode_direct_GCJ=yes
17263 hardcode_minus_L_GCJ=no
17264 hardcode_shlibpath_var_GCJ=no
17265 hardcode_runpath_var=yes
17266 runpath_var=LD_RUN_PATH
17269 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17270 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17271 if test "$GCC" = yes; then
17272 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17274 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17276 runpath_var='LD_RUN_PATH'
17277 hardcode_shlibpath_var_GCJ=no
17281 no_undefined_flag_GCJ=' -z text'
17282 # $CC -shared without GNU ld will not create a library from C++
17283 # object files and a static libstdc++, better avoid it by now
17284 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17285 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17286 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17287 hardcode_libdir_flag_spec_GCJ=
17288 hardcode_shlibpath_var_GCJ=no
17289 runpath_var='LD_RUN_PATH'
17293 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17294 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17295 hardcode_shlibpath_var_GCJ=no
17304 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17305 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17306 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17308 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17309 if test "$GCC" = yes; then
17310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17314 # Do we need to explicitly link libc?
17316 case "x$archive_cmds_need_lc_GCJ" in
17318 # Assume -lc should be added
17319 archive_cmds_need_lc_GCJ=yes
17321 if test "$enable_shared" = yes && test "$GCC" = yes; then
17322 case $archive_cmds_GCJ in
17324 # FIXME: we may have to deal with multi-command sequences.
17327 # Test whether the compiler implicitly links with -lc since on some
17328 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17329 # to ld, don't add -lc before -lgcc.
17330 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17331 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17336 (eval $ac_compile) 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } 2>conftest.err; then
17342 libobjs=conftest.$ac_objext
17344 wl=$lt_prog_compiler_wl_GCJ
17350 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17351 allow_undefined_flag_GCJ=
17352 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17353 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }
17358 archive_cmds_need_lc_GCJ=no
17360 archive_cmds_need_lc_GCJ=yes
17362 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17364 cat conftest.err 1>&5
17367 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17368 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17375 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17376 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17377 library_names_spec=
17378 libname_spec='lib$name'
17382 postuninstall_cmds=
17386 shlibpath_overrides_runpath=unknown
17388 dynamic_linker="$host_os ld.so"
17389 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17390 if test "$GCC" = yes; then
17391 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17392 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17393 # if the path contains ";" then we assume it to be the separator
17394 # otherwise default to the standard path separator (i.e. ":") - it is
17395 # assumed that no part of a normal pathname contains ";" but that should
17396 # okay in the real world where ";" in dirpaths is itself problematic.
17397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17402 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17404 need_lib_prefix=unknown
17405 hardcode_into_libs=no
17407 # when you set need_version to no, make sure it does not cause -set_version
17408 # flags to be left without arguments
17409 need_version=unknown
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17415 shlibpath_var=LIBPATH
17417 # AIX 3 has no versioning support, so we append a major version to the name.
17418 soname_spec='${libname}${release}${shared_ext}$major'
17425 hardcode_into_libs=yes
17426 if test "$host_cpu" = ia64; then
17427 # AIX 5 supports IA64
17428 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17429 shlibpath_var=LD_LIBRARY_PATH
17431 # With GCC up to 2.95.x, collect2 would create an import file
17432 # for dependence libraries. The import file would start with
17433 # the line `#! .'. This would cause the generated library to
17434 # depend on `.', always an invalid library. This was fixed in
17435 # development snapshots of GCC prior to 3.0.
17437 aix4 | aix4.[01] | aix4.[01].*)
17438 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17440 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17443 can_build_shared=no
17447 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17448 # soname into executable. Probably we can add versioning support to
17449 # collect2, so additional links can be useful in future.
17450 if test "$aix_use_runtimelinking" = yes; then
17451 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17452 # instead of lib<name>.a to let people know that these are not
17453 # typical AIX shared libraries.
17454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17456 # We preserve .a as extension for shared libraries through AIX4.2
17457 # and later when we are not doing run time linking.
17458 library_names_spec='${libname}${release}.a $libname.a'
17459 soname_spec='${libname}${release}${shared_ext}$major'
17461 shlibpath_var=LIBPATH
17466 library_names_spec='$libname.ixlibrary $libname.a'
17467 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17468 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'
17472 library_names_spec='${libname}${shared_ext}'
17473 dynamic_linker="$host_os ld.so"
17474 shlibpath_var=LIBRARY_PATH
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17483 shlibpath_var=LD_LIBRARY_PATH
17484 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17485 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17486 # the default ld.so.conf also contains /usr/contrib/lib and
17487 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17488 # libtool to hard-code these into programs
17491 cygwin* | mingw* | pw32*)
17492 version_type=windows
17497 case $GCC,$host_os in
17498 yes,cygwin* | yes,mingw* | yes,pw32*)
17499 library_names_spec='$libname.dll.a'
17500 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17501 postinstall_cmds='base_file=`basename \${file}`~
17502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17503 dldir=$destdir/`dirname \$dlpath`~
17504 test -d \$dldir || mkdir -p \$dldir~
17505 $install_prog $dir/$dlname \$dldir/$dlname'
17506 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17507 dlpath=$dir/\$dldll~
17509 shlibpath_overrides_runpath=yes
17513 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17514 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17515 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17518 # MinGW DLLs use traditional 'lib' prefix
17519 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17520 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17521 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17522 # It is most probably a Windows format PATH printed by
17523 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17524 # path with ; separators, and with drive letters. We can handle the
17525 # drive letters (cygwin fileutils understands them), so leave them,
17526 # especially as we might pass files found there to a mingw objdump,
17527 # which wouldn't understand a cygwinified path. Ahh.
17528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17530 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17534 # pw32 DLLs use 'pw' prefix rather than 'lib'
17535 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17541 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17544 dynamic_linker='Win32 ld.exe'
17545 # FIXME: first we should search . and the directory the executable is in
17549 darwin* | rhapsody*)
17550 dynamic_linker="$host_os dyld"
17551 version_type=darwin
17554 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17555 soname_spec='${libname}${release}${major}$shared_ext'
17556 shlibpath_overrides_runpath=yes
17557 shlibpath_var=DYLD_LIBRARY_PATH
17558 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17559 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17560 if test "$GCC" = yes; then
17561 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"`
17563 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17573 soname_spec='${libname}${release}${shared_ext}$major'
17574 shlibpath_var=LD_LIBRARY_PATH
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 shlibpath_var=LD_LIBRARY_PATH
17588 shlibpath_overrides_runpath=no
17589 hardcode_into_libs=yes
17590 dynamic_linker='GNU ld.so'
17593 freebsd* | dragonfly*)
17594 # DragonFly does not have aout. When/if they implement a new
17595 # versioning mechanism, adjust this.
17596 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17597 version_type=freebsd-$objformat
17598 case $version_type in
17600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17609 shlibpath_var=LD_LIBRARY_PATH
17612 shlibpath_overrides_runpath=yes
17614 freebsd3.[01]* | freebsdelf3.[01]*)
17615 shlibpath_overrides_runpath=yes
17616 hardcode_into_libs=yes
17619 shlibpath_overrides_runpath=no
17620 hardcode_into_libs=yes
17629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17630 soname_spec='${libname}${release}${shared_ext}$major'
17631 shlibpath_var=LD_LIBRARY_PATH
17632 hardcode_into_libs=yes
17635 hpux9* | hpux10* | hpux11*)
17636 # Give a soname corresponding to the major version so that dld.sl refuses to
17637 # link against other versions.
17641 case "$host_cpu" in
17644 hardcode_into_libs=yes
17645 dynamic_linker="$host_os dld.so"
17646 shlibpath_var=LD_LIBRARY_PATH
17647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17650 if test "X$HPUX_IA64_MODE" = X32; then
17651 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17653 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17659 hardcode_into_libs=yes
17660 dynamic_linker="$host_os dld.sl"
17661 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664 soname_spec='${libname}${release}${shared_ext}$major'
17665 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17670 dynamic_linker="$host_os dld.sl"
17671 shlibpath_var=SHLIB_PATH
17672 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17674 soname_spec='${libname}${release}${shared_ext}$major'
17677 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17678 postinstall_cmds='chmod 555 $lib'
17681 irix5* | irix6* | nonstopux*)
17683 nonstopux*) version_type=nonstopux ;;
17685 if test "$lt_cv_prog_gnu_ld" = yes; then
17693 soname_spec='${libname}${release}${shared_ext}$major'
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17696 irix5* | nonstopux*)
17697 libsuff= shlibsuff=
17700 case $LD in # libtool.m4 will add one of these switches to LD
17701 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17702 libsuff= shlibsuff= libmagic=32-bit;;
17703 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17704 libsuff=32 shlibsuff=N32 libmagic=N32;;
17705 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17706 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17707 *) libsuff= shlibsuff= libmagic=never-match;;
17711 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17712 shlibpath_overrides_runpath=no
17713 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17714 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17715 hardcode_into_libs=yes
17718 # No shared lib support for Linux oldld, aout, or coff.
17719 linux*oldld* | linux*aout* | linux*coff*)
17723 # This must be Linux ELF.
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17731 shlibpath_var=LD_LIBRARY_PATH
17732 shlibpath_overrides_runpath=no
17733 # This implies no fast_install, which is unacceptable.
17734 # Some rework will be needed to allow for fast_install
17735 # before this can be enabled.
17736 hardcode_into_libs=yes
17738 # Append ld.so.conf contents to the search path
17739 if test -f /etc/ld.so.conf; then
17740 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' ' '`
17741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17744 # We used to test for /lib/ld.so.1 and disable shared libraries on
17745 # powerpc, because MkLinux only supported shared libraries with the
17746 # GNU dynamic linker. Since this was broken with cross compilers,
17747 # most powerpc-linux boxes support dynamic linking these days and
17748 # people can always --disable-shared, the test was removed, and we
17749 # assume the GNU/Linux dynamic linker is in use.
17750 dynamic_linker='GNU/Linux ld.so'
17757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 shlibpath_var=LD_LIBRARY_PATH
17760 shlibpath_overrides_runpath=no
17761 hardcode_into_libs=yes
17762 dynamic_linker='GNU ld.so'
17769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17772 dynamic_linker='NetBSD (a.out) ld.so'
17774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17775 soname_spec='${libname}${release}${shared_ext}$major'
17776 dynamic_linker='NetBSD ld.elf_so'
17778 shlibpath_var=LD_LIBRARY_PATH
17779 shlibpath_overrides_runpath=yes
17780 hardcode_into_libs=yes
17785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17786 shlibpath_var=LD_LIBRARY_PATH
17787 shlibpath_overrides_runpath=yes
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795 soname_spec='${libname}${release}${shared_ext}$major'
17796 shlibpath_var=LD_LIBRARY_PATH
17797 shlibpath_overrides_runpath=yes
17803 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17805 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17806 *) need_version=no ;;
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17813 openbsd2.[89] | openbsd2.[89].*)
17814 shlibpath_overrides_runpath=no
17817 shlibpath_overrides_runpath=yes
17821 shlibpath_overrides_runpath=yes
17826 libname_spec='$name'
17829 library_names_spec='$libname${shared_ext} $libname.a'
17830 dynamic_linker='OS/2 ld.exe'
17831 shlibpath_var=LIBPATH
17834 osf3* | osf4* | osf5*)
17838 soname_spec='${libname}${release}${shared_ext}$major'
17839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17840 shlibpath_var=LD_LIBRARY_PATH
17841 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17842 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17847 soname_spec='${libname}${release}${shared_ext}$major'
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849 shlibpath_var=LD_LIBRARY_PATH
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 shlibpath_overrides_runpath=yes
17860 hardcode_into_libs=yes
17861 # ldd complains unless libraries are executable
17862 postinstall_cmds='chmod +x $lib'
17867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17869 shlibpath_var=LD_LIBRARY_PATH
17870 shlibpath_overrides_runpath=yes
17871 if test "$with_gnu_ld" = yes; then
17877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880 soname_spec='${libname}${release}${shared_ext}$major'
17881 shlibpath_var=LD_LIBRARY_PATH
17882 case $host_vendor in
17884 shlibpath_overrides_runpath=no
17886 export_dynamic_flag_spec='${wl}-Blargedynsym'
17887 runpath_var=LD_RUN_PATH
17895 shlibpath_overrides_runpath=no
17896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17902 if test -d /usr/nec ;then
17904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17905 soname_spec='$libname${shared_ext}.$major'
17906 shlibpath_var=LD_LIBRARY_PATH
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17913 soname_spec='${libname}${release}${shared_ext}$major'
17914 shlibpath_var=LD_LIBRARY_PATH
17921 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17922 echo "${ECHO_T}$dynamic_linker" >&6
17923 test "$dynamic_linker" = no && can_build_shared=no
17925 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17926 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17927 hardcode_action_GCJ=
17928 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17929 test -n "$runpath_var_GCJ" || \
17930 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17932 # We can hardcode non-existant directories.
17933 if test "$hardcode_direct_GCJ" != no &&
17934 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17935 # have to relink, otherwise we might link with an installed library
17936 # when we should be linking with a yet-to-be-installed one
17937 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17938 test "$hardcode_minus_L_GCJ" != no; then
17939 # Linking always hardcodes the temporary library directory.
17940 hardcode_action_GCJ=relink
17942 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17943 hardcode_action_GCJ=immediate
17946 # We cannot hardcode anything, or else we can only hardcode existing
17948 hardcode_action_GCJ=unsupported
17950 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17951 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17953 if test "$hardcode_action_GCJ" = relink; then
17954 # Fast installation is not supported
17955 enable_fast_install=no
17956 elif test "$shlibpath_overrides_runpath" = yes ||
17957 test "$enable_shared" = no; then
17958 # Fast installation is not necessary
17959 enable_fast_install=needless
17964 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17965 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17966 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17967 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17968 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17969 echo "$as_me:$LINENO: result: yes" >&5
17970 echo "${ECHO_T}yes" >&6
17972 # FIXME - insert some real tests, host_os isn't really good enough
17975 if test -n "$STRIP" ; then
17976 striplib="$STRIP -x"
17977 echo "$as_me:$LINENO: result: yes" >&5
17978 echo "${ECHO_T}yes" >&6
17980 echo "$as_me:$LINENO: result: no" >&5
17981 echo "${ECHO_T}no" >&6
17985 echo "$as_me:$LINENO: result: no" >&5
17986 echo "${ECHO_T}no" >&6
17991 if test "x$enable_dlopen" != xyes; then
17992 enable_dlopen=unknown
17993 enable_dlopen_self=unknown
17994 enable_dlopen_self_static=unknown
18001 lt_cv_dlopen="load_add_on"
18003 lt_cv_dlopen_self=yes
18007 lt_cv_dlopen="LoadLibrary"
18012 lt_cv_dlopen="dlopen"
18017 # if libdl is installed we need to link against it
18018 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 ac_check_lib_save_LIBS=$LIBS
18025 cat >conftest.$ac_ext <<_ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18032 /* Override any gcc2 internal prototype to avoid an error. */
18036 /* We use char because int might match the return type of a gcc2
18037 builtin and then its argument prototype would still apply. */
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>conftest.er1
18051 grep -v '^ *+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest$ac_exeext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_cv_lib_dl_dlopen=yes
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_cv_lib_dl_dlopen=no
18076 rm -f conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18078 LIBS=$ac_check_lib_save_LIBS
18080 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18081 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18082 if test $ac_cv_lib_dl_dlopen = yes; then
18083 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18086 lt_cv_dlopen="dyld"
18088 lt_cv_dlopen_self=yes
18095 echo "$as_me:$LINENO: checking for shl_load" >&5
18096 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18097 if test "${ac_cv_func_shl_load+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 cat >conftest.$ac_ext <<_ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18108 #define shl_load innocuous_shl_load
18110 /* System header to define __stub macros and hopefully few prototypes,
18111 which can conflict with char shl_load (); below.
18112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18113 <limits.h> exists even on freestanding compilers. */
18116 # include <limits.h>
18118 # include <assert.h>
18123 /* Override any gcc2 internal prototype to avoid an error. */
18128 /* We use char because int might match the return type of a gcc2
18129 builtin and then its argument prototype would still apply. */
18131 /* The GNU C library defines this for functions which it implements
18132 to always fail with ENOSYS. Some functions are actually named
18133 something starting with __ and the normal name is an alias. */
18134 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18137 char (*f) () = shl_load;
18146 return f != shl_load;
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18153 (eval $ac_link) 2>conftest.er1
18155 grep -v '^ *+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag"
18161 || test ! -s conftest.err'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; } &&
18167 { ac_try='test -s conftest$ac_exeext'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 ac_cv_func_shl_load=yes
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 ac_cv_func_shl_load=no
18180 rm -f conftest.err conftest.$ac_objext \
18181 conftest$ac_exeext conftest.$ac_ext
18183 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18184 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18185 if test $ac_cv_func_shl_load = yes; then
18186 lt_cv_dlopen="shl_load"
18188 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18189 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18190 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 ac_check_lib_save_LIBS=$LIBS
18195 cat >conftest.$ac_ext <<_ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18202 /* Override any gcc2 internal prototype to avoid an error. */
18206 /* We use char because int might match the return type of a gcc2
18207 builtin and then its argument prototype would still apply. */
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18219 (eval $ac_link) 2>conftest.er1
18221 grep -v '^ *+' conftest.er1 >conftest.err
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
18226 { ac_try='test -z "$ac_c_werror_flag"
18227 || test ! -s conftest.err'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try='test -s conftest$ac_exeext'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
18239 ac_cv_lib_dld_shl_load=yes
18241 echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18244 ac_cv_lib_dld_shl_load=no
18246 rm -f conftest.err conftest.$ac_objext \
18247 conftest$ac_exeext conftest.$ac_ext
18248 LIBS=$ac_check_lib_save_LIBS
18250 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18251 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18252 if test $ac_cv_lib_dld_shl_load = yes; then
18253 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18255 echo "$as_me:$LINENO: checking for dlopen" >&5
18256 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18257 if test "${ac_cv_func_dlopen+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 cat >conftest.$ac_ext <<_ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18268 #define dlopen innocuous_dlopen
18270 /* System header to define __stub macros and hopefully few prototypes,
18271 which can conflict with char dlopen (); below.
18272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18273 <limits.h> exists even on freestanding compilers. */
18276 # include <limits.h>
18278 # include <assert.h>
18283 /* Override any gcc2 internal prototype to avoid an error. */
18288 /* We use char because int might match the return type of a gcc2
18289 builtin and then its argument prototype would still apply. */
18291 /* The GNU C library defines this for functions which it implements
18292 to always fail with ENOSYS. Some functions are actually named
18293 something starting with __ and the normal name is an alias. */
18294 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18297 char (*f) () = dlopen;
18306 return f != dlopen;
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18313 (eval $ac_link) 2>conftest.er1
18315 grep -v '^ *+' conftest.er1 >conftest.err
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try='test -z "$ac_c_werror_flag"
18321 || test ! -s conftest.err'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest$ac_exeext'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_cv_func_dlopen=yes
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 ac_cv_func_dlopen=no
18340 rm -f conftest.err conftest.$ac_objext \
18341 conftest$ac_exeext conftest.$ac_ext
18343 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18344 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18345 if test $ac_cv_func_dlopen = yes; then
18346 lt_cv_dlopen="dlopen"
18348 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18349 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18350 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 ac_check_lib_save_LIBS=$LIBS
18355 cat >conftest.$ac_ext <<_ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18362 /* Override any gcc2 internal prototype to avoid an error. */
18366 /* We use char because int might match the return type of a gcc2
18367 builtin and then its argument prototype would still apply. */
18377 rm -f conftest.$ac_objext conftest$ac_exeext
18378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18379 (eval $ac_link) 2>conftest.er1
18381 grep -v '^ *+' conftest.er1 >conftest.err
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
18386 { ac_try='test -z "$ac_c_werror_flag"
18387 || test ! -s conftest.err'
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; } &&
18393 { ac_try='test -s conftest$ac_exeext'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_cv_lib_dl_dlopen=yes
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18404 ac_cv_lib_dl_dlopen=no
18406 rm -f conftest.err conftest.$ac_objext \
18407 conftest$ac_exeext conftest.$ac_ext
18408 LIBS=$ac_check_lib_save_LIBS
18410 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18411 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18412 if test $ac_cv_lib_dl_dlopen = yes; then
18413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18415 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18416 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18417 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 ac_check_lib_save_LIBS=$LIBS
18421 LIBS="-lsvld $LIBS"
18422 cat >conftest.$ac_ext <<_ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18429 /* Override any gcc2 internal prototype to avoid an error. */
18433 /* We use char because int might match the return type of a gcc2
18434 builtin and then its argument prototype would still apply. */
18444 rm -f conftest.$ac_objext conftest$ac_exeext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18446 (eval $ac_link) 2>conftest.er1
18448 grep -v '^ *+' conftest.er1 >conftest.err
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -z "$ac_c_werror_flag"
18454 || test ! -s conftest.err'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest$ac_exeext'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 ac_cv_lib_svld_dlopen=yes
18468 echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 ac_cv_lib_svld_dlopen=no
18473 rm -f conftest.err conftest.$ac_objext \
18474 conftest$ac_exeext conftest.$ac_ext
18475 LIBS=$ac_check_lib_save_LIBS
18477 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18478 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18479 if test $ac_cv_lib_svld_dlopen = yes; then
18480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18482 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18483 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18487 ac_check_lib_save_LIBS=$LIBS
18489 cat >conftest.$ac_ext <<_ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18496 /* Override any gcc2 internal prototype to avoid an error. */
18500 /* We use char because int might match the return type of a gcc2
18501 builtin and then its argument prototype would still apply. */
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18513 (eval $ac_link) 2>conftest.er1
18515 grep -v '^ *+' conftest.er1 >conftest.err
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -z "$ac_c_werror_flag"
18521 || test ! -s conftest.err'
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest$ac_exeext'
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_cv_lib_dld_dld_link=yes
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18538 ac_cv_lib_dld_dld_link=no
18540 rm -f conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18544 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18545 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18546 if test $ac_cv_lib_dld_dld_link = yes; then
18547 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18568 if test "x$lt_cv_dlopen" != xno; then
18574 case $lt_cv_dlopen in
18576 save_CPPFLAGS="$CPPFLAGS"
18577 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18579 save_LDFLAGS="$LDFLAGS"
18580 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18583 LIBS="$lt_cv_dlopen_libs $LIBS"
18585 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18586 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18587 if test "${lt_cv_dlopen_self+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 if test "$cross_compiling" = yes; then :
18591 lt_cv_dlopen_self=cross
18593 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18594 lt_status=$lt_dlunknown
18595 cat > conftest.$ac_ext <<EOF
18596 #line 18596 "configure"
18597 #include "confdefs.h"
18606 # define LT_DLGLOBAL RTLD_GLOBAL
18609 # define LT_DLGLOBAL DL_GLOBAL
18611 # define LT_DLGLOBAL 0
18615 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18616 find out it does not work in some platform. */
18617 #ifndef LT_DLLAZY_OR_NOW
18619 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18622 # define LT_DLLAZY_OR_NOW DL_LAZY
18625 # define LT_DLLAZY_OR_NOW RTLD_NOW
18628 # define LT_DLLAZY_OR_NOW DL_NOW
18630 # define LT_DLLAZY_OR_NOW 0
18638 extern "C" void exit (int);
18641 void fnord() { int i=42;}
18644 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18645 int status = $lt_dlunknown;
18649 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18650 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18651 /* dlclose (self); */
18657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18658 (eval $ac_link) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18662 (./conftest; exit; ) 2>/dev/null
18664 case x$lt_status in
18665 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18666 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18667 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18670 # compilation failed
18671 lt_cv_dlopen_self=no
18678 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18679 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18681 if test "x$lt_cv_dlopen_self" = xyes; then
18682 LDFLAGS="$LDFLAGS $link_static_flag"
18683 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18684 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18685 if test "${lt_cv_dlopen_self_static+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 if test "$cross_compiling" = yes; then :
18689 lt_cv_dlopen_self_static=cross
18691 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18692 lt_status=$lt_dlunknown
18693 cat > conftest.$ac_ext <<EOF
18694 #line 18694 "configure"
18695 #include "confdefs.h"
18704 # define LT_DLGLOBAL RTLD_GLOBAL
18707 # define LT_DLGLOBAL DL_GLOBAL
18709 # define LT_DLGLOBAL 0
18713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18714 find out it does not work in some platform. */
18715 #ifndef LT_DLLAZY_OR_NOW
18717 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18720 # define LT_DLLAZY_OR_NOW DL_LAZY
18723 # define LT_DLLAZY_OR_NOW RTLD_NOW
18726 # define LT_DLLAZY_OR_NOW DL_NOW
18728 # define LT_DLLAZY_OR_NOW 0
18736 extern "C" void exit (int);
18739 void fnord() { int i=42;}
18742 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18743 int status = $lt_dlunknown;
18747 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18748 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18749 /* dlclose (self); */
18755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18756 (eval $ac_link) 2>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18760 (./conftest; exit; ) 2>/dev/null
18762 case x$lt_status in
18763 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18764 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18765 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18768 # compilation failed
18769 lt_cv_dlopen_self_static=no
18776 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18777 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18780 CPPFLAGS="$save_CPPFLAGS"
18781 LDFLAGS="$save_LDFLAGS"
18786 case $lt_cv_dlopen_self in
18787 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18788 *) enable_dlopen_self=unknown ;;
18791 case $lt_cv_dlopen_self_static in
18792 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18793 *) enable_dlopen_self_static=unknown ;;
18798 # The else clause should only fire when bootstrapping the
18799 # libtool distribution, otherwise you forgot to ship ltmain.sh
18800 # with your package, and you will get complaints that there are
18801 # no rules to generate ltmain.sh.
18802 if test -f "$ltmain"; then
18803 # See if we are running on zsh, and set the options which allow our commands through
18804 # without removal of \ escapes.
18805 if test -n "${ZSH_VERSION+set}" ; then
18806 setopt NO_GLOB_SUBST
18808 # Now quote all the things that may contain metacharacters while being
18809 # careful not to overquote the AC_SUBSTed values. We take copies of the
18810 # variables and quote the copies for generation of the libtool script.
18811 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18813 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18814 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18815 deplibs_check_method reload_flag reload_cmds need_locks \
18816 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18817 lt_cv_sys_global_symbol_to_c_name_address \
18818 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18819 old_postinstall_cmds old_postuninstall_cmds \
18823 lt_prog_compiler_wl_GCJ \
18824 lt_prog_compiler_pic_GCJ \
18825 lt_prog_compiler_static_GCJ \
18826 lt_prog_compiler_no_builtin_flag_GCJ \
18827 export_dynamic_flag_spec_GCJ \
18828 thread_safe_flag_spec_GCJ \
18829 whole_archive_flag_spec_GCJ \
18830 enable_shared_with_static_runtimes_GCJ \
18831 old_archive_cmds_GCJ \
18832 old_archive_from_new_cmds_GCJ \
18833 predep_objects_GCJ \
18834 postdep_objects_GCJ \
18837 compiler_lib_search_path_GCJ \
18839 archive_expsym_cmds_GCJ \
18840 postinstall_cmds_GCJ \
18841 postuninstall_cmds_GCJ \
18842 old_archive_from_expsyms_cmds_GCJ \
18843 allow_undefined_flag_GCJ \
18844 no_undefined_flag_GCJ \
18845 export_symbols_cmds_GCJ \
18846 hardcode_libdir_flag_spec_GCJ \
18847 hardcode_libdir_flag_spec_ld_GCJ \
18848 hardcode_libdir_separator_GCJ \
18849 hardcode_automatic_GCJ \
18851 module_expsym_cmds_GCJ \
18852 lt_cv_prog_compiler_c_o_GCJ \
18853 exclude_expsyms_GCJ \
18854 include_expsyms_GCJ; do
18857 old_archive_cmds_GCJ | \
18858 old_archive_from_new_cmds_GCJ | \
18859 archive_cmds_GCJ | \
18860 archive_expsym_cmds_GCJ | \
18861 module_cmds_GCJ | \
18862 module_expsym_cmds_GCJ | \
18863 old_archive_from_expsyms_cmds_GCJ | \
18864 export_symbols_cmds_GCJ | \
18865 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18866 postinstall_cmds | postuninstall_cmds | \
18867 old_postinstall_cmds | old_postuninstall_cmds | \
18868 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18869 # Double-quote double-evaled strings.
18870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18873 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18879 *'\$0 --fallback-echo"')
18880 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18886 cat <<__EOF__ >> "$cfgfile"
18887 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18891 # Shell to use when invoking shell scripts.
18894 # Whether or not to build shared libraries.
18895 build_libtool_libs=$enable_shared
18897 # Whether or not to build static libraries.
18898 build_old_libs=$enable_static
18900 # Whether or not to add -lc for building shared libraries.
18901 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18903 # Whether or not to disallow shared libs when runtime libs are static
18904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18906 # Whether or not to optimize for fast installation.
18907 fast_install=$enable_fast_install
18910 host_alias=$host_alias
18914 # The build system.
18915 build_alias=$build_alias
18919 # An echo program that does not interpret backslashes.
18924 AR_FLAGS=$lt_AR_FLAGS
18929 # A language-specific compiler.
18930 CC=$lt_compiler_GCJ
18932 # Is the compiler the GNU C compiler?
18938 # The linker used to build libraries.
18941 # Whether we need hard or soft links.
18944 # A BSD-compatible nm program.
18947 # A symbol stripping program
18950 # Used to examine libraries when file_magic_cmd begins "file"
18951 MAGIC_CMD=$MAGIC_CMD
18953 # Used on cygwin: DLL creation program.
18956 # Used on cygwin: object dumper.
18959 # Used on cygwin: assembler.
18962 # The name of the directory that contains temporary libtool files.
18965 # How to create reloadable object files.
18966 reload_flag=$lt_reload_flag
18967 reload_cmds=$lt_reload_cmds
18969 # How to pass a linker flag through the compiler.
18970 wl=$lt_lt_prog_compiler_wl_GCJ
18972 # Object file suffix (normally "o").
18973 objext="$ac_objext"
18975 # Old archive suffix (normally "a").
18978 # Shared library suffix (normally ".so").
18979 shrext_cmds='$shrext_cmds'
18981 # Executable file suffix (normally "").
18984 # Additional compiler flags for building library objects.
18985 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18988 # What is the maximum length of a command?
18989 max_cmd_len=$lt_cv_sys_max_cmd_len
18991 # Does compiler simultaneously support -c and -o options?
18992 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18994 # Must we lock files when doing compilation?
18995 need_locks=$lt_need_locks
18997 # Do we need the lib prefix for modules?
18998 need_lib_prefix=$need_lib_prefix
19000 # Do we need a version for libraries?
19001 need_version=$need_version
19003 # Whether dlopen is supported.
19004 dlopen_support=$enable_dlopen
19006 # Whether dlopen of programs is supported.
19007 dlopen_self=$enable_dlopen_self
19009 # Whether dlopen of statically linked programs is supported.
19010 dlopen_self_static=$enable_dlopen_self_static
19012 # Compiler flag to prevent dynamic linking.
19013 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19015 # Compiler flag to turn off builtin functions.
19016 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19018 # Compiler flag to allow reflexive dlopens.
19019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19021 # Compiler flag to generate shared objects directly from archives.
19022 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19024 # Compiler flag to generate thread-safe objects.
19025 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19027 # Library versioning type.
19028 version_type=$version_type
19030 # Format of library name prefix.
19031 libname_spec=$lt_libname_spec
19033 # List of archive names. First name is the real one, the rest are links.
19034 # The last name is the one that the linker finds with -lNAME.
19035 library_names_spec=$lt_library_names_spec
19037 # The coded name of the library, if different from the real name.
19038 soname_spec=$lt_soname_spec
19040 # Commands used to build and install an old-style archive.
19042 old_archive_cmds=$lt_old_archive_cmds_GCJ
19043 old_postinstall_cmds=$lt_old_postinstall_cmds
19044 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19046 # Create an old-style archive from a shared archive.
19047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19049 # Create a temporary old-style archive to link instead of a shared archive.
19050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19052 # Commands used to build and install a shared archive.
19053 archive_cmds=$lt_archive_cmds_GCJ
19054 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19055 postinstall_cmds=$lt_postinstall_cmds
19056 postuninstall_cmds=$lt_postuninstall_cmds
19058 # Commands used to build a loadable module (assumed same as above if empty)
19059 module_cmds=$lt_module_cmds_GCJ
19060 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19062 # Commands to strip libraries.
19063 old_striplib=$lt_old_striplib
19064 striplib=$lt_striplib
19066 # Dependencies to place before the objects being linked to create a
19068 predep_objects=$lt_predep_objects_GCJ
19070 # Dependencies to place after the objects being linked to create a
19072 postdep_objects=$lt_postdep_objects_GCJ
19074 # Dependencies to place before the objects being linked to create a
19076 predeps=$lt_predeps_GCJ
19078 # Dependencies to place after the objects being linked to create a
19080 postdeps=$lt_postdeps_GCJ
19082 # The library search path used internally by the compiler when linking
19083 # a shared library.
19084 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19086 # Method to check whether dependent libraries are shared objects.
19087 deplibs_check_method=$lt_deplibs_check_method
19089 # Command to use when deplibs_check_method == file_magic.
19090 file_magic_cmd=$lt_file_magic_cmd
19092 # Flag that allows shared libraries with undefined symbols to be built.
19093 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19095 # Flag that forces no undefined symbols.
19096 no_undefined_flag=$lt_no_undefined_flag_GCJ
19098 # Commands used to finish a libtool library installation in a directory.
19099 finish_cmds=$lt_finish_cmds
19101 # Same as above, but a single script fragment to be evaled but not shown.
19102 finish_eval=$lt_finish_eval
19104 # Take the output of nm and produce a listing of raw symbols and C names.
19105 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19107 # Transform the output of nm in a proper C declaration
19108 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19110 # Transform the output of nm in a C name address pair
19111 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19113 # This is the shared library runtime path variable.
19114 runpath_var=$runpath_var
19116 # This is the shared library path variable.
19117 shlibpath_var=$shlibpath_var
19119 # Is shlibpath searched before the hard-coded library search path?
19120 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19122 # How to hardcode a shared library path into an executable.
19123 hardcode_action=$hardcode_action_GCJ
19125 # Whether we should hardcode library paths into libraries.
19126 hardcode_into_libs=$hardcode_into_libs
19128 # Flag to hardcode \$libdir into a binary during linking.
19129 # This must work even if \$libdir does not exist.
19130 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19132 # If ld is used when linking, flag to hardcode \$libdir into
19133 # a binary during linking. This must work even if \$libdir does
19135 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19137 # Whether we need a single -rpath flag with a separated argument.
19138 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19140 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19141 # resulting binary.
19142 hardcode_direct=$hardcode_direct_GCJ
19144 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19145 # resulting binary.
19146 hardcode_minus_L=$hardcode_minus_L_GCJ
19148 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19149 # the resulting binary.
19150 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19152 # Set to yes if building a shared library automatically hardcodes DIR into the library
19153 # and all subsequent libraries and executables linked against it.
19154 hardcode_automatic=$hardcode_automatic_GCJ
19156 # Variables whose values should be saved in libtool wrapper scripts and
19157 # restored at relink time.
19158 variables_saved_for_relink="$variables_saved_for_relink"
19160 # Whether libtool must link a program against all its dependency libraries.
19161 link_all_deplibs=$link_all_deplibs_GCJ
19163 # Compile-time system search path for libraries
19164 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19166 # Run-time system search path for libraries
19167 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19169 # Fix the shell variable \$srcfile for the compiler.
19170 fix_srcfile_path="$fix_srcfile_path_GCJ"
19172 # Set to yes if exported symbols are required.
19173 always_export_symbols=$always_export_symbols_GCJ
19175 # The commands to list exported symbols.
19176 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19178 # The commands to extract the exported symbol list from a shared archive.
19179 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19181 # Symbols that should not be listed in the preloaded symbols.
19182 exclude_expsyms=$lt_exclude_expsyms_GCJ
19184 # Symbols that must always be exported.
19185 include_expsyms=$lt_include_expsyms_GCJ
19187 # ### END LIBTOOL TAG CONFIG: $tagname
19193 # If there is no Makefile yet, we rely on a make rule to execute
19194 # `config.status --recheck' to rerun these tests and create the
19195 # libtool script then.
19196 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19197 if test -f "$ltmain_in"; then
19198 test -f Makefile && make "$ltmain"
19204 ac_cpp='$CPP $CPPFLAGS'
19205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19220 # Source file extension for RC test sources.
19223 # Object file extension for compiled RC test sources.
19227 # Code to be used in simple compile tests
19228 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19230 # Code to be used in simple link tests
19231 lt_simple_link_test_code="$lt_simple_compile_test_code"
19233 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19235 # If no C compiler was specified, use CC.
19238 # Allow CC to be a program name with arguments.
19242 # save warnings/boilerplate of simple test code
19243 ac_outfile=conftest.$ac_objext
19244 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19245 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19246 _lt_compiler_boilerplate=`cat conftest.err`
19249 ac_outfile=conftest.$ac_objext
19250 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19251 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19252 _lt_linker_boilerplate=`cat conftest.err`
19256 # Allow CC to be a program name with arguments.
19261 for cc_temp in $compiler""; do
19263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19269 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19271 lt_cv_prog_compiler_c_o_RC=yes
19273 # The else clause should only fire when bootstrapping the
19274 # libtool distribution, otherwise you forgot to ship ltmain.sh
19275 # with your package, and you will get complaints that there are
19276 # no rules to generate ltmain.sh.
19277 if test -f "$ltmain"; then
19278 # See if we are running on zsh, and set the options which allow our commands through
19279 # without removal of \ escapes.
19280 if test -n "${ZSH_VERSION+set}" ; then
19281 setopt NO_GLOB_SUBST
19283 # Now quote all the things that may contain metacharacters while being
19284 # careful not to overquote the AC_SUBSTed values. We take copies of the
19285 # variables and quote the copies for generation of the libtool script.
19286 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19288 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19289 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19290 deplibs_check_method reload_flag reload_cmds need_locks \
19291 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19292 lt_cv_sys_global_symbol_to_c_name_address \
19293 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19294 old_postinstall_cmds old_postuninstall_cmds \
19298 lt_prog_compiler_wl_RC \
19299 lt_prog_compiler_pic_RC \
19300 lt_prog_compiler_static_RC \
19301 lt_prog_compiler_no_builtin_flag_RC \
19302 export_dynamic_flag_spec_RC \
19303 thread_safe_flag_spec_RC \
19304 whole_archive_flag_spec_RC \
19305 enable_shared_with_static_runtimes_RC \
19306 old_archive_cmds_RC \
19307 old_archive_from_new_cmds_RC \
19308 predep_objects_RC \
19309 postdep_objects_RC \
19312 compiler_lib_search_path_RC \
19314 archive_expsym_cmds_RC \
19315 postinstall_cmds_RC \
19316 postuninstall_cmds_RC \
19317 old_archive_from_expsyms_cmds_RC \
19318 allow_undefined_flag_RC \
19319 no_undefined_flag_RC \
19320 export_symbols_cmds_RC \
19321 hardcode_libdir_flag_spec_RC \
19322 hardcode_libdir_flag_spec_ld_RC \
19323 hardcode_libdir_separator_RC \
19324 hardcode_automatic_RC \
19326 module_expsym_cmds_RC \
19327 lt_cv_prog_compiler_c_o_RC \
19328 exclude_expsyms_RC \
19329 include_expsyms_RC; do
19332 old_archive_cmds_RC | \
19333 old_archive_from_new_cmds_RC | \
19334 archive_cmds_RC | \
19335 archive_expsym_cmds_RC | \
19337 module_expsym_cmds_RC | \
19338 old_archive_from_expsyms_cmds_RC | \
19339 export_symbols_cmds_RC | \
19340 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19341 postinstall_cmds | postuninstall_cmds | \
19342 old_postinstall_cmds | old_postuninstall_cmds | \
19343 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19344 # Double-quote double-evaled strings.
19345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19354 *'\$0 --fallback-echo"')
19355 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19361 cat <<__EOF__ >> "$cfgfile"
19362 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19364 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19366 # Shell to use when invoking shell scripts.
19369 # Whether or not to build shared libraries.
19370 build_libtool_libs=$enable_shared
19372 # Whether or not to build static libraries.
19373 build_old_libs=$enable_static
19375 # Whether or not to add -lc for building shared libraries.
19376 build_libtool_need_lc=$archive_cmds_need_lc_RC
19378 # Whether or not to disallow shared libs when runtime libs are static
19379 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19381 # Whether or not to optimize for fast installation.
19382 fast_install=$enable_fast_install
19385 host_alias=$host_alias
19389 # The build system.
19390 build_alias=$build_alias
19394 # An echo program that does not interpret backslashes.
19399 AR_FLAGS=$lt_AR_FLAGS
19404 # A language-specific compiler.
19407 # Is the compiler the GNU C compiler?
19413 # The linker used to build libraries.
19416 # Whether we need hard or soft links.
19419 # A BSD-compatible nm program.
19422 # A symbol stripping program
19425 # Used to examine libraries when file_magic_cmd begins "file"
19426 MAGIC_CMD=$MAGIC_CMD
19428 # Used on cygwin: DLL creation program.
19431 # Used on cygwin: object dumper.
19434 # Used on cygwin: assembler.
19437 # The name of the directory that contains temporary libtool files.
19440 # How to create reloadable object files.
19441 reload_flag=$lt_reload_flag
19442 reload_cmds=$lt_reload_cmds
19444 # How to pass a linker flag through the compiler.
19445 wl=$lt_lt_prog_compiler_wl_RC
19447 # Object file suffix (normally "o").
19448 objext="$ac_objext"
19450 # Old archive suffix (normally "a").
19453 # Shared library suffix (normally ".so").
19454 shrext_cmds='$shrext_cmds'
19456 # Executable file suffix (normally "").
19459 # Additional compiler flags for building library objects.
19460 pic_flag=$lt_lt_prog_compiler_pic_RC
19463 # What is the maximum length of a command?
19464 max_cmd_len=$lt_cv_sys_max_cmd_len
19466 # Does compiler simultaneously support -c and -o options?
19467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19469 # Must we lock files when doing compilation?
19470 need_locks=$lt_need_locks
19472 # Do we need the lib prefix for modules?
19473 need_lib_prefix=$need_lib_prefix
19475 # Do we need a version for libraries?
19476 need_version=$need_version
19478 # Whether dlopen is supported.
19479 dlopen_support=$enable_dlopen
19481 # Whether dlopen of programs is supported.
19482 dlopen_self=$enable_dlopen_self
19484 # Whether dlopen of statically linked programs is supported.
19485 dlopen_self_static=$enable_dlopen_self_static
19487 # Compiler flag to prevent dynamic linking.
19488 link_static_flag=$lt_lt_prog_compiler_static_RC
19490 # Compiler flag to turn off builtin functions.
19491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19493 # Compiler flag to allow reflexive dlopens.
19494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19496 # Compiler flag to generate shared objects directly from archives.
19497 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19499 # Compiler flag to generate thread-safe objects.
19500 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19502 # Library versioning type.
19503 version_type=$version_type
19505 # Format of library name prefix.
19506 libname_spec=$lt_libname_spec
19508 # List of archive names. First name is the real one, the rest are links.
19509 # The last name is the one that the linker finds with -lNAME.
19510 library_names_spec=$lt_library_names_spec
19512 # The coded name of the library, if different from the real name.
19513 soname_spec=$lt_soname_spec
19515 # Commands used to build and install an old-style archive.
19517 old_archive_cmds=$lt_old_archive_cmds_RC
19518 old_postinstall_cmds=$lt_old_postinstall_cmds
19519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19521 # Create an old-style archive from a shared archive.
19522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19524 # Create a temporary old-style archive to link instead of a shared archive.
19525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19527 # Commands used to build and install a shared archive.
19528 archive_cmds=$lt_archive_cmds_RC
19529 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19530 postinstall_cmds=$lt_postinstall_cmds
19531 postuninstall_cmds=$lt_postuninstall_cmds
19533 # Commands used to build a loadable module (assumed same as above if empty)
19534 module_cmds=$lt_module_cmds_RC
19535 module_expsym_cmds=$lt_module_expsym_cmds_RC
19537 # Commands to strip libraries.
19538 old_striplib=$lt_old_striplib
19539 striplib=$lt_striplib
19541 # Dependencies to place before the objects being linked to create a
19543 predep_objects=$lt_predep_objects_RC
19545 # Dependencies to place after the objects being linked to create a
19547 postdep_objects=$lt_postdep_objects_RC
19549 # Dependencies to place before the objects being linked to create a
19551 predeps=$lt_predeps_RC
19553 # Dependencies to place after the objects being linked to create a
19555 postdeps=$lt_postdeps_RC
19557 # The library search path used internally by the compiler when linking
19558 # a shared library.
19559 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19561 # Method to check whether dependent libraries are shared objects.
19562 deplibs_check_method=$lt_deplibs_check_method
19564 # Command to use when deplibs_check_method == file_magic.
19565 file_magic_cmd=$lt_file_magic_cmd
19567 # Flag that allows shared libraries with undefined symbols to be built.
19568 allow_undefined_flag=$lt_allow_undefined_flag_RC
19570 # Flag that forces no undefined symbols.
19571 no_undefined_flag=$lt_no_undefined_flag_RC
19573 # Commands used to finish a libtool library installation in a directory.
19574 finish_cmds=$lt_finish_cmds
19576 # Same as above, but a single script fragment to be evaled but not shown.
19577 finish_eval=$lt_finish_eval
19579 # Take the output of nm and produce a listing of raw symbols and C names.
19580 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19582 # Transform the output of nm in a proper C declaration
19583 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19585 # Transform the output of nm in a C name address pair
19586 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19588 # This is the shared library runtime path variable.
19589 runpath_var=$runpath_var
19591 # This is the shared library path variable.
19592 shlibpath_var=$shlibpath_var
19594 # Is shlibpath searched before the hard-coded library search path?
19595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19597 # How to hardcode a shared library path into an executable.
19598 hardcode_action=$hardcode_action_RC
19600 # Whether we should hardcode library paths into libraries.
19601 hardcode_into_libs=$hardcode_into_libs
19603 # Flag to hardcode \$libdir into a binary during linking.
19604 # This must work even if \$libdir does not exist.
19605 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19607 # If ld is used when linking, flag to hardcode \$libdir into
19608 # a binary during linking. This must work even if \$libdir does
19610 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19612 # Whether we need a single -rpath flag with a separated argument.
19613 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19615 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19616 # resulting binary.
19617 hardcode_direct=$hardcode_direct_RC
19619 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19620 # resulting binary.
19621 hardcode_minus_L=$hardcode_minus_L_RC
19623 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19624 # the resulting binary.
19625 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19627 # Set to yes if building a shared library automatically hardcodes DIR into the library
19628 # and all subsequent libraries and executables linked against it.
19629 hardcode_automatic=$hardcode_automatic_RC
19631 # Variables whose values should be saved in libtool wrapper scripts and
19632 # restored at relink time.
19633 variables_saved_for_relink="$variables_saved_for_relink"
19635 # Whether libtool must link a program against all its dependency libraries.
19636 link_all_deplibs=$link_all_deplibs_RC
19638 # Compile-time system search path for libraries
19639 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19641 # Run-time system search path for libraries
19642 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19644 # Fix the shell variable \$srcfile for the compiler.
19645 fix_srcfile_path="$fix_srcfile_path_RC"
19647 # Set to yes if exported symbols are required.
19648 always_export_symbols=$always_export_symbols_RC
19650 # The commands to list exported symbols.
19651 export_symbols_cmds=$lt_export_symbols_cmds_RC
19653 # The commands to extract the exported symbol list from a shared archive.
19654 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19656 # Symbols that should not be listed in the preloaded symbols.
19657 exclude_expsyms=$lt_exclude_expsyms_RC
19659 # Symbols that must always be exported.
19660 include_expsyms=$lt_include_expsyms_RC
19662 # ### END LIBTOOL TAG CONFIG: $tagname
19668 # If there is no Makefile yet, we rely on a make rule to execute
19669 # `config.status --recheck' to rerun these tests and create the
19670 # libtool script then.
19671 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19672 if test -f "$ltmain_in"; then
19673 test -f Makefile && make "$ltmain"
19679 ac_cpp='$CPP $CPPFLAGS'
19680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19689 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19690 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19691 { (exit 1); exit 1; }; }
19695 # Append the new tag name to the list of available tags.
19696 if test -n "$tagname" ; then
19697 available_tags="$available_tags $tagname"
19703 # Now substitute the updated list of available tags.
19704 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19705 mv "${ofile}T" "$ofile"
19709 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19710 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19711 { (exit 1); exit 1; }; }
19717 # This can be used to rebuild libtool when needed
19718 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19720 # Always use our own libtool.
19721 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19723 # Prevent multiple expansion
19774 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19775 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19776 if test "${ac_cv_header_stdc+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 #include <stdlib.h>
19786 #include <stdarg.h>
19787 #include <string.h>
19798 rm -f conftest.$ac_objext
19799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19800 (eval $ac_compile) 2>conftest.er1
19802 grep -v '^ *+' conftest.er1 >conftest.err
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_c_werror_flag"
19808 || test ! -s conftest.err'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest.$ac_objext'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 ac_cv_header_stdc=yes
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_cv_header_stdc=no
19827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19829 if test $ac_cv_header_stdc = yes; then
19830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19831 cat >conftest.$ac_ext <<_ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 #include <string.h>
19840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19841 $EGREP "memchr" >/dev/null 2>&1; then
19844 ac_cv_header_stdc=no
19850 if test $ac_cv_header_stdc = yes; then
19851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 #include <stdlib.h>
19861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19862 $EGREP "free" >/dev/null 2>&1; then
19865 ac_cv_header_stdc=no
19871 if test $ac_cv_header_stdc = yes; then
19872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19873 if test "$cross_compiling" = yes; then
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19883 #if ((' ' & 0x0FF) == 0x020)
19884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19887 # define ISLOWER(c) \
19888 (('a' <= (c) && (c) <= 'i') \
19889 || ('j' <= (c) && (c) <= 'r') \
19890 || ('s' <= (c) && (c) <= 'z'))
19891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19899 for (i = 0; i < 256; i++)
19900 if (XOR (islower (i), ISLOWER (i))
19901 || toupper (i) != TOUPPER (i))
19906 rm -f conftest$ac_exeext
19907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19908 (eval $ac_link) 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19919 echo "$as_me: program exited with status $ac_status" >&5
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19923 ( exit $ac_status )
19924 ac_cv_header_stdc=no
19926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19930 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19931 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19932 if test $ac_cv_header_stdc = yes; then
19934 cat >>confdefs.h <<\_ACEOF
19935 #define STDC_HEADERS 1
19940 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19941 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19942 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 cat >conftest.$ac_ext <<_ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951 #include <sys/types.h>
19955 return makedev(0, 0);
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19962 (eval $ac_link) 2>conftest.er1
19964 grep -v '^ *+' conftest.er1 >conftest.err
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } &&
19969 { ac_try='test -z "$ac_c_werror_flag"
19970 || test ! -s conftest.err'
19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972 (eval $ac_try) 2>&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); }; } &&
19976 { ac_try='test -s conftest$ac_exeext'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982 ac_cv_header_sys_types_h_makedev=yes
19984 echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19987 ac_cv_header_sys_types_h_makedev=no
19989 rm -f conftest.err conftest.$ac_objext \
19990 conftest$ac_exeext conftest.$ac_ext
19993 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19994 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19996 if test $ac_cv_header_sys_types_h_makedev = no; then
19997 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19998 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19999 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
20000 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20004 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
20006 # Is the header compilable?
20007 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20008 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 $ac_includes_default
20016 #include <sys/mkdev.h>
20018 rm -f conftest.$ac_objext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20020 (eval $ac_compile) 2>conftest.er1
20022 grep -v '^ *+' conftest.er1 >conftest.err
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_c_werror_flag"
20028 || test ! -s conftest.err'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest.$ac_objext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 ac_header_compiler=yes
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_header_compiler=no
20047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20049 echo "${ECHO_T}$ac_header_compiler" >&6
20051 # Is the header present?
20052 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20053 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
20054 cat >conftest.$ac_ext <<_ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 #include <sys/mkdev.h>
20062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20065 grep -v '^ *+' conftest.er1 >conftest.err
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } >/dev/null; then
20070 if test -s conftest.err; then
20071 ac_cpp_err=$ac_c_preproc_warn_flag
20072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20079 if test -z "$ac_cpp_err"; then
20080 ac_header_preproc=yes
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 ac_header_preproc=no
20087 rm -f conftest.err conftest.$ac_ext
20088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20089 echo "${ECHO_T}$ac_header_preproc" >&6
20091 # So? What about this header?
20092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20094 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20095 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20096 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20097 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20098 ac_header_preproc=yes
20101 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20102 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20103 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20104 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20105 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20106 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20108 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20109 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20110 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20111 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20112 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20115 ## ------------------------------------------ ##
20116 ## Report this to the AC_PACKAGE_NAME lists. ##
20117 ## ------------------------------------------ ##
20120 sed "s/^/$as_me: WARNING: /" >&2
20123 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20124 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
20125 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20130 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20131 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
20134 if test $ac_cv_header_sys_mkdev_h = yes; then
20136 cat >>confdefs.h <<\_ACEOF
20137 #define MAJOR_IN_MKDEV 1
20144 if test $ac_cv_header_sys_mkdev_h = no; then
20145 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20146 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20147 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
20148 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20152 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
20154 # Is the header compilable?
20155 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20156 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 $ac_includes_default
20164 #include <sys/sysmacros.h>
20166 rm -f conftest.$ac_objext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20168 (eval $ac_compile) 2>conftest.er1
20170 grep -v '^ *+' conftest.er1 >conftest.err
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -z "$ac_c_werror_flag"
20176 || test ! -s conftest.err'
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); }; } &&
20182 { ac_try='test -s conftest.$ac_objext'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 ac_header_compiler=yes
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 ac_header_compiler=no
20195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20197 echo "${ECHO_T}$ac_header_compiler" >&6
20199 # Is the header present?
20200 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20201 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
20202 cat >conftest.$ac_ext <<_ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h. */
20208 #include <sys/sysmacros.h>
20210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } >/dev/null; then
20218 if test -s conftest.err; then
20219 ac_cpp_err=$ac_c_preproc_warn_flag
20220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20227 if test -z "$ac_cpp_err"; then
20228 ac_header_preproc=yes
20230 echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20233 ac_header_preproc=no
20235 rm -f conftest.err conftest.$ac_ext
20236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20237 echo "${ECHO_T}$ac_header_preproc" >&6
20239 # So? What about this header?
20240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20242 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20243 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20244 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20245 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20246 ac_header_preproc=yes
20249 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20250 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20251 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20252 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20254 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20256 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20258 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20260 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20263 ## ------------------------------------------ ##
20264 ## Report this to the AC_PACKAGE_NAME lists. ##
20265 ## ------------------------------------------ ##
20268 sed "s/^/$as_me: WARNING: /" >&2
20271 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20272 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
20273 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20278 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20279 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
20282 if test $ac_cv_header_sys_sysmacros_h = yes; then
20284 cat >>confdefs.h <<\_ACEOF
20285 #define MAJOR_IN_SYSMACROS 1
20294 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20295 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20296 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 cat >conftest.$ac_ext <<_ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 #include <sys/types.h>
20306 #include <sys/wait.h>
20307 #ifndef WEXITSTATUS
20308 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20311 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20319 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20324 rm -f conftest.$ac_objext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20326 (eval $ac_compile) 2>conftest.er1
20328 grep -v '^ *+' conftest.er1 >conftest.err
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } &&
20333 { ac_try='test -z "$ac_c_werror_flag"
20334 || test ! -s conftest.err'
20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336 (eval $ac_try) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; } &&
20340 { ac_try='test -s conftest.$ac_objext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ac_cv_header_sys_wait_h=yes
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ac_cv_header_sys_wait_h=no
20353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20355 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20356 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20357 if test $ac_cv_header_sys_wait_h = yes; then
20359 cat >>confdefs.h <<\_ACEOF
20360 #define HAVE_SYS_WAIT_H 1
20366 for ac_header in stdint.h
20368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20370 echo "$as_me:$LINENO: checking for $ac_header" >&5
20371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20378 # Is the header compilable?
20379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 $ac_includes_default
20388 #include <$ac_header>
20390 rm -f conftest.$ac_objext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20392 (eval $ac_compile) 2>conftest.er1
20394 grep -v '^ *+' conftest.er1 >conftest.err
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } &&
20399 { ac_try='test -z "$ac_c_werror_flag"
20400 || test ! -s conftest.err'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest.$ac_objext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 ac_header_compiler=yes
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ac_header_compiler=no
20419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20421 echo "${ECHO_T}$ac_header_compiler" >&6
20423 # Is the header present?
20424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20426 cat >conftest.$ac_ext <<_ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20432 #include <$ac_header>
20434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } >/dev/null; then
20442 if test -s conftest.err; then
20443 ac_cpp_err=$ac_c_preproc_warn_flag
20444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20451 if test -z "$ac_cpp_err"; then
20452 ac_header_preproc=yes
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 ac_header_preproc=no
20459 rm -f conftest.err conftest.$ac_ext
20460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20461 echo "${ECHO_T}$ac_header_preproc" >&6
20463 # So? What about this header?
20464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20470 ac_header_preproc=yes
20473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20487 ## ------------------------------------------ ##
20488 ## Report this to the AC_PACKAGE_NAME lists. ##
20489 ## ------------------------------------------ ##
20492 sed "s/^/$as_me: WARNING: /" >&2
20495 echo "$as_me:$LINENO: checking for $ac_header" >&5
20496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20500 eval "$as_ac_Header=\$ac_header_preproc"
20502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20507 cat >>confdefs.h <<_ACEOF
20508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20521 for ac_header in fcntl.h locale.h stdint.h inttypes.h unistd.h getopt.h
20523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20525 echo "$as_me:$LINENO: checking for $ac_header" >&5
20526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20533 # Is the header compilable?
20534 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 $ac_includes_default
20543 #include <$ac_header>
20545 rm -f conftest.$ac_objext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20547 (eval $ac_compile) 2>conftest.er1
20549 grep -v '^ *+' conftest.er1 >conftest.err
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
20554 { ac_try='test -z "$ac_c_werror_flag"
20555 || test ! -s conftest.err'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest.$ac_objext'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 ac_header_compiler=yes
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 ac_header_compiler=no
20574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20576 echo "${ECHO_T}$ac_header_compiler" >&6
20578 # Is the header present?
20579 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20581 cat >conftest.$ac_ext <<_ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20587 #include <$ac_header>
20589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20592 grep -v '^ *+' conftest.er1 >conftest.err
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } >/dev/null; then
20597 if test -s conftest.err; then
20598 ac_cpp_err=$ac_c_preproc_warn_flag
20599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20606 if test -z "$ac_cpp_err"; then
20607 ac_header_preproc=yes
20609 echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20612 ac_header_preproc=no
20614 rm -f conftest.err conftest.$ac_ext
20615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20616 echo "${ECHO_T}$ac_header_preproc" >&6
20618 # So? What about this header?
20619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20625 ac_header_preproc=yes
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20642 ## ------------------------------------------ ##
20643 ## Report this to the AC_PACKAGE_NAME lists. ##
20644 ## ------------------------------------------ ##
20647 sed "s/^/$as_me: WARNING: /" >&2
20650 echo "$as_me:$LINENO: checking for $ac_header" >&5
20651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 eval "$as_ac_Header=\$ac_header_preproc"
20657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20662 cat >>confdefs.h <<_ACEOF
20663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20674 for ac_header in utime.h wchar.h wctype.h limits.h
20676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20678 echo "$as_me:$LINENO: checking for $ac_header" >&5
20679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20686 # Is the header compilable?
20687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20689 cat >conftest.$ac_ext <<_ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20695 $ac_includes_default
20696 #include <$ac_header>
20698 rm -f conftest.$ac_objext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700 (eval $ac_compile) 2>conftest.er1
20702 grep -v '^ *+' conftest.er1 >conftest.err
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -z "$ac_c_werror_flag"
20708 || test ! -s conftest.err'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; } &&
20714 { ac_try='test -s conftest.$ac_objext'
20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
20720 ac_header_compiler=yes
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 ac_header_compiler=no
20727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20729 echo "${ECHO_T}$ac_header_compiler" >&6
20731 # Is the header present?
20732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20734 cat >conftest.$ac_ext <<_ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 #include <$ac_header>
20742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20745 grep -v '^ *+' conftest.er1 >conftest.err
20747 cat conftest.err >&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } >/dev/null; then
20750 if test -s conftest.err; then
20751 ac_cpp_err=$ac_c_preproc_warn_flag
20752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20759 if test -z "$ac_cpp_err"; then
20760 ac_header_preproc=yes
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ac_header_preproc=no
20767 rm -f conftest.err conftest.$ac_ext
20768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20769 echo "${ECHO_T}$ac_header_preproc" >&6
20771 # So? What about this header?
20772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20778 ac_header_preproc=yes
20781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20795 ## ------------------------------------------ ##
20796 ## Report this to the AC_PACKAGE_NAME lists. ##
20797 ## ------------------------------------------ ##
20800 sed "s/^/$as_me: WARNING: /" >&2
20803 echo "$as_me:$LINENO: checking for $ac_header" >&5
20804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 eval "$as_ac_Header=\$ac_header_preproc"
20810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20815 cat >>confdefs.h <<_ACEOF
20816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20828 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
20830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20832 echo "$as_me:$LINENO: checking for $ac_header" >&5
20833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20840 # Is the header compilable?
20841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20843 cat >conftest.$ac_ext <<_ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20849 $ac_includes_default
20850 #include <$ac_header>
20852 rm -f conftest.$ac_objext
20853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20854 (eval $ac_compile) 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_c_werror_flag"
20862 || test ! -s conftest.err'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; } &&
20868 { ac_try='test -s conftest.$ac_objext'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
20874 ac_header_compiler=yes
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ac_header_compiler=no
20881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20883 echo "${ECHO_T}$ac_header_compiler" >&6
20885 # Is the header present?
20886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20888 cat >conftest.$ac_ext <<_ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894 #include <$ac_header>
20896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20899 grep -v '^ *+' conftest.er1 >conftest.err
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } >/dev/null; then
20904 if test -s conftest.err; then
20905 ac_cpp_err=$ac_c_preproc_warn_flag
20906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20913 if test -z "$ac_cpp_err"; then
20914 ac_header_preproc=yes
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_header_preproc=no
20921 rm -f conftest.err conftest.$ac_ext
20922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20923 echo "${ECHO_T}$ac_header_preproc" >&6
20925 # So? What about this header?
20926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20932 ac_header_preproc=yes
20935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20949 ## ------------------------------------------ ##
20950 ## Report this to the AC_PACKAGE_NAME lists. ##
20951 ## ------------------------------------------ ##
20954 sed "s/^/$as_me: WARNING: /" >&2
20957 echo "$as_me:$LINENO: checking for $ac_header" >&5
20958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 eval "$as_ac_Header=\$ac_header_preproc"
20964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20969 cat >>confdefs.h <<_ACEOF
20970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20978 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20979 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20980 if test "${ac_cv_c_const+set}" = set; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 cat >conftest.$ac_ext <<_ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20993 /* FIXME: Include the comments suggested by Paul. */
20994 #ifndef __cplusplus
20995 /* Ultrix mips cc rejects this. */
20996 typedef int charset[2];
20998 /* SunOS 4.1.1 cc rejects this. */
20999 char const *const *ccp;
21001 /* NEC SVR4.0.2 mips cc rejects this. */
21002 struct point {int x, y;};
21003 static struct point const zero = {0,0};
21004 /* AIX XL C 1.02.0.0 rejects this.
21005 It does not let you subtract one const X* pointer from another in
21006 an arm of an if-expression whose if-part is not a constant
21008 const char *g = "string";
21009 ccp = &g + (g ? g-g : 0);
21010 /* HPUX 7.0 cc rejects these. */
21013 ccp = (char const *const *) p;
21014 { /* SCO 3.2v4 cc rejects this. */
21016 char const *s = 0 ? (char *) 0 : (char const *) 0;
21020 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21021 int x[] = {25, 17};
21022 const int *foo = &x[0];
21025 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21026 typedef const int *iptr;
21030 { /* AIX XL C 1.02.0.0 rejects this saying
21031 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21032 struct s { int j; const int *ap[3]; };
21033 struct s *b; b->j = 5;
21035 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21036 const int foo = 10;
21044 rm -f conftest.$ac_objext
21045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21046 (eval $ac_compile) 2>conftest.er1
21048 grep -v '^ *+' conftest.er1 >conftest.err
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try='test -z "$ac_c_werror_flag"
21054 || test ! -s conftest.err'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; } &&
21060 { ac_try='test -s conftest.$ac_objext'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21075 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21076 echo "${ECHO_T}$ac_cv_c_const" >&6
21077 if test $ac_cv_c_const = no; then
21079 cat >>confdefs.h <<\_ACEOF
21085 echo "$as_me:$LINENO: checking for off_t" >&5
21086 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21087 if test "${ac_cv_type_off_t+set}" = set; then
21088 echo $ECHO_N "(cached) $ECHO_C" >&6
21090 cat >conftest.$ac_ext <<_ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21096 $ac_includes_default
21102 if (sizeof (off_t))
21108 rm -f conftest.$ac_objext
21109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21110 (eval $ac_compile) 2>conftest.er1
21112 grep -v '^ *+' conftest.er1 >conftest.err
21114 cat conftest.err >&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } &&
21117 { ac_try='test -z "$ac_c_werror_flag"
21118 || test ! -s conftest.err'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; } &&
21124 { ac_try='test -s conftest.$ac_objext'
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; }; then
21130 ac_cv_type_off_t=yes
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21135 ac_cv_type_off_t=no
21137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21139 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21140 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21141 if test $ac_cv_type_off_t = yes; then
21145 cat >>confdefs.h <<_ACEOF
21151 echo "$as_me:$LINENO: checking for size_t" >&5
21152 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21153 if test "${ac_cv_type_size_t+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 cat >conftest.$ac_ext <<_ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 $ac_includes_default
21168 if (sizeof (size_t))
21174 rm -f conftest.$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176 (eval $ac_compile) 2>conftest.er1
21178 grep -v '^ *+' conftest.er1 >conftest.err
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
21183 { ac_try='test -z "$ac_c_werror_flag"
21184 || test ! -s conftest.err'
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; } &&
21190 { ac_try='test -s conftest.$ac_objext'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 ac_cv_type_size_t=yes
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21201 ac_cv_type_size_t=no
21203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21205 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21206 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21207 if test $ac_cv_type_size_t = yes; then
21211 cat >>confdefs.h <<_ACEOF
21212 #define size_t unsigned
21218 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21219 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
21220 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21223 cat >conftest.$ac_ext <<_ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21229 $ac_includes_default
21233 static struct stat ac_aggr;
21234 if (ac_aggr.st_rdev)
21240 rm -f conftest.$ac_objext
21241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21242 (eval $ac_compile) 2>conftest.er1
21244 grep -v '^ *+' conftest.er1 >conftest.err
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -z "$ac_c_werror_flag"
21250 || test ! -s conftest.err'
21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252 (eval $ac_try) 2>&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; } &&
21256 { ac_try='test -s conftest.$ac_objext'
21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258 (eval $ac_try) 2>&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; }; then
21262 ac_cv_member_struct_stat_st_rdev=yes
21264 echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21267 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 $ac_includes_default
21277 static struct stat ac_aggr;
21278 if (sizeof ac_aggr.st_rdev)
21284 rm -f conftest.$ac_objext
21285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21286 (eval $ac_compile) 2>conftest.er1
21288 grep -v '^ *+' conftest.er1 >conftest.err
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } &&
21293 { ac_try='test -z "$ac_c_werror_flag"
21294 || test ! -s conftest.err'
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; } &&
21300 { ac_try='test -s conftest.$ac_objext'
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21306 ac_cv_member_struct_stat_st_rdev=yes
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_cv_member_struct_stat_st_rdev=no
21313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21317 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21318 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
21319 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21321 cat >>confdefs.h <<_ACEOF
21322 #define HAVE_STRUCT_STAT_ST_RDEV 1
21326 cat >>confdefs.h <<\_ACEOF
21327 #define HAVE_ST_RDEV 1
21333 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21334 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21335 if test "${ac_cv_struct_tm+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 cat >conftest.$ac_ext <<_ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 #include <sys/types.h>
21350 struct tm *tp; tp->tm_sec;
21355 rm -f conftest.$ac_objext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>conftest.er1
21359 grep -v '^ *+' conftest.er1 >conftest.err
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
21364 { ac_try='test -z "$ac_c_werror_flag"
21365 || test ! -s conftest.err'
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; } &&
21371 { ac_try='test -s conftest.$ac_objext'
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ac_cv_struct_tm=time.h
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 ac_cv_struct_tm=sys/time.h
21384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21386 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21387 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21388 if test $ac_cv_struct_tm = sys/time.h; then
21390 cat >>confdefs.h <<\_ACEOF
21391 #define TM_IN_SYS_TIME 1
21396 echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
21397 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
21398 if test "${ac_cv_struct_tm_zone+set}" = set; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 #include <sys/types.h>
21408 #include <$ac_cv_struct_tm>
21412 struct tm tm; tm.tm_zone;
21417 rm -f conftest.$ac_objext
21418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21419 (eval $ac_compile) 2>conftest.er1
21421 grep -v '^ *+' conftest.er1 >conftest.err
21423 cat conftest.err >&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); } &&
21426 { ac_try='test -z "$ac_c_werror_flag"
21427 || test ! -s conftest.err'
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; } &&
21433 { ac_try='test -s conftest.$ac_objext'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
21439 ac_cv_struct_tm_zone=yes
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21444 ac_cv_struct_tm_zone=no
21446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21448 echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
21449 echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6
21450 if test "$ac_cv_struct_tm_zone" = yes; then
21452 cat >>confdefs.h <<\_ACEOF
21453 #define HAVE_TM_ZONE 1
21457 echo "$as_me:$LINENO: checking for tzname" >&5
21458 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21459 if test "${ac_cv_var_tzname+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 cat >conftest.$ac_ext <<_ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21469 #ifndef tzname /* For SGI. */
21470 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21482 (eval $ac_link) 2>conftest.er1
21484 grep -v '^ *+' conftest.er1 >conftest.err
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } &&
21489 { ac_try='test -z "$ac_c_werror_flag"
21490 || test ! -s conftest.err'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 ac_cv_var_tzname=yes
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_cv_var_tzname=no
21509 rm -f conftest.err conftest.$ac_objext \
21510 conftest$ac_exeext conftest.$ac_ext
21512 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21513 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21514 if test $ac_cv_var_tzname = yes; then
21516 cat >>confdefs.h <<\_ACEOF
21517 #define HAVE_TZNAME 1
21522 echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
21523 echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6
21524 if test "${ac_cv_struct_tm_isdst+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 cat >conftest.$ac_ext <<_ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 #include <sys/types.h>
21534 #include <$ac_cv_struct_tm>
21538 struct tm tm; tm.tm_isdst;
21543 rm -f conftest.$ac_objext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545 (eval $ac_compile) 2>conftest.er1
21547 grep -v '^ *+' conftest.er1 >conftest.err
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } &&
21552 { ac_try='test -z "$ac_c_werror_flag"
21553 || test ! -s conftest.err'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest.$ac_objext'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ac_cv_struct_tm_isdst=yes
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ac_cv_struct_tm_isdst=no
21572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21574 echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
21575 echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6
21576 if test "$ac_cv_struct_tm_isdst" = yes; then
21577 cat >>confdefs.h <<\_ACEOF
21578 #define HAVE_TM_ISDST 1
21582 echo "$as_me:$LINENO: checking for daylight" >&5
21583 echo $ECHO_N "checking for daylight... $ECHO_C" >&6
21584 if test "${ac_cv_var_daylight+set}" = set; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 cat >conftest.$ac_ext <<_ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21594 #ifndef daylight /* In case IRIX #defines this, too */
21595 extern int daylight;
21605 rm -f conftest.$ac_objext conftest$ac_exeext
21606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21607 (eval $ac_link) 2>conftest.er1
21609 grep -v '^ *+' conftest.er1 >conftest.err
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } &&
21614 { ac_try='test -z "$ac_c_werror_flag"
21615 || test ! -s conftest.err'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; } &&
21621 { ac_try='test -s conftest$ac_exeext'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; }; then
21627 ac_cv_var_daylight=yes
21629 echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 ac_cv_var_daylight=no
21634 rm -f conftest.err conftest.$ac_objext \
21635 conftest$ac_exeext conftest.$ac_ext
21637 echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
21638 echo "${ECHO_T}$ac_cv_var_daylight" >&6
21639 if test $ac_cv_var_daylight = yes; then
21640 cat >>confdefs.h <<\_ACEOF
21641 #define HAVE_DAYLIGHT 1
21647 # Check whether --enable-largefile or --disable-largefile was given.
21648 if test "${enable_largefile+set}" = set; then
21649 enableval="$enable_largefile"
21652 if test "$enable_largefile" != no; then
21654 echo "$as_me:$LINENO: checking for special C compiler options needed for large files=
21656 echo $ECHO_N "checking for special C compiler options needed for large files=
21658 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 ac_cv_sys_largefile_CC=no
21662 if test "$GCC" != yes; then
21663 # IRIX 6.2 and later do not support large files by default,
21664 # so use the C compiler's -n32 option if that helps.
21665 cat >conftest.$ac_ext <<_ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 #include <sys/types.h>
21672 /* Check that off_t can represent 2**63 - 1 correctly.
21673 We can't simply "#define LARGE_OFF_T 9223372036854775807",
21674 since some C++ compilers masquerading as C compilers
21675 incorrectly reject 9223372036854775807. */
21676 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21678 && LARGE_OFF_T % 2147483647 == 1)
21689 rm -f conftest.$ac_objext
21690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21691 (eval $ac_compile) 2>conftest.er1
21693 grep -v '^ *+' conftest.er1 >conftest.err
21695 cat conftest.err >&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } &&
21698 { ac_try='test -z "$ac_c_werror_flag"
21699 || test ! -s conftest.err'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; } &&
21705 { ac_try='test -s conftest.$ac_objext'
21706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707 (eval $ac_try) 2>&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; }; then
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21718 cat >conftest.$ac_ext <<_ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21724 #include <sys/types.h>
21725 /* Check that off_t can represent 2**63 - 1 correctly.
21726 We can't simply "#define LARGE_OFF_T 9223372036854775807",
21727 since some C++ compilers masquerading as C compilers
21728 incorrectly reject 9223372036854775807. */
21729 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21730 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21731 && LARGE_OFF_T % 2147483647 == 1)
21742 rm -f conftest.$ac_objext
21743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21744 (eval $ac_compile) 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } &&
21751 { ac_try='test -z "$ac_c_werror_flag"
21752 || test ! -s conftest.err'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; } &&
21758 { ac_try='test -s conftest.$ac_objext'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; }; then
21764 ac_cv_sys_largefile_CC=' -n32'
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21776 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21777 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21778 if test "$ac_cv_sys_largefile_CC" != no; then
21779 CC="$CC$ac_cv_sys_largefile_CC"
21782 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21783 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21784 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21787 ac_cv_sys_file_offset_bits=no
21788 cat >conftest.$ac_ext <<_ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21794 #include <sys/types.h>
21795 /* Check that off_t can represent 2**63 - 1 correctly.
21796 We can't simply "#define LARGE_OFF_T 9223372036854775807",
21797 since some C++ compilers masquerading as C compilers
21798 incorrectly reject 9223372036854775807. */
21799 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21801 && LARGE_OFF_T % 2147483647 == 1)
21812 rm -f conftest.$ac_objext
21813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21814 (eval $ac_compile) 2>conftest.er1
21816 grep -v '^ *+' conftest.er1 >conftest.err
21818 cat conftest.err >&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } &&
21821 { ac_try='test -z "$ac_c_werror_flag"
21822 || test ! -s conftest.err'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; } &&
21828 { ac_try='test -s conftest.$ac_objext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 #define _FILE_OFFSET_BITS 64
21846 #include <sys/types.h>
21847 /* Check that off_t can represent 2**63 - 1 correctly.
21848 We can't simply "#define LARGE_OFF_T 9223372036854775807",
21849 since some C++ compilers masquerading as C compilers
21850 incorrectly reject 9223372036854775807. */
21851 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21853 && LARGE_OFF_T % 2147483647 == 1)
21865 rm -f conftest.$ac_objext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21867 (eval $ac_compile) 2>conftest.er1
21869 grep -v '^ *+' conftest.er1 >conftest.err
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } &&
21874 { ac_try='test -z "$ac_c_werror_flag"
21875 || test ! -s conftest.err'
21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; } &&
21881 { ac_try='test -s conftest.$ac_objext'
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; }; then
21887 ac_cv_sys_file_offset_bits=64
21889 echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21897 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21898 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21899 if test "$ac_cv_sys_file_offset_bits" != no; then
21901 cat >>confdefs.h <<_ACEOF
21902 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21906 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21907 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21908 if test "${ac_cv_sys_large_files+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21911 ac_cv_sys_large_files=no
21912 cat >conftest.$ac_ext <<_ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 #include <sys/types.h>
21919 /* Check that off_t can represent 2**63 - 1 correctly.
21920 We can't simply "#define LARGE_OFF_T 9223372036854775807",
21921 since some C++ compilers masquerading as C compilers
21922 incorrectly reject 9223372036854775807. */
21923 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21925 && LARGE_OFF_T % 2147483647 == 1)
21936 rm -f conftest.$ac_objext
21937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21938 (eval $ac_compile) 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } &&
21945 { ac_try='test -z "$ac_c_werror_flag"
21946 || test ! -s conftest.err'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; } &&
21952 { ac_try='test -s conftest.$ac_objext'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; }; then
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 cat >conftest.$ac_ext <<_ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 #define _LARGE_FILES 1
21970 #include <sys/types.h>
21971 /* Check that off_t can represent 2**63 - 1 correctly.
21972 We can't simply "#define LARGE_OFF_T 9223372036854775807",
21973 since some C++ compilers masquerading as C compilers
21974 incorrectly reject 9223372036854775807. */
21975 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21977 && LARGE_OFF_T % 2147483647 == 1)
21989 rm -f conftest.$ac_objext
21990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21991 (eval $ac_compile) 2>conftest.er1
21993 grep -v '^ *+' conftest.er1 >conftest.err
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } &&
21998 { ac_try='test -z "$ac_c_werror_flag"
21999 || test ! -s conftest.err'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; } &&
22005 { ac_try='test -s conftest.$ac_objext'
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
22011 ac_cv_sys_large_files=1
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22021 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22022 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22023 if test "$ac_cv_sys_large_files" != no; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define _LARGE_FILES $ac_cv_sys_large_files
22032 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22033 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22034 if test "${ac_cv_type_mbstate_t+set}" = set; then
22035 echo $ECHO_N "(cached) $ECHO_C" >&6
22037 cat >conftest.$ac_ext <<_ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 $ac_includes_default
22044 # include <wchar.h>
22048 mbstate_t x; return sizeof x;
22053 rm -f conftest.$ac_objext
22054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22055 (eval $ac_compile) 2>conftest.er1
22057 grep -v '^ *+' conftest.er1 >conftest.err
22059 cat conftest.err >&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } &&
22062 { ac_try='test -z "$ac_c_werror_flag"
22063 || test ! -s conftest.err'
22064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065 (eval $ac_try) 2>&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); }; } &&
22069 { ac_try='test -s conftest.$ac_objext'
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; }; then
22075 ac_cv_type_mbstate_t=yes
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ac_cv_type_mbstate_t=no
22082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22084 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22085 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22086 if test $ac_cv_type_mbstate_t = yes; then
22088 cat >>confdefs.h <<\_ACEOF
22089 #define HAVE_MBSTATE_T 1
22094 cat >>confdefs.h <<\_ACEOF
22095 #define mbstate_t int
22100 echo "$as_me:$LINENO: checking for uint8_t" >&5
22101 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22102 if test "${ac_cv_type_uint8_t+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 cat >conftest.$ac_ext <<_ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22112 #include <stdint.h>
22114 #include <sys/types.h>
22116 #include <stdlib.h>
22117 #include <stddef.h>
22120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22121 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22122 ac_cv_type_uint8_t=yes
22124 ac_cv_type_uint8_t=no
22129 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22130 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22131 if test $ac_cv_type_uint8_t = no; then
22132 cat >>confdefs.h <<\_ACEOF
22133 #define uint8_t unsigned char
22138 echo "$as_me:$LINENO: checking for uint16_t" >&5
22139 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22140 if test "${ac_cv_type_uint16_t+set}" = set; then
22141 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 cat >conftest.$ac_ext <<_ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22150 #include <stdint.h>
22152 #include <sys/types.h>
22154 #include <stdlib.h>
22155 #include <stddef.h>
22158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22159 $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22160 ac_cv_type_uint16_t=yes
22162 ac_cv_type_uint16_t=no
22167 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22168 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22169 if test $ac_cv_type_uint16_t = no; then
22170 cat >>confdefs.h <<\_ACEOF
22171 #define uint16_t unsigned short
22176 echo "$as_me:$LINENO: checking for uint32_t" >&5
22177 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22178 if test "${ac_cv_type_uint32_t+set}" = set; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22181 cat >conftest.$ac_ext <<_ACEOF
22184 cat confdefs.h >>conftest.$ac_ext
22185 cat >>conftest.$ac_ext <<_ACEOF
22186 /* end confdefs.h. */
22188 #include <stdint.h>
22190 #include <sys/types.h>
22192 #include <stdlib.h>
22193 #include <stddef.h>
22196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22197 $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22198 ac_cv_type_uint32_t=yes
22200 ac_cv_type_uint32_t=no
22205 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22206 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22207 if test $ac_cv_type_uint32_t = no; then
22208 cat >>confdefs.h <<\_ACEOF
22209 #define uint32_t unsigned int
22214 echo "$as_me:$LINENO: checking for int32_t" >&5
22215 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
22216 if test "${ac_cv_type_int32_t+set}" = set; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22219 cat >conftest.$ac_ext <<_ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22226 #include <stdint.h>
22228 #include <sys/types.h>
22230 #include <stdlib.h>
22231 #include <stddef.h>
22234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22235 $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22236 ac_cv_type_int32_t=yes
22238 ac_cv_type_int32_t=no
22243 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
22244 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
22245 if test $ac_cv_type_int32_t = no; then
22246 cat >>confdefs.h <<\_ACEOF
22247 #define int32_t int
22252 echo "$as_me:$LINENO: checking for long long" >&5
22253 echo $ECHO_N "checking for long long... $ECHO_C" >&6
22254 if test "${ac_cv_c_long_long+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22257 if test "$GCC" = yes; then
22258 ac_cv_c_long_long=yes
22260 if test "$cross_compiling" = yes; then
22261 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22262 See \`config.log' for more details." >&5
22263 echo "$as_me: error: cannot run test program while cross compiling
22264 See \`config.log' for more details." >&2;}
22265 { (exit 1); exit 1; }; }
22267 cat >conftest.$ac_ext <<_ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22275 exit(sizeof(long long) < sizeof(long)); }
22277 rm -f conftest$ac_exeext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22279 (eval $ac_link) 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 ac_cv_c_long_long=yes
22290 echo "$as_me: program exited with status $ac_status" >&5
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 ( exit $ac_status )
22295 ac_cv_c_long_long=no
22297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22301 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
22302 echo "${ECHO_T}$ac_cv_c_long_long" >&6
22303 if test $ac_cv_c_long_long = yes; then
22304 cat >>confdefs.h <<\_ACEOF
22305 #define HAVE_LONG_LONG 1
22310 if test $ac_cv_c_long_long = yes; then
22311 long64='unsigned long long';
22313 long64='unsigned long';
22315 echo "$as_me:$LINENO: checking for uint64_t" >&5
22316 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
22317 if test "${ac_cv_type_uint64_t+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 cat >conftest.$ac_ext <<_ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h. */
22327 #include <stdint.h>
22329 #include <sys/types.h>
22331 #include <stdlib.h>
22332 #include <stddef.h>
22335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22336 $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22337 eval "ac_cv_type_uint64_t=yes"
22339 eval "ac_cv_type_uint64_t=no"
22344 if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
22345 echo "$as_me:$LINENO: result: yes" >&5
22346 echo "${ECHO_T}yes" >&6
22348 echo "$as_me:$LINENO: result: no" >&5
22349 echo "${ECHO_T}no" >&6
22350 cat >>confdefs.h <<_ACEOF
22351 #define uint64_t $long64
22357 echo "$as_me:$LINENO: checking size of uint8_t" >&5
22358 echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6
22359 if test "${ac_cv_sizeof_uint8_t+set}" = set; then
22360 echo $ECHO_N "(cached) $ECHO_C" >&6
22362 if test "$cross_compiling" = yes; then
22363 ac_cv_sizeof_uint8_t=0
22365 cat >conftest.$ac_ext <<_ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h. */
22372 #include <stdint.h>
22374 #include <sys/types.h>
22375 #ifdef STDC_HEADERS
22376 #include <stdlib.h>
22382 FILE *f=fopen("conftestval", "w");
22384 fprintf(f, "%d\n", sizeof(uint8_t));
22388 rm -f conftest$ac_exeext
22389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22390 (eval $ac_link) 2>&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22399 ac_cv_sizeof_uint8_t=`cat conftestval`
22401 echo "$as_me: program exited with status $ac_status" >&5
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22405 ( exit $ac_status )
22406 ac_cv_sizeof_uint8_t=0
22408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
22412 echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6
22413 cat >>confdefs.h <<_ACEOF
22414 #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
22419 echo "$as_me:$LINENO: checking size of uint16_t" >&5
22420 echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6
22421 if test "${ac_cv_sizeof_uint16_t+set}" = set; then
22422 echo $ECHO_N "(cached) $ECHO_C" >&6
22424 if test "$cross_compiling" = yes; then
22425 ac_cv_sizeof_uint16_t=0
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22434 #include <stdint.h>
22436 #include <sys/types.h>
22437 #ifdef STDC_HEADERS
22438 #include <stdlib.h>
22444 FILE *f=fopen("conftestval", "w");
22446 fprintf(f, "%d\n", sizeof(uint16_t));
22450 rm -f conftest$ac_exeext
22451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22452 (eval $ac_link) 2>&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; }; then
22461 ac_cv_sizeof_uint16_t=`cat conftestval`
22463 echo "$as_me: program exited with status $ac_status" >&5
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22467 ( exit $ac_status )
22468 ac_cv_sizeof_uint16_t=0
22470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22473 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
22474 echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6
22475 cat >>confdefs.h <<_ACEOF
22476 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
22481 echo "$as_me:$LINENO: checking size of uint32_t" >&5
22482 echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6
22483 if test "${ac_cv_sizeof_uint32_t+set}" = set; then
22484 echo $ECHO_N "(cached) $ECHO_C" >&6
22486 if test "$cross_compiling" = yes; then
22487 ac_cv_sizeof_uint32_t=0
22489 cat >conftest.$ac_ext <<_ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22496 #include <stdint.h>
22498 #include <sys/types.h>
22499 #ifdef STDC_HEADERS
22500 #include <stdlib.h>
22506 FILE *f=fopen("conftestval", "w");
22508 fprintf(f, "%d\n", sizeof(uint32_t));
22512 rm -f conftest$ac_exeext
22513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22514 (eval $ac_link) 2>&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519 (eval $ac_try) 2>&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; }; then
22523 ac_cv_sizeof_uint32_t=`cat conftestval`
22525 echo "$as_me: program exited with status $ac_status" >&5
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 ( exit $ac_status )
22530 ac_cv_sizeof_uint32_t=0
22532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22535 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
22536 echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6
22537 cat >>confdefs.h <<_ACEOF
22538 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
22543 echo "$as_me:$LINENO: checking size of uint64_t" >&5
22544 echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
22545 if test "${ac_cv_sizeof_uint64_t+set}" = set; then
22546 echo $ECHO_N "(cached) $ECHO_C" >&6
22548 if test "$cross_compiling" = yes; then
22549 ac_cv_sizeof_uint64_t=0
22551 cat >conftest.$ac_ext <<_ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h. */
22558 #include <stdint.h>
22560 #include <sys/types.h>
22561 #ifdef STDC_HEADERS
22562 #include <stdlib.h>
22568 FILE *f=fopen("conftestval", "w");
22570 fprintf(f, "%d\n", sizeof(uint64_t));
22574 rm -f conftest$ac_exeext
22575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22576 (eval $ac_link) 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22581 (eval $ac_try) 2>&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); }; }; then
22585 ac_cv_sizeof_uint64_t=`cat conftestval`
22587 echo "$as_me: program exited with status $ac_status" >&5
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22591 ( exit $ac_status )
22592 ac_cv_sizeof_uint64_t=0
22594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22597 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
22598 echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
22599 cat >>confdefs.h <<_ACEOF
22600 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
22618 for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp getopt_long utimes utime wcwidth snprintf vsnprintf
22620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22621 echo "$as_me:$LINENO: checking for $ac_func" >&5
22622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22623 if eval "test \"\${$as_ac_var+set}\" = set"; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 cat >conftest.$ac_ext <<_ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h. */
22632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22634 #define $ac_func innocuous_$ac_func
22636 /* System header to define __stub macros and hopefully few prototypes,
22637 which can conflict with char $ac_func (); below.
22638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22639 <limits.h> exists even on freestanding compilers. */
22642 # include <limits.h>
22644 # include <assert.h>
22649 /* Override any gcc2 internal prototype to avoid an error. */
22654 /* We use char because int might match the return type of a gcc2
22655 builtin and then its argument prototype would still apply. */
22657 /* The GNU C library defines this for functions which it implements
22658 to always fail with ENOSYS. Some functions are actually named
22659 something starting with __ and the normal name is an alias. */
22660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22663 char (*f) () = $ac_func;
22672 return f != $ac_func;
22677 rm -f conftest.$ac_objext conftest$ac_exeext
22678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22679 (eval $ac_link) 2>conftest.er1
22681 grep -v '^ *+' conftest.er1 >conftest.err
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } &&
22686 { ac_try='test -z "$ac_c_werror_flag"
22687 || test ! -s conftest.err'
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; } &&
22693 { ac_try='test -s conftest$ac_exeext'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; }; then
22699 eval "$as_ac_var=yes"
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 eval "$as_ac_var=no"
22706 rm -f conftest.err conftest.$ac_objext \
22707 conftest$ac_exeext conftest.$ac_ext
22709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22711 if test `eval echo '${'$as_ac_var'}'` = yes; then
22712 cat >>confdefs.h <<_ACEOF
22713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22721 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
22722 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
22723 if test "${ac_cv_lib_z_gzopen+set}" = set; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 ac_check_lib_save_LIBS=$LIBS
22728 cat >conftest.$ac_ext <<_ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h. */
22735 /* Override any gcc2 internal prototype to avoid an error. */
22739 /* We use char because int might match the return type of a gcc2
22740 builtin and then its argument prototype would still apply. */
22750 rm -f conftest.$ac_objext conftest$ac_exeext
22751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22752 (eval $ac_link) 2>conftest.er1
22754 grep -v '^ *+' conftest.er1 >conftest.err
22756 cat conftest.err >&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } &&
22759 { ac_try='test -z "$ac_c_werror_flag"
22760 || test ! -s conftest.err'
22761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762 (eval $ac_try) 2>&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); }; } &&
22766 { ac_try='test -s conftest$ac_exeext'
22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768 (eval $ac_try) 2>&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; }; then
22772 ac_cv_lib_z_gzopen=yes
22774 echo "$as_me: failed program was:" >&5
22775 sed 's/^/| /' conftest.$ac_ext >&5
22777 ac_cv_lib_z_gzopen=no
22779 rm -f conftest.err conftest.$ac_objext \
22780 conftest$ac_exeext conftest.$ac_ext
22781 LIBS=$ac_check_lib_save_LIBS
22783 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
22784 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
22785 if test $ac_cv_lib_z_gzopen = yes; then
22786 cat >>confdefs.h <<_ACEOF
22787 #define HAVE_LIBZ 1
22797 if test "$cross_compiling" = yes; then
22798 IS_CROSS_COMPILE_TRUE=
22799 IS_CROSS_COMPILE_FALSE='#'
22801 IS_CROSS_COMPILE_TRUE='#'
22802 IS_CROSS_COMPILE_FALSE=
22806 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile doc/Makefile python/Makefile"
22808 cat >confcache <<\_ACEOF
22809 # This file is a shell script that caches the results of configure
22810 # tests run on this system so they can be shared between configure
22811 # scripts and configure runs, see configure's option --config-cache.
22812 # It is not useful on other systems. If it contains results you don't
22813 # want to keep, you may remove or edit it.
22815 # config.status only pays attention to the cache file if you give it
22816 # the --recheck option to rerun configure.
22818 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22819 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22820 # following values.
22824 # The following way of writing the cache mishandles newlines in values,
22825 # but we know of no workaround that is simple, portable, and efficient.
22826 # So, don't put newlines in cache variables' values.
22827 # Ultrix sh set writes to stderr and can't be redirected directly,
22828 # and sets the high bit in the cache file unless we assign to the vars.
22831 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22833 # `set' does not quote correctly, so add quotes (double-quote
22834 # substitution turns \\\\ into \\, and sed turns \\ into \).
22837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22840 # `set' quotes correctly as required by POSIX, so do not add quotes.
22842 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22849 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22851 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22853 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22854 if test -w $cache_file; then
22855 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22856 cat confcache >$cache_file
22858 echo "not updating unwritable cache $cache_file"
22863 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22864 # Let make expand exec_prefix.
22865 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22867 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22868 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22869 # trailing colons and then remove the whole line if VPATH becomes empty
22870 # (actually we leave an empty line to preserve line numbers).
22871 if test "x$srcdir" = x.; then
22872 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22873 s/:*\$(srcdir):*/:/;
22874 s/:*\${srcdir}:*/:/;
22876 s/^\([^=]*=[ ]*\):*/\1/;
22882 DEFS=-DHAVE_CONFIG_H
22886 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22887 # 1. Remove the extension, and $U if already installed.
22888 ac_i=`echo "$ac_i" |
22889 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22891 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22892 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22894 LIBOBJS=$ac_libobjs
22896 LTLIBOBJS=$ac_ltlibobjs
22899 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22900 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22901 Usually this means the macro was only invoked conditionally." >&5
22902 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22903 Usually this means the macro was only invoked conditionally." >&2;}
22904 { (exit 1); exit 1; }; }
22906 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
22907 { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
22908 Usually this means the macro was only invoked conditionally." >&5
22909 echo "$as_me: error: conditional \"FSECT5\" was never defined.
22910 Usually this means the macro was only invoked conditionally." >&2;}
22911 { (exit 1); exit 1; }; }
22913 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22914 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22915 Usually this means the macro was only invoked conditionally." >&5
22916 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22917 Usually this means the macro was only invoked conditionally." >&2;}
22918 { (exit 1); exit 1; }; }
22920 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22921 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22922 Usually this means the macro was only invoked conditionally." >&5
22923 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22924 Usually this means the macro was only invoked conditionally." >&2;}
22925 { (exit 1); exit 1; }; }
22927 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22928 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22929 Usually this means the macro was only invoked conditionally." >&5
22930 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22931 Usually this means the macro was only invoked conditionally." >&2;}
22932 { (exit 1); exit 1; }; }
22934 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
22935 { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
22936 Usually this means the macro was only invoked conditionally." >&5
22937 echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
22938 Usually this means the macro was only invoked conditionally." >&2;}
22939 { (exit 1); exit 1; }; }
22942 : ${CONFIG_STATUS=./config.status}
22943 ac_clean_files_save=$ac_clean_files
22944 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22945 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22946 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22947 cat >$CONFIG_STATUS <<_ACEOF
22949 # Generated by $as_me.
22950 # Run this file to recreate the current configuration.
22951 # Compiler output produced by configure, useful for debugging
22952 # configure, is in config.log if it exists.
22955 ac_cs_recheck=false
22957 SHELL=\${CONFIG_SHELL-$SHELL}
22960 cat >>$CONFIG_STATUS <<\_ACEOF
22961 ## --------------------- ##
22962 ## M4sh Initialization. ##
22963 ## --------------------- ##
22965 # Be Bourne compatible
22966 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22969 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22970 # is contrary to our usage. Disable this feature.
22971 alias -g '${1+"$@"}'='"$@"'
22972 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22975 DUALCASE=1; export DUALCASE # for MKS sh
22977 # Support unset when possible.
22978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22985 # Work around bugs in pre-3.0 UWIN ksh.
22986 $as_unset ENV MAIL MAILPATH
22993 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22994 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22995 LC_TELEPHONE LC_TIME
22997 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22998 eval $as_var=C; export $as_var
23004 # Required to use basename.
23005 if expr a : '\(a\)' >/dev/null 2>&1; then
23011 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23012 as_basename=basename
23018 # Name of the executable.
23019 as_me=`$as_basename "$0" ||
23020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23021 X"$0" : 'X\(//\)$' \| \
23022 X"$0" : 'X\(/\)$' \| \
23023 . : '\(.\)' 2>/dev/null ||
23025 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23026 /^X\/\(\/\/\)$/{ s//\1/; q; }
23027 /^X\/\(\/\).*/{ s//\1/; q; }
23031 # PATH needs CR, and LINENO needs CR and PATH.
23032 # Avoid depending upon Character Ranges.
23033 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23035 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23036 as_cr_digits='0123456789'
23037 as_cr_alnum=$as_cr_Letters$as_cr_digits
23039 # The user is always right.
23040 if test "${PATH_SEPARATOR+set}" != set; then
23041 echo "#! /bin/sh" >conf$$.sh
23042 echo "exit 0" >>conf$$.sh
23044 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23053 as_lineno_1=$LINENO
23054 as_lineno_2=$LINENO
23055 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23056 test "x$as_lineno_1" != "x$as_lineno_2" &&
23057 test "x$as_lineno_3" = "x$as_lineno_2" || {
23058 # Find who we are. Look in the path if we contain no path at all
23061 *[\\/]* ) as_myself=$0 ;;
23062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23063 for as_dir in $PATH
23066 test -z "$as_dir" && as_dir=.
23067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23072 # We did not find ourselves, most probably we were run as `sh COMMAND'
23073 # in which case we are not to be found in the path.
23074 if test "x$as_myself" = x; then
23077 if test ! -f "$as_myself"; then
23078 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23079 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23080 { (exit 1); exit 1; }; }
23082 case $CONFIG_SHELL in
23084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23085 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23088 test -z "$as_dir" && as_dir=.
23089 for as_base in sh bash ksh sh5; do
23092 if ("$as_dir/$as_base" -c '
23093 as_lineno_1=$LINENO
23094 as_lineno_2=$LINENO
23095 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23096 test "x$as_lineno_1" != "x$as_lineno_2" &&
23097 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23098 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23099 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23100 CONFIG_SHELL=$as_dir/$as_base
23101 export CONFIG_SHELL
23102 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23110 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23111 # uniformly replaced by the line number. The first 'sed' inserts a
23112 # line-number line before each line; the second 'sed' does the real
23113 # work. The second script uses 'N' to pair each line-number line
23114 # with the numbered line, and appends trailing '-' during
23115 # substitution so that $LINENO is not a special case at line end.
23116 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23117 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23118 sed '=' <$as_myself |
23123 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23126 s,^['$as_cr_digits']*\n,,
23127 ' >$as_me.lineno &&
23128 chmod +x $as_me.lineno ||
23129 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23130 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23131 { (exit 1); exit 1; }; }
23133 # Don't try to exec as it changes $[0], causing all sort of problems
23134 # (the dirname of $[0] is not the place where we might find the
23135 # original and so on. Autoconf is especially sensible to this).
23137 # Exit status is that of the last command.
23142 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23143 *c*,-n*) ECHO_N= ECHO_C='
23145 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23146 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23149 if expr a : '\(a\)' >/dev/null 2>&1; then
23155 rm -f conf$$ conf$$.exe conf$$.file
23157 if ln -s conf$$.file conf$$ 2>/dev/null; then
23158 # We could just check for DJGPP; but this test a) works b) is more generic
23159 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23160 if test -f conf$$.exe; then
23161 # Don't use ln at all; we don't have any links
23166 elif ln conf$$.file conf$$ 2>/dev/null; then
23171 rm -f conf$$ conf$$.exe conf$$.file
23173 if mkdir -p . 2>/dev/null; then
23176 test -d ./-p && rmdir ./-p
23180 as_executable_p="test -f"
23182 # Sed expression to map a string onto a valid CPP name.
23183 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23185 # Sed expression to map a string onto a valid variable name.
23186 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23190 # We need space, tab and new line, in precisely that order.
23200 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23201 # report actual input values of CONFIG_FILES etc. instead of their
23202 # values after options handling. Logging --version etc. is OK.
23206 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23207 ## Running $as_me. ##
23212 This file was extended by $as_me, which was
23213 generated by GNU Autoconf 2.59. Invocation command line was
23215 CONFIG_FILES = $CONFIG_FILES
23216 CONFIG_HEADERS = $CONFIG_HEADERS
23217 CONFIG_LINKS = $CONFIG_LINKS
23218 CONFIG_COMMANDS = $CONFIG_COMMANDS
23222 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23226 # Files that config.status was made for.
23227 if test -n "$ac_config_files"; then
23228 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23231 if test -n "$ac_config_headers"; then
23232 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23235 if test -n "$ac_config_links"; then
23236 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23239 if test -n "$ac_config_commands"; then
23240 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23243 cat >>$CONFIG_STATUS <<\_ACEOF
23246 \`$as_me' instantiates files from templates according to the
23247 current configuration.
23249 Usage: $0 [OPTIONS] [FILE]...
23251 -h, --help print this help, then exit
23252 -V, --version print version number, then exit
23253 -q, --quiet do not print progress messages
23254 -d, --debug don't remove temporary files
23255 --recheck update $as_me by reconfiguring in the same conditions
23256 --file=FILE[:TEMPLATE]
23257 instantiate the configuration file FILE
23258 --header=FILE[:TEMPLATE]
23259 instantiate the configuration header FILE
23261 Configuration files:
23264 Configuration headers:
23267 Configuration commands:
23270 Report bugs to <bug-autoconf@gnu.org>."
23273 cat >>$CONFIG_STATUS <<_ACEOF
23276 configured by $0, generated by GNU Autoconf 2.59,
23277 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23279 Copyright (C) 2003 Free Software Foundation, Inc.
23280 This config.status script is free software; the Free Software Foundation
23281 gives unlimited permission to copy, distribute and modify it."
23286 cat >>$CONFIG_STATUS <<\_ACEOF
23287 # If no file are specified by the user, then we need to provide default
23288 # value. By we need to know if files were specified by the user.
23294 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23295 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23303 *) # This is not an option, so the user has probably given explicit
23306 ac_need_defaults=false;;
23310 # Handling of the options.
23312 cat >>$CONFIG_STATUS <<\_ACEOF
23313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23315 --version | --vers* | -V )
23316 echo "$ac_cs_version"; exit 0 ;;
23318 # Conflict between --help and --header
23319 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23320 Try \`$0 --help' for more information." >&5
23321 echo "$as_me: error: ambiguous option: $1
23322 Try \`$0 --help' for more information." >&2;}
23323 { (exit 1); exit 1; }; };;
23324 --help | --hel | -h )
23325 echo "$ac_cs_usage"; exit 0 ;;
23326 --debug | --d* | -d )
23328 --file | --fil | --fi | --f )
23330 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23331 ac_need_defaults=false;;
23332 --header | --heade | --head | --hea )
23334 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23335 ac_need_defaults=false;;
23336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23337 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23340 # This is an error.
23341 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23342 Try \`$0 --help' for more information." >&5
23343 echo "$as_me: error: unrecognized option: $1
23344 Try \`$0 --help' for more information." >&2;}
23345 { (exit 1); exit 1; }; } ;;
23347 *) ac_config_targets="$ac_config_targets $1" ;;
23353 ac_configure_extra_args=
23355 if $ac_cs_silent; then
23357 ac_configure_extra_args="$ac_configure_extra_args --silent"
23361 cat >>$CONFIG_STATUS <<_ACEOF
23362 if \$ac_cs_recheck; then
23363 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23364 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23369 cat >>$CONFIG_STATUS <<_ACEOF
23371 # INIT-COMMANDS section.
23374 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23380 cat >>$CONFIG_STATUS <<\_ACEOF
23381 for ac_config_target in $ac_config_targets
23383 case "$ac_config_target" in
23384 # Handling of arguments.
23385 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23386 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23387 "magic/Makefile" ) CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
23388 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23389 "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
23390 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23391 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23392 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23393 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23394 { (exit 1); exit 1; }; };;
23398 # If the user did not use the arguments to specify the items to instantiate,
23399 # then the envvar interface is used. Set only those that are not.
23400 # We use the long form for the default assignment because of an extremely
23401 # bizarre bug on SunOS 4.1.3.
23402 if $ac_need_defaults; then
23403 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23404 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23405 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23408 # Have a temporary directory for convenience. Make it in the build tree
23409 # simply because there is no reason to put it here, and in addition,
23410 # creating and moving files from /tmp can sometimes cause problems.
23411 # Create a temporary directory, and hook for its removal unless debugging.
23414 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23415 trap '{ (exit 1); exit 1; }' 1 2 13 15
23418 # Create a (secure) tmp directory for tmp files.
23421 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23422 test -n "$tmp" && test -d "$tmp"
23425 tmp=./confstat$$-$RANDOM
23426 (umask 077 && mkdir $tmp)
23429 echo "$me: cannot create a temporary directory in ." >&2
23430 { (exit 1); exit 1; }
23435 cat >>$CONFIG_STATUS <<_ACEOF
23438 # CONFIG_FILES section.
23441 # No need to generate the scripts if there are no CONFIG_FILES.
23442 # This happens for instance when ./config.status config.h
23443 if test -n "\$CONFIG_FILES"; then
23444 # Protect against being on the right side of a sed subst in config.status.
23445 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23446 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23447 s,@SHELL@,$SHELL,;t t
23448 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23449 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23450 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23451 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23452 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23453 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23454 s,@exec_prefix@,$exec_prefix,;t t
23455 s,@prefix@,$prefix,;t t
23456 s,@program_transform_name@,$program_transform_name,;t t
23457 s,@bindir@,$bindir,;t t
23458 s,@sbindir@,$sbindir,;t t
23459 s,@libexecdir@,$libexecdir,;t t
23460 s,@datadir@,$datadir,;t t
23461 s,@sysconfdir@,$sysconfdir,;t t
23462 s,@sharedstatedir@,$sharedstatedir,;t t
23463 s,@localstatedir@,$localstatedir,;t t
23464 s,@libdir@,$libdir,;t t
23465 s,@includedir@,$includedir,;t t
23466 s,@oldincludedir@,$oldincludedir,;t t
23467 s,@infodir@,$infodir,;t t
23468 s,@mandir@,$mandir,;t t
23469 s,@build_alias@,$build_alias,;t t
23470 s,@host_alias@,$host_alias,;t t
23471 s,@target_alias@,$target_alias,;t t
23472 s,@DEFS@,$DEFS,;t t
23473 s,@ECHO_C@,$ECHO_C,;t t
23474 s,@ECHO_N@,$ECHO_N,;t t
23475 s,@ECHO_T@,$ECHO_T,;t t
23476 s,@LIBS@,$LIBS,;t t
23477 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23478 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23479 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23480 s,@CYGPATH_W@,$CYGPATH_W,;t t
23481 s,@PACKAGE@,$PACKAGE,;t t
23482 s,@VERSION@,$VERSION,;t t
23483 s,@ACLOCAL@,$ACLOCAL,;t t
23484 s,@AUTOCONF@,$AUTOCONF,;t t
23485 s,@AUTOMAKE@,$AUTOMAKE,;t t
23486 s,@AUTOHEADER@,$AUTOHEADER,;t t
23487 s,@MAKEINFO@,$MAKEINFO,;t t
23488 s,@install_sh@,$install_sh,;t t
23489 s,@STRIP@,$STRIP,;t t
23490 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23491 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23492 s,@mkdir_p@,$mkdir_p,;t t
23494 s,@SET_MAKE@,$SET_MAKE,;t t
23495 s,@am__leading_dot@,$am__leading_dot,;t t
23496 s,@AMTAR@,$AMTAR,;t t
23497 s,@am__tar@,$am__tar,;t t
23498 s,@am__untar@,$am__untar,;t t
23499 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23500 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23501 s,@MAINT@,$MAINT,;t t
23502 s,@fsect@,$fsect,;t t
23503 s,@FSECT5_TRUE@,$FSECT5_TRUE,;t t
23504 s,@FSECT5_FALSE@,$FSECT5_FALSE,;t t
23506 s,@CFLAGS@,$CFLAGS,;t t
23507 s,@LDFLAGS@,$LDFLAGS,;t t
23508 s,@CPPFLAGS@,$CPPFLAGS,;t t
23509 s,@ac_ct_CC@,$ac_ct_CC,;t t
23510 s,@EXEEXT@,$EXEEXT,;t t
23511 s,@OBJEXT@,$OBJEXT,;t t
23512 s,@DEPDIR@,$DEPDIR,;t t
23513 s,@am__include@,$am__include,;t t
23514 s,@am__quote@,$am__quote,;t t
23515 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23516 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23517 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23518 s,@CCDEPMODE@,$CCDEPMODE,;t t
23519 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23520 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23521 s,@LN_S@,$LN_S,;t t
23522 s,@build@,$build,;t t
23523 s,@build_cpu@,$build_cpu,;t t
23524 s,@build_vendor@,$build_vendor,;t t
23525 s,@build_os@,$build_os,;t t
23526 s,@host@,$host,;t t
23527 s,@host_cpu@,$host_cpu,;t t
23528 s,@host_vendor@,$host_vendor,;t t
23529 s,@host_os@,$host_os,;t t
23530 s,@EGREP@,$EGREP,;t t
23531 s,@ECHO@,$ECHO,;t t
23533 s,@ac_ct_AR@,$ac_ct_AR,;t t
23534 s,@RANLIB@,$RANLIB,;t t
23535 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23538 s,@CXXFLAGS@,$CXXFLAGS,;t t
23539 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23540 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23541 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23542 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23543 s,@CXXCPP@,$CXXCPP,;t t
23545 s,@FFLAGS@,$FFLAGS,;t t
23546 s,@ac_ct_F77@,$ac_ct_F77,;t t
23547 s,@LIBTOOL@,$LIBTOOL,;t t
23548 s,@IS_CROSS_COMPILE_TRUE@,$IS_CROSS_COMPILE_TRUE,;t t
23549 s,@IS_CROSS_COMPILE_FALSE@,$IS_CROSS_COMPILE_FALSE,;t t
23550 s,@LIBOBJS@,$LIBOBJS,;t t
23551 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23556 cat >>$CONFIG_STATUS <<\_ACEOF
23557 # Split the substitutions into bite-sized pieces for seds with
23558 # small command number limits, like on Digital OSF/1 and HP-UX.
23559 ac_max_sed_lines=48
23560 ac_sed_frag=1 # Number of current file.
23561 ac_beg=1 # First line for current file.
23562 ac_end=$ac_max_sed_lines # Line after last line for current file.
23565 while $ac_more_lines; do
23566 if test $ac_beg -gt 1; then
23567 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23569 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23571 if test ! -s $tmp/subs.frag; then
23572 ac_more_lines=false
23574 # The purpose of the label and of the branching condition is to
23575 # speed up the sed processing (if there are no `@' at all, there
23576 # is no need to browse any of the substitutions).
23577 # These are the two extra sed commands mentioned above.
23579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23580 if test -z "$ac_sed_cmds"; then
23581 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23583 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23585 ac_sed_frag=`expr $ac_sed_frag + 1`
23587 ac_end=`expr $ac_end + $ac_max_sed_lines`
23590 if test -z "$ac_sed_cmds"; then
23593 fi # test -n "$CONFIG_FILES"
23596 cat >>$CONFIG_STATUS <<\_ACEOF
23597 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23600 - | *:- | *:-:* ) # input from stdin
23602 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23604 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23605 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23606 * ) ac_file_in=$ac_file.in ;;
23609 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23610 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23612 X"$ac_file" : 'X\(//\)[^/]' \| \
23613 X"$ac_file" : 'X\(//\)$' \| \
23614 X"$ac_file" : 'X\(/\)' \| \
23615 . : '\(.\)' 2>/dev/null ||
23617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23619 /^X\(\/\/\)$/{ s//\1/; q; }
23620 /^X\(\/\).*/{ s//\1/; q; }
23622 { if $as_mkdir_p; then
23627 while test ! -d "$as_dir"; do
23628 as_dirs="$as_dir $as_dirs"
23629 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23631 X"$as_dir" : 'X\(//\)[^/]' \| \
23632 X"$as_dir" : 'X\(//\)$' \| \
23633 X"$as_dir" : 'X\(/\)' \| \
23634 . : '\(.\)' 2>/dev/null ||
23636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23638 /^X\(\/\/\)$/{ s//\1/; q; }
23639 /^X\(\/\).*/{ s//\1/; q; }
23642 test ! -n "$as_dirs" || mkdir $as_dirs
23643 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23644 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23645 { (exit 1); exit 1; }; }; }
23649 if test "$ac_dir" != .; then
23650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23651 # A "../" for each directory in $ac_dir_suffix.
23652 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23654 ac_dir_suffix= ac_top_builddir=
23658 .) # No --srcdir option. We are building in place.
23660 if test -z "$ac_top_builddir"; then
23663 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23665 [\\/]* | ?:[\\/]* ) # Absolute path.
23666 ac_srcdir=$srcdir$ac_dir_suffix;
23667 ac_top_srcdir=$srcdir ;;
23668 *) # Relative path.
23669 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23670 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23673 # Do not use `cd foo && pwd` to compute absolute paths, because
23674 # the directories may not exist.
23676 .) ac_abs_builddir="$ac_dir";;
23679 .) ac_abs_builddir=`pwd`;;
23680 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23681 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23684 case $ac_abs_builddir in
23685 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23687 case ${ac_top_builddir}. in
23688 .) ac_abs_top_builddir=$ac_abs_builddir;;
23689 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23690 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23693 case $ac_abs_builddir in
23694 .) ac_abs_srcdir=$ac_srcdir;;
23697 .) ac_abs_srcdir=$ac_abs_builddir;;
23698 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23699 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23702 case $ac_abs_builddir in
23703 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23705 case $ac_top_srcdir in
23706 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23707 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23708 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23715 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23718 if test x"$ac_file" != x-; then
23719 { echo "$as_me:$LINENO: creating $ac_file" >&5
23720 echo "$as_me: creating $ac_file" >&6;}
23723 # Let's still pretend it is `configure' which instantiates (i.e., don't
23724 # use $as_me), people would be surprised to read:
23725 # /* config.h. Generated by config.status. */
23726 if test x"$ac_file" = x-; then
23729 configure_input="$ac_file. "
23731 configure_input=$configure_input"Generated from `echo $ac_file_in |
23732 sed 's,.*/,,'` by configure."
23734 # First look for the input files in the build tree, otherwise in the
23736 ac_file_inputs=`IFS=:
23737 for f in $ac_file_in; do
23739 -) echo $tmp/stdin ;;
23741 # Absolute (can't be DOS-style, as IFS=:)
23742 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23743 echo "$as_me: error: cannot find input file: $f" >&2;}
23744 { (exit 1); exit 1; }; }
23747 if test -f "$f"; then
23750 elif test -f "$srcdir/$f"; then
23755 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23756 echo "$as_me: error: cannot find input file: $f" >&2;}
23757 { (exit 1); exit 1; }; }
23760 done` || { (exit 1); exit 1; }
23762 cat >>$CONFIG_STATUS <<_ACEOF
23766 cat >>$CONFIG_STATUS <<\_ACEOF
23768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23769 s,@configure_input@,$configure_input,;t t
23770 s,@srcdir@,$ac_srcdir,;t t
23771 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23772 s,@top_srcdir@,$ac_top_srcdir,;t t
23773 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23774 s,@builddir@,$ac_builddir,;t t
23775 s,@abs_builddir@,$ac_abs_builddir,;t t
23776 s,@top_builddir@,$ac_top_builddir,;t t
23777 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23778 s,@INSTALL@,$ac_INSTALL,;t t
23779 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23781 if test x"$ac_file" != x-; then
23782 mv $tmp/out $ac_file
23790 cat >>$CONFIG_STATUS <<\_ACEOF
23793 # CONFIG_HEADER section.
23796 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23797 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23799 # ac_d sets the value in "#define NAME VALUE" lines.
23800 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23801 ac_dB='[ ].*$,\1#\2'
23804 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23805 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23806 ac_uB='$,\1#\2define\3'
23810 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23811 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23813 - | *:- | *:-:* ) # input from stdin
23815 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23817 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23818 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23819 * ) ac_file_in=$ac_file.in ;;
23822 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23823 echo "$as_me: creating $ac_file" >&6;}
23825 # First look for the input files in the build tree, otherwise in the
23827 ac_file_inputs=`IFS=:
23828 for f in $ac_file_in; do
23830 -) echo $tmp/stdin ;;
23832 # Absolute (can't be DOS-style, as IFS=:)
23833 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23834 echo "$as_me: error: cannot find input file: $f" >&2;}
23835 { (exit 1); exit 1; }; }
23836 # Do quote $f, to prevent DOS paths from being IFS'd.
23839 if test -f "$f"; then
23842 elif test -f "$srcdir/$f"; then
23847 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23848 echo "$as_me: error: cannot find input file: $f" >&2;}
23849 { (exit 1); exit 1; }; }
23852 done` || { (exit 1); exit 1; }
23853 # Remove the trailing spaces.
23854 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23858 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23859 # `conftest.undefs', that substitutes the proper values into
23860 # config.h.in to produce config.h. The first handles `#define'
23861 # templates, and the second `#undef' templates.
23862 # And first: Protect against being on the right side of a sed subst in
23863 # config.status. Protect against being in an unquoted here document
23864 # in config.status.
23865 rm -f conftest.defines conftest.undefs
23866 # Using a here document instead of a string reduces the quoting nightmare.
23867 # Putting comments in sed scripts is not portable.
23869 # `end' is used to avoid that the second main sed command (meant for
23870 # 0-ary CPP macros) applies to n-ary macro definitions.
23871 # See the Autoconf documentation for `clear'.
23872 cat >confdef2sed.sed <<\_ACEOF
23877 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23879 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23882 # If some macros were called several times there might be several times
23883 # the same #defines, which is useless. Nevertheless, we may not want to
23884 # sort them, since we want the *last* AC-DEFINE to be honored.
23885 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23886 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23887 rm -f confdef2sed.sed
23889 # This sed command replaces #undef with comments. This is necessary, for
23890 # example, in the case of _POSIX_SOURCE, which is predefined and required
23891 # on some systems where configure will not decide to define it.
23892 cat >>conftest.undefs <<\_ACEOF
23893 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23896 # Break up conftest.defines because some shells have a limit on the size
23897 # of here documents, and old seds have small limits too (100 cmds).
23898 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23899 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23900 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23901 echo ' :' >>$CONFIG_STATUS
23902 rm -f conftest.tail
23903 while grep . conftest.defines >/dev/null
23905 # Write a limited-size here document to $tmp/defines.sed.
23906 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23907 # Speed up: don't consider the non `#define' lines.
23908 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23909 # Work around the forget-to-reset-the-flag bug.
23910 echo 't clr' >>$CONFIG_STATUS
23911 echo ': clr' >>$CONFIG_STATUS
23912 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23914 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23916 mv $tmp/out $tmp/in
23918 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23919 rm -f conftest.defines
23920 mv conftest.tail conftest.defines
23922 rm -f conftest.defines
23923 echo ' fi # grep' >>$CONFIG_STATUS
23924 echo >>$CONFIG_STATUS
23926 # Break up conftest.undefs because some shells have a limit on the size
23927 # of here documents, and old seds have small limits too (100 cmds).
23928 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23929 rm -f conftest.tail
23930 while grep . conftest.undefs >/dev/null
23932 # Write a limited-size here document to $tmp/undefs.sed.
23933 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23934 # Speed up: don't consider the non `#undef'
23935 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23936 # Work around the forget-to-reset-the-flag bug.
23937 echo 't clr' >>$CONFIG_STATUS
23938 echo ': clr' >>$CONFIG_STATUS
23939 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23941 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23943 mv $tmp/out $tmp/in
23945 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23946 rm -f conftest.undefs
23947 mv conftest.tail conftest.undefs
23949 rm -f conftest.undefs
23951 cat >>$CONFIG_STATUS <<\_ACEOF
23952 # Let's still pretend it is `configure' which instantiates (i.e., don't
23953 # use $as_me), people would be surprised to read:
23954 # /* config.h. Generated by config.status. */
23955 if test x"$ac_file" = x-; then
23956 echo "/* Generated by configure. */" >$tmp/config.h
23958 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23960 cat $tmp/in >>$tmp/config.h
23962 if test x"$ac_file" != x-; then
23963 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23964 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23965 echo "$as_me: $ac_file is unchanged" >&6;}
23967 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23969 X"$ac_file" : 'X\(//\)[^/]' \| \
23970 X"$ac_file" : 'X\(//\)$' \| \
23971 X"$ac_file" : 'X\(/\)' \| \
23972 . : '\(.\)' 2>/dev/null ||
23974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23976 /^X\(\/\/\)$/{ s//\1/; q; }
23977 /^X\(\/\).*/{ s//\1/; q; }
23979 { if $as_mkdir_p; then
23984 while test ! -d "$as_dir"; do
23985 as_dirs="$as_dir $as_dirs"
23986 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23988 X"$as_dir" : 'X\(//\)[^/]' \| \
23989 X"$as_dir" : 'X\(//\)$' \| \
23990 X"$as_dir" : 'X\(/\)' \| \
23991 . : '\(.\)' 2>/dev/null ||
23993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23995 /^X\(\/\/\)$/{ s//\1/; q; }
23996 /^X\(\/\).*/{ s//\1/; q; }
23999 test ! -n "$as_dirs" || mkdir $as_dirs
24000 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24001 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24002 { (exit 1); exit 1; }; }; }
24005 mv $tmp/config.h $ac_file
24009 rm -f $tmp/config.h
24011 # Compute $ac_file's index in $config_headers.
24013 for _am_header in $config_headers :; do
24014 case $_am_header in
24015 $ac_file | $ac_file:* )
24018 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24021 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24022 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24023 X$ac_file : 'X\(//\)[^/]' \| \
24024 X$ac_file : 'X\(//\)$' \| \
24025 X$ac_file : 'X\(/\)' \| \
24026 . : '\(.\)' 2>/dev/null ||
24028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24030 /^X\(\/\/\)$/{ s//\1/; q; }
24031 /^X\(\/\).*/{ s//\1/; q; }
24032 s/.*/./; q'`/stamp-h$_am_stamp_count
24035 cat >>$CONFIG_STATUS <<\_ACEOF
24038 # CONFIG_COMMANDS section.
24040 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24041 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24042 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24043 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24044 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24045 X"$ac_dest" : 'X\(//\)[^/]' \| \
24046 X"$ac_dest" : 'X\(//\)$' \| \
24047 X"$ac_dest" : 'X\(/\)' \| \
24048 . : '\(.\)' 2>/dev/null ||
24050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24052 /^X\(\/\/\)$/{ s//\1/; q; }
24053 /^X\(\/\).*/{ s//\1/; q; }
24055 { if $as_mkdir_p; then
24060 while test ! -d "$as_dir"; do
24061 as_dirs="$as_dir $as_dirs"
24062 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24064 X"$as_dir" : 'X\(//\)[^/]' \| \
24065 X"$as_dir" : 'X\(//\)$' \| \
24066 X"$as_dir" : 'X\(/\)' \| \
24067 . : '\(.\)' 2>/dev/null ||
24069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24071 /^X\(\/\/\)$/{ s//\1/; q; }
24072 /^X\(\/\).*/{ s//\1/; q; }
24075 test ! -n "$as_dirs" || mkdir $as_dirs
24076 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24077 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24078 { (exit 1); exit 1; }; }; }
24082 if test "$ac_dir" != .; then
24083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24084 # A "../" for each directory in $ac_dir_suffix.
24085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24087 ac_dir_suffix= ac_top_builddir=
24091 .) # No --srcdir option. We are building in place.
24093 if test -z "$ac_top_builddir"; then
24096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24098 [\\/]* | ?:[\\/]* ) # Absolute path.
24099 ac_srcdir=$srcdir$ac_dir_suffix;
24100 ac_top_srcdir=$srcdir ;;
24101 *) # Relative path.
24102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24106 # Do not use `cd foo && pwd` to compute absolute paths, because
24107 # the directories may not exist.
24109 .) ac_abs_builddir="$ac_dir";;
24112 .) ac_abs_builddir=`pwd`;;
24113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24117 case $ac_abs_builddir in
24118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24120 case ${ac_top_builddir}. in
24121 .) ac_abs_top_builddir=$ac_abs_builddir;;
24122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24126 case $ac_abs_builddir in
24127 .) ac_abs_srcdir=$ac_srcdir;;
24130 .) ac_abs_srcdir=$ac_abs_builddir;;
24131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24135 case $ac_abs_builddir in
24136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24138 case $ac_top_srcdir in
24139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24146 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24147 echo "$as_me: executing $ac_dest commands" >&6;}
24149 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24150 # Strip MF so we end up with the name of the file.
24151 mf=`echo "$mf" | sed -e 's/:.*$//'`
24152 # Check whether this is an Automake generated Makefile or not.
24153 # We used to match only the files named `Makefile.in', but
24154 # some people rename them; so instead we look at the file content.
24155 # Grep'ing the first line is not enough: some people post-process
24156 # each Makefile.in and add a new line on top of each file to say so.
24157 # So let's grep whole file.
24158 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24159 dirpart=`(dirname "$mf") 2>/dev/null ||
24160 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24161 X"$mf" : 'X\(//\)[^/]' \| \
24162 X"$mf" : 'X\(//\)$' \| \
24163 X"$mf" : 'X\(/\)' \| \
24164 . : '\(.\)' 2>/dev/null ||
24166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24168 /^X\(\/\/\)$/{ s//\1/; q; }
24169 /^X\(\/\).*/{ s//\1/; q; }
24174 # Extract the definition of DEPDIR, am__include, and am__quote
24175 # from the Makefile without running `make'.
24176 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24177 test -z "$DEPDIR" && continue
24178 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24179 test -z "am__include" && continue
24180 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24181 # When using ansi2knr, U may be empty or an underscore; expand it
24182 U=`sed -n 's/^U = //p' < "$mf"`
24183 # Find all dependency output files, they are included files with
24184 # $(DEPDIR) in their names. We invoke sed twice because it is the
24185 # simplest approach to changing $(DEPDIR) to its actual value in the
24187 for file in `sed -n "
24188 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24189 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24190 # Make sure the directory exists.
24191 test -f "$dirpart/$file" && continue
24192 fdir=`(dirname "$file") 2>/dev/null ||
24193 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24194 X"$file" : 'X\(//\)[^/]' \| \
24195 X"$file" : 'X\(//\)$' \| \
24196 X"$file" : 'X\(/\)' \| \
24197 . : '\(.\)' 2>/dev/null ||
24199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24201 /^X\(\/\/\)$/{ s//\1/; q; }
24202 /^X\(\/\).*/{ s//\1/; q; }
24204 { if $as_mkdir_p; then
24205 mkdir -p $dirpart/$fdir
24207 as_dir=$dirpart/$fdir
24209 while test ! -d "$as_dir"; do
24210 as_dirs="$as_dir $as_dirs"
24211 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24213 X"$as_dir" : 'X\(//\)[^/]' \| \
24214 X"$as_dir" : 'X\(//\)$' \| \
24215 X"$as_dir" : 'X\(/\)' \| \
24216 . : '\(.\)' 2>/dev/null ||
24218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24220 /^X\(\/\/\)$/{ s//\1/; q; }
24221 /^X\(\/\).*/{ s//\1/; q; }
24224 test ! -n "$as_dirs" || mkdir $as_dirs
24225 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24226 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24227 { (exit 1); exit 1; }; }; }
24229 # echo "creating $dirpart/$file"
24230 echo '# dummy' > "$dirpart/$file"
24238 cat >>$CONFIG_STATUS <<\_ACEOF
24240 { (exit 0); exit 0; }
24242 chmod +x $CONFIG_STATUS
24243 ac_clean_files=$ac_clean_files_save
24246 # configure is writing to config.log, and then calls config.status.
24247 # config.status does its own redirection, appending to config.log.
24248 # Unfortunately, on DOS this fails, as config.log is still kept open
24249 # by configure, so config.status won't be able to write to it; its
24250 # output is simply discarded. So we exec the FD to /dev/null,
24251 # effectively closing config.log, so it can be properly (re)opened and
24252 # appended to by config.status. When coming back to configure, we
24253 # need to make the FD available again.
24254 if test "$no_create" != yes; then
24256 ac_config_status_args=
24257 test "$silent" = yes &&
24258 ac_config_status_args="$ac_config_status_args --quiet"
24260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24263 # would make configure fail if this is the last instruction.
24264 $ac_cs_success || { (exit 1); exit 1; }