2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for jasper 1.900.1.
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.
422 PACKAGE_NAME='jasper'
423 PACKAGE_TARNAME='jasper'
424 PACKAGE_VERSION='1.900.1'
425 PACKAGE_STRING='jasper 1.900.1'
428 ac_unique_file="README"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar JAS_MAJOR_VERSION JAS_MINOR_VERSION JAS_MICRO_VERSION JAS_VERSION JAS_RPM_RELEASE LT_RELEASE LT_CURRENT LT_REVISION LT_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB SED EGREP LN_S ECHO AR ac_ct_AR CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_LIBJPEG_TRUE HAVE_LIBJPEG_FALSE HAVE_OPENGL_TRUE HAVE_OPENGL_FALSE OPENGL_LIBS 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 jasper 1.900.1 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 --x-includes=DIR X include files are in DIR
1015 --x-libraries=DIR X library files are in DIR
1018 --build=BUILD configure for building on BUILD [guessed]
1019 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020 --target=TARGET configure for building compilers for TARGET [HOST]
1024 if test -n "$ac_init_help"; then
1025 case $ac_init_help in
1026 short | recursive ) echo "Configuration of jasper 1.900.1:";;
1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033 --disable-dependency-tracking speeds up one-time build
1034 --enable-dependency-tracking do not reject slow dependency extractors
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=no]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --disable-libjpeg Force the IJG JPEG library to be ignored
1043 --disable-opengl Disable use of OpenGL.
1044 --enable-dmalloc use special memory allocator for debugging
1045 --enable-debug add extra code for debugging
1046 --enable-special0 enable something
1049 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1050 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1051 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1052 --with-pic try to use only PIC/non-PIC objects [default=use
1055 include additional configurations [automatic]
1056 --with-x use the X Window System
1057 --with-glut-include-dir=DIR Set GLUT include directory.
1058 --with-glut-lib-dir=DIR Set GLUT library directory.
1060 Some influential environment variables:
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1080 if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1087 if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 ac_dir_suffix= ac_top_builddir=
1096 .) # No --srcdir option. We are building in place.
1098 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 # Do not use `cd foo && pwd` to compute absolute paths, because
1112 # the directories may not exist.
1114 .) ac_abs_builddir="$ac_dir";;
1117 .) ac_abs_builddir=`pwd`;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 case $ac_abs_builddir in
1123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 case ${ac_top_builddir}. in
1126 .) ac_abs_top_builddir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 case $ac_abs_builddir in
1132 .) ac_abs_srcdir=$ac_srcdir;;
1135 .) ac_abs_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 case $ac_top_srcdir in
1144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151 # Check for guested configure; otherwise get Cygnus style configure.
1152 if test -f $ac_srcdir/configure.gnu; then
1154 $SHELL $ac_srcdir/configure.gnu --help=recursive
1155 elif test -f $ac_srcdir/configure; then
1157 $SHELL $ac_srcdir/configure --help=recursive
1158 elif test -f $ac_srcdir/configure.ac ||
1159 test -f $ac_srcdir/configure.in; then
1161 $ac_configure --help
1163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169 test -n "$ac_init_help" && exit 0
1170 if $ac_init_version; then
1172 jasper configure 1.900.1
1173 generated by GNU Autoconf 2.59
1175 Copyright (C) 2003 Free Software Foundation, Inc.
1176 This configure script is free software; the Free Software Foundation
1177 gives unlimited permission to copy, distribute and modify it.
1183 This file contains any messages produced by compilers while
1184 running configure, to aid debugging if configure makes a mistake.
1186 It was created by jasper $as_me 1.900.1, which was
1187 generated by GNU Autoconf 2.59. Invocation command line was
1198 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1199 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1200 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1201 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1202 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1205 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1207 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1208 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1209 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1210 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1211 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1212 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1213 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221 test -z "$as_dir" && as_dir=.
1222 echo "PATH: $as_dir"
1237 # Keep a trace of the command line.
1238 # Strip out --no-create and --no-recursion so they do not pile up.
1239 # Strip out --silent because we don't want to record it for future runs.
1240 # Also quote any args containing shell meta-characters.
1241 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_must_keep_next=false
1252 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254 | -silent | --silent | --silen | --sile | --sil)
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1263 if test $ac_must_keep_next = true; then
1264 ac_must_keep_next=false # Got value, back to normal.
1267 *=* | --config-cache | -C | -disable-* | --disable-* \
1268 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1269 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1270 | -with-* | --with-* | -without-* | --without-* | --x)
1271 case "$ac_configure_args0 " in
1272 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275 -* ) ac_must_keep_next=true ;;
1278 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1279 # Get rid of the leading space.
1285 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1286 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288 # When interrupted or exit'd, cleanup temporary files, and complete
1289 # config.log. We remove comments because anyway the quotes in there
1290 # would cause problems or look ugly.
1291 # WARNING: Be sure not to use single quotes in there, as some shells,
1292 # such as our DU 5.0 friend, will then `close' the trap.
1293 trap 'exit_status=$?
1294 # Save into config.log some information that might help in debugging.
1299 ## ---------------- ##
1300 ## Cache variables. ##
1301 ## ---------------- ##
1304 # The following way of writing the cache mishandles newlines in values,
1307 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322 ## ----------------- ##
1323 ## Output variables. ##
1324 ## ----------------- ##
1327 for ac_var in $ac_subst_vars
1329 eval ac_val=$`echo $ac_var`
1330 echo "$ac_var='"'"'$ac_val'"'"'"
1334 if test -n "$ac_subst_files"; then
1341 for ac_var in $ac_subst_files
1343 eval ac_val=$`echo $ac_var`
1344 echo "$ac_var='"'"'$ac_val'"'"'"
1349 if test -s confdefs.h; then
1356 sed "/^$/d" confdefs.h | sort
1359 test "$ac_signal" != 0 &&
1360 echo "$as_me: caught signal $ac_signal"
1361 echo "$as_me: exit $exit_status"
1363 rm -f core *.core &&
1364 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367 for ac_signal in 1 2 13 15; do
1368 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1373 rm -rf conftest* confdefs.h
1374 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 # Predefined preprocessor variables.
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_NAME "$PACKAGE_NAME"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_STRING "$PACKAGE_STRING"
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404 # Let the site file select an alternate cache file if it wants to.
1405 # Prefer explicitly selected file to automatically selected ones.
1406 if test -z "$CONFIG_SITE"; then
1407 if test "x$prefix" != xNONE; then
1408 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413 for ac_site_file in $CONFIG_SITE; do
1414 if test -r "$ac_site_file"; then
1415 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1416 echo "$as_me: loading site script $ac_site_file" >&6;}
1417 sed 's/^/| /' "$ac_site_file" >&5
1422 if test -r "$cache_file"; then
1423 # Some versions of bash will fail to source /dev/null (special
1424 # files actually), so we avoid doing that.
1425 if test -f "$cache_file"; then
1426 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1427 echo "$as_me: loading cache $cache_file" >&6;}
1429 [\\/]* | ?:[\\/]* ) . $cache_file;;
1430 *) . ./$cache_file;;
1434 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1435 echo "$as_me: creating cache $cache_file" >&6;}
1439 # Check that the precious variables saved in the cache have kept the same
1441 ac_cache_corrupted=false
1442 for ac_var in `(set) 2>&1 |
1443 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1445 eval ac_new_set=\$ac_env_${ac_var}_set
1446 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1447 eval ac_new_val="\$ac_env_${ac_var}_value"
1448 case $ac_old_set,$ac_new_set in
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1459 if test "x$ac_old_val" != "x$ac_new_val"; then
1460 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1461 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1462 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1463 echo "$as_me: former value: $ac_old_val" >&2;}
1464 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1465 echo "$as_me: current value: $ac_new_val" >&2;}
1466 ac_cache_corrupted=:
1469 # Pass precious variables to config.status.
1470 if test "$ac_new_set" = set; then
1472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1473 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1474 *) ac_arg=$ac_var=$ac_new_val ;;
1476 case " $ac_configure_args " in
1477 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1478 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482 if $ac_cache_corrupted; then
1483 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1484 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1485 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1486 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1487 { (exit 1); exit 1; }; }
1491 ac_cpp='$CPP $CPPFLAGS'
1492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 for ac_dir in acaux $srcdir/acaux; do
1526 if test -f $ac_dir/install-sh; then
1528 ac_install_sh="$ac_aux_dir/install-sh -c"
1530 elif test -f $ac_dir/install.sh; then
1532 ac_install_sh="$ac_aux_dir/install.sh -c"
1534 elif test -f $ac_dir/shtool; then
1536 ac_install_sh="$ac_aux_dir/shtool install -c"
1540 if test -z "$ac_aux_dir"; then
1541 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in acaux $srcdir/acaux" >&5
1542 echo "$as_me: error: cannot find install-sh or install.sh in acaux $srcdir/acaux" >&2;}
1543 { (exit 1); exit 1; }; }
1545 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1546 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1547 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1550 # Detect the canonical host and target build environment.
1551 # Note: This precedes automake initialization to avoid warnings.
1552 # Make sure we can run config.sub.
1553 $ac_config_sub sun4 >/dev/null 2>&1 ||
1554 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: checking build system type" >&5
1559 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560 if test "${ac_cv_build+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 ac_cv_build_alias=$build_alias
1564 test -z "$ac_cv_build_alias" &&
1565 ac_cv_build_alias=`$ac_config_guess`
1566 test -z "$ac_cv_build_alias" &&
1567 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569 { (exit 1); exit 1; }; }
1570 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577 echo "${ECHO_T}$ac_cv_build" >&6
1579 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584 echo "$as_me:$LINENO: checking host system type" >&5
1585 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586 if test "${ac_cv_host+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 ac_cv_host_alias=$host_alias
1590 test -z "$ac_cv_host_alias" &&
1591 ac_cv_host_alias=$ac_cv_build_alias
1592 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1598 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599 echo "${ECHO_T}$ac_cv_host" >&6
1601 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606 echo "$as_me:$LINENO: checking target system type" >&5
1607 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1608 if test "${ac_cv_target+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 ac_cv_target_alias=$target_alias
1612 test "x$ac_cv_target_alias" = "x" &&
1613 ac_cv_target_alias=$ac_cv_host_alias
1614 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1616 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1620 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1621 echo "${ECHO_T}$ac_cv_target" >&6
1622 target=$ac_cv_target
1623 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628 # The aliases save the names the user supplied, while $host etc.
1629 # will get canonicalized.
1630 test -n "$target_alias" &&
1631 test "$program_prefix$program_suffix$program_transform_name" = \
1633 program_prefix=${target_alias}-
1635 # Initialize automake.
1636 am__api_version="1.9"
1637 # Find a good install program. We prefer a C program (faster),
1638 # so one script is as good as another. But avoid the broken or
1639 # incompatible versions:
1640 # SysV /etc/install, /usr/sbin/install
1641 # SunOS /usr/etc/install
1642 # IRIX /sbin/install
1644 # AmigaOS /C/install, which installs bootblocks on floppy discs
1645 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1646 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1647 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1648 # OS/2's system install, which has a completely different semantic
1649 # ./install, which can be erroneously created by make from ./install.sh.
1650 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1651 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1652 if test -z "$INSTALL"; then
1653 if test "${ac_cv_path_install+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir=.
1661 # Account for people who put trailing slashes in PATH elements.
1663 ./ | .// | /cC/* | \
1664 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1665 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1668 # OSF1 and SCO ODT 3.0 have their own names for install.
1669 # Don't use installbsd from OSF since it installs stuff as root
1671 for ac_prog in ginstall scoinst install; do
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1674 if test $ac_prog = install &&
1675 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1676 # AIX install. It has an incompatible calling convention.
1678 elif test $ac_prog = install &&
1679 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1680 # program-specific install script used by HP pwplus--don't use.
1683 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1695 if test "${ac_cv_path_install+set}" = set; then
1696 INSTALL=$ac_cv_path_install
1698 # As a last resort, use the slow shell script. We don't cache a
1699 # path for INSTALL within a source directory, because that will
1700 # break other packages using the cache if that directory is
1701 # removed, or if the path is relative.
1702 INSTALL=$ac_install_sh
1705 echo "$as_me:$LINENO: result: $INSTALL" >&5
1706 echo "${ECHO_T}$INSTALL" >&6
1708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1709 # It thinks the first close brace ends the variable substitution.
1710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1716 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1717 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1720 echo timestamp > conftest.file
1721 # Do `set' in a subshell so we don't clobber the current shell's
1722 # arguments. Must try -L first in case configure is actually a
1723 # symlink; some systems play weird games with the mod time of symlinks
1724 # (eg FreeBSD returns the mod time of the symlink's containing
1727 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1728 if test "$*" = "X"; then
1730 set X `ls -t $srcdir/configure conftest.file`
1733 if test "$*" != "X $srcdir/configure conftest.file" \
1734 && test "$*" != "X conftest.file $srcdir/configure"; then
1736 # If neither matched, then we have a broken ls. This can happen
1737 # if, for instance, CONFIG_SHELL is bash and it inherits a
1738 # broken ls alias from the environment. This has actually
1739 # happened. Such a system could not be considered "sane".
1740 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1741 alias in your environment" >&5
1742 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1743 alias in your environment" >&2;}
1744 { (exit 1); exit 1; }; }
1747 test "$2" = conftest.file
1753 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1754 Check your system clock" >&5
1755 echo "$as_me: error: newly created file is older than distributed files!
1756 Check your system clock" >&2;}
1757 { (exit 1); exit 1; }; }
1759 echo "$as_me:$LINENO: result: yes" >&5
1760 echo "${ECHO_T}yes" >&6
1761 test "$program_prefix" != NONE &&
1762 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1763 # Use a double $ so make ignores it.
1764 test "$program_suffix" != NONE &&
1765 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1766 # Double any \ or $. echo might interpret backslashes.
1767 # By default was `s,x,x', remove it if useless.
1768 cat <<\_ACEOF >conftest.sed
1769 s/[\\$]/&&/g;s/;s,x,x,$//
1771 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1774 # expand $ac_aux_dir to an absolute path
1775 am_aux_dir=`cd $ac_aux_dir && pwd`
1777 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1778 # Use eval to expand $SHELL
1779 if eval "$MISSING --run true"; then
1780 am_missing_run="$MISSING --run "
1783 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1784 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1787 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1788 # We used to keeping the `.' as first argument, in order to
1789 # allow $(mkdir_p) to be used without argument. As in
1790 # $(mkdir_p) $(somedir)
1791 # where $(somedir) is conditionally defined. However this is wrong
1793 # 1. if the package is installed by a user who cannot write `.'
1794 # make install will fail,
1795 # 2. the above comment should most certainly read
1796 # $(mkdir_p) $(DESTDIR)$(somedir)
1797 # so it does not work when $(somedir) is undefined and
1798 # $(DESTDIR) is not.
1799 # To support the latter case, we have to write
1800 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1801 # so the `.' trick is pointless.
1802 mkdir_p='mkdir -p --'
1804 # On NextStep and OpenStep, the `mkdir' command does not
1805 # recognize any option. It will interpret all options as
1806 # directories to create, and then abort because `.' already
1808 for d in ./-p ./--version;
1810 test -d $d && rmdir $d
1812 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1813 if test -f "$ac_aux_dir/mkinstalldirs"; then
1814 mkdir_p='$(mkinstalldirs)'
1816 mkdir_p='$(install_sh) -d'
1820 for ac_prog in gawk mawk nawk awk
1822 # Extract the first word of "$ac_prog", so it can be a program name with args.
1823 set dummy $ac_prog; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_AWK+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 if test -n "$AWK"; then
1830 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_AWK="$ac_prog"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 if test -n "$AWK"; then
1850 echo "$as_me:$LINENO: result: $AWK" >&5
1851 echo "${ECHO_T}$AWK" >&6
1853 echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1857 test -n "$AWK" && break
1860 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1861 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1862 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1863 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 cat >conftest.make <<\_ACEOF
1868 @echo 'ac_maketemp="$(MAKE)"'
1870 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1871 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1872 if test -n "$ac_maketemp"; then
1873 eval ac_cv_prog_make_${ac_make}_set=yes
1875 eval ac_cv_prog_make_${ac_make}_set=no
1879 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1880 echo "$as_me:$LINENO: result: yes" >&5
1881 echo "${ECHO_T}yes" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 SET_MAKE="MAKE=${MAKE-make}"
1889 rm -rf .tst 2>/dev/null
1890 mkdir .tst 2>/dev/null
1891 if test -d .tst; then
1896 rmdir .tst 2>/dev/null
1898 # test to see if srcdir already configured
1899 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1900 test -f $srcdir/config.status; then
1901 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1902 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1903 { (exit 1); exit 1; }; }
1906 # test whether we have cygpath
1907 if test -z "$CYGPATH_W"; then
1908 if (cygpath --version) >/dev/null 2>/dev/null; then
1909 CYGPATH_W='cygpath -w'
1916 # Define the identity of the package.
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE "$PACKAGE"
1926 cat >>confdefs.h <<_ACEOF
1927 #define VERSION "$VERSION"
1930 # Some tools Automake needs.
1932 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1935 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1938 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1941 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1944 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1946 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1948 # Installed binaries are usually stripped using `strip' when the user
1949 # run `make install-strip'. However `strip' might not be the right
1950 # tool to use in cross-compilation environments, therefore Automake
1951 # will honor the `STRIP' environment variable to overrule this program.
1952 if test "$cross_compiling" != no; then
1953 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}strip; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_STRIP+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$STRIP"; then
1962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 STRIP=$ac_cv_prog_STRIP
1981 if test -n "$STRIP"; then
1982 echo "$as_me:$LINENO: result: $STRIP" >&5
1983 echo "${ECHO_T}$STRIP" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1990 if test -z "$ac_cv_prog_STRIP"; then
1992 # Extract the first word of "strip", so it can be a program name with args.
1993 set dummy strip; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 if test -n "$ac_ct_STRIP"; then
2000 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 ac_cv_prog_ac_ct_STRIP="strip"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2020 if test -n "$ac_ct_STRIP"; then
2021 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2022 echo "${ECHO_T}$ac_ct_STRIP" >&6
2024 echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2030 STRIP="$ac_cv_prog_STRIP"
2034 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2036 # We need awk for the "check" target. The system "awk" is bad on
2038 # Always define AMTAR for backward compatibility.
2040 AMTAR=${AMTAR-"${am_missing_run}tar"}
2042 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2049 # Initialize version information parameters.
2051 JAS_MINOR_VERSION=900
2058 cat >>confdefs.h <<_ACEOF
2059 #define JAS_VERSION "$JAS_VERSION"
2065 # Initialize version information for libtool.
2075 # Indicate a configure-based build is being used.
2076 cat >>confdefs.h <<\_ACEOF
2077 #define JAS_CONFIGURE 1
2081 ############################################################
2082 # Configuration header file.
2083 ############################################################
2104 ############################################################
2105 # Checks for programs.
2106 ############################################################
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 if test -n "$ac_tool_prefix"; then
2114 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 if test -n "$CC"; then
2142 echo "$as_me:$LINENO: result: $CC" >&5
2143 echo "${ECHO_T}$CC" >&6
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2150 if test -z "$ac_cv_prog_CC"; then
2152 # Extract the first word of "gcc", so it can be a program name with args.
2153 set dummy gcc; ac_word=$2
2154 echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 if test -n "$ac_ct_CC"; then
2160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169 ac_cv_prog_ac_ct_CC="gcc"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179 if test -n "$ac_ct_CC"; then
2180 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181 echo "${ECHO_T}$ac_ct_CC" >&6
2183 echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2192 if test -z "$CC"; then
2193 if test -n "$ac_tool_prefix"; then
2194 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2195 set dummy ${ac_tool_prefix}cc; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$CC"; then
2202 ac_cv_prog_CC="$CC" # Let the user override the test.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211 ac_cv_prog_CC="${ac_tool_prefix}cc"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 if test -n "$CC"; then
2222 echo "$as_me:$LINENO: result: $CC" >&5
2223 echo "${ECHO_T}$CC" >&6
2225 echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2230 if test -z "$ac_cv_prog_CC"; then
2232 # Extract the first word of "cc", so it can be a program name with args.
2233 set dummy cc; ac_word=$2
2234 echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -n "$ac_ct_CC"; then
2240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249 ac_cv_prog_ac_ct_CC="cc"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2259 if test -n "$ac_ct_CC"; then
2260 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2261 echo "${ECHO_T}$ac_ct_CC" >&6
2263 echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6
2273 if test -z "$CC"; then
2274 # Extract the first word of "cc", so it can be a program name with args.
2275 set dummy cc; ac_word=$2
2276 echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2278 if test "${ac_cv_prog_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 if test -n "$CC"; then
2282 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2293 ac_prog_rejected=yes
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 if test $ac_prog_rejected = yes; then
2304 # We found a bogon in the path, so make sure we never use it.
2305 set dummy $ac_cv_prog_CC
2307 if test $# != 0; then
2308 # We chose a different compiler from the bogus one.
2309 # However, it has the same basename, so the bogon will be chosen
2310 # first if we set CC to just the basename; use the full file name.
2312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2318 if test -n "$CC"; then
2319 echo "$as_me:$LINENO: result: $CC" >&5
2320 echo "${ECHO_T}$CC" >&6
2322 echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6
2327 if test -z "$CC"; then
2328 if test -n "$ac_tool_prefix"; then
2331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2333 echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2335 if test "${ac_cv_prog_CC+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 if test -n "$CC"; then
2339 ac_cv_prog_CC="$CC" # Let the user override the test.
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 if test -n "$CC"; then
2359 echo "$as_me:$LINENO: result: $CC" >&5
2360 echo "${ECHO_T}$CC" >&6
2362 echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2366 test -n "$CC" && break
2369 if test -z "$CC"; then
2373 # Extract the first word of "$ac_prog", so it can be a program name with args.
2374 set dummy $ac_prog; ac_word=$2
2375 echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 if test -n "$ac_ct_CC"; then
2381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 ac_cv_prog_ac_ct_CC="$ac_prog"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2400 if test -n "$ac_ct_CC"; then
2401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2402 echo "${ECHO_T}$ac_ct_CC" >&6
2404 echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6
2408 test -n "$ac_ct_CC" && break
2417 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: no acceptable C compiler found in \$PATH
2420 See \`config.log' for more details." >&2;}
2421 { (exit 1); exit 1; }; }
2423 # Provide some information about the compiler.
2424 echo "$as_me:$LINENO:" \
2425 "checking for C compiler version" >&5
2426 ac_compiler=`set X $ac_compile; echo $2`
2427 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2428 (eval $ac_compiler --version </dev/null >&5) 2>&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }
2432 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2433 (eval $ac_compiler -v </dev/null >&5) 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2438 (eval $ac_compiler -V </dev/null >&5) 2>&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2443 cat >conftest.$ac_ext <<_ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2458 ac_clean_files_save=$ac_clean_files
2459 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2460 # Try to create an executable without -o first, disregard a.out.
2461 # It will help us diagnose broken compilers, and finding out an intuition
2463 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2464 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2465 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2466 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2467 (eval $ac_link_default) 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; then
2471 # Find the output, starting from the most likely. This scheme is
2472 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2475 # Be careful to initialize this variable, since it used to be cached.
2476 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2478 # b.out is created by i960 compilers.
2479 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2481 test -f "$ac_file" || continue
2483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2486 # This is the source file.
2489 # We found the default executable, but exeext='' is most
2493 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2494 # FIXME: I believe we export ac_cv_exeext for Libtool,
2495 # but it would be cool to find out if it's true. Does anybody
2496 # maintain Libtool? --akim.
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2507 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: C compiler cannot create executables
2510 See \`config.log' for more details." >&2;}
2511 { (exit 77); exit 77; }; }
2514 ac_exeext=$ac_cv_exeext
2515 echo "$as_me:$LINENO: result: $ac_file" >&5
2516 echo "${ECHO_T}$ac_file" >&6
2518 # Check the compiler produces executables we can run. If not, either
2519 # the compiler is broken, or we cross compile.
2520 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2521 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2522 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2523 # If not cross compiling, check that we can run a simple program.
2524 if test "$cross_compiling" != yes; then
2525 if { ac_try='./$ac_file'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2533 if test "$cross_compiling" = maybe; then
2536 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2537 If you meant to cross compile, use \`--host'.
2538 See \`config.log' for more details." >&5
2539 echo "$as_me: error: cannot run C compiled programs.
2540 If you meant to cross compile, use \`--host'.
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2546 echo "$as_me:$LINENO: result: yes" >&5
2547 echo "${ECHO_T}yes" >&6
2549 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2550 ac_clean_files=$ac_clean_files_save
2551 # Check the compiler produces executables we can run. If not, either
2552 # the compiler is broken, or we cross compile.
2553 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2554 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2555 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2556 echo "${ECHO_T}$cross_compiling" >&6
2558 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2559 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2561 (eval $ac_link) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; then
2565 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2566 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2567 # work properly (i.e., refer to `conftest.exe'), while it won't with
2569 for ac_file in conftest.exe conftest conftest.*; do
2570 test -f "$ac_file" || continue
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2580 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2583 See \`config.log' for more details." >&2;}
2584 { (exit 1); exit 1; }; }
2587 rm -f conftest$ac_cv_exeext
2588 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2589 echo "${ECHO_T}$ac_cv_exeext" >&6
2591 rm -f conftest.$ac_ext
2592 EXEEXT=$ac_cv_exeext
2594 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2595 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2596 if test "${ac_cv_objext+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. */
2614 rm -f conftest.o conftest.obj
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; then
2620 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2623 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2631 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2632 See \`config.log' for more details." >&5
2633 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2634 See \`config.log' for more details." >&2;}
2635 { (exit 1); exit 1; }; }
2638 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2640 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2641 echo "${ECHO_T}$ac_cv_objext" >&6
2642 OBJEXT=$ac_cv_objext
2644 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2645 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2646 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 cat >conftest.$ac_ext <<_ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>conftest.er1
2671 grep -v '^ *+' conftest.er1 >conftest.err
2673 cat conftest.err >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -z "$ac_c_werror_flag"
2677 || test ! -s conftest.err'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; } &&
2683 { ac_try='test -s conftest.$ac_objext'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2700 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2701 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2702 GCC=`test $ac_compiler_gnu = yes && echo yes`
2703 ac_test_CFLAGS=${CFLAGS+set}
2704 ac_save_CFLAGS=$CFLAGS
2706 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2707 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2708 if test "${ac_cv_prog_cc_g+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 cat >conftest.$ac_ext <<_ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2726 rm -f conftest.$ac_objext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>conftest.er1
2730 grep -v '^ *+' conftest.er1 >conftest.err
2732 cat conftest.err >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -z "$ac_c_werror_flag"
2736 || test ! -s conftest.err'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; } &&
2742 { ac_try='test -s conftest.$ac_objext'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; }; then
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2758 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2759 if test "$ac_test_CFLAGS" = set; then
2760 CFLAGS=$ac_save_CFLAGS
2761 elif test $ac_cv_prog_cc_g = yes; then
2762 if test "$GCC" = yes; then
2768 if test "$GCC" = yes; then
2774 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2775 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2776 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 ac_cv_prog_cc_stdc=no
2781 cat >conftest.$ac_ext <<_ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2789 #include <sys/types.h>
2790 #include <sys/stat.h>
2791 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2792 struct buf { int x; };
2793 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2794 static char *e (p, i)
2800 static char *f (char * (*g) (char **, int), char **p, ...)
2805 s = g (p, va_arg (v,int));
2810 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2811 function prototypes and stuff, but not '\xHH' hex character constants.
2812 These don't provoke an error unfortunately, instead are silently treated
2813 as 'x'. The following induces an error, until -std1 is added to get
2814 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2815 array size at least. It's necessary to write '\x00'==0 to get something
2816 that's true only with -std1. */
2817 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2819 int test (int i, double x);
2820 struct s1 {int (*f) (int a);};
2821 struct s2 {int (*f) (double a);};
2822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2833 # Don't try gcc -ansi; that turns off useful extensions and
2834 # breaks some systems' header files.
2835 # AIX -qlanglvl=ansi
2836 # Ultrix and OSF/1 -std1
2837 # HP-UX 10.20 and later -Ae
2838 # HP-UX older versions -Aa -D_HPUX_SOURCE
2839 # SVR4 -Xc -D__EXTENSIONS__
2840 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2842 CC="$ac_save_CC $ac_arg"
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 ac_cv_prog_cc_stdc=$ac_arg
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2872 rm -f conftest.err conftest.$ac_objext
2874 rm -f conftest.$ac_ext conftest.$ac_objext
2879 case "x$ac_cv_prog_cc_stdc" in
2881 echo "$as_me:$LINENO: result: none needed" >&5
2882 echo "${ECHO_T}none needed" >&6 ;;
2884 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2885 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2886 CC="$CC $ac_cv_prog_cc_stdc" ;;
2889 # Some people use a C++ compiler to compile C. Since we use `exit',
2890 # in C++ we need to declare it. In case someone uses the same compiler
2891 # for both compiling C and C++ we need to have the C++ compiler decide
2892 # the declaration of exit, since it's the most demanding environment.
2893 cat >conftest.$ac_ext <<_ACEOF
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -z "$ac_c_werror_flag"
2908 || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 for ac_declaration in \
2922 'extern "C" void std::exit (int) throw (); using std::exit;' \
2923 'extern "C" void std::exit (int); using std::exit;' \
2924 'extern "C" void exit (int) throw ();' \
2925 'extern "C" void exit (int);' \
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2944 rm -f conftest.$ac_objext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946 (eval $ac_compile) 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -z "$ac_c_werror_flag"
2954 || test ! -s conftest.err'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; }; then
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2974 cat >conftest.$ac_ext <<_ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2989 rm -f conftest.$ac_objext
2990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2991 (eval $ac_compile) 2>conftest.er1
2993 grep -v '^ *+' conftest.er1 >conftest.err
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } &&
2998 { ac_try='test -z "$ac_c_werror_flag"
2999 || test ! -s conftest.err'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; } &&
3005 { ac_try='test -s conftest.$ac_objext'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3020 if test -n "$ac_declaration"; then
3021 echo '#ifdef __cplusplus' >>confdefs.h
3022 echo $ac_declaration >>confdefs.h
3023 echo '#endif' >>confdefs.h
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037 DEPDIR="${am__leading_dot}deps"
3039 ac_config_commands="$ac_config_commands depfiles"
3042 am_make=${MAKE-make}
3043 cat > confinc << 'END'
3048 # If we don't find an include directive, just comment out the code.
3049 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3050 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3054 # First try GNU make style include.
3055 echo "include confinc" > confmf
3056 # We grep out `Entering directory' and `Leaving directory'
3057 # messages which can occur if `w' ends up in MAKEFLAGS.
3058 # In particular we don't look at `^make:' because GNU make might
3059 # be invoked under some other name (usually "gmake"), in which
3060 # case it prints its new name instead of `make'.
3061 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3066 # Now try BSD make style include.
3067 if test "$am__include" = "#"; then
3068 echo '.include "confinc"' > confmf
3069 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3070 am__include=.include
3077 echo "$as_me:$LINENO: result: $_am_result" >&5
3078 echo "${ECHO_T}$_am_result" >&6
3079 rm -f confinc confmf
3081 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3082 if test "${enable_dependency_tracking+set}" = set; then
3083 enableval="$enable_dependency_tracking"
3086 if test "x$enable_dependency_tracking" != xno; then
3087 am_depcomp="$ac_aux_dir/depcomp"
3092 if test "x$enable_dependency_tracking" != xno; then
3103 depcc="$CC" am_compiler_list=
3105 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3106 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3107 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3111 # We make a subdir and do the tests there. Otherwise we can end up
3112 # making bogus files that we don't know about and never remove. For
3113 # instance it was reported that on HP-UX the gcc test will end up
3114 # making a dummy file named `D' -- because `-MD' means `put the output
3117 # Copy depcomp to subdir because otherwise we won't find it if we're
3118 # using a relative directory.
3119 cp "$am_depcomp" conftest.dir
3121 # We will build objects and dependencies in a subdirectory because
3122 # it helps to detect inapplicable dependency modes. For instance
3123 # both Tru64's cc and ICC support -MD to output dependencies as a
3124 # side effect of compilation, but ICC will put the dependencies in
3125 # the current directory while Tru64 will put them in the object
3129 am_cv_CC_dependencies_compiler_type=none
3130 if test "$am_compiler_list" = ""; then
3131 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3133 for depmode in $am_compiler_list; do
3134 # Setup a source with many dependencies, because some compilers
3135 # like to wrap large dependency lists on column 80 (with \), and
3136 # we should not choose a depcomp mode which is confused by this.
3138 # We need to recreate these files for each test, as the compiler may
3139 # overwrite some of them when testing with obscure command lines.
3140 # This happens at least with the AIX C compiler.
3142 for i in 1 2 3 4 5 6; do
3143 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3144 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3145 # Solaris 8's {/usr,}/bin/sh.
3146 touch sub/conftst$i.h
3148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3152 # after this tag, mechanisms are not by side-effect, so they'll
3153 # only be used when explicitly requested
3154 if test "x$enable_dependency_tracking" = xyes; then
3162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3163 # mode. It turns out that the SunPro C++ compiler does not properly
3164 # handle `-M -o', and we need to detect this.
3165 if depmode=$depmode \
3166 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3168 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3169 >/dev/null 2>conftest.err &&
3170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3171 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3173 # icc doesn't choke on unknown options, it will just issue warnings
3174 # or remarks (even with -Werror). So we grep stderr for any message
3175 # that says an option was ignored or not supported.
3176 # When given -MP, icc 7.0 and 7.1 complain thusly:
3177 # icc: Command line warning: ignoring option '-M'; no argument required
3178 # The diagnosis changed in icc 8.0:
3179 # icc: Command line remark: option '-MP' not supported
3180 if (grep 'ignoring option' conftest.err ||
3181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3182 am_cv_CC_dependencies_compiler_type=$depmode
3191 am_cv_CC_dependencies_compiler_type=none
3195 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3196 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3197 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3202 test "x$enable_dependency_tracking" != xno \
3203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3205 am__fastdepCC_FALSE='#'
3207 am__fastdepCC_TRUE='#'
3208 am__fastdepCC_FALSE=
3212 # Find a good install program. We prefer a C program (faster),
3213 # so one script is as good as another. But avoid the broken or
3214 # incompatible versions:
3215 # SysV /etc/install, /usr/sbin/install
3216 # SunOS /usr/etc/install
3217 # IRIX /sbin/install
3219 # AmigaOS /C/install, which installs bootblocks on floppy discs
3220 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3223 # OS/2's system install, which has a completely different semantic
3224 # ./install, which can be erroneously created by make from ./install.sh.
3225 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3226 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3227 if test -z "$INSTALL"; then
3228 if test "${ac_cv_path_install+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 # Account for people who put trailing slashes in PATH elements.
3238 ./ | .// | /cC/* | \
3239 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3240 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3243 # OSF1 and SCO ODT 3.0 have their own names for install.
3244 # Don't use installbsd from OSF since it installs stuff as root
3246 for ac_prog in ginstall scoinst install; do
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3249 if test $ac_prog = install &&
3250 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3251 # AIX install. It has an incompatible calling convention.
3253 elif test $ac_prog = install &&
3254 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3255 # program-specific install script used by HP pwplus--don't use.
3258 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3270 if test "${ac_cv_path_install+set}" = set; then
3271 INSTALL=$ac_cv_path_install
3273 # As a last resort, use the slow shell script. We don't cache a
3274 # path for INSTALL within a source directory, because that will
3275 # break other packages using the cache if that directory is
3276 # removed, or if the path is relative.
3277 INSTALL=$ac_install_sh
3280 echo "$as_me:$LINENO: result: $INSTALL" >&5
3281 echo "${ECHO_T}$INSTALL" >&6
3283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3284 # It thinks the first close brace ends the variable substitution.
3285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3291 if test -n "$ac_tool_prefix"; then
3292 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3294 echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296 if test "${ac_cv_prog_RANLIB+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 if test -n "$RANLIB"; then
3300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 RANLIB=$ac_cv_prog_RANLIB
3319 if test -n "$RANLIB"; then
3320 echo "$as_me:$LINENO: result: $RANLIB" >&5
3321 echo "${ECHO_T}$RANLIB" >&6
3323 echo "$as_me:$LINENO: result: no" >&5
3324 echo "${ECHO_T}no" >&6
3328 if test -z "$ac_cv_prog_RANLIB"; then
3329 ac_ct_RANLIB=$RANLIB
3330 # Extract the first word of "ranlib", so it can be a program name with args.
3331 set dummy ranlib; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 if test -n "$ac_ct_RANLIB"; then
3338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_ac_ct_RANLIB="ranlib"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3358 if test -n "$ac_ct_RANLIB"; then
3359 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3360 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3366 RANLIB=$ac_ct_RANLIB
3368 RANLIB="$ac_cv_prog_RANLIB"
3375 # Check whether --enable-shared or --disable-shared was given.
3376 if test "${enable_shared+set}" = set; then
3377 enableval="$enable_shared"
3378 p=${PACKAGE-default}
3380 yes) enable_shared=yes ;;
3381 no) enable_shared=no ;;
3384 # Look at the argument we got. We use all the common list separators.
3385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3386 for pkg in $enableval; do
3388 if test "X$pkg" = "X$p"; then
3400 # Check whether --enable-static or --disable-static was given.
3401 if test "${enable_static+set}" = set; then
3402 enableval="$enable_static"
3403 p=${PACKAGE-default}
3405 yes) enable_static=yes ;;
3406 no) enable_static=no ;;
3409 # Look at the argument we got. We use all the common list separators.
3410 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3411 for pkg in $enableval; do
3413 if test "X$pkg" = "X$p"; then
3424 # Check whether --enable-fast-install or --disable-fast-install was given.
3425 if test "${enable_fast_install+set}" = set; then
3426 enableval="$enable_fast_install"
3427 p=${PACKAGE-default}
3429 yes) enable_fast_install=yes ;;
3430 no) enable_fast_install=no ;;
3432 enable_fast_install=no
3433 # Look at the argument we got. We use all the common list separators.
3434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3435 for pkg in $enableval; do
3437 if test "X$pkg" = "X$p"; then
3438 enable_fast_install=yes
3445 enable_fast_install=yes
3448 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3449 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3450 if test "${lt_cv_path_SED+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 # Loop through the user's path and test for sed and gsed.
3454 # Then use that list of sed's as ones to test for truncation.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for lt_ac_prog in sed gsed; do
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3463 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3471 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3472 # along with /bin/sed that truncates output.
3473 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3474 test ! -f $lt_ac_sed && continue
3475 cat /dev/null > conftest.in
3477 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3478 # Check for GNU sed and select it if it is found.
3479 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3480 lt_cv_path_SED=$lt_ac_sed
3484 cat conftest.in conftest.in >conftest.tmp
3485 mv conftest.tmp conftest.in
3486 cp conftest.in conftest.nl
3488 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3489 cmp -s conftest.out conftest.nl || break
3490 # 10000 chars as input seems more than enough
3491 test $lt_ac_count -gt 10 && break
3492 lt_ac_count=`expr $lt_ac_count + 1`
3493 if test $lt_ac_count -gt $lt_ac_max; then
3494 lt_ac_max=$lt_ac_count
3495 lt_cv_path_SED=$lt_ac_sed
3504 echo "$as_me:$LINENO: result: $SED" >&5
3505 echo "${ECHO_T}$SED" >&6
3507 echo "$as_me:$LINENO: checking for egrep" >&5
3508 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3509 if test "${ac_cv_prog_egrep+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3513 then ac_cv_prog_egrep='grep -E'
3514 else ac_cv_prog_egrep='egrep'
3517 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3518 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3519 EGREP=$ac_cv_prog_egrep
3523 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3524 if test "${with_gnu_ld+set}" = set; then
3525 withval="$with_gnu_ld"
3526 test "$withval" = no || with_gnu_ld=yes
3531 if test "$GCC" = yes; then
3532 # Check if gcc -print-prog-name=ld gives a path.
3533 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3534 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3537 # gcc leaves a trailing carriage return which upsets mingw
3538 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3540 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3543 # Accept absolute paths.
3545 re_direlt='/[^/][^/]*/\.\./'
3546 # Canonicalize the pathname of ld
3547 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3548 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3549 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3551 test -z "$LD" && LD="$ac_prog"
3554 # If it fails, then pretend we aren't using GCC.
3558 # If it is relative, then search for the first ld in PATH.
3562 elif test "$with_gnu_ld" = yes; then
3563 echo "$as_me:$LINENO: checking for GNU ld" >&5
3564 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3566 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3567 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3569 if test "${lt_cv_path_LD+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 if test -z "$LD"; then
3573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3574 for ac_dir in $PATH; do
3576 test -z "$ac_dir" && ac_dir=.
3577 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3578 lt_cv_path_LD="$ac_dir/$ac_prog"
3579 # Check to see if the program is GNU ld. I'd rather use --version,
3580 # but apparently some variants of GNU ld only accept -v.
3581 # Break only if it was the GNU/non-GNU ld that we prefer.
3582 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3583 *GNU* | *'with BFD'*)
3584 test "$with_gnu_ld" != no && break
3587 test "$with_gnu_ld" != yes && break
3594 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3599 if test -n "$LD"; then
3600 echo "$as_me:$LINENO: result: $LD" >&5
3601 echo "${ECHO_T}$LD" >&6
3603 echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3606 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3607 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3608 { (exit 1); exit 1; }; }
3609 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3610 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3611 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3615 case `$LD -v 2>&1 </dev/null` in
3616 *GNU* | *'with BFD'*)
3617 lt_cv_prog_gnu_ld=yes
3620 lt_cv_prog_gnu_ld=no
3624 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3625 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3626 with_gnu_ld=$lt_cv_prog_gnu_ld
3629 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3630 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3631 if test "${lt_cv_ld_reload_flag+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 lt_cv_ld_reload_flag='-r'
3636 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3637 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3638 reload_flag=$lt_cv_ld_reload_flag
3639 case $reload_flag in
3641 *) reload_flag=" $reload_flag" ;;
3643 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3646 if test "$GCC" = yes; then
3647 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3654 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3655 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3656 if test "${lt_cv_path_NM+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if test -n "$NM"; then
3660 # Let the user override the test.
3663 lt_nm_to_check="${ac_tool_prefix}nm"
3664 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3665 lt_nm_to_check="$lt_nm_to_check nm"
3667 for lt_tmp_nm in $lt_nm_to_check; do
3668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3669 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3671 test -z "$ac_dir" && ac_dir=.
3672 tmp_nm="$ac_dir/$lt_tmp_nm"
3673 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3674 # Check to see if the nm accepts a BSD-compat flag.
3675 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3676 # nm: unknown option "B" ignored
3677 # Tru64's nm complains that /dev/null is an invalid object file
3678 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3679 */dev/null* | *'Invalid file or object type'*)
3680 lt_cv_path_NM="$tmp_nm -B"
3684 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3686 lt_cv_path_NM="$tmp_nm -p"
3690 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3691 continue # so that we can try to find one that supports BSD flags
3700 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3703 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3704 echo "${ECHO_T}$lt_cv_path_NM" >&6
3707 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3708 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3710 if test "$LN_S" = "ln -s"; then
3711 echo "$as_me:$LINENO: result: yes" >&5
3712 echo "${ECHO_T}yes" >&6
3714 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3715 echo "${ECHO_T}no, using $LN_S" >&6
3718 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3719 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3720 if test "${lt_cv_deplibs_check_method+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 lt_cv_file_magic_cmd='$MAGIC_CMD'
3724 lt_cv_file_magic_test_file=
3725 lt_cv_deplibs_check_method='unknown'
3726 # Need to set the preceding variable on all platforms that support
3727 # interlibrary dependencies.
3728 # 'none' -- dependencies not supported.
3729 # `unknown' -- same as none, but documents that we really don't know.
3730 # 'pass_all' -- all dependencies passed with no checks.
3731 # 'test_compile' -- check by making test program.
3732 # 'file_magic [[regex]]' -- check by looking for files in library path
3733 # which responds to the $file_magic_cmd with a given extended regex.
3734 # If you have `file' or equivalent on your system and you're not sure
3735 # whether `pass_all' will *always* work, you probably want this one.
3739 lt_cv_deplibs_check_method=pass_all
3743 lt_cv_deplibs_check_method=pass_all
3747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3748 lt_cv_file_magic_cmd='/usr/bin/file -L'
3749 lt_cv_file_magic_test_file=/shlib/libc.so
3753 # func_win32_libid is a shell function defined in ltmain.sh
3754 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3755 lt_cv_file_magic_cmd='func_win32_libid'
3759 # Base MSYS/MinGW do not provide the 'file' command needed by
3760 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3761 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3762 lt_cv_file_magic_cmd='$OBJDUMP -f'
3765 darwin* | rhapsody*)
3766 lt_cv_deplibs_check_method=pass_all
3769 freebsd* | kfreebsd*-gnu | dragonfly*)
3770 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3773 # Not sure whether the presence of OpenBSD here was a mistake.
3774 # Let's accept both of them until this is cleared up.
3775 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3776 lt_cv_file_magic_cmd=/usr/bin/file
3777 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3781 lt_cv_deplibs_check_method=pass_all
3786 lt_cv_deplibs_check_method=pass_all
3789 hpux10.20* | hpux11*)
3790 lt_cv_file_magic_cmd=/usr/bin/file
3793 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3794 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3797 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]'
3798 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3801 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3802 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3808 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3812 irix5* | irix6* | nonstopux*)
3814 *-32|*"-32 ") libmagic=32-bit;;
3815 *-n32|*"-n32 ") libmagic=N32;;
3816 *-64|*"-64 ") libmagic=64-bit;;
3817 *) libmagic=never-match;;
3819 lt_cv_deplibs_check_method=pass_all
3822 # This must be Linux ELF.
3824 lt_cv_deplibs_check_method=pass_all
3828 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3836 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3837 lt_cv_file_magic_cmd=/usr/bin/file
3838 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3842 lt_cv_deplibs_check_method=unknown
3846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3853 osf3* | osf4* | osf5*)
3854 lt_cv_deplibs_check_method=pass_all
3858 lt_cv_deplibs_check_method=pass_all
3862 case $host_vendor in
3864 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]'
3865 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3868 lt_cv_deplibs_check_method=pass_all
3871 lt_cv_file_magic_cmd='/bin/file'
3872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3875 lt_cv_file_magic_cmd='/bin/file'
3876 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3877 lt_cv_file_magic_test_file=/lib/libc.so
3880 lt_cv_deplibs_check_method=pass_all
3883 lt_cv_deplibs_check_method=pass_all
3888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3889 lt_cv_deplibs_check_method=pass_all
3894 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3895 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3896 file_magic_cmd=$lt_cv_file_magic_cmd
3897 deplibs_check_method=$lt_cv_deplibs_check_method
3898 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3903 # If no C compiler was specified, use CC.
3906 # If no C compiler flags were specified, use CFLAGS.
3907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3909 # Allow CC to be a program name with arguments.
3913 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3914 if test "${enable_libtool_lock+set}" = set; then
3915 enableval="$enable_libtool_lock"
3918 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3920 # Some flags need to be propagated to the compiler or linker for good
3924 # Find out which ABI we are using.
3925 echo 'int i;' > conftest.$ac_ext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; then
3931 case `/usr/bin/file conftest.$ac_objext` in
3943 # Find out which ABI we are using.
3944 echo '#line 3944 "configure"' > conftest.$ac_ext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946 (eval $ac_compile) 2>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; then
3950 if test "$lt_cv_prog_gnu_ld" = yes; then
3951 case `/usr/bin/file conftest.$ac_objext` in
3953 LD="${LD-ld} -melf32bsmip"
3956 LD="${LD-ld} -melf32bmipn32"
3959 LD="${LD-ld} -melf64bmip"
3963 case `/usr/bin/file conftest.$ac_objext` in
3979 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3980 # Find out which ABI we are using.
3981 echo 'int i;' > conftest.$ac_ext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; then
3987 case `/usr/bin/file conftest.o` in
3991 LD="${LD-ld} -m elf_i386"
3993 ppc64-*linux*|powerpc64-*linux*)
3994 LD="${LD-ld} -m elf32ppclinux"
3997 LD="${LD-ld} -m elf_s390"
4000 LD="${LD-ld} -m elf32_sparc"
4007 LD="${LD-ld} -m elf_x86_64"
4009 ppc*-*linux*|powerpc*-*linux*)
4010 LD="${LD-ld} -m elf64ppc"
4013 LD="${LD-ld} -m elf64_s390"
4016 LD="${LD-ld} -m elf64_sparc"
4026 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4027 SAVE_CFLAGS="$CFLAGS"
4028 CFLAGS="$CFLAGS -belf"
4029 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4030 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4031 if test "${lt_cv_cc_needs_belf+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4055 rm -f conftest.$ac_objext conftest$ac_exeext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4057 (eval $ac_link) 2>conftest.er1
4059 grep -v '^ *+' conftest.er1 >conftest.err
4061 cat conftest.err >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } &&
4064 { ac_try='test -z "$ac_c_werror_flag"
4065 || test ! -s conftest.err'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 lt_cv_cc_needs_belf=yes
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4082 lt_cv_cc_needs_belf=no
4084 rm -f conftest.err conftest.$ac_objext \
4085 conftest$ac_exeext conftest.$ac_ext
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4094 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4095 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4096 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4097 CFLAGS="$SAVE_CFLAGS"
4101 # Find out which ABI we are using.
4102 echo 'int i;' > conftest.$ac_ext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; then
4108 case `/usr/bin/file conftest.o` in
4110 case $lt_cv_prog_gnu_ld in
4111 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4112 *) LD="${LD-ld} -64" ;;
4123 need_locks="$enable_libtool_lock"
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4132 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4133 # On Suns, sometimes $CPP names a directory.
4134 if test -n "$CPP" && test -d "$CPP"; then
4137 if test -z "$CPP"; then
4138 if test "${ac_cv_prog_CPP+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 # Double quotes because CPP needs to be expanded
4142 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4145 for ac_c_preproc_warn_flag in '' yes
4147 # Use a header file that comes with gcc, so configuring glibc
4148 # with a fresh cross-compiler works.
4149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150 # <limits.h> exists even on freestanding compilers.
4151 # On the NeXT, cc -E runs the code through the compiler's parser,
4152 # not just through cpp. "Syntax error" is here to catch this case.
4153 cat >conftest.$ac_ext <<_ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4160 # include <limits.h>
4162 # include <assert.h>
4166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } >/dev/null; then
4174 if test -s conftest.err; then
4175 ac_cpp_err=$ac_c_preproc_warn_flag
4176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4183 if test -z "$ac_cpp_err"; then
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 # Broken: fails on valid input.
4192 rm -f conftest.err conftest.$ac_ext
4194 # OK, works on sane cases. Now check whether non-existent headers
4195 # can be detected and how.
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 #include <ac_nonexistent.h>
4204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4207 grep -v '^ *+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev/null; then
4212 if test -s conftest.err; then
4213 ac_cpp_err=$ac_c_preproc_warn_flag
4214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4221 if test -z "$ac_cpp_err"; then
4222 # Broken: success on invalid input.
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 # Passes both tests.
4232 rm -f conftest.err conftest.$ac_ext
4235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4236 rm -f conftest.err conftest.$ac_ext
4237 if $ac_preproc_ok; then
4249 echo "$as_me:$LINENO: result: $CPP" >&5
4250 echo "${ECHO_T}$CPP" >&6
4252 for ac_c_preproc_warn_flag in '' yes
4254 # Use a header file that comes with gcc, so configuring glibc
4255 # with a fresh cross-compiler works.
4256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4257 # <limits.h> exists even on freestanding compilers.
4258 # On the NeXT, cc -E runs the code through the compiler's parser,
4259 # not just through cpp. "Syntax error" is here to catch this case.
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4267 # include <limits.h>
4269 # include <assert.h>
4273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4276 grep -v '^ *+' conftest.er1 >conftest.err
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } >/dev/null; then
4281 if test -s conftest.err; then
4282 ac_cpp_err=$ac_c_preproc_warn_flag
4283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4290 if test -z "$ac_cpp_err"; then
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 # Broken: fails on valid input.
4299 rm -f conftest.err conftest.$ac_ext
4301 # OK, works on sane cases. Now check whether non-existent headers
4302 # can be detected and how.
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4309 #include <ac_nonexistent.h>
4311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } >/dev/null; then
4319 if test -s conftest.err; then
4320 ac_cpp_err=$ac_c_preproc_warn_flag
4321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4328 if test -z "$ac_cpp_err"; then
4329 # Broken: success on invalid input.
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 # Passes both tests.
4339 rm -f conftest.err conftest.$ac_ext
4342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4343 rm -f conftest.err conftest.$ac_ext
4344 if $ac_preproc_ok; then
4347 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4348 See \`config.log' for more details." >&5
4349 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4350 See \`config.log' for more details." >&2;}
4351 { (exit 1); exit 1; }; }
4355 ac_cpp='$CPP $CPPFLAGS'
4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4362 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4363 if test "${ac_cv_header_stdc+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag"
4395 || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_cv_header_stdc=yes
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 ac_cv_header_stdc=no
4414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416 if test $ac_cv_header_stdc = yes; then
4417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4428 $EGREP "memchr" >/dev/null 2>&1; then
4431 ac_cv_header_stdc=no
4437 if test $ac_cv_header_stdc = yes; then
4438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4449 $EGREP "free" >/dev/null 2>&1; then
4452 ac_cv_header_stdc=no
4458 if test $ac_cv_header_stdc = yes; then
4459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4460 if test "$cross_compiling" = yes; then
4463 cat >conftest.$ac_ext <<_ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4470 #if ((' ' & 0x0FF) == 0x020)
4471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4474 # define ISLOWER(c) \
4475 (('a' <= (c) && (c) <= 'i') \
4476 || ('j' <= (c) && (c) <= 'r') \
4477 || ('s' <= (c) && (c) <= 'z'))
4478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4486 for (i = 0; i < 256; i++)
4487 if (XOR (islower (i), ISLOWER (i))
4488 || toupper (i) != TOUPPER (i))
4493 rm -f conftest$ac_exeext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4506 echo "$as_me: program exited with status $ac_status" >&5
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4511 ac_cv_header_stdc=no
4513 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4517 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4518 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4519 if test $ac_cv_header_stdc = yes; then
4521 cat >>confdefs.h <<\_ACEOF
4522 #define STDC_HEADERS 1
4527 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4537 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4538 inttypes.h stdint.h unistd.h
4540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4541 echo "$as_me:$LINENO: checking for $ac_header" >&5
4542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 cat >conftest.$ac_ext <<_ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 $ac_includes_default
4554 #include <$ac_header>
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>conftest.er1
4560 grep -v '^ *+' conftest.er1 >conftest.err
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -z "$ac_c_werror_flag"
4566 || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 eval "$as_ac_Header=yes"
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 eval "$as_ac_Header=no"
4585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4590 cat >>confdefs.h <<_ACEOF
4591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4600 for ac_header in dlfcn.h
4602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4604 echo "$as_me:$LINENO: checking for $ac_header" >&5
4605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4612 # Is the header compilable?
4613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4615 cat >conftest.$ac_ext <<_ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4621 $ac_includes_default
4622 #include <$ac_header>
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4628 grep -v '^ *+' conftest.er1 >conftest.err
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_header_compiler=yes
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 ac_header_compiler=no
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4655 echo "${ECHO_T}$ac_header_compiler" >&6
4657 # Is the header present?
4658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 #include <$ac_header>
4668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } >/dev/null; then
4676 if test -s conftest.err; then
4677 ac_cpp_err=$ac_c_preproc_warn_flag
4678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4685 if test -z "$ac_cpp_err"; then
4686 ac_header_preproc=yes
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 ac_header_preproc=no
4693 rm -f conftest.err conftest.$ac_ext
4694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4695 echo "${ECHO_T}$ac_header_preproc" >&6
4697 # So? What about this header?
4698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4704 ac_header_preproc=yes
4707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4721 ## --------------------------------- ##
4722 ## Report this to the jasper lists. ##
4723 ## --------------------------------- ##
4726 sed "s/^/$as_me: WARNING: /" >&2
4729 echo "$as_me:$LINENO: checking for $ac_header" >&5
4730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 eval "$as_ac_Header=\$ac_header_preproc"
4736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4741 cat >>confdefs.h <<_ACEOF
4742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4750 ac_cpp='$CXXCPP $CPPFLAGS'
4751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4754 if test -n "$ac_tool_prefix"; then
4755 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4759 echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4761 if test "${ac_cv_prog_CXX+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 if test -n "$CXX"; then
4765 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 if test -n "$CXX"; then
4785 echo "$as_me:$LINENO: result: $CXX" >&5
4786 echo "${ECHO_T}$CXX" >&6
4788 echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4792 test -n "$CXX" && break
4795 if test -z "$CXX"; then
4797 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4799 # Extract the first word of "$ac_prog", so it can be a program name with args.
4800 set dummy $ac_prog; ac_word=$2
4801 echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 if test -n "$ac_ct_CXX"; then
4807 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_ac_ct_CXX="$ac_prog"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4826 if test -n "$ac_ct_CXX"; then
4827 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4828 echo "${ECHO_T}$ac_ct_CXX" >&6
4830 echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4834 test -n "$ac_ct_CXX" && break
4836 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4842 # Provide some information about the compiler.
4843 echo "$as_me:$LINENO:" \
4844 "checking for C++ compiler version" >&5
4845 ac_compiler=`set X $ac_compile; echo $2`
4846 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4847 (eval $ac_compiler --version </dev/null >&5) 2>&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }
4851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4852 (eval $ac_compiler -v </dev/null >&5) 2>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }
4856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4857 (eval $ac_compiler -V </dev/null >&5) 2>&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }
4862 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4863 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4864 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 cat >conftest.$ac_ext <<_ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4885 rm -f conftest.$ac_objext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887 (eval $ac_compile) 2>conftest.er1
4889 grep -v '^ *+' conftest.er1 >conftest.err
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try='test -z "$ac_cxx_werror_flag"
4895 || test ! -s conftest.err'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; } &&
4901 { ac_try='test -s conftest.$ac_objext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4915 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4918 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4919 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4920 GXX=`test $ac_compiler_gnu = yes && echo yes`
4921 ac_test_CXXFLAGS=${CXXFLAGS+set}
4922 ac_save_CXXFLAGS=$CXXFLAGS
4924 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4925 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4926 if test "${ac_cv_prog_cxx_g+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
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
4966 ac_cv_prog_cxx_g=yes
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4975 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4976 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4977 if test "$ac_test_CXXFLAGS" = set; then
4978 CXXFLAGS=$ac_save_CXXFLAGS
4979 elif test $ac_cv_prog_cxx_g = yes; then
4980 if test "$GXX" = yes; then
4986 if test "$GXX" = yes; then
4992 for ac_declaration in \
4994 'extern "C" void std::exit (int) throw (); using std::exit;' \
4995 'extern "C" void std::exit (int); using std::exit;' \
4996 'extern "C" void exit (int) throw ();' \
4997 'extern "C" void exit (int);' \
5000 cat >conftest.$ac_ext <<_ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>conftest.er1
5020 grep -v '^ *+' conftest.er1 >conftest.err
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_cxx_werror_flag"
5026 || test ! -s conftest.err'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try='test -s conftest.$ac_objext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5046 cat >conftest.$ac_ext <<_ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -z "$ac_cxx_werror_flag"
5071 || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5092 if test -n "$ac_declaration"; then
5093 echo '#ifdef __cplusplus' >>confdefs.h
5094 echo $ac_declaration >>confdefs.h
5095 echo '#endif' >>confdefs.h
5099 ac_cpp='$CXXCPP $CPPFLAGS'
5100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5104 depcc="$CXX" am_compiler_list=
5106 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5107 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5108 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5112 # We make a subdir and do the tests there. Otherwise we can end up
5113 # making bogus files that we don't know about and never remove. For
5114 # instance it was reported that on HP-UX the gcc test will end up
5115 # making a dummy file named `D' -- because `-MD' means `put the output
5118 # Copy depcomp to subdir because otherwise we won't find it if we're
5119 # using a relative directory.
5120 cp "$am_depcomp" conftest.dir
5122 # We will build objects and dependencies in a subdirectory because
5123 # it helps to detect inapplicable dependency modes. For instance
5124 # both Tru64's cc and ICC support -MD to output dependencies as a
5125 # side effect of compilation, but ICC will put the dependencies in
5126 # the current directory while Tru64 will put them in the object
5130 am_cv_CXX_dependencies_compiler_type=none
5131 if test "$am_compiler_list" = ""; then
5132 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5134 for depmode in $am_compiler_list; do
5135 # Setup a source with many dependencies, because some compilers
5136 # like to wrap large dependency lists on column 80 (with \), and
5137 # we should not choose a depcomp mode which is confused by this.
5139 # We need to recreate these files for each test, as the compiler may
5140 # overwrite some of them when testing with obscure command lines.
5141 # This happens at least with the AIX C compiler.
5143 for i in 1 2 3 4 5 6; do
5144 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5146 # Solaris 8's {/usr,}/bin/sh.
5147 touch sub/conftst$i.h
5149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5153 # after this tag, mechanisms are not by side-effect, so they'll
5154 # only be used when explicitly requested
5155 if test "x$enable_dependency_tracking" = xyes; then
5163 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5164 # mode. It turns out that the SunPro C++ compiler does not properly
5165 # handle `-M -o', and we need to detect this.
5166 if depmode=$depmode \
5167 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5169 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5170 >/dev/null 2>conftest.err &&
5171 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5172 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5173 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5174 # icc doesn't choke on unknown options, it will just issue warnings
5175 # or remarks (even with -Werror). So we grep stderr for any message
5176 # that says an option was ignored or not supported.
5177 # When given -MP, icc 7.0 and 7.1 complain thusly:
5178 # icc: Command line warning: ignoring option '-M'; no argument required
5179 # The diagnosis changed in icc 8.0:
5180 # icc: Command line remark: option '-MP' not supported
5181 if (grep 'ignoring option' conftest.err ||
5182 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5183 am_cv_CXX_dependencies_compiler_type=$depmode
5192 am_cv_CXX_dependencies_compiler_type=none
5196 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5197 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5198 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5203 test "x$enable_dependency_tracking" != xno \
5204 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5205 am__fastdepCXX_TRUE=
5206 am__fastdepCXX_FALSE='#'
5208 am__fastdepCXX_TRUE='#'
5209 am__fastdepCXX_FALSE=
5215 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5216 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5217 (test "X$CXX" != "Xg++"))) ; then
5219 ac_cpp='$CXXCPP $CPPFLAGS'
5220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5223 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5224 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5225 if test -z "$CXXCPP"; then
5226 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 # Double quotes because CXXCPP needs to be expanded
5230 for CXXCPP in "$CXX -E" "/lib/cpp"
5233 for ac_cxx_preproc_warn_flag in '' yes
5235 # Use a header file that comes with gcc, so configuring glibc
5236 # with a fresh cross-compiler works.
5237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5238 # <limits.h> exists even on freestanding compilers.
5239 # On the NeXT, cc -E runs the code through the compiler's parser,
5240 # not just through cpp. "Syntax error" is here to catch this case.
5241 cat >conftest.$ac_ext <<_ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5248 # include <limits.h>
5250 # include <assert.h>
5254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5257 grep -v '^ *+' conftest.er1 >conftest.err
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } >/dev/null; then
5262 if test -s conftest.err; then
5263 ac_cpp_err=$ac_cxx_preproc_warn_flag
5264 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5271 if test -z "$ac_cpp_err"; then
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 # Broken: fails on valid input.
5280 rm -f conftest.err conftest.$ac_ext
5282 # OK, works on sane cases. Now check whether non-existent headers
5283 # can be detected and how.
5284 cat >conftest.$ac_ext <<_ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5290 #include <ac_nonexistent.h>
5292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null; then
5300 if test -s conftest.err; then
5301 ac_cpp_err=$ac_cxx_preproc_warn_flag
5302 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5309 if test -z "$ac_cpp_err"; then
5310 # Broken: success on invalid input.
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 # Passes both tests.
5320 rm -f conftest.err conftest.$ac_ext
5323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5324 rm -f conftest.err conftest.$ac_ext
5325 if $ac_preproc_ok; then
5330 ac_cv_prog_CXXCPP=$CXXCPP
5333 CXXCPP=$ac_cv_prog_CXXCPP
5335 ac_cv_prog_CXXCPP=$CXXCPP
5337 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5338 echo "${ECHO_T}$CXXCPP" >&6
5340 for ac_cxx_preproc_warn_flag in '' yes
5342 # Use a header file that comes with gcc, so configuring glibc
5343 # with a fresh cross-compiler works.
5344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5345 # <limits.h> exists even on freestanding compilers.
5346 # On the NeXT, cc -E runs the code through the compiler's parser,
5347 # not just through cpp. "Syntax error" is here to catch this case.
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5355 # include <limits.h>
5357 # include <assert.h>
5361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5364 grep -v '^ *+' conftest.er1 >conftest.err
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev/null; then
5369 if test -s conftest.err; then
5370 ac_cpp_err=$ac_cxx_preproc_warn_flag
5371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5378 if test -z "$ac_cpp_err"; then
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 # Broken: fails on valid input.
5387 rm -f conftest.err conftest.$ac_ext
5389 # OK, works on sane cases. Now check whether non-existent headers
5390 # can be detected and how.
5391 cat >conftest.$ac_ext <<_ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 #include <ac_nonexistent.h>
5399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } >/dev/null; then
5407 if test -s conftest.err; then
5408 ac_cpp_err=$ac_cxx_preproc_warn_flag
5409 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5416 if test -z "$ac_cpp_err"; then
5417 # Broken: success on invalid input.
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 # Passes both tests.
5427 rm -f conftest.err conftest.$ac_ext
5430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5431 rm -f conftest.err conftest.$ac_ext
5432 if $ac_preproc_ok; then
5435 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5436 See \`config.log' for more details." >&5
5437 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5438 See \`config.log' for more details." >&2;}
5439 { (exit 1); exit 1; }; }
5443 ac_cpp='$CXXCPP $CPPFLAGS'
5444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5452 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5453 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5455 if test -n "$ac_tool_prefix"; then
5456 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5460 echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462 if test "${ac_cv_prog_F77+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 if test -n "$F77"; then
5466 ac_cv_prog_F77="$F77" # Let the user override the test.
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 if test -n "$F77"; then
5486 echo "$as_me:$LINENO: result: $F77" >&5
5487 echo "${ECHO_T}$F77" >&6
5489 echo "$as_me:$LINENO: result: no" >&5
5490 echo "${ECHO_T}no" >&6
5493 test -n "$F77" && break
5496 if test -z "$F77"; then
5498 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5500 # Extract the first word of "$ac_prog", so it can be a program name with args.
5501 set dummy $ac_prog; ac_word=$2
5502 echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5504 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 if test -n "$ac_ct_F77"; then
5508 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_ac_ct_F77="$ac_prog"
5518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5527 if test -n "$ac_ct_F77"; then
5528 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5529 echo "${ECHO_T}$ac_ct_F77" >&6
5531 echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5535 test -n "$ac_ct_F77" && break
5542 # Provide some information about the compiler.
5543 echo "$as_me:5543:" \
5544 "checking for Fortran 77 compiler version" >&5
5545 ac_compiler=`set X $ac_compile; echo $2`
5546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5547 (eval $ac_compiler --version </dev/null >&5) 2>&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }
5551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5552 (eval $ac_compiler -v </dev/null >&5) 2>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }
5556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5557 (eval $ac_compiler -V </dev/null >&5) 2>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }
5563 # If we don't use `.F' as extension, the preprocessor is not run on the
5564 # input file. (Note that this only needs to work for GNU compilers.)
5567 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5568 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5569 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 cat >conftest.$ac_ext <<_ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>conftest.er1
5584 grep -v '^ *+' conftest.er1 >conftest.err
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -z "$ac_f77_werror_flag"
5590 || test ! -s conftest.err'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest.$ac_objext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5610 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5613 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5614 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5616 ac_test_FFLAGS=${FFLAGS+set}
5617 ac_save_FFLAGS=$FFLAGS
5619 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5620 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5621 if test "${ac_cv_prog_f77_g+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 cat >conftest.$ac_ext <<_ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632 (eval $ac_compile) 2>conftest.er1
5634 grep -v '^ *+' conftest.er1 >conftest.err
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -z "$ac_f77_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_prog_f77_g=yes
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5662 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5663 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5664 if test "$ac_test_FFLAGS" = set; then
5665 FFLAGS=$ac_save_FFLAGS
5666 elif test $ac_cv_prog_f77_g = yes; then
5667 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5673 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5680 G77=`test $ac_compiler_gnu = yes && echo yes`
5682 ac_cpp='$CPP $CPPFLAGS'
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5689 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5691 # find the maximum length of command line arguments
5692 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5693 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5694 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 # On DJGPP, this test can blow up pretty badly due to problems in libc
5703 # (any single argument exceeding 2000 bytes causes a buffer overrun
5704 # during glob expansion). Even if it were fixed, the result of this
5705 # check would be larger than it should be.
5706 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5710 # Under GNU Hurd, this test is not required because there is
5711 # no limit to the length of command line arguments.
5712 # Libtool will interpret -1 as no limit whatsoever
5713 lt_cv_sys_max_cmd_len=-1;
5717 # On Win9x/ME, this test blows up -- it succeeds, but takes
5718 # about 5 minutes as the teststring grows exponentially.
5719 # Worse, since 9x/ME are not pre-emptively multitasking,
5720 # you end up with a "frozen" computer, even though with patience
5721 # the test eventually succeeds (with a max line length of 256k).
5722 # Instead, let's just punt: use the minimum linelength reported by
5723 # all of the supported platforms: 8192 (on NT/2K/XP).
5724 lt_cv_sys_max_cmd_len=8192;
5728 # On AmigaOS with pdksh, this test takes hours, literally.
5729 # So we just punt and use a minimum line length of 8192.
5730 lt_cv_sys_max_cmd_len=8192;
5733 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5734 # This has been around since 386BSD, at least. Likely further.
5735 if test -x /sbin/sysctl; then
5736 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5737 elif test -x /usr/sbin/sysctl; then
5738 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5740 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5742 # And add a safety zone
5743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5748 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5749 lt_cv_sys_max_cmd_len=196608
5753 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5754 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5755 # nice to cause kernel panics so lets avoid the loop below.
5756 # First set a reasonable default.
5757 lt_cv_sys_max_cmd_len=16384
5759 if test -x /sbin/sysconfig; then
5760 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5761 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5766 lt_cv_sys_max_cmd_len=102400
5768 sysv5* | sco5v6* | sysv4.2uw2*)
5769 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5770 if test -n "$kargmax"; then
5771 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5773 lt_cv_sys_max_cmd_len=32768
5777 # If test is not a shell built-in, we'll probably end up computing a
5778 # maximum length that is only half of the actual maximum length, but
5780 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5781 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5782 = "XX$teststring") >/dev/null 2>&1 &&
5783 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5784 lt_cv_sys_max_cmd_len=$new_result &&
5785 test $i != 17 # 1/2 MB should be enough
5788 teststring=$teststring$teststring
5791 # Add a significant safety factor because C++ compilers can tack on massive
5792 # amounts of additional arguments before passing them to the linker.
5793 # It appears as though 1/2 is a usable value.
5794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5800 if test -n $lt_cv_sys_max_cmd_len ; then
5801 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5802 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5804 echo "$as_me:$LINENO: result: none" >&5
5805 echo "${ECHO_T}none" >&6
5811 # Check for command to grab the raw symbol name followed by C symbol from nm.
5812 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5813 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5814 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 # These are sane defaults that work on at least a few old systems.
5819 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5821 # Character class describing NM global symbol codes.
5822 symcode='[BCDEGRST]'
5824 # Regexp to match symbols that can be accessed directly from C.
5825 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5827 # Transform an extracted symbol line into a proper C declaration
5828 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5830 # Transform an extracted symbol line into symbol name and symbol address
5831 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'"
5833 # Define system-specific variables.
5838 cygwin* | mingw* | pw32*)
5839 symcode='[ABCDGISTW]'
5841 hpux*) # Its linker distinguishes data from code symbols
5842 if test "$host_cpu" = ia64; then
5843 symcode='[ABCDEGRST]'
5845 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5846 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'"
5849 if test "$host_cpu" = ia64; then
5850 symcode='[ABCDGIRSTW]'
5851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5852 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'"
5856 symcode='[BCDEGRST]'
5859 symcode='[BCDEGQRST]'
5870 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5878 # Handle CRLF in mingw tool chain
5882 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5886 # If we're using GNU nm, then use its standard symbol codes.
5887 case `$NM -V 2>&1` in
5888 *GNU* | *'with BFD'*)
5889 symcode='[ABCDGIRSTW]' ;;
5892 # Try without a prefix undercore, then with it.
5893 for ac_symprfx in "" "_"; do
5895 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5896 symxfrm="\\1 $ac_symprfx\\2 \\2"
5898 # Write the raw and C identifiers.
5899 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5901 # Check to see that the pipe works correctly.
5905 cat > conftest.$ac_ext <<EOF
5910 void nm_test_func(){}
5914 int main(){nm_test_var='a';nm_test_func();return(0);}
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; then
5922 # Now try to grab the symbols.
5924 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5925 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && test -s "$nlist"; then
5929 # Try sorting and uniquifying the output.
5930 if sort "$nlist" | uniq > "$nlist"T; then
5931 mv -f "$nlist"T "$nlist"
5936 # Make sure that we snagged all the symbols we need.
5937 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5938 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5939 cat <<EOF > conftest.$ac_ext
5945 # Now generate the symbol file.
5946 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5948 cat <<EOF >> conftest.$ac_ext
5949 #if defined (__STDC__) && __STDC__
5950 # define lt_ptr_t void *
5952 # define lt_ptr_t char *
5956 /* The mapping between symbol names and symbols. */
5961 lt_preloaded_symbols[] =
5964 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5965 cat <<\EOF >> conftest.$ac_ext
5973 # Now try linking the two files.
5974 mv conftest.$ac_objext conftstm.$ac_objext
5975 lt_save_LIBS="$LIBS"
5976 lt_save_CFLAGS="$CFLAGS"
5977 LIBS="conftstm.$ac_objext"
5978 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980 (eval $ac_link) 2>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5986 LIBS="$lt_save_LIBS"
5987 CFLAGS="$lt_save_CFLAGS"
5989 echo "cannot find nm_test_func in $nlist" >&5
5992 echo "cannot find nm_test_var in $nlist" >&5
5995 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5998 echo "$progname: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6001 rm -f conftest* conftst*
6003 # Do not use the global_symbol_pipe unless it works.
6004 if test "$pipe_works" = yes; then
6007 lt_cv_sys_global_symbol_pipe=
6013 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6014 lt_cv_sys_global_symbol_to_cdecl=
6016 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6017 echo "$as_me:$LINENO: result: failed" >&5
6018 echo "${ECHO_T}failed" >&6
6020 echo "$as_me:$LINENO: result: ok" >&5
6021 echo "${ECHO_T}ok" >&6
6024 echo "$as_me:$LINENO: checking for objdir" >&5
6025 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6026 if test "${lt_cv_objdir+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 rm -f .libs 2>/dev/null
6030 mkdir .libs 2>/dev/null
6031 if test -d .libs; then
6034 # MS-DOS does not allow filenames that begin with a dot.
6037 rmdir .libs 2>/dev/null
6039 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6040 echo "${ECHO_T}$lt_cv_objdir" >&6
6041 objdir=$lt_cv_objdir
6049 # AIX sometimes has problems with the GCC collect2 program. For some
6050 # reason, if we set the COLLECT_NAMES environment variable, the problems
6051 # vanish in a puff of smoke.
6052 if test "X${COLLECT_NAMES+set}" != Xset; then
6054 export COLLECT_NAMES
6059 # Sed substitution that helps us do robust quoting. It backslashifies
6060 # metacharacters that are still active within double-quoted strings.
6061 Xsed='sed -e 1s/^X//'
6062 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6064 # Same as above, but do not quote variable references.
6065 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6067 # Sed substitution to delay expansion of an escaped shell variable in a
6068 # double_quote_subst'ed string.
6069 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6071 # Sed substitution to avoid accidental globbing in evaled expressions
6072 no_glob_subst='s/\*/\\\*/g'
6078 default_ofile=libtool
6079 can_build_shared=yes
6081 # All known linkers require a `.a' archive for static linking (except MSVC,
6082 # which needs '.lib').
6084 ltmain="$ac_aux_dir/ltmain.sh"
6085 ofile="$default_ofile"
6086 with_gnu_ld="$lt_cv_prog_gnu_ld"
6088 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ar; ac_word=$2
6091 echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6093 if test "${ac_cv_prog_AR+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 if test -n "$AR"; then
6097 ac_cv_prog_AR="$AR" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106 ac_cv_prog_AR="${ac_tool_prefix}ar"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 if test -n "$AR"; then
6117 echo "$as_me:$LINENO: result: $AR" >&5
6118 echo "${ECHO_T}$AR" >&6
6120 echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6
6125 if test -z "$ac_cv_prog_AR"; then
6127 # Extract the first word of "ar", so it can be a program name with args.
6128 set dummy ar; ac_word=$2
6129 echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6131 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 if test -n "$ac_ct_AR"; then
6135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_ac_ct_AR="ar"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6155 if test -n "$ac_ct_AR"; then
6156 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6157 echo "${ECHO_T}$ac_ct_AR" >&6
6159 echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6171 echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6173 if test "${ac_cv_prog_RANLIB+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 if test -n "$RANLIB"; then
6177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 RANLIB=$ac_cv_prog_RANLIB
6196 if test -n "$RANLIB"; then
6197 echo "$as_me:$LINENO: result: $RANLIB" >&5
6198 echo "${ECHO_T}$RANLIB" >&6
6200 echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6
6205 if test -z "$ac_cv_prog_RANLIB"; then
6206 ac_ct_RANLIB=$RANLIB
6207 # Extract the first word of "ranlib", so it can be a program name with args.
6208 set dummy ranlib; ac_word=$2
6209 echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6211 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 if test -n "$ac_ct_RANLIB"; then
6215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224 ac_cv_prog_ac_ct_RANLIB="ranlib"
6225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6235 if test -n "$ac_ct_RANLIB"; then
6236 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6237 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6239 echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6
6243 RANLIB=$ac_ct_RANLIB
6245 RANLIB="$ac_cv_prog_RANLIB"
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}strip; ac_word=$2
6251 echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253 if test "${ac_cv_prog_STRIP+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 if test -n "$STRIP"; then
6257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 STRIP=$ac_cv_prog_STRIP
6276 if test -n "$STRIP"; then
6277 echo "$as_me:$LINENO: result: $STRIP" >&5
6278 echo "${ECHO_T}$STRIP" >&6
6280 echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6
6285 if test -z "$ac_cv_prog_STRIP"; then
6287 # Extract the first word of "strip", so it can be a program name with args.
6288 set dummy strip; ac_word=$2
6289 echo "$as_me:$LINENO: checking for $ac_word" >&5
6290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6291 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 if test -n "$ac_ct_STRIP"; then
6295 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_ac_ct_STRIP="strip"
6305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6314 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6315 if test -n "$ac_ct_STRIP"; then
6316 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6317 echo "${ECHO_T}$ac_ct_STRIP" >&6
6319 echo "$as_me:$LINENO: result: no" >&5
6320 echo "${ECHO_T}no" >&6
6325 STRIP="$ac_cv_prog_STRIP"
6330 old_CFLAGS="$CFLAGS"
6332 # Set sane defaults for various variables
6333 test -z "$AR" && AR=ar
6334 test -z "$AR_FLAGS" && AR_FLAGS=cru
6335 test -z "$AS" && AS=as
6336 test -z "$CC" && CC=cc
6337 test -z "$LTCC" && LTCC=$CC
6338 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6339 test -z "$DLLTOOL" && DLLTOOL=dlltool
6340 test -z "$LD" && LD=ld
6341 test -z "$LN_S" && LN_S="ln -s"
6342 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6343 test -z "$NM" && NM=nm
6344 test -z "$SED" && SED=sed
6345 test -z "$OBJDUMP" && OBJDUMP=objdump
6346 test -z "$RANLIB" && RANLIB=:
6347 test -z "$STRIP" && STRIP=:
6348 test -z "$ac_objext" && ac_objext=o
6350 # Determine commands to create old-style static archives.
6351 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6352 old_postinstall_cmds='chmod 644 $oldlib'
6353 old_postuninstall_cmds=
6355 if test -n "$RANLIB"; then
6358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6361 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6364 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6367 for cc_temp in $compiler""; do
6369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6375 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6378 # Only perform the check for file, if the check method requires it
6379 case $deplibs_check_method in
6381 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6382 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6383 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6384 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6392 lt_save_MAGIC_CMD="$MAGIC_CMD"
6393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6394 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6395 for ac_dir in $ac_dummy; do
6397 test -z "$ac_dir" && ac_dir=.
6398 if test -f $ac_dir/${ac_tool_prefix}file; then
6399 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6400 if test -n "$file_magic_test_file"; then
6401 case $deplibs_check_method in
6403 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6405 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6406 $EGREP "$file_magic_regex" > /dev/null; then
6411 *** Warning: the command libtool uses to detect shared libraries,
6412 *** $file_magic_cmd, produces output that libtool cannot recognize.
6413 *** The result is that libtool may fail to recognize shared libraries
6414 *** as such. This will affect the creation of libtool libraries that
6415 *** depend on shared libraries, but programs linked with such libtool
6416 *** libraries will work regardless of this problem. Nevertheless, you
6417 *** may want to report the problem to your system manager and/or to
6418 *** bug-libtool@gnu.org
6428 MAGIC_CMD="$lt_save_MAGIC_CMD"
6433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6434 if test -n "$MAGIC_CMD"; then
6435 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6436 echo "${ECHO_T}$MAGIC_CMD" >&6
6438 echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6
6442 if test -z "$lt_cv_path_MAGIC_CMD"; then
6443 if test -n "$ac_tool_prefix"; then
6444 echo "$as_me:$LINENO: checking for file" >&5
6445 echo $ECHO_N "checking for file... $ECHO_C" >&6
6446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6454 lt_save_MAGIC_CMD="$MAGIC_CMD"
6455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6457 for ac_dir in $ac_dummy; do
6459 test -z "$ac_dir" && ac_dir=.
6460 if test -f $ac_dir/file; then
6461 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6462 if test -n "$file_magic_test_file"; then
6463 case $deplibs_check_method in
6465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6468 $EGREP "$file_magic_regex" > /dev/null; then
6473 *** Warning: the command libtool uses to detect shared libraries,
6474 *** $file_magic_cmd, produces output that libtool cannot recognize.
6475 *** The result is that libtool may fail to recognize shared libraries
6476 *** as such. This will affect the creation of libtool libraries that
6477 *** depend on shared libraries, but programs linked with such libtool
6478 *** libraries will work regardless of this problem. Nevertheless, you
6479 *** may want to report the problem to your system manager and/or to
6480 *** bug-libtool@gnu.org
6490 MAGIC_CMD="$lt_save_MAGIC_CMD"
6495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6496 if test -n "$MAGIC_CMD"; then
6497 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6498 echo "${ECHO_T}$MAGIC_CMD" >&6
6500 echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6
6516 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6517 if test "${enable_libtool_lock+set}" = set; then
6518 enableval="$enable_libtool_lock"
6521 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6524 # Check whether --with-pic or --without-pic was given.
6525 if test "${with_pic+set}" = set; then
6531 test -z "$pic_mode" && pic_mode=default
6533 # Use C for the default configuration in the libtool script
6537 ac_cpp='$CPP $CPPFLAGS'
6538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6543 # Source file extension for C test sources.
6546 # Object file extension for compiled C test sources.
6550 # Code to be used in simple compile tests
6551 lt_simple_compile_test_code="int some_variable = 0;\n"
6553 # Code to be used in simple link tests
6554 lt_simple_link_test_code='int main(){return(0);}\n'
6557 # If no C compiler was specified, use CC.
6560 # If no C compiler flags were specified, use CFLAGS.
6561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6563 # Allow CC to be a program name with arguments.
6567 # save warnings/boilerplate of simple test code
6568 ac_outfile=conftest.$ac_objext
6569 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6571 _lt_compiler_boilerplate=`cat conftest.err`
6574 ac_outfile=conftest.$ac_objext
6575 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6577 _lt_linker_boilerplate=`cat conftest.err`
6582 lt_prog_compiler_no_builtin_flag=
6584 if test "$GCC" = yes; then
6585 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6588 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6589 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6590 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 lt_cv_prog_compiler_rtti_exceptions=no
6594 ac_outfile=conftest.$ac_objext
6595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6596 lt_compiler_flag="-fno-rtti -fno-exceptions"
6597 # Insert the option either (1) after the last *FLAGS variable, or
6598 # (2) before a word containing "conftest.", or (3) at the end.
6599 # Note that $ac_compile itself does not contain backslashes and begins
6600 # with a dollar sign (not a hyphen), so the echo should work correctly.
6601 # The option is referenced via a variable to avoid confusing sed.
6602 lt_compile=`echo "$ac_compile" | $SED \
6603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6605 -e 's:$: $lt_compiler_flag:'`
6606 (eval echo "\"\$as_me:6606: $lt_compile\"" >&5)
6607 (eval "$lt_compile" 2>conftest.err)
6609 cat conftest.err >&5
6610 echo "$as_me:6610: \$? = $ac_status" >&5
6611 if (exit $ac_status) && test -s "$ac_outfile"; then
6612 # The compiler can only warn and ignore the option if not recognized
6613 # So say no if there are warnings other than the usual output.
6614 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6617 lt_cv_prog_compiler_rtti_exceptions=yes
6623 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6624 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6626 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6627 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6634 lt_prog_compiler_wl=
6635 lt_prog_compiler_pic=
6636 lt_prog_compiler_static=
6638 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6639 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6641 if test "$GCC" = yes; then
6642 lt_prog_compiler_wl='-Wl,'
6643 lt_prog_compiler_static='-static'
6647 # All AIX code is PIC.
6648 if test "$host_cpu" = ia64; then
6649 # AIX 5 now supports IA64 processor
6650 lt_prog_compiler_static='-Bstatic'
6655 # FIXME: we need at least 68020 code to build shared libraries, but
6656 # adding the `-m68020' flag to GCC prevents building anything better,
6658 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6661 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6662 # PIC is the default for these OSes.
6665 mingw* | pw32* | os2*)
6666 # This hack is so that the source file can tell whether it is being
6667 # built for inclusion in a dll (and should export symbols for example).
6668 lt_prog_compiler_pic='-DDLL_EXPORT'
6671 darwin* | rhapsody*)
6672 # PIC is the default on this platform
6673 # Common symbols not allowed in MH_DYLIB files
6674 lt_prog_compiler_pic='-fno-common'
6678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6679 # Instead, we relocate shared libraries at runtime.
6683 # Just because we use GCC doesn't mean we suddenly get shared libraries
6684 # on systems that don't support them.
6685 lt_prog_compiler_can_build_shared=no
6690 if test -d /usr/nec; then
6691 lt_prog_compiler_pic=-Kconform_pic
6696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6703 lt_prog_compiler_pic='-fPIC'
6709 lt_prog_compiler_pic='-fPIC'
6713 # PORTME Check for flag to pass linker flags through the system compiler.
6716 lt_prog_compiler_wl='-Wl,'
6717 if test "$host_cpu" = ia64; then
6718 # AIX 5 now supports IA64 processor
6719 lt_prog_compiler_static='-Bstatic'
6721 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6725 # PIC is the default on this platform
6726 # Common symbols not allowed in MH_DYLIB files
6727 case $cc_basename in
6729 lt_prog_compiler_pic='-qnocommon'
6730 lt_prog_compiler_wl='-Wl,'
6735 mingw* | pw32* | os2*)
6736 # This hack is so that the source file can tell whether it is being
6737 # built for inclusion in a dll (and should export symbols for example).
6738 lt_prog_compiler_pic='-DDLL_EXPORT'
6741 hpux9* | hpux10* | hpux11*)
6742 lt_prog_compiler_wl='-Wl,'
6743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6750 lt_prog_compiler_pic='+Z'
6753 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6754 lt_prog_compiler_static='${wl}-a ${wl}archive'
6757 irix5* | irix6* | nonstopux*)
6758 lt_prog_compiler_wl='-Wl,'
6759 # PIC (with -KPIC) is the default.
6760 lt_prog_compiler_static='-non_shared'
6764 lt_prog_compiler_pic='-KPIC'
6765 lt_prog_compiler_static='-Bstatic'
6769 case $cc_basename in
6771 lt_prog_compiler_wl='-Wl,'
6772 lt_prog_compiler_pic='-KPIC'
6773 lt_prog_compiler_static='-static'
6775 pgcc* | pgf77* | pgf90* | pgf95*)
6776 # Portland Group compilers (*not* the Pentium gcc compiler,
6777 # which looks to be a dead project)
6778 lt_prog_compiler_wl='-Wl,'
6779 lt_prog_compiler_pic='-fpic'
6780 lt_prog_compiler_static='-Bstatic'
6783 lt_prog_compiler_wl='-Wl,'
6784 # All Alpha code is PIC.
6785 lt_prog_compiler_static='-non_shared'
6790 osf3* | osf4* | osf5*)
6791 lt_prog_compiler_wl='-Wl,'
6792 # All OSF/1 code is PIC.
6793 lt_prog_compiler_static='-non_shared'
6797 lt_prog_compiler_pic='-KPIC'
6798 lt_prog_compiler_static='-Bstatic'
6799 case $cc_basename in
6801 lt_prog_compiler_wl='-Qoption ld ';;
6803 lt_prog_compiler_wl='-Wl,';;
6808 lt_prog_compiler_wl='-Qoption ld '
6809 lt_prog_compiler_pic='-PIC'
6810 lt_prog_compiler_static='-Bstatic'
6813 sysv4 | sysv4.2uw2* | sysv4.3*)
6814 lt_prog_compiler_wl='-Wl,'
6815 lt_prog_compiler_pic='-KPIC'
6816 lt_prog_compiler_static='-Bstatic'
6820 if test -d /usr/nec ;then
6821 lt_prog_compiler_pic='-Kconform_pic'
6822 lt_prog_compiler_static='-Bstatic'
6826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6827 lt_prog_compiler_wl='-Wl,'
6828 lt_prog_compiler_pic='-KPIC'
6829 lt_prog_compiler_static='-Bstatic'
6833 lt_prog_compiler_wl='-Wl,'
6834 lt_prog_compiler_can_build_shared=no
6838 lt_prog_compiler_pic='-pic'
6839 lt_prog_compiler_static='-Bstatic'
6843 lt_prog_compiler_can_build_shared=no
6848 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6849 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6852 # Check to make sure the PIC flag actually works.
6854 if test -n "$lt_prog_compiler_pic"; then
6856 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6857 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6858 if test "${lt_prog_compiler_pic_works+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 lt_prog_compiler_pic_works=no
6862 ac_outfile=conftest.$ac_objext
6863 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6864 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6865 # Insert the option either (1) after the last *FLAGS variable, or
6866 # (2) before a word containing "conftest.", or (3) at the end.
6867 # Note that $ac_compile itself does not contain backslashes and begins
6868 # with a dollar sign (not a hyphen), so the echo should work correctly.
6869 # The option is referenced via a variable to avoid confusing sed.
6870 lt_compile=`echo "$ac_compile" | $SED \
6871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6873 -e 's:$: $lt_compiler_flag:'`
6874 (eval echo "\"\$as_me:6874: $lt_compile\"" >&5)
6875 (eval "$lt_compile" 2>conftest.err)
6877 cat conftest.err >&5
6878 echo "$as_me:6878: \$? = $ac_status" >&5
6879 if (exit $ac_status) && test -s "$ac_outfile"; then
6880 # The compiler can only warn and ignore the option if not recognized
6881 # So say no if there are warnings other than the usual output.
6882 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6885 lt_prog_compiler_pic_works=yes
6891 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6892 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6894 if test x"$lt_prog_compiler_pic_works" = xyes; then
6895 case $lt_prog_compiler_pic in
6897 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6900 lt_prog_compiler_pic=
6901 lt_prog_compiler_can_build_shared=no
6906 # For platforms which do not support PIC, -DPIC is meaningless:
6908 lt_prog_compiler_pic=
6911 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6916 # Check to make sure the static flag actually works.
6918 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6919 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6920 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6921 if test "${lt_prog_compiler_static_works+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 lt_prog_compiler_static_works=no
6925 save_LDFLAGS="$LDFLAGS"
6926 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6927 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6928 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6929 # The linker can only warn and ignore the option if not recognized
6930 # So say no if there are warnings
6931 if test -s conftest.err; then
6932 # Append any errors to the config.log.
6933 cat conftest.err 1>&5
6934 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6936 if diff conftest.exp conftest.er2 >/dev/null; then
6937 lt_prog_compiler_static_works=yes
6940 lt_prog_compiler_static_works=yes
6944 LDFLAGS="$save_LDFLAGS"
6947 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6948 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6950 if test x"$lt_prog_compiler_static_works" = xyes; then
6953 lt_prog_compiler_static=
6957 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6958 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6959 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 lt_cv_prog_compiler_c_o=no
6963 $rm -r conftest 2>/dev/null
6967 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6969 lt_compiler_flag="-o out/conftest2.$ac_objext"
6970 # Insert the option either (1) after the last *FLAGS variable, or
6971 # (2) before a word containing "conftest.", or (3) at the end.
6972 # Note that $ac_compile itself does not contain backslashes and begins
6973 # with a dollar sign (not a hyphen), so the echo should work correctly.
6974 lt_compile=`echo "$ac_compile" | $SED \
6975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6977 -e 's:$: $lt_compiler_flag:'`
6978 (eval echo "\"\$as_me:6978: $lt_compile\"" >&5)
6979 (eval "$lt_compile" 2>out/conftest.err)
6981 cat out/conftest.err >&5
6982 echo "$as_me:6982: \$? = $ac_status" >&5
6983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6985 # The compiler can only warn and ignore the option if not recognized
6986 # So say no if there are warnings
6987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6990 lt_cv_prog_compiler_c_o=yes
6995 # SGI C++ compiler will create directory out/ii_files/ for
6996 # template instantiation
6997 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6998 $rm out/* && rmdir out
7004 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7005 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7008 hard_links="nottested"
7009 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7010 # do not overwrite the value of need_locks provided by the user
7011 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7012 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7017 ln conftest.a conftest.b 2>&5 || hard_links=no
7018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7019 echo "$as_me:$LINENO: result: $hard_links" >&5
7020 echo "${ECHO_T}$hard_links" >&6
7021 if test "$hard_links" = no; then
7022 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7023 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7030 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7031 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7034 allow_undefined_flag=
7035 enable_shared_with_static_runtimes=no
7037 archive_expsym_cmds=
7038 old_archive_From_new_cmds=
7039 old_archive_from_expsyms_cmds=
7040 export_dynamic_flag_spec=
7041 whole_archive_flag_spec=
7042 thread_safe_flag_spec=
7043 hardcode_libdir_flag_spec=
7044 hardcode_libdir_flag_spec_ld=
7045 hardcode_libdir_separator=
7048 hardcode_shlibpath_var=unsupported
7049 link_all_deplibs=unknown
7050 hardcode_automatic=no
7053 always_export_symbols=no
7054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7055 # include_expsyms should be a list of space-separated symbols to be *always*
7056 # included in the symbol list
7058 # exclude_expsyms can be an extended regexp of symbols to exclude
7059 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7060 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7061 # as well as any symbol that contains `d'.
7062 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7063 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7064 # platforms (ab)use it in PIC code, but their linkers get confused if
7065 # the symbol is explicitly referenced. Since portable code cannot
7066 # rely on this symbol name, it's probably fine to never include it in
7067 # preloaded symbol tables.
7068 extract_expsyms_cmds=
7069 # Just being paranoid about ensuring that cc_basename is set.
7070 for cc_temp in $compiler""; do
7072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7078 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7081 cygwin* | mingw* | pw32*)
7082 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7083 # When not using gcc, we currently assume that we are using
7084 # Microsoft Visual C++.
7085 if test "$GCC" != yes; then
7090 # we just hope/assume this is gcc and not c89 (= MSVC++)
7099 if test "$with_gnu_ld" = yes; then
7100 # If archive_cmds runs LD, not CC, wlarc should be empty
7103 # Set some defaults for GNU ld with shared library support. These
7104 # are reset later if shared libraries are not supported. Putting them
7105 # here allows them to be overridden if necessary.
7106 runpath_var=LD_RUN_PATH
7107 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7108 export_dynamic_flag_spec='${wl}--export-dynamic'
7109 # ancient GNU ld didn't support --whole-archive et. al.
7110 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7111 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7113 whole_archive_flag_spec=
7115 supports_anon_versioning=no
7116 case `$LD -v 2>/dev/null` in
7117 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7118 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7119 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7120 *\ 2.11.*) ;; # other 2.11 versions
7121 *) supports_anon_versioning=yes ;;
7124 # See if GNU ld supports shared libraries.
7126 aix3* | aix4* | aix5*)
7127 # On AIX/PPC, the GNU linker is very broken
7128 if test "$host_cpu" != ia64; then
7132 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7133 *** to be unable to reliably create shared libraries on AIX.
7134 *** Therefore, libtool is disabling shared libraries support. If you
7135 *** really care for shared libraries, you may want to modify your PATH
7136 *** so that a non-GNU linker is found, and then restart.
7143 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)'
7144 hardcode_libdir_flag_spec='-L$libdir'
7145 hardcode_minus_L=yes
7147 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7148 # that the semantics of dynamic libraries on AmigaOS, at least up
7149 # to version 4, is to share data among multiple programs linked
7150 # with the same dynamic library. Since this doesn't match the
7151 # behavior of shared libraries on other platforms, we can't use
7157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7158 allow_undefined_flag=unsupported
7159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7160 # support --undefined. This deserves some investigation. FIXME
7161 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7167 cygwin* | mingw* | pw32*)
7168 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7169 # as there is no search path for DLLs.
7170 hardcode_libdir_flag_spec='-L$libdir'
7171 allow_undefined_flag=unsupported
7172 always_export_symbols=no
7173 enable_shared_with_static_runtimes=yes
7174 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7176 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7178 # If the export-symbols file already is a .def file (1st line
7179 # is EXPORTS), use it as is; otherwise, prepend...
7180 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7181 cp $export_symbols $output_objdir/$soname.def;
7183 echo EXPORTS > $output_objdir/$soname.def;
7184 cat $export_symbols >> $output_objdir/$soname.def;
7186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7194 hardcode_shlibpath_var=no
7195 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7196 export_dynamic_flag_spec='${wl}-E'
7197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7198 # Instead, shared libraries are loaded at an image base (0x10000000 by
7199 # default) and relocated if they conflict, which is a slow very memory
7200 # consuming and fragmenting process. To avoid this, we pick a random,
7201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7202 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7204 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7210 case $cc_basename,$host_cpu in
7211 pgcc*) # Portland Group C compiler
7212 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'
7213 tmp_addflag=' $pic_flag'
7215 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7216 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'
7217 tmp_addflag=' $pic_flag -Mnomain' ;;
7218 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7219 tmp_addflag=' -i_dynamic' ;;
7220 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7221 tmp_addflag=' -i_dynamic -nofor_main' ;;
7222 ifc* | ifort*) # Intel Fortran compiler
7223 tmp_addflag=' -nofor_main' ;;
7225 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7227 if test $supports_anon_versioning = yes; then
7228 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7230 $echo "local: *; };" >> $output_objdir/$libname.ver~
7231 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7239 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7240 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7249 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7253 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7254 *** create shared libraries on Solaris systems. Therefore, libtool
7255 *** is disabling shared libraries support. We urge you to upgrade GNU
7256 *** binutils to release 2.9.1 or newer. Another option is to modify
7257 *** your PATH or compiler configuration so that the native linker is
7258 *** used, and then restart.
7261 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7270 case `$LD -v 2>&1` in
7271 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7275 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7276 *** reliably create shared libraries on SCO systems. Therefore, libtool
7277 *** is disabling shared libraries support. We urge you to upgrade GNU
7278 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7279 *** your PATH or compiler configuration so that the native linker is
7280 *** used, and then restart.
7285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7286 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7300 hardcode_shlibpath_var=no
7304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7313 if test "$ld_shlibs" = no; then
7315 hardcode_libdir_flag_spec=
7316 export_dynamic_flag_spec=
7317 whole_archive_flag_spec=
7320 # PORTME fill in a description of your system's linker (not GNU ld)
7323 allow_undefined_flag=unsupported
7324 always_export_symbols=yes
7325 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'
7326 # Note: this linker hardcodes the directories in LIBPATH if there
7327 # are no directories specified by -L.
7328 hardcode_minus_L=yes
7329 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7330 # Neither direct hardcoding nor static linking is supported with a
7332 hardcode_direct=unsupported
7337 if test "$host_cpu" = ia64; then
7338 # On IA64, the linker does run time linking by default, so we don't
7339 # have to do anything special.
7340 aix_use_runtimelinking=no
7341 exp_sym_flag='-Bexport'
7344 # If we're using GNU nm, then we don't want the "-C" option.
7345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7346 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7347 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'
7349 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'
7351 aix_use_runtimelinking=no
7353 # Test if we are trying to use run time linking or normal
7354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7355 # need to do runtime linking.
7356 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7357 for ld_flag in $LDFLAGS; do
7358 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7359 aix_use_runtimelinking=yes
7366 exp_sym_flag='-bexport'
7367 no_entry_flag='-bnoentry'
7370 # When large executables or shared objects are built, AIX ld can
7371 # have problems creating the table of contents. If linking a library
7372 # or program results in "error TOC overflow" add -mminimal-toc to
7373 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7374 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7378 hardcode_libdir_separator=':'
7379 link_all_deplibs=yes
7381 if test "$GCC" = yes; then
7382 case $host_os in aix4.[012]|aix4.[012].*)
7383 # We only want to do this on AIX 4.2 and lower, the check
7384 # below for broken collect2 doesn't work under 4.3+
7385 collect2name=`${CC} -print-prog-name=collect2`
7386 if test -f "$collect2name" && \
7387 strings "$collect2name" | grep resolve_lib_name >/dev/null
7389 # We have reworked collect2
7392 # We have old collect2
7393 hardcode_direct=unsupported
7394 # It fails to find uninstalled libraries when the uninstalled
7395 # path is not listed in the libpath. Setting hardcode_minus_L
7396 # to unsupported forces relinking
7397 hardcode_minus_L=yes
7398 hardcode_libdir_flag_spec='-L$libdir'
7399 hardcode_libdir_separator=
7403 shared_flag='-shared'
7404 if test "$aix_use_runtimelinking" = yes; then
7405 shared_flag="$shared_flag "'${wl}-G'
7409 if test "$host_cpu" = ia64; then
7410 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7411 # chokes on -Wl,-G. The following line is correct:
7414 if test "$aix_use_runtimelinking" = yes; then
7415 shared_flag='${wl}-G'
7417 shared_flag='${wl}-bM:SRE'
7422 # It seems that -bexpall does not export symbols beginning with
7423 # underscore (_), so it is better to generate a list of symbols to export.
7424 always_export_symbols=yes
7425 if test "$aix_use_runtimelinking" = yes; then
7426 # Warning - without using the other runtime loading flags (-brtl),
7427 # -berok will link without error, but may produce a broken library.
7428 allow_undefined_flag='-berok'
7429 # Determine the default libpath from the value encoded in an empty executable.
7430 cat >conftest.$ac_ext <<_ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7447 (eval $ac_link) 2>conftest.er1
7449 grep -v '^ *+' conftest.er1 >conftest.err
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } &&
7454 { ac_try='test -z "$ac_c_werror_flag"
7455 || test ! -s conftest.err'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; } &&
7461 { ac_try='test -s conftest$ac_exeext'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; }; then
7468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7470 # Check for a 64-bit object if we didn't find anything.
7471 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; }
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7478 rm -f conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7482 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7483 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7485 if test "$host_cpu" = ia64; then
7486 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7487 allow_undefined_flag="-z nodefs"
7488 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7490 # Determine the default libpath from the value encoded in an empty executable.
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>conftest.er1
7510 grep -v '^ *+' conftest.er1 >conftest.err
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
7515 { ac_try='test -z "$ac_c_werror_flag"
7516 || test ! -s conftest.err'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; } &&
7522 { ac_try='test -s conftest$ac_exeext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7531 # Check for a 64-bit object if we didn't find anything.
7532 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; }
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7539 rm -f conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext
7541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7543 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7544 # Warning - without using the other run time loading flags,
7545 # -berok will link without error, but may produce a broken library.
7546 no_undefined_flag=' ${wl}-bernotok'
7547 allow_undefined_flag=' ${wl}-berok'
7548 # Exported symbols can be pulled into shared objects from archives
7549 whole_archive_flag_spec='$convenience'
7550 archive_cmds_need_lc=yes
7551 # This is similar to how AIX traditionally builds its shared libraries.
7552 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7558 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)'
7559 hardcode_libdir_flag_spec='-L$libdir'
7560 hardcode_minus_L=yes
7561 # see comment about different semantics on the GNU ld section
7566 export_dynamic_flag_spec=-rdynamic
7569 cygwin* | mingw* | pw32*)
7570 # When not using gcc, we currently assume that we are using
7571 # Microsoft Visual C++.
7572 # hardcode_libdir_flag_spec is actually meaningless, as there is
7573 # no search path for DLLs.
7574 hardcode_libdir_flag_spec=' '
7575 allow_undefined_flag=unsupported
7576 # Tell ltmain to make .lib files, not .a files.
7578 # Tell ltmain to make .dll files, not .so files.
7580 # FIXME: Setting linknames here is a bad hack.
7581 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7582 # The linker will automatically build a .lib file if we build a DLL.
7583 old_archive_From_new_cmds='true'
7584 # FIXME: Should let the user specify the lib program.
7585 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7586 fix_srcfile_path='`cygpath -w "$srcfile"`'
7587 enable_shared_with_static_runtimes=yes
7590 darwin* | rhapsody*)
7592 rhapsody* | darwin1.[012])
7593 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7596 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7597 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7599 case ${MACOSX_DEPLOYMENT_TARGET} in
7601 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7604 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7610 archive_cmds_need_lc=no
7612 hardcode_automatic=yes
7613 hardcode_shlibpath_var=unsupported
7614 whole_archive_flag_spec=''
7615 link_all_deplibs=yes
7616 if test "$GCC" = yes ; then
7617 output_verbose_link_cmd='echo'
7618 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7619 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7621 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}'
7622 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}'
7624 case $cc_basename in
7626 output_verbose_link_cmd='echo'
7627 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7628 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7629 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7630 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}'
7631 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}'
7641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7642 hardcode_libdir_flag_spec='-L$libdir'
7643 hardcode_shlibpath_var=no
7650 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7651 # support. Future versions do this automatically, but an explicit c++rt0.o
7652 # does not break anything, and helps significantly (at the cost of a little
7655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7656 hardcode_libdir_flag_spec='-R$libdir'
7658 hardcode_shlibpath_var=no
7661 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7665 hardcode_minus_L=yes
7666 hardcode_shlibpath_var=no
7669 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7670 freebsd* | kfreebsd*-gnu | dragonfly*)
7671 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7672 hardcode_libdir_flag_spec='-R$libdir'
7674 hardcode_shlibpath_var=no
7678 if test "$GCC" = yes; then
7679 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'
7681 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'
7683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7684 hardcode_libdir_separator=:
7687 # hardcode_minus_L: Not really in the search PATH,
7688 # but as the default location of the library.
7689 hardcode_minus_L=yes
7690 export_dynamic_flag_spec='${wl}-E'
7694 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7697 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7699 if test "$with_gnu_ld" = no; then
7700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7701 hardcode_libdir_separator=:
7704 export_dynamic_flag_spec='${wl}-E'
7706 # hardcode_minus_L: Not really in the search PATH,
7707 # but as the default location of the library.
7708 hardcode_minus_L=yes
7713 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7716 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7722 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7728 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7734 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7738 if test "$with_gnu_ld" = no; then
7739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7740 hardcode_libdir_separator=:
7744 hardcode_libdir_flag_spec_ld='+b $libdir'
7746 hardcode_shlibpath_var=no
7750 export_dynamic_flag_spec='${wl}-E'
7752 # hardcode_minus_L: Not really in the search PATH,
7753 # but as the default location of the library.
7754 hardcode_minus_L=yes
7760 irix5* | irix6* | nonstopux*)
7761 if test "$GCC" = yes; then
7762 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'
7764 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'
7765 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7768 hardcode_libdir_separator=:
7769 link_all_deplibs=yes
7773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7776 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7778 hardcode_libdir_flag_spec='-R$libdir'
7780 hardcode_shlibpath_var=no
7784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7787 hardcode_libdir_separator=:
7788 hardcode_shlibpath_var=no
7793 hardcode_shlibpath_var=no
7794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7796 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7797 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7798 export_dynamic_flag_spec='${wl}-E'
7801 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7803 hardcode_libdir_flag_spec='-R$libdir'
7806 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7807 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7814 hardcode_libdir_flag_spec='-L$libdir'
7815 hardcode_minus_L=yes
7816 allow_undefined_flag=unsupported
7817 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'
7818 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7822 if test "$GCC" = yes; then
7823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7824 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'
7826 allow_undefined_flag=' -expect_unresolved \*'
7827 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'
7829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7830 hardcode_libdir_separator=:
7833 osf4* | osf5*) # as osf3* with the addition of -msym flag
7834 if test "$GCC" = yes; then
7835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7836 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'
7837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7839 allow_undefined_flag=' -expect_unresolved \*'
7840 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'
7841 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7842 $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'
7844 # Both c and cxx compiler support -rpath directly
7845 hardcode_libdir_flag_spec='-rpath $libdir'
7847 hardcode_libdir_separator=:
7851 no_undefined_flag=' -z text'
7852 if test "$GCC" = yes; then
7854 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7855 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7856 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7859 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7860 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7861 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7863 hardcode_libdir_flag_spec='-R$libdir'
7864 hardcode_shlibpath_var=no
7866 solaris2.[0-5] | solaris2.[0-5].*) ;;
7868 # The compiler driver will combine linker options so we
7869 # cannot just pass the convience library names through
7870 # without $wl, iff we do not link with $LD.
7871 # Luckily, gcc supports the same syntax we need for Sun Studio.
7872 # Supported since Solaris 2.6 (maybe 2.5.1?)
7875 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7877 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' ;;
7880 link_all_deplibs=yes
7884 if test "x$host_vendor" = xsequent; then
7885 # Use $CC to link under sequent, because it throws in some extra .o
7886 # files that make .init and .fini sections work.
7887 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7889 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7891 hardcode_libdir_flag_spec='-L$libdir'
7893 hardcode_minus_L=yes
7894 hardcode_shlibpath_var=no
7898 case $host_vendor in
7900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7901 hardcode_direct=yes # is this really true???
7904 ## LD is ld it makes a PLAMLIB
7905 ## CC just makes a GrossModule.
7906 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7907 reload_cmds='$CC -r -o $output$reload_objs'
7911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7912 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7915 runpath_var='LD_RUN_PATH'
7916 hardcode_shlibpath_var=no
7920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7921 hardcode_shlibpath_var=no
7922 export_dynamic_flag_spec='-Bexport'
7926 if test -d /usr/nec; then
7927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7928 hardcode_shlibpath_var=no
7929 runpath_var=LD_RUN_PATH
7930 hardcode_runpath_var=yes
7935 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7936 no_undefined_flag='${wl}-z,text'
7937 archive_cmds_need_lc=no
7938 hardcode_shlibpath_var=no
7939 runpath_var='LD_RUN_PATH'
7941 if test "$GCC" = yes; then
7942 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7943 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7946 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7950 sysv5* | sco3.2v5* | sco5v6*)
7951 # Note: We can NOT use -z defs as we might desire, because we do not
7952 # link with -lc, and that would cause any symbols used from libc to
7953 # always be unresolved, which means just about no library would
7954 # ever link correctly. If we're not using GNU ld we use -z text
7955 # though, which does catch some bad symbols but isn't as heavy-handed
7957 no_undefined_flag='${wl}-z,text'
7958 allow_undefined_flag='${wl}-z,nodefs'
7959 archive_cmds_need_lc=no
7960 hardcode_shlibpath_var=no
7961 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7962 hardcode_libdir_separator=':'
7963 link_all_deplibs=yes
7964 export_dynamic_flag_spec='${wl}-Bexport'
7965 runpath_var='LD_RUN_PATH'
7967 if test "$GCC" = yes; then
7968 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7971 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7978 hardcode_libdir_flag_spec='-L$libdir'
7979 hardcode_shlibpath_var=no
7988 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7989 echo "${ECHO_T}$ld_shlibs" >&6
7990 test "$ld_shlibs" = no && can_build_shared=no
7993 # Do we need to explicitly link libc?
7995 case "x$archive_cmds_need_lc" in
7997 # Assume -lc should be added
7998 archive_cmds_need_lc=yes
8000 if test "$enable_shared" = yes && test "$GCC" = yes; then
8001 case $archive_cmds in
8003 # FIXME: we may have to deal with multi-command sequences.
8006 # Test whether the compiler implicitly links with -lc since on some
8007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8008 # to ld, don't add -lc before -lgcc.
8009 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8010 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } 2>conftest.err; then
8021 libobjs=conftest.$ac_objext
8023 wl=$lt_prog_compiler_wl
8024 pic_flag=$lt_prog_compiler_pic
8030 lt_save_allow_undefined_flag=$allow_undefined_flag
8031 allow_undefined_flag=
8032 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8033 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }
8038 archive_cmds_need_lc=no
8040 archive_cmds_need_lc=yes
8042 allow_undefined_flag=$lt_save_allow_undefined_flag
8044 cat conftest.err 1>&5
8047 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8048 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8055 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8056 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8058 libname_spec='lib$name'
8066 shlibpath_overrides_runpath=unknown
8068 dynamic_linker="$host_os ld.so"
8069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8070 if test "$GCC" = yes; then
8071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8072 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8073 # if the path contains ";" then we assume it to be the separator
8074 # otherwise default to the standard path separator (i.e. ":") - it is
8075 # assumed that no part of a normal pathname contains ";" but that should
8076 # okay in the real world where ";" in dirpaths is itself problematic.
8077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8084 need_lib_prefix=unknown
8085 hardcode_into_libs=no
8087 # when you set need_version to no, make sure it does not cause -set_version
8088 # flags to be left without arguments
8089 need_version=unknown
8094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8095 shlibpath_var=LIBPATH
8097 # AIX 3 has no versioning support, so we append a major version to the name.
8098 soname_spec='${libname}${release}${shared_ext}$major'
8105 hardcode_into_libs=yes
8106 if test "$host_cpu" = ia64; then
8107 # AIX 5 supports IA64
8108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8109 shlibpath_var=LD_LIBRARY_PATH
8111 # With GCC up to 2.95.x, collect2 would create an import file
8112 # for dependence libraries. The import file would start with
8113 # the line `#! .'. This would cause the generated library to
8114 # depend on `.', always an invalid library. This was fixed in
8115 # development snapshots of GCC prior to 3.0.
8117 aix4 | aix4.[01] | aix4.[01].*)
8118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8120 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8128 # soname into executable. Probably we can add versioning support to
8129 # collect2, so additional links can be useful in future.
8130 if test "$aix_use_runtimelinking" = yes; then
8131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8132 # instead of lib<name>.a to let people know that these are not
8133 # typical AIX shared libraries.
8134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8136 # We preserve .a as extension for shared libraries through AIX4.2
8137 # and later when we are not doing run time linking.
8138 library_names_spec='${libname}${release}.a $libname.a'
8139 soname_spec='${libname}${release}${shared_ext}$major'
8141 shlibpath_var=LIBPATH
8146 library_names_spec='$libname.ixlibrary $libname.a'
8147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8148 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'
8152 library_names_spec='${libname}${shared_ext}'
8153 dynamic_linker="$host_os ld.so"
8154 shlibpath_var=LIBRARY_PATH
8160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161 soname_spec='${libname}${release}${shared_ext}$major'
8162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8163 shlibpath_var=LD_LIBRARY_PATH
8164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8166 # the default ld.so.conf also contains /usr/contrib/lib and
8167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8168 # libtool to hard-code these into programs
8171 cygwin* | mingw* | pw32*)
8172 version_type=windows
8177 case $GCC,$host_os in
8178 yes,cygwin* | yes,mingw* | yes,pw32*)
8179 library_names_spec='$libname.dll.a'
8180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8181 postinstall_cmds='base_file=`basename \${file}`~
8182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8183 dldir=$destdir/`dirname \$dlpath`~
8184 test -d \$dldir || mkdir -p \$dldir~
8185 $install_prog $dir/$dlname \$dldir/$dlname~
8186 chmod a+x \$dldir/$dlname'
8187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8188 dlpath=$dir/\$dldll~
8190 shlibpath_overrides_runpath=yes
8194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8195 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8196 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8199 # MinGW DLLs use traditional 'lib' prefix
8200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8202 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8203 # It is most probably a Windows format PATH printed by
8204 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8205 # path with ; separators, and with drive letters. We can handle the
8206 # drive letters (cygwin fileutils understands them), so leave them,
8207 # especially as we might pass files found there to a mingw objdump,
8208 # which wouldn't understand a cygwinified path. Ahh.
8209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8215 # pw32 DLLs use 'pw' prefix rather than 'lib'
8216 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8222 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8225 dynamic_linker='Win32 ld.exe'
8226 # FIXME: first we should search . and the directory the executable is in
8230 darwin* | rhapsody*)
8231 dynamic_linker="$host_os dyld"
8235 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8236 soname_spec='${libname}${release}${major}$shared_ext'
8237 shlibpath_overrides_runpath=yes
8238 shlibpath_var=DYLD_LIBRARY_PATH
8239 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8240 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8241 if test "$GCC" = yes; then
8242 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"`
8244 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8254 soname_spec='${libname}${release}${shared_ext}$major'
8255 shlibpath_var=LD_LIBRARY_PATH
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 shlibpath_var=LD_LIBRARY_PATH
8269 shlibpath_overrides_runpath=no
8270 hardcode_into_libs=yes
8271 dynamic_linker='GNU ld.so'
8274 freebsd* | dragonfly*)
8275 # DragonFly does not have aout. When/if they implement a new
8276 # versioning mechanism, adjust this.
8277 if test -x /usr/bin/objformat; then
8278 objformat=`/usr/bin/objformat`
8281 freebsd[123]*) objformat=aout ;;
8285 version_type=freebsd-$objformat
8286 case $version_type in
8288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8297 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=yes
8302 freebsd3.[01]* | freebsdelf3.[01]*)
8303 shlibpath_overrides_runpath=yes
8304 hardcode_into_libs=yes
8306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8308 shlibpath_overrides_runpath=no
8309 hardcode_into_libs=yes
8311 freebsd*) # from 4.6 on
8312 shlibpath_overrides_runpath=yes
8313 hardcode_into_libs=yes
8322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8323 soname_spec='${libname}${release}${shared_ext}$major'
8324 shlibpath_var=LD_LIBRARY_PATH
8325 hardcode_into_libs=yes
8328 hpux9* | hpux10* | hpux11*)
8329 # Give a soname corresponding to the major version so that dld.sl refuses to
8330 # link against other versions.
8337 hardcode_into_libs=yes
8338 dynamic_linker="$host_os dld.so"
8339 shlibpath_var=LD_LIBRARY_PATH
8340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8342 soname_spec='${libname}${release}${shared_ext}$major'
8343 if test "X$HPUX_IA64_MODE" = X32; then
8344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8352 hardcode_into_libs=yes
8353 dynamic_linker="$host_os dld.sl"
8354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8357 soname_spec='${libname}${release}${shared_ext}$major'
8358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8363 dynamic_linker="$host_os dld.sl"
8364 shlibpath_var=SHLIB_PATH
8365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8367 soname_spec='${libname}${release}${shared_ext}$major'
8370 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8371 postinstall_cmds='chmod 555 $lib'
8378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8379 soname_spec='${libname}${release}${shared_ext}$major'
8380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8381 shlibpath_var=LD_LIBRARY_PATH
8382 shlibpath_overrides_runpath=no
8383 hardcode_into_libs=yes
8386 irix5* | irix6* | nonstopux*)
8388 nonstopux*) version_type=nonstopux ;;
8390 if test "$lt_cv_prog_gnu_ld" = yes; then
8398 soname_spec='${libname}${release}${shared_ext}$major'
8399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8401 irix5* | nonstopux*)
8405 case $LD in # libtool.m4 will add one of these switches to LD
8406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8407 libsuff= shlibsuff= libmagic=32-bit;;
8408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8409 libsuff=32 shlibsuff=N32 libmagic=N32;;
8410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8412 *) libsuff= shlibsuff= libmagic=never-match;;
8416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8417 shlibpath_overrides_runpath=no
8418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8420 hardcode_into_libs=yes
8423 # No shared lib support for Linux oldld, aout, or coff.
8424 linux*oldld* | linux*aout* | linux*coff*)
8428 # This must be Linux ELF.
8433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8434 soname_spec='${libname}${release}${shared_ext}$major'
8435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8436 shlibpath_var=LD_LIBRARY_PATH
8437 shlibpath_overrides_runpath=no
8438 # This implies no fast_install, which is unacceptable.
8439 # Some rework will be needed to allow for fast_install
8440 # before this can be enabled.
8441 hardcode_into_libs=yes
8443 # find out which ABI we are using
8446 x86_64*|s390x*|powerpc64*)
8447 echo '#line 8447 "configure"' > conftest.$ac_ext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449 (eval $ac_compile) 2>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; then
8453 case `/usr/bin/file conftest.$ac_objext` in
8456 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8464 # Append ld.so.conf contents to the search path
8465 if test -f /etc/ld.so.conf; then
8466 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8467 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8470 # We used to test for /lib/ld.so.1 and disable shared libraries on
8471 # powerpc, because MkLinux only supported shared libraries with the
8472 # GNU dynamic linker. Since this was broken with cross compilers,
8473 # most powerpc-linux boxes support dynamic linking these days and
8474 # people can always --disable-shared, the test was removed, and we
8475 # assume the GNU/Linux dynamic linker is in use.
8476 dynamic_linker='GNU/Linux ld.so'
8483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8484 soname_spec='${libname}${release}${shared_ext}$major'
8485 shlibpath_var=LD_LIBRARY_PATH
8486 shlibpath_overrides_runpath=no
8487 hardcode_into_libs=yes
8488 dynamic_linker='GNU ld.so'
8495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8498 dynamic_linker='NetBSD (a.out) ld.so'
8500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8501 soname_spec='${libname}${release}${shared_ext}$major'
8502 dynamic_linker='NetBSD ld.elf_so'
8504 shlibpath_var=LD_LIBRARY_PATH
8505 shlibpath_overrides_runpath=yes
8506 hardcode_into_libs=yes
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8512 shlibpath_var=LD_LIBRARY_PATH
8513 shlibpath_overrides_runpath=yes
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8521 soname_spec='${libname}${release}${shared_ext}$major'
8522 shlibpath_var=LD_LIBRARY_PATH
8523 shlibpath_overrides_runpath=yes
8528 sys_lib_dlsearch_path_spec="/usr/lib"
8530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8533 *) need_version=no ;;
8535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8537 shlibpath_var=LD_LIBRARY_PATH
8538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8540 openbsd2.[89] | openbsd2.[89].*)
8541 shlibpath_overrides_runpath=no
8544 shlibpath_overrides_runpath=yes
8548 shlibpath_overrides_runpath=yes
8553 libname_spec='$name'
8556 library_names_spec='$libname${shared_ext} $libname.a'
8557 dynamic_linker='OS/2 ld.exe'
8558 shlibpath_var=LIBPATH
8561 osf3* | osf4* | osf5*)
8565 soname_spec='${libname}${release}${shared_ext}$major'
8566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8567 shlibpath_var=LD_LIBRARY_PATH
8568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8577 soname_spec='${libname}${release}${shared_ext}$major'
8578 shlibpath_var=LD_LIBRARY_PATH
8579 shlibpath_overrides_runpath=yes
8580 hardcode_into_libs=yes
8581 # ldd complains unless libraries are executable
8582 postinstall_cmds='chmod +x $lib'
8587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8589 shlibpath_var=LD_LIBRARY_PATH
8590 shlibpath_overrides_runpath=yes
8591 if test "$with_gnu_ld" = yes; then
8599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8600 soname_spec='${libname}${release}${shared_ext}$major'
8601 shlibpath_var=LD_LIBRARY_PATH
8602 case $host_vendor in
8604 shlibpath_overrides_runpath=no
8606 export_dynamic_flag_spec='${wl}-Blargedynsym'
8607 runpath_var=LD_RUN_PATH
8615 shlibpath_overrides_runpath=no
8616 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8622 if test -d /usr/nec ;then
8624 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8625 soname_spec='$libname${shared_ext}.$major'
8626 shlibpath_var=LD_LIBRARY_PATH
8630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8631 version_type=freebsd-elf
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8635 soname_spec='${libname}${release}${shared_ext}$major'
8636 shlibpath_var=LD_LIBRARY_PATH
8637 hardcode_into_libs=yes
8638 if test "$with_gnu_ld" = yes; then
8639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8640 shlibpath_overrides_runpath=no
8642 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8643 shlibpath_overrides_runpath=yes
8646 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8650 sys_lib_dlsearch_path_spec='/usr/lib'
8655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8656 soname_spec='${libname}${release}${shared_ext}$major'
8657 shlibpath_var=LD_LIBRARY_PATH
8664 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8665 echo "${ECHO_T}$dynamic_linker" >&6
8666 test "$dynamic_linker" = no && can_build_shared=no
8668 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8669 if test "$GCC" = yes; then
8670 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8673 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8676 if test -n "$hardcode_libdir_flag_spec" || \
8677 test -n "$runpath_var" || \
8678 test "X$hardcode_automatic" = "Xyes" ; then
8680 # We can hardcode non-existant directories.
8681 if test "$hardcode_direct" != no &&
8682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8683 # have to relink, otherwise we might link with an installed library
8684 # when we should be linking with a yet-to-be-installed one
8685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8686 test "$hardcode_minus_L" != no; then
8687 # Linking always hardcodes the temporary library directory.
8688 hardcode_action=relink
8690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8691 hardcode_action=immediate
8694 # We cannot hardcode anything, or else we can only hardcode existing
8696 hardcode_action=unsupported
8698 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8699 echo "${ECHO_T}$hardcode_action" >&6
8701 if test "$hardcode_action" = relink; then
8702 # Fast installation is not supported
8703 enable_fast_install=no
8704 elif test "$shlibpath_overrides_runpath" = yes ||
8705 test "$enable_shared" = no; then
8706 # Fast installation is not necessary
8707 enable_fast_install=needless
8712 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8713 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8714 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8717 echo "$as_me:$LINENO: result: yes" >&5
8718 echo "${ECHO_T}yes" >&6
8720 # FIXME - insert some real tests, host_os isn't really good enough
8723 if test -n "$STRIP" ; then
8724 striplib="$STRIP -x"
8725 echo "$as_me:$LINENO: result: yes" >&5
8726 echo "${ECHO_T}yes" >&6
8728 echo "$as_me:$LINENO: result: no" >&5
8729 echo "${ECHO_T}no" >&6
8733 echo "$as_me:$LINENO: result: no" >&5
8734 echo "${ECHO_T}no" >&6
8739 if test "x$enable_dlopen" != xyes; then
8740 enable_dlopen=unknown
8741 enable_dlopen_self=unknown
8742 enable_dlopen_self_static=unknown
8749 lt_cv_dlopen="load_add_on"
8751 lt_cv_dlopen_self=yes
8755 lt_cv_dlopen="LoadLibrary"
8760 lt_cv_dlopen="dlopen"
8765 # if libdl is installed we need to link against it
8766 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 ac_check_lib_save_LIBS=$LIBS
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8780 /* Override any gcc2 internal prototype to avoid an error. */
8784 /* We use char because int might match the return type of a gcc2
8785 builtin and then its argument prototype would still apply. */
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>conftest.er1
8799 grep -v '^ *+' conftest.er1 >conftest.err
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try='test -z "$ac_c_werror_flag"
8805 || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_cv_lib_dl_dlopen=yes
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8822 ac_cv_lib_dl_dlopen=no
8824 rm -f conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8826 LIBS=$ac_check_lib_save_LIBS
8828 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8830 if test $ac_cv_lib_dl_dlopen = yes; then
8831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8836 lt_cv_dlopen_self=yes
8843 echo "$as_me:$LINENO: checking for shl_load" >&5
8844 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8845 if test "${ac_cv_func_shl_load+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8856 #define shl_load innocuous_shl_load
8858 /* System header to define __stub macros and hopefully few prototypes,
8859 which can conflict with char shl_load (); below.
8860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8861 <limits.h> exists even on freestanding compilers. */
8864 # include <limits.h>
8866 # include <assert.h>
8871 /* Override any gcc2 internal prototype to avoid an error. */
8876 /* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8879 /* The GNU C library defines this for functions which it implements
8880 to always fail with ENOSYS. Some functions are actually named
8881 something starting with __ and the normal name is an alias. */
8882 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8885 char (*f) () = shl_load;
8894 return f != shl_load;
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>conftest.er1
8903 grep -v '^ *+' conftest.er1 >conftest.err
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -z "$ac_c_werror_flag"
8909 || test ! -s conftest.err'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_func_shl_load=yes
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 ac_cv_func_shl_load=no
8928 rm -f conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8931 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8932 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8933 if test $ac_cv_func_shl_load = yes; then
8934 lt_cv_dlopen="shl_load"
8936 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8937 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8938 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 ac_check_lib_save_LIBS=$LIBS
8943 cat >conftest.$ac_ext <<_ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8950 /* Override any gcc2 internal prototype to avoid an error. */
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>conftest.er1
8969 grep -v '^ *+' conftest.er1 >conftest.err
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_lib_dld_shl_load=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_cv_lib_dld_shl_load=no
8994 rm -f conftest.err conftest.$ac_objext \
8995 conftest$ac_exeext conftest.$ac_ext
8996 LIBS=$ac_check_lib_save_LIBS
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8999 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9000 if test $ac_cv_lib_dld_shl_load = yes; then
9001 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9003 echo "$as_me:$LINENO: checking for dlopen" >&5
9004 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9005 if test "${ac_cv_func_dlopen+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 cat >conftest.$ac_ext <<_ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9016 #define dlopen innocuous_dlopen
9018 /* System header to define __stub macros and hopefully few prototypes,
9019 which can conflict with char dlopen (); below.
9020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9021 <limits.h> exists even on freestanding compilers. */
9024 # include <limits.h>
9026 # include <assert.h>
9031 /* Override any gcc2 internal prototype to avoid an error. */
9036 /* We use char because int might match the return type of a gcc2
9037 builtin and then its argument prototype would still apply. */
9039 /* The GNU C library defines this for functions which it implements
9040 to always fail with ENOSYS. Some functions are actually named
9041 something starting with __ and the normal name is an alias. */
9042 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9045 char (*f) () = dlopen;
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>conftest.er1
9063 grep -v '^ *+' conftest.er1 >conftest.err
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_c_werror_flag"
9069 || test ! -s conftest.err'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try='test -s conftest$ac_exeext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_cv_func_dlopen=yes
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_cv_func_dlopen=no
9088 rm -f conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9091 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9092 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9093 if test $ac_cv_func_dlopen = yes; then
9094 lt_cv_dlopen="dlopen"
9096 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9097 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 ac_check_lib_save_LIBS=$LIBS
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9110 /* Override any gcc2 internal prototype to avoid an error. */
9114 /* We use char because int might match the return type of a gcc2
9115 builtin and then its argument prototype would still apply. */
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127 (eval $ac_link) 2>conftest.er1
9129 grep -v '^ *+' conftest.er1 >conftest.err
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -z "$ac_c_werror_flag"
9135 || test ! -s conftest.err'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest$ac_exeext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_lib_dl_dlopen=yes
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 ac_cv_lib_dl_dlopen=no
9154 rm -f conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext conftest.$ac_ext
9156 LIBS=$ac_check_lib_save_LIBS
9158 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9160 if test $ac_cv_lib_dl_dlopen = yes; then
9161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9163 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9164 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9165 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 ac_check_lib_save_LIBS=$LIBS
9170 cat >conftest.$ac_ext <<_ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9177 /* Override any gcc2 internal prototype to avoid an error. */
9181 /* We use char because int might match the return type of a gcc2
9182 builtin and then its argument prototype would still apply. */
9192 rm -f conftest.$ac_objext conftest$ac_exeext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194 (eval $ac_link) 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_lib_svld_dlopen=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_cv_lib_svld_dlopen=no
9221 rm -f conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 LIBS=$ac_check_lib_save_LIBS
9225 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9226 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9227 if test $ac_cv_lib_svld_dlopen = yes; then
9228 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9230 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9231 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9232 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 ac_check_lib_save_LIBS=$LIBS
9237 cat >conftest.$ac_ext <<_ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9244 /* Override any gcc2 internal prototype to avoid an error. */
9248 /* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9259 rm -f conftest.$ac_objext conftest$ac_exeext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261 (eval $ac_link) 2>conftest.er1
9263 grep -v '^ *+' conftest.er1 >conftest.err
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try='test -z "$ac_c_werror_flag"
9269 || test ! -s conftest.err'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; } &&
9275 { ac_try='test -s conftest$ac_exeext'
9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 ac_cv_lib_dld_dld_link=yes
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_cv_lib_dld_dld_link=no
9288 rm -f conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290 LIBS=$ac_check_lib_save_LIBS
9292 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9293 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9294 if test $ac_cv_lib_dld_dld_link = yes; then
9295 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9316 if test "x$lt_cv_dlopen" != xno; then
9322 case $lt_cv_dlopen in
9324 save_CPPFLAGS="$CPPFLAGS"
9325 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9327 save_LDFLAGS="$LDFLAGS"
9328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9331 LIBS="$lt_cv_dlopen_libs $LIBS"
9333 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9334 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9335 if test "${lt_cv_dlopen_self+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 if test "$cross_compiling" = yes; then :
9339 lt_cv_dlopen_self=cross
9341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9342 lt_status=$lt_dlunknown
9343 cat > conftest.$ac_ext <<EOF
9344 #line 9344 "configure"
9345 #include "confdefs.h"
9354 # define LT_DLGLOBAL RTLD_GLOBAL
9357 # define LT_DLGLOBAL DL_GLOBAL
9359 # define LT_DLGLOBAL 0
9363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9364 find out it does not work in some platform. */
9365 #ifndef LT_DLLAZY_OR_NOW
9367 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9370 # define LT_DLLAZY_OR_NOW DL_LAZY
9373 # define LT_DLLAZY_OR_NOW RTLD_NOW
9376 # define LT_DLLAZY_OR_NOW DL_NOW
9378 # define LT_DLLAZY_OR_NOW 0
9386 extern "C" void exit (int);
9389 void fnord() { int i=42;}
9392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9393 int status = $lt_dlunknown;
9397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9398 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9399 /* dlclose (self); */
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9412 (./conftest; exit; ) >&5 2>/dev/null
9415 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9416 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9417 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9420 # compilation failed
9421 lt_cv_dlopen_self=no
9428 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9429 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9431 if test "x$lt_cv_dlopen_self" = xyes; then
9432 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9433 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9434 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9435 if test "${lt_cv_dlopen_self_static+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 if test "$cross_compiling" = yes; then :
9439 lt_cv_dlopen_self_static=cross
9441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9442 lt_status=$lt_dlunknown
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9444 "configure"
9445 #include "confdefs.h"
9454 # define LT_DLGLOBAL RTLD_GLOBAL
9457 # define LT_DLGLOBAL DL_GLOBAL
9459 # define LT_DLGLOBAL 0
9463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9464 find out it does not work in some platform. */
9465 #ifndef LT_DLLAZY_OR_NOW
9467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9470 # define LT_DLLAZY_OR_NOW DL_LAZY
9473 # define LT_DLLAZY_OR_NOW RTLD_NOW
9476 # define LT_DLLAZY_OR_NOW DL_NOW
9478 # define LT_DLLAZY_OR_NOW 0
9486 extern "C" void exit (int);
9489 void fnord() { int i=42;}
9492 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9493 int status = $lt_dlunknown;
9497 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9498 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9499 /* dlclose (self); */
9507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9508 (eval $ac_link) 2>&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9512 (./conftest; exit; ) >&5 2>/dev/null
9515 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9516 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9517 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9520 # compilation failed
9521 lt_cv_dlopen_self_static=no
9528 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9529 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9532 CPPFLAGS="$save_CPPFLAGS"
9533 LDFLAGS="$save_LDFLAGS"
9538 case $lt_cv_dlopen_self in
9539 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9540 *) enable_dlopen_self=unknown ;;
9543 case $lt_cv_dlopen_self_static in
9544 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9545 *) enable_dlopen_self_static=unknown ;;
9550 # Report which library types will actually be built
9551 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9552 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9553 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9554 echo "${ECHO_T}$can_build_shared" >&6
9556 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9557 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9558 test "$can_build_shared" = "no" && enable_shared=no
9560 # On AIX, shared libraries and static libraries use the same namespace, and
9561 # are all built from PIC.
9564 test "$enable_shared" = yes && enable_static=no
9565 if test -n "$RANLIB"; then
9566 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9567 postinstall_cmds='$RANLIB $lib'
9572 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9573 test "$enable_shared" = yes && enable_static=no
9577 echo "$as_me:$LINENO: result: $enable_shared" >&5
9578 echo "${ECHO_T}$enable_shared" >&6
9580 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9581 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9582 # Make sure either enable_shared or enable_static is yes.
9583 test "$enable_shared" = yes || enable_static=yes
9584 echo "$as_me:$LINENO: result: $enable_static" >&5
9585 echo "${ECHO_T}$enable_static" >&6
9587 # The else clause should only fire when bootstrapping the
9588 # libtool distribution, otherwise you forgot to ship ltmain.sh
9589 # with your package, and you will get complaints that there are
9590 # no rules to generate ltmain.sh.
9591 if test -f "$ltmain"; then
9592 # See if we are running on zsh, and set the options which allow our commands through
9593 # without removal of \ escapes.
9594 if test -n "${ZSH_VERSION+set}" ; then
9595 setopt NO_GLOB_SUBST
9597 # Now quote all the things that may contain metacharacters while being
9598 # careful not to overquote the AC_SUBSTed values. We take copies of the
9599 # variables and quote the copies for generation of the libtool script.
9600 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9602 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9603 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9604 deplibs_check_method reload_flag reload_cmds need_locks \
9605 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9606 lt_cv_sys_global_symbol_to_c_name_address \
9607 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9608 old_postinstall_cmds old_postuninstall_cmds \
9612 lt_prog_compiler_wl \
9613 lt_prog_compiler_pic \
9614 lt_prog_compiler_static \
9615 lt_prog_compiler_no_builtin_flag \
9616 export_dynamic_flag_spec \
9617 thread_safe_flag_spec \
9618 whole_archive_flag_spec \
9619 enable_shared_with_static_runtimes \
9621 old_archive_from_new_cmds \
9626 compiler_lib_search_path \
9628 archive_expsym_cmds \
9630 postuninstall_cmds \
9631 old_archive_from_expsyms_cmds \
9632 allow_undefined_flag \
9634 export_symbols_cmds \
9635 hardcode_libdir_flag_spec \
9636 hardcode_libdir_flag_spec_ld \
9637 hardcode_libdir_separator \
9638 hardcode_automatic \
9640 module_expsym_cmds \
9641 lt_cv_prog_compiler_c_o \
9646 old_archive_cmds | \
9647 old_archive_from_new_cmds | \
9649 archive_expsym_cmds | \
9651 module_expsym_cmds | \
9652 old_archive_from_expsyms_cmds | \
9653 export_symbols_cmds | \
9654 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9655 postinstall_cmds | postuninstall_cmds | \
9656 old_postinstall_cmds | old_postuninstall_cmds | \
9657 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9658 # Double-quote double-evaled strings.
9659 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9662 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9668 *'\$0 --fallback-echo"')
9669 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9674 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9676 { echo "$as_me:$LINENO: creating $ofile" >&5
9677 echo "$as_me: creating $ofile" >&6;}
9679 cat <<__EOF__ >> "$cfgfile"
9682 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9683 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9684 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9686 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9687 # Free Software Foundation, Inc.
9689 # This file is part of GNU Libtool:
9690 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9692 # This program is free software; you can redistribute it and/or modify
9693 # it under the terms of the GNU General Public License as published by
9694 # the Free Software Foundation; either version 2 of the License, or
9695 # (at your option) any later version.
9697 # This program is distributed in the hope that it will be useful, but
9698 # WITHOUT ANY WARRANTY; without even the implied warranty of
9699 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9700 # General Public License for more details.
9702 # You should have received a copy of the GNU General Public License
9703 # along with this program; if not, write to the Free Software
9704 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9706 # As a special exception to the GNU General Public License, if you
9707 # distribute this file as part of a program that contains a
9708 # configuration script generated by Autoconf, you may include it under
9709 # the same distribution terms that you use for the rest of that program.
9711 # A sed program that does not truncate output.
9714 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9715 Xsed="$SED -e 1s/^X//"
9717 # The HP-UX ksh and POSIX shell print the target directory to stdout
9719 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9721 # The names of the tagged configurations supported by this script.
9724 # ### BEGIN LIBTOOL CONFIG
9726 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9728 # Shell to use when invoking shell scripts.
9731 # Whether or not to build shared libraries.
9732 build_libtool_libs=$enable_shared
9734 # Whether or not to build static libraries.
9735 build_old_libs=$enable_static
9737 # Whether or not to add -lc for building shared libraries.
9738 build_libtool_need_lc=$archive_cmds_need_lc
9740 # Whether or not to disallow shared libs when runtime libs are static
9741 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9743 # Whether or not to optimize for fast installation.
9744 fast_install=$enable_fast_install
9747 host_alias=$host_alias
9752 build_alias=$build_alias
9756 # An echo program that does not interpret backslashes.
9761 AR_FLAGS=$lt_AR_FLAGS
9766 # LTCC compiler flags.
9767 LTCFLAGS=$lt_LTCFLAGS
9769 # A language-specific compiler.
9772 # Is the compiler the GNU C compiler?
9775 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9776 gcc_ver=\`gcc -dumpversion\`
9781 # The linker used to build libraries.
9784 # Whether we need hard or soft links.
9787 # A BSD-compatible nm program.
9790 # A symbol stripping program
9793 # Used to examine libraries when file_magic_cmd begins "file"
9794 MAGIC_CMD=$MAGIC_CMD
9796 # Used on cygwin: DLL creation program.
9799 # Used on cygwin: object dumper.
9802 # Used on cygwin: assembler.
9805 # The name of the directory that contains temporary libtool files.
9808 # How to create reloadable object files.
9809 reload_flag=$lt_reload_flag
9810 reload_cmds=$lt_reload_cmds
9812 # How to pass a linker flag through the compiler.
9813 wl=$lt_lt_prog_compiler_wl
9815 # Object file suffix (normally "o").
9818 # Old archive suffix (normally "a").
9821 # Shared library suffix (normally ".so").
9822 shrext_cmds='$shrext_cmds'
9824 # Executable file suffix (normally "").
9827 # Additional compiler flags for building library objects.
9828 pic_flag=$lt_lt_prog_compiler_pic
9831 # What is the maximum length of a command?
9832 max_cmd_len=$lt_cv_sys_max_cmd_len
9834 # Does compiler simultaneously support -c and -o options?
9835 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9837 # Must we lock files when doing compilation?
9838 need_locks=$lt_need_locks
9840 # Do we need the lib prefix for modules?
9841 need_lib_prefix=$need_lib_prefix
9843 # Do we need a version for libraries?
9844 need_version=$need_version
9846 # Whether dlopen is supported.
9847 dlopen_support=$enable_dlopen
9849 # Whether dlopen of programs is supported.
9850 dlopen_self=$enable_dlopen_self
9852 # Whether dlopen of statically linked programs is supported.
9853 dlopen_self_static=$enable_dlopen_self_static
9855 # Compiler flag to prevent dynamic linking.
9856 link_static_flag=$lt_lt_prog_compiler_static
9858 # Compiler flag to turn off builtin functions.
9859 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9861 # Compiler flag to allow reflexive dlopens.
9862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9864 # Compiler flag to generate shared objects directly from archives.
9865 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9867 # Compiler flag to generate thread-safe objects.
9868 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9870 # Library versioning type.
9871 version_type=$version_type
9873 # Format of library name prefix.
9874 libname_spec=$lt_libname_spec
9876 # List of archive names. First name is the real one, the rest are links.
9877 # The last name is the one that the linker finds with -lNAME.
9878 library_names_spec=$lt_library_names_spec
9880 # The coded name of the library, if different from the real name.
9881 soname_spec=$lt_soname_spec
9883 # Commands used to build and install an old-style archive.
9885 old_archive_cmds=$lt_old_archive_cmds
9886 old_postinstall_cmds=$lt_old_postinstall_cmds
9887 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9889 # Create an old-style archive from a shared archive.
9890 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9892 # Create a temporary old-style archive to link instead of a shared archive.
9893 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9895 # Commands used to build and install a shared archive.
9896 archive_cmds=$lt_archive_cmds
9897 archive_expsym_cmds=$lt_archive_expsym_cmds
9898 postinstall_cmds=$lt_postinstall_cmds
9899 postuninstall_cmds=$lt_postuninstall_cmds
9901 # Commands used to build a loadable module (assumed same as above if empty)
9902 module_cmds=$lt_module_cmds
9903 module_expsym_cmds=$lt_module_expsym_cmds
9905 # Commands to strip libraries.
9906 old_striplib=$lt_old_striplib
9907 striplib=$lt_striplib
9909 # Dependencies to place before the objects being linked to create a
9911 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9913 # Dependencies to place after the objects being linked to create a
9915 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9917 # Dependencies to place before the objects being linked to create a
9921 # Dependencies to place after the objects being linked to create a
9923 postdeps=$lt_postdeps
9925 # The library search path used internally by the compiler when linking
9927 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9929 # Method to check whether dependent libraries are shared objects.
9930 deplibs_check_method=$lt_deplibs_check_method
9932 # Command to use when deplibs_check_method == file_magic.
9933 file_magic_cmd=$lt_file_magic_cmd
9935 # Flag that allows shared libraries with undefined symbols to be built.
9936 allow_undefined_flag=$lt_allow_undefined_flag
9938 # Flag that forces no undefined symbols.
9939 no_undefined_flag=$lt_no_undefined_flag
9941 # Commands used to finish a libtool library installation in a directory.
9942 finish_cmds=$lt_finish_cmds
9944 # Same as above, but a single script fragment to be evaled but not shown.
9945 finish_eval=$lt_finish_eval
9947 # Take the output of nm and produce a listing of raw symbols and C names.
9948 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9950 # Transform the output of nm in a proper C declaration
9951 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9953 # Transform the output of nm in a C name address pair
9954 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9956 # This is the shared library runtime path variable.
9957 runpath_var=$runpath_var
9959 # This is the shared library path variable.
9960 shlibpath_var=$shlibpath_var
9962 # Is shlibpath searched before the hard-coded library search path?
9963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9965 # How to hardcode a shared library path into an executable.
9966 hardcode_action=$hardcode_action
9968 # Whether we should hardcode library paths into libraries.
9969 hardcode_into_libs=$hardcode_into_libs
9971 # Flag to hardcode \$libdir into a binary during linking.
9972 # This must work even if \$libdir does not exist.
9973 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9975 # If ld is used when linking, flag to hardcode \$libdir into
9976 # a binary during linking. This must work even if \$libdir does
9978 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9980 # Whether we need a single -rpath flag with a separated argument.
9981 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9983 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9985 hardcode_direct=$hardcode_direct
9987 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9989 hardcode_minus_L=$hardcode_minus_L
9991 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9992 # the resulting binary.
9993 hardcode_shlibpath_var=$hardcode_shlibpath_var
9995 # Set to yes if building a shared library automatically hardcodes DIR into the library
9996 # and all subsequent libraries and executables linked against it.
9997 hardcode_automatic=$hardcode_automatic
9999 # Variables whose values should be saved in libtool wrapper scripts and
10000 # restored at relink time.
10001 variables_saved_for_relink="$variables_saved_for_relink"
10003 # Whether libtool must link a program against all its dependency libraries.
10004 link_all_deplibs=$link_all_deplibs
10006 # Compile-time system search path for libraries
10007 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10009 # Run-time system search path for libraries
10010 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10012 # Fix the shell variable \$srcfile for the compiler.
10013 fix_srcfile_path="$fix_srcfile_path"
10015 # Set to yes if exported symbols are required.
10016 always_export_symbols=$always_export_symbols
10018 # The commands to list exported symbols.
10019 export_symbols_cmds=$lt_export_symbols_cmds
10021 # The commands to extract the exported symbol list from a shared archive.
10022 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10024 # Symbols that should not be listed in the preloaded symbols.
10025 exclude_expsyms=$lt_exclude_expsyms
10027 # Symbols that must always be exported.
10028 include_expsyms=$lt_include_expsyms
10030 # ### END LIBTOOL CONFIG
10037 cat <<\EOF >> "$cfgfile"
10039 # AIX sometimes has problems with the GCC collect2 program. For some
10040 # reason, if we set the COLLECT_NAMES environment variable, the problems
10041 # vanish in a puff of smoke.
10042 if test "X${COLLECT_NAMES+set}" != Xset; then
10044 export COLLECT_NAMES
10050 # We use sed instead of cat because bash on DJGPP gets confused if
10051 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10052 # text mode, it properly converts lines to CR/LF. This bash problem
10053 # is reportedly fixed, but why not run on old versions too?
10054 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10056 mv -f "$cfgfile" "$ofile" || \
10057 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10061 # If there is no Makefile yet, we rely on a make rule to execute
10062 # `config.status --recheck' to rerun these tests and create the
10063 # libtool script then.
10064 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10065 if test -f "$ltmain_in"; then
10066 test -f Makefile && make "$ltmain"
10072 ac_cpp='$CPP $CPPFLAGS'
10073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10080 # Check whether --with-tags or --without-tags was given.
10081 if test "${with_tags+set}" = set; then
10082 withval="$with_tags"
10083 tagnames="$withval"
10086 if test -f "$ltmain" && test -n "$tagnames"; then
10087 if test ! -f "${ofile}"; then
10088 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10089 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10092 if test -z "$LTCC"; then
10093 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10094 if test -z "$LTCC"; then
10095 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10096 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10099 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10102 if test -z "$LTCFLAGS"; then
10103 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10106 # Extract list of available tagged configurations in $ofile.
10107 # Note that this assumes the entire list is on one line.
10108 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10110 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10111 for tagname in $tagnames; do
10113 # Check whether tagname contains only valid characters
10114 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10116 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10117 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10118 { (exit 1); exit 1; }; }
10122 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10124 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10125 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10126 { (exit 1); exit 1; }; }
10129 # Update the list of available tags.
10130 if test -n "$tagname"; then
10131 echo appending configuration tag \"$tagname\" to $ofile
10135 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10136 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10137 (test "X$CXX" != "Xg++"))) ; then
10139 ac_cpp='$CXXCPP $CPPFLAGS'
10140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10147 archive_cmds_need_lc_CXX=no
10148 allow_undefined_flag_CXX=
10149 always_export_symbols_CXX=no
10150 archive_expsym_cmds_CXX=
10151 export_dynamic_flag_spec_CXX=
10152 hardcode_direct_CXX=no
10153 hardcode_libdir_flag_spec_CXX=
10154 hardcode_libdir_flag_spec_ld_CXX=
10155 hardcode_libdir_separator_CXX=
10156 hardcode_minus_L_CXX=no
10157 hardcode_shlibpath_var_CXX=unsupported
10158 hardcode_automatic_CXX=no
10160 module_expsym_cmds_CXX=
10161 link_all_deplibs_CXX=unknown
10162 old_archive_cmds_CXX=$old_archive_cmds
10163 no_undefined_flag_CXX=
10164 whole_archive_flag_spec_CXX=
10165 enable_shared_with_static_runtimes_CXX=no
10167 # Dependencies to place before and after the object being linked:
10168 predep_objects_CXX=
10169 postdep_objects_CXX=
10172 compiler_lib_search_path_CXX=
10174 # Source file extension for C++ test sources.
10177 # Object file extension for compiled C++ test sources.
10181 # Code to be used in simple compile tests
10182 lt_simple_compile_test_code="int some_variable = 0;\n"
10184 # Code to be used in simple link tests
10185 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10187 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10189 # If no C compiler was specified, use CC.
10192 # If no C compiler flags were specified, use CFLAGS.
10193 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10195 # Allow CC to be a program name with arguments.
10199 # save warnings/boilerplate of simple test code
10200 ac_outfile=conftest.$ac_objext
10201 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10202 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10203 _lt_compiler_boilerplate=`cat conftest.err`
10206 ac_outfile=conftest.$ac_objext
10207 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10208 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10209 _lt_linker_boilerplate=`cat conftest.err`
10213 # Allow CC to be a program name with arguments.
10218 lt_save_with_gnu_ld=$with_gnu_ld
10219 lt_save_path_LD=$lt_cv_path_LD
10220 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10221 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10223 $as_unset lt_cv_prog_gnu_ld
10225 if test -n "${lt_cv_path_LDCXX+set}"; then
10226 lt_cv_path_LD=$lt_cv_path_LDCXX
10228 $as_unset lt_cv_path_LD
10230 test -z "${LDCXX+set}" || LD=$LDCXX
10234 for cc_temp in $compiler""; do
10236 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10237 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10242 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10245 # We don't want -fno-exception wen compiling C++ code, so set the
10246 # no_builtin_flag separately
10247 if test "$GXX" = yes; then
10248 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10250 lt_prog_compiler_no_builtin_flag_CXX=
10253 if test "$GXX" = yes; then
10254 # Set up default GNU C++ configuration
10257 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10258 if test "${with_gnu_ld+set}" = set; then
10259 withval="$with_gnu_ld"
10260 test "$withval" = no || with_gnu_ld=yes
10265 if test "$GCC" = yes; then
10266 # Check if gcc -print-prog-name=ld gives a path.
10267 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10268 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10271 # gcc leaves a trailing carriage return which upsets mingw
10272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10277 # Accept absolute paths.
10279 re_direlt='/[^/][^/]*/\.\./'
10280 # Canonicalize the pathname of ld
10281 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10282 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10283 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10285 test -z "$LD" && LD="$ac_prog"
10288 # If it fails, then pretend we aren't using GCC.
10292 # If it is relative, then search for the first ld in PATH.
10293 with_gnu_ld=unknown
10296 elif test "$with_gnu_ld" = yes; then
10297 echo "$as_me:$LINENO: checking for GNU ld" >&5
10298 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10300 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10301 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10303 if test "${lt_cv_path_LD+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 if test -z "$LD"; then
10307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10308 for ac_dir in $PATH; do
10310 test -z "$ac_dir" && ac_dir=.
10311 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10312 lt_cv_path_LD="$ac_dir/$ac_prog"
10313 # Check to see if the program is GNU ld. I'd rather use --version,
10314 # but apparently some variants of GNU ld only accept -v.
10315 # Break only if it was the GNU/non-GNU ld that we prefer.
10316 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10317 *GNU* | *'with BFD'*)
10318 test "$with_gnu_ld" != no && break
10321 test "$with_gnu_ld" != yes && break
10328 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10332 LD="$lt_cv_path_LD"
10333 if test -n "$LD"; then
10334 echo "$as_me:$LINENO: result: $LD" >&5
10335 echo "${ECHO_T}$LD" >&6
10337 echo "$as_me:$LINENO: result: no" >&5
10338 echo "${ECHO_T}no" >&6
10340 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10341 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10342 { (exit 1); exit 1; }; }
10343 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10344 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10345 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10349 case `$LD -v 2>&1 </dev/null` in
10350 *GNU* | *'with BFD'*)
10351 lt_cv_prog_gnu_ld=yes
10354 lt_cv_prog_gnu_ld=no
10358 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10359 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10360 with_gnu_ld=$lt_cv_prog_gnu_ld
10364 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10365 # archiving commands below assume that GNU ld is being used.
10366 if test "$with_gnu_ld" = yes; then
10367 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10368 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'
10370 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10373 # If archive_cmds runs LD, not CC, wlarc should be empty
10374 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10375 # investigate it a little bit more. (MM)
10378 # ancient GNU ld didn't support --whole-archive et. al.
10379 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10380 grep 'no-whole-archive' > /dev/null; then
10381 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10383 whole_archive_flag_spec_CXX=
10389 # A generic and very simple default shared library creation
10390 # command for GNU C++ for the case where it uses the native
10391 # linker, instead of GNU ld. If possible, this setting should
10392 # overridden to take advantage of the native linker features on
10393 # the platform it is being used on.
10394 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10397 # Commands to make compiler produce verbose output that lists
10398 # what "hidden" libraries, object files and flags are used when
10399 # linking a shared library.
10400 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10408 # PORTME: fill in a description of your system's C++ link characteristics
10409 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10410 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10414 # FIXME: insert proper C++ library support
10418 if test "$host_cpu" = ia64; then
10419 # On IA64, the linker does run time linking by default, so we don't
10420 # have to do anything special.
10421 aix_use_runtimelinking=no
10422 exp_sym_flag='-Bexport'
10425 aix_use_runtimelinking=no
10427 # Test if we are trying to use run time linking or normal
10428 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10429 # need to do runtime linking.
10430 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10431 for ld_flag in $LDFLAGS; do
10434 aix_use_runtimelinking=yes
10442 exp_sym_flag='-bexport'
10443 no_entry_flag='-bnoentry'
10446 # When large executables or shared objects are built, AIX ld can
10447 # have problems creating the table of contents. If linking a library
10448 # or program results in "error TOC overflow" add -mminimal-toc to
10449 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10450 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10452 archive_cmds_CXX=''
10453 hardcode_direct_CXX=yes
10454 hardcode_libdir_separator_CXX=':'
10455 link_all_deplibs_CXX=yes
10457 if test "$GXX" = yes; then
10458 case $host_os in aix4.[012]|aix4.[012].*)
10459 # We only want to do this on AIX 4.2 and lower, the check
10460 # below for broken collect2 doesn't work under 4.3+
10461 collect2name=`${CC} -print-prog-name=collect2`
10462 if test -f "$collect2name" && \
10463 strings "$collect2name" | grep resolve_lib_name >/dev/null
10465 # We have reworked collect2
10466 hardcode_direct_CXX=yes
10468 # We have old collect2
10469 hardcode_direct_CXX=unsupported
10470 # It fails to find uninstalled libraries when the uninstalled
10471 # path is not listed in the libpath. Setting hardcode_minus_L
10472 # to unsupported forces relinking
10473 hardcode_minus_L_CXX=yes
10474 hardcode_libdir_flag_spec_CXX='-L$libdir'
10475 hardcode_libdir_separator_CXX=
10479 shared_flag='-shared'
10480 if test "$aix_use_runtimelinking" = yes; then
10481 shared_flag="$shared_flag "'${wl}-G'
10485 if test "$host_cpu" = ia64; then
10486 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10487 # chokes on -Wl,-G. The following line is correct:
10490 if test "$aix_use_runtimelinking" = yes; then
10491 shared_flag='${wl}-G'
10493 shared_flag='${wl}-bM:SRE'
10498 # It seems that -bexpall does not export symbols beginning with
10499 # underscore (_), so it is better to generate a list of symbols to export.
10500 always_export_symbols_CXX=yes
10501 if test "$aix_use_runtimelinking" = yes; then
10502 # Warning - without using the other runtime loading flags (-brtl),
10503 # -berok will link without error, but may produce a broken library.
10504 allow_undefined_flag_CXX='-berok'
10505 # Determine the default libpath from the value encoded in an empty executable.
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10523 (eval $ac_link) 2>conftest.er1
10525 grep -v '^ *+' conftest.er1 >conftest.err
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -z "$ac_cxx_werror_flag"
10531 || test ! -s conftest.err'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10546 # Check for a 64-bit object if we didn't find anything.
10547 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; }
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10554 rm -f conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10558 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10560 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10562 if test "$host_cpu" = ia64; then
10563 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10564 allow_undefined_flag_CXX="-z nodefs"
10565 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10567 # Determine the default libpath from the value encoded in an empty executable.
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10585 (eval $ac_link) 2>conftest.er1
10587 grep -v '^ *+' conftest.er1 >conftest.err
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -z "$ac_cxx_werror_flag"
10593 || test ! -s conftest.err'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; } &&
10599 { ac_try='test -s conftest$ac_exeext'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; }; then
10606 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10608 # Check for a 64-bit object if we didn't find anything.
10609 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; }
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10616 rm -f conftest.err conftest.$ac_objext \
10617 conftest$ac_exeext conftest.$ac_ext
10618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10620 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10621 # Warning - without using the other run time loading flags,
10622 # -berok will link without error, but may produce a broken library.
10623 no_undefined_flag_CXX=' ${wl}-bernotok'
10624 allow_undefined_flag_CXX=' ${wl}-berok'
10625 # Exported symbols can be pulled into shared objects from archives
10626 whole_archive_flag_spec_CXX='$convenience'
10627 archive_cmds_need_lc_CXX=yes
10628 # This is similar to how AIX traditionally builds its shared libraries.
10629 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10636 allow_undefined_flag_CXX=unsupported
10637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10638 # support --undefined. This deserves some investigation. FIXME
10639 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10646 case $cc_basename in
10648 # FIXME: insert proper C++ library support
10654 cygwin* | mingw* | pw32*)
10655 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10656 # as there is no search path for DLLs.
10657 hardcode_libdir_flag_spec_CXX='-L$libdir'
10658 allow_undefined_flag_CXX=unsupported
10659 always_export_symbols_CXX=no
10660 enable_shared_with_static_runtimes_CXX=yes
10662 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10663 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10664 # If the export-symbols file already is a .def file (1st line
10665 # is EXPORTS), use it as is; otherwise, prepend...
10666 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10667 cp $export_symbols $output_objdir/$soname.def;
10669 echo EXPORTS > $output_objdir/$soname.def;
10670 cat $export_symbols >> $output_objdir/$soname.def;
10672 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10677 darwin* | rhapsody*)
10679 rhapsody* | darwin1.[012])
10680 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10683 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10684 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10686 case ${MACOSX_DEPLOYMENT_TARGET} in
10688 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10691 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10697 archive_cmds_need_lc_CXX=no
10698 hardcode_direct_CXX=no
10699 hardcode_automatic_CXX=yes
10700 hardcode_shlibpath_var_CXX=unsupported
10701 whole_archive_flag_spec_CXX=''
10702 link_all_deplibs_CXX=yes
10704 if test "$GXX" = yes ; then
10705 lt_int_apple_cc_single_mod=no
10706 output_verbose_link_cmd='echo'
10707 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10708 lt_int_apple_cc_single_mod=yes
10710 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10711 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10713 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'
10715 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10716 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10717 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10718 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}'
10720 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}'
10722 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}'
10724 case $cc_basename in
10726 output_verbose_link_cmd='echo'
10727 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'
10728 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10729 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10730 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}'
10731 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}'
10741 case $cc_basename in
10743 # FIXME: insert proper C++ library support
10747 # Green Hills C++ Compiler
10748 # FIXME: insert proper C++ library support
10752 # FIXME: insert proper C++ library support
10758 # C++ shared libraries reported to be fairly broken before switch to ELF
10762 archive_cmds_need_lc_CXX=no
10764 freebsd* | kfreebsd*-gnu | dragonfly*)
10765 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10773 hardcode_libdir_separator_CXX=:
10774 export_dynamic_flag_spec_CXX='${wl}-E'
10775 hardcode_direct_CXX=yes
10776 hardcode_minus_L_CXX=yes # Not in the search PATH,
10777 # but as the default
10778 # location of the library.
10780 case $cc_basename in
10782 # FIXME: insert proper C++ library support
10786 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'
10787 # Commands to make compiler produce verbose output that lists
10788 # what "hidden" libraries, object files and flags are used when
10789 # linking a shared library.
10791 # There doesn't appear to be a way to prevent this compiler from
10792 # explicitly linking system object files so we need to strip them
10793 # from the output so that they don't get included in the library
10795 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'
10798 if test "$GXX" = yes; then
10799 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'
10801 # FIXME: insert proper C++ library support
10808 if test $with_gnu_ld = no; then
10809 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10810 hardcode_libdir_separator_CXX=:
10814 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10817 export_dynamic_flag_spec_CXX='${wl}-E'
10823 hardcode_direct_CXX=no
10824 hardcode_shlibpath_var_CXX=no
10827 hardcode_direct_CXX=yes
10828 hardcode_minus_L_CXX=yes # Not in the search PATH,
10829 # but as the default
10830 # location of the library.
10834 case $cc_basename in
10836 # FIXME: insert proper C++ library support
10842 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10851 # Commands to make compiler produce verbose output that lists
10852 # what "hidden" libraries, object files and flags are used when
10853 # linking a shared library.
10855 # There doesn't appear to be a way to prevent this compiler from
10856 # explicitly linking system object files so we need to strip them
10857 # from the output so that they don't get included in the library
10859 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'
10862 if test "$GXX" = yes; then
10863 if test $with_gnu_ld = no; then
10866 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10869 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10872 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'
10877 # FIXME: insert proper C++ library support
10884 hardcode_direct_CXX=no
10885 hardcode_shlibpath_var_CXX=no
10886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10887 export_dynamic_flag_spec_CXX='${wl}-E'
10888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10889 # Instead, shared libraries are loaded at an image base (0x10000000 by
10890 # default) and relocated if they conflict, which is a slow very memory
10891 # consuming and fragmenting process. To avoid this, we pick a random,
10892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10894 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10895 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10898 case $cc_basename in
10901 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'
10903 # Archives containing C++ object files must be created using
10904 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10905 # necessary to make sure instantiated templates are included
10907 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10910 if test "$GXX" = yes; then
10911 if test "$with_gnu_ld" = no; then
10912 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'
10914 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'
10917 link_all_deplibs_CXX=yes
10920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10921 hardcode_libdir_separator_CXX=:
10924 case $cc_basename in
10926 # Kuck and Associates, Inc. (KAI) C++ Compiler
10928 # KCC will only create a shared library if the output file
10929 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10930 # to its proper name (with version) after linking.
10931 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'
10932 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'
10933 # Commands to make compiler produce verbose output that lists
10934 # what "hidden" libraries, object files and flags are used when
10935 # linking a shared library.
10937 # There doesn't appear to be a way to prevent this compiler from
10938 # explicitly linking system object files so we need to strip them
10939 # from the output so that they don't get included in the library
10941 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'
10943 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10946 # Archives containing C++ object files must be created using
10947 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10948 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10953 # version 8.0 and above of icpc choke on multiply defined symbols
10954 # if we add $predep_objects and $postdep_objects, however 7.1 and
10955 # earlier do not add the objects themselves.
10956 case `$CC -V 2>&1` in
10958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10959 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'
10961 *) # Version 8.0 or newer
10964 ia64*) tmp_idyn=' -i_dynamic';;
10966 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10967 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'
10970 archive_cmds_need_lc_CXX=no
10971 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10972 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10973 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10976 # Portland Group C++ compiler
10977 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10978 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'
10980 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10982 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'
10986 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10987 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'
10989 runpath_var=LD_RUN_PATH
10990 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10991 hardcode_libdir_separator_CXX=:
10993 # Commands to make compiler produce verbose output that lists
10994 # what "hidden" libraries, object files and flags are used when
10995 # linking a shared library.
10997 # There doesn't appear to be a way to prevent this compiler from
10998 # explicitly linking system object files so we need to strip them
10999 # from the output so that they don't get included in the library
11001 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'
11006 # FIXME: insert proper C++ library support
11010 # FIXME: insert proper C++ library support
11014 case $cc_basename in
11016 # FIXME: insert proper C++ library support
11020 # FIXME: insert proper C++ library support
11026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11027 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11029 hardcode_libdir_flag_spec_CXX='-R$libdir'
11030 hardcode_direct_CXX=yes
11031 hardcode_shlibpath_var_CXX=no
11033 # Workaround some broken pre-1.5 toolchains
11034 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11037 # C++ shared libraries are fairly broken
11041 hardcode_direct_CXX=yes
11042 hardcode_shlibpath_var_CXX=no
11043 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11044 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11046 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11047 export_dynamic_flag_spec_CXX='${wl}-E'
11048 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11050 output_verbose_link_cmd='echo'
11053 case $cc_basename in
11055 # Kuck and Associates, Inc. (KAI) C++ Compiler
11057 # KCC will only create a shared library if the output file
11058 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11059 # to its proper name (with version) after linking.
11060 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'
11062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11063 hardcode_libdir_separator_CXX=:
11065 # Archives containing C++ object files must be created using
11066 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11067 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11071 # Rational C++ 2.4.1
11072 # FIXME: insert proper C++ library support
11076 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11077 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'
11079 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11080 hardcode_libdir_separator_CXX=:
11082 # Commands to make compiler produce verbose output that lists
11083 # what "hidden" libraries, object files and flags are used when
11084 # linking a shared library.
11086 # There doesn't appear to be a way to prevent this compiler from
11087 # explicitly linking system object files so we need to strip them
11088 # from the output so that they don't get included in the library
11090 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'
11093 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11094 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11095 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'
11097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11098 hardcode_libdir_separator_CXX=:
11100 # Commands to make compiler produce verbose output that lists
11101 # what "hidden" libraries, object files and flags are used when
11102 # linking a shared library.
11103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11106 # FIXME: insert proper C++ library support
11113 case $cc_basename in
11115 # Kuck and Associates, Inc. (KAI) C++ Compiler
11117 # KCC will only create a shared library if the output file
11118 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11119 # to its proper name (with version) after linking.
11120 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'
11122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11123 hardcode_libdir_separator_CXX=:
11125 # Archives containing C++ object files must be created using
11126 # the KAI C++ compiler.
11127 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11130 # Rational C++ 2.4.1
11131 # FIXME: insert proper C++ library support
11135 allow_undefined_flag_CXX=' -expect_unresolved \*'
11136 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'
11137 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11138 echo "-hidden">> $lib.exp~
11139 $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~
11142 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11143 hardcode_libdir_separator_CXX=:
11145 # Commands to make compiler produce verbose output that lists
11146 # what "hidden" libraries, object files and flags are used when
11147 # linking a shared library.
11149 # There doesn't appear to be a way to prevent this compiler from
11150 # explicitly linking system object files so we need to strip them
11151 # from the output so that they don't get included in the library
11153 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'
11156 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11158 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'
11160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11161 hardcode_libdir_separator_CXX=:
11163 # Commands to make compiler produce verbose output that lists
11164 # what "hidden" libraries, object files and flags are used when
11165 # linking a shared library.
11166 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11169 # FIXME: insert proper C++ library support
11176 # FIXME: insert proper C++ library support
11180 case $cc_basename in
11183 # FIXME: insert proper C++ library support
11188 # FIXME: insert proper C++ library support
11192 # FIXME: insert proper C++ library support
11198 case $cc_basename in
11200 # Sun C++ 4.2, 5.x and Centerline C++
11201 archive_cmds_need_lc_CXX=yes
11202 no_undefined_flag_CXX=' -zdefs'
11203 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11204 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11205 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11207 hardcode_libdir_flag_spec_CXX='-R$libdir'
11208 hardcode_shlibpath_var_CXX=no
11210 solaris2.[0-5] | solaris2.[0-5].*) ;;
11212 # The C++ compiler is used as linker so we must use $wl
11213 # flag to pass the commands to the underlying system
11214 # linker. We must also pass each convience library through
11215 # to the system linker between allextract/defaultextract.
11216 # The C++ compiler will combine linker options so we
11217 # cannot just pass the convience library names through
11219 # Supported since Solaris 2.6 (maybe 2.5.1?)
11220 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'
11223 link_all_deplibs_CXX=yes
11225 output_verbose_link_cmd='echo'
11227 # Archives containing C++ object files must be created using
11228 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11229 # necessary to make sure instantiated templates are included
11231 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11234 # Green Hills C++ Compiler
11235 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11237 # The C++ compiler must be used to create the archive.
11238 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11241 # GNU C++ compiler with Solaris linker
11242 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11243 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11244 if $CC --version | grep -v '^2\.7' > /dev/null; then
11245 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11246 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11247 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11249 # Commands to make compiler produce verbose output that lists
11250 # what "hidden" libraries, object files and flags are used when
11251 # linking a shared library.
11252 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11254 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11256 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11257 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11258 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11260 # Commands to make compiler produce verbose output that lists
11261 # what "hidden" libraries, object files and flags are used when
11262 # linking a shared library.
11263 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11266 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11271 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11272 no_undefined_flag_CXX='${wl}-z,text'
11273 archive_cmds_need_lc_CXX=no
11274 hardcode_shlibpath_var_CXX=no
11275 runpath_var='LD_RUN_PATH'
11277 case $cc_basename in
11279 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11280 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11283 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11284 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11288 sysv5* | sco3.2v5* | sco5v6*)
11289 # Note: We can NOT use -z defs as we might desire, because we do not
11290 # link with -lc, and that would cause any symbols used from libc to
11291 # always be unresolved, which means just about no library would
11292 # ever link correctly. If we're not using GNU ld we use -z text
11293 # though, which does catch some bad symbols but isn't as heavy-handed
11295 # For security reasons, it is highly recommended that you always
11296 # use absolute paths for naming shared libraries, and exclude the
11297 # DT_RUNPATH tag from executables and libraries. But doing so
11298 # requires that you compile everything twice, which is a pain.
11299 # So that behaviour is only enabled if SCOABSPATH is set to a
11300 # non-empty value in the environment. Most likely only useful for
11301 # creating official distributions of packages.
11302 # This is a hack until libtool officially supports absolute path
11303 # names for shared libraries.
11304 no_undefined_flag_CXX='${wl}-z,text'
11305 allow_undefined_flag_CXX='${wl}-z,nodefs'
11306 archive_cmds_need_lc_CXX=no
11307 hardcode_shlibpath_var_CXX=no
11308 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11309 hardcode_libdir_separator_CXX=':'
11310 link_all_deplibs_CXX=yes
11311 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11312 runpath_var='LD_RUN_PATH'
11314 case $cc_basename in
11316 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11317 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11320 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11321 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11326 case $cc_basename in
11328 # NonStop-UX NCC 3.20
11329 # FIXME: insert proper C++ library support
11333 # FIXME: insert proper C++ library support
11339 # FIXME: insert proper C++ library support
11343 # FIXME: insert proper C++ library support
11347 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11348 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11349 test "$ld_shlibs_CXX" = no && can_build_shared=no
11355 cat > conftest.$ac_ext <<EOF
11359 Foo (void) { a = 0; }
11365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366 (eval $ac_compile) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; then
11370 # Parse the compiler output and extract the necessary
11371 # objects, libraries and library flags.
11373 # Sentinel used to keep track of whether or not we are before
11374 # the conftest object file.
11375 pre_test_object_deps_done=no
11377 # The `*' in the case matches for architectures that use `case' in
11378 # $output_verbose_cmd can trigger glob expansion during the loop
11379 # eval without this substitution.
11380 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11382 for p in `eval $output_verbose_link_cmd`; do
11386 # Some compilers place space between "-{L,R}" and the path.
11387 # Remove the space.
11388 if test $p = "-L" \
11389 || test $p = "-R"; then
11396 if test "$pre_test_object_deps_done" = no; then
11399 # Internal compiler library paths should come after those
11400 # provided the user. The postdeps already come after the
11401 # user supplied libs so there is no need to process them.
11402 if test -z "$compiler_lib_search_path_CXX"; then
11403 compiler_lib_search_path_CXX="${prev}${p}"
11405 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11408 # The "-l" case would never come before the object being
11409 # linked, so don't bother handling this case.
11412 if test -z "$postdeps_CXX"; then
11413 postdeps_CXX="${prev}${p}"
11415 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11421 # This assumes that the test object file only shows up
11422 # once in the compiler output.
11423 if test "$p" = "conftest.$objext"; then
11424 pre_test_object_deps_done=yes
11428 if test "$pre_test_object_deps_done" = no; then
11429 if test -z "$predep_objects_CXX"; then
11430 predep_objects_CXX="$p"
11432 predep_objects_CXX="$predep_objects_CXX $p"
11435 if test -z "$postdep_objects_CXX"; then
11436 postdep_objects_CXX="$p"
11438 postdep_objects_CXX="$postdep_objects_CXX $p"
11443 *) ;; # Ignore the rest.
11451 echo "libtool.m4: error: problem compiling CXX test program"
11454 $rm -f confest.$objext
11456 # PORTME: override above test on systems where it is broken
11459 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11460 # hack all around it, let's just trust "g++" to DTRT.
11461 predep_objects_CXX=
11462 postdep_objects_CXX=
11467 case $cc_basename in
11469 # Adding this requires a known-good setup of shared libraries for
11470 # Sun compiler versions before 5.6, else PIC objects from an old
11471 # archive will be linked into the output, leading to subtle bugs.
11472 postdeps_CXX='-lCstd -lCrun'
11479 case " $postdeps_CXX " in
11480 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11483 lt_prog_compiler_wl_CXX=
11484 lt_prog_compiler_pic_CXX=
11485 lt_prog_compiler_static_CXX=
11487 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11488 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11490 # C++ specific cases for pic, static, wl, etc.
11491 if test "$GXX" = yes; then
11492 lt_prog_compiler_wl_CXX='-Wl,'
11493 lt_prog_compiler_static_CXX='-static'
11497 # All AIX code is PIC.
11498 if test "$host_cpu" = ia64; then
11499 # AIX 5 now supports IA64 processor
11500 lt_prog_compiler_static_CXX='-Bstatic'
11504 # FIXME: we need at least 68020 code to build shared libraries, but
11505 # adding the `-m68020' flag to GCC prevents building anything better,
11507 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11509 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11510 # PIC is the default for these OSes.
11512 mingw* | os2* | pw32*)
11513 # This hack is so that the source file can tell whether it is being
11514 # built for inclusion in a dll (and should export symbols for example).
11515 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11517 darwin* | rhapsody*)
11518 # PIC is the default on this platform
11519 # Common symbols not allowed in MH_DYLIB files
11520 lt_prog_compiler_pic_CXX='-fno-common'
11523 # DJGPP does not support shared libraries at all
11524 lt_prog_compiler_pic_CXX=
11527 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11528 # Instead, we relocate shared libraries at runtime.
11531 if test -d /usr/nec; then
11532 lt_prog_compiler_pic_CXX=-Kconform_pic
11536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11537 # not for PA HP-UX.
11542 lt_prog_compiler_pic_CXX='-fPIC'
11547 lt_prog_compiler_pic_CXX='-fPIC'
11553 # All AIX code is PIC.
11554 if test "$host_cpu" = ia64; then
11555 # AIX 5 now supports IA64 processor
11556 lt_prog_compiler_static_CXX='-Bstatic'
11558 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11562 case $cc_basename in
11564 # Green Hills C++ Compiler
11565 # _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"
11570 # PIC is the default on this platform
11571 # Common symbols not allowed in MH_DYLIB files
11572 case $cc_basename in
11574 lt_prog_compiler_pic_CXX='-qnocommon'
11575 lt_prog_compiler_wl_CXX='-Wl,'
11580 case $cc_basename in
11582 lt_prog_compiler_pic_CXX='-KPIC'
11585 # Green Hills C++ Compiler
11586 lt_prog_compiler_pic_CXX='-pic'
11592 freebsd* | kfreebsd*-gnu | dragonfly*)
11593 # FreeBSD uses GNU C++
11595 hpux9* | hpux10* | hpux11*)
11596 case $cc_basename in
11598 lt_prog_compiler_wl_CXX='-Wl,'
11599 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11600 if test "$host_cpu" != ia64; then
11601 lt_prog_compiler_pic_CXX='+Z'
11605 lt_prog_compiler_wl_CXX='-Wl,'
11606 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11612 lt_prog_compiler_pic_CXX='+Z'
11621 # This is c89, which is MS Visual C++ (no shared libs)
11622 # Anyone wants to do a port?
11624 irix5* | irix6* | nonstopux*)
11625 case $cc_basename in
11627 lt_prog_compiler_wl_CXX='-Wl,'
11628 lt_prog_compiler_static_CXX='-non_shared'
11629 # CC pic flag -KPIC is the default.
11636 case $cc_basename in
11639 lt_prog_compiler_wl_CXX='--backend -Wl,'
11640 lt_prog_compiler_pic_CXX='-fPIC'
11644 lt_prog_compiler_wl_CXX='-Wl,'
11645 lt_prog_compiler_pic_CXX='-KPIC'
11646 lt_prog_compiler_static_CXX='-static'
11649 # Portland Group C++ compiler.
11650 lt_prog_compiler_wl_CXX='-Wl,'
11651 lt_prog_compiler_pic_CXX='-fpic'
11652 lt_prog_compiler_static_CXX='-Bstatic'
11656 # Make sure the PIC flag is empty. It appears that all Alpha
11657 # Linux and Compaq Tru64 Unix objects are PIC.
11658 lt_prog_compiler_pic_CXX=
11659 lt_prog_compiler_static_CXX='-non_shared'
11670 case $cc_basename in
11672 lt_prog_compiler_pic_CXX='-W c,exportall'
11680 osf3* | osf4* | osf5*)
11681 case $cc_basename in
11683 lt_prog_compiler_wl_CXX='--backend -Wl,'
11686 # Rational C++ 2.4.1
11687 lt_prog_compiler_pic_CXX='-pic'
11690 # Digital/Compaq C++
11691 lt_prog_compiler_wl_CXX='-Wl,'
11692 # Make sure the PIC flag is empty. It appears that all Alpha
11693 # Linux and Compaq Tru64 Unix objects are PIC.
11694 lt_prog_compiler_pic_CXX=
11695 lt_prog_compiler_static_CXX='-non_shared'
11704 case $cc_basename in
11706 # Sun C++ 4.2, 5.x and Centerline C++
11707 lt_prog_compiler_pic_CXX='-KPIC'
11708 lt_prog_compiler_static_CXX='-Bstatic'
11709 lt_prog_compiler_wl_CXX='-Qoption ld '
11712 # Green Hills C++ Compiler
11713 lt_prog_compiler_pic_CXX='-PIC'
11720 case $cc_basename in
11723 lt_prog_compiler_pic_CXX='-pic'
11724 lt_prog_compiler_static_CXX='-Bstatic'
11728 lt_prog_compiler_pic_CXX='-pic'
11735 case $cc_basename in
11737 # NonStop-UX NCC 3.20
11738 lt_prog_compiler_pic_CXX='-KPIC'
11744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11745 case $cc_basename in
11747 lt_prog_compiler_wl_CXX='-Wl,'
11748 lt_prog_compiler_pic_CXX='-KPIC'
11749 lt_prog_compiler_static_CXX='-Bstatic'
11756 lt_prog_compiler_can_build_shared_CXX=no
11761 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11762 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11765 # Check to make sure the PIC flag actually works.
11767 if test -n "$lt_prog_compiler_pic_CXX"; then
11769 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11770 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11771 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 lt_prog_compiler_pic_works_CXX=no
11775 ac_outfile=conftest.$ac_objext
11776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11777 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11778 # Insert the option either (1) after the last *FLAGS variable, or
11779 # (2) before a word containing "conftest.", or (3) at the end.
11780 # Note that $ac_compile itself does not contain backslashes and begins
11781 # with a dollar sign (not a hyphen), so the echo should work correctly.
11782 # The option is referenced via a variable to avoid confusing sed.
11783 lt_compile=`echo "$ac_compile" | $SED \
11784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11786 -e 's:$: $lt_compiler_flag:'`
11787 (eval echo "\"\$as_me:11787: $lt_compile\"" >&5)
11788 (eval "$lt_compile" 2>conftest.err)
11790 cat conftest.err >&5
11791 echo "$as_me:11791: \$? = $ac_status" >&5
11792 if (exit $ac_status) && test -s "$ac_outfile"; then
11793 # The compiler can only warn and ignore the option if not recognized
11794 # So say no if there are warnings other than the usual output.
11795 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11798 lt_prog_compiler_pic_works_CXX=yes
11804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11805 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11807 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11808 case $lt_prog_compiler_pic_CXX in
11810 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11813 lt_prog_compiler_pic_CXX=
11814 lt_prog_compiler_can_build_shared_CXX=no
11819 # For platforms which do not support PIC, -DPIC is meaningless:
11821 lt_prog_compiler_pic_CXX=
11824 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11829 # Check to make sure the static flag actually works.
11831 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11832 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11833 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11834 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 lt_prog_compiler_static_works_CXX=no
11838 save_LDFLAGS="$LDFLAGS"
11839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11840 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11842 # The linker can only warn and ignore the option if not recognized
11843 # So say no if there are warnings
11844 if test -s conftest.err; then
11845 # Append any errors to the config.log.
11846 cat conftest.err 1>&5
11847 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11849 if diff conftest.exp conftest.er2 >/dev/null; then
11850 lt_prog_compiler_static_works_CXX=yes
11853 lt_prog_compiler_static_works_CXX=yes
11857 LDFLAGS="$save_LDFLAGS"
11860 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11861 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11863 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11866 lt_prog_compiler_static_CXX=
11870 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11871 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11872 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 lt_cv_prog_compiler_c_o_CXX=no
11876 $rm -r conftest 2>/dev/null
11880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11882 lt_compiler_flag="-o out/conftest2.$ac_objext"
11883 # Insert the option either (1) after the last *FLAGS variable, or
11884 # (2) before a word containing "conftest.", or (3) at the end.
11885 # Note that $ac_compile itself does not contain backslashes and begins
11886 # with a dollar sign (not a hyphen), so the echo should work correctly.
11887 lt_compile=`echo "$ac_compile" | $SED \
11888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11890 -e 's:$: $lt_compiler_flag:'`
11891 (eval echo "\"\$as_me:11891: $lt_compile\"" >&5)
11892 (eval "$lt_compile" 2>out/conftest.err)
11894 cat out/conftest.err >&5
11895 echo "$as_me:11895: \$? = $ac_status" >&5
11896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11898 # The compiler can only warn and ignore the option if not recognized
11899 # So say no if there are warnings
11900 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11903 lt_cv_prog_compiler_c_o_CXX=yes
11908 # SGI C++ compiler will create directory out/ii_files/ for
11909 # template instantiation
11910 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11911 $rm out/* && rmdir out
11917 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11918 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11921 hard_links="nottested"
11922 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11923 # do not overwrite the value of need_locks provided by the user
11924 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11925 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11930 ln conftest.a conftest.b 2>&5 || hard_links=no
11931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11932 echo "$as_me:$LINENO: result: $hard_links" >&5
11933 echo "${ECHO_T}$hard_links" >&6
11934 if test "$hard_links" = no; then
11935 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11936 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11943 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11944 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11949 # If we're using GNU nm, then we don't want the "-C" option.
11950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11951 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11952 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'
11954 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'
11958 export_symbols_cmds_CXX="$ltdll_cmds"
11961 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'
11964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11968 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11969 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11970 test "$ld_shlibs_CXX" = no && can_build_shared=no
11973 # Do we need to explicitly link libc?
11975 case "x$archive_cmds_need_lc_CXX" in
11977 # Assume -lc should be added
11978 archive_cmds_need_lc_CXX=yes
11980 if test "$enable_shared" = yes && test "$GCC" = yes; then
11981 case $archive_cmds_CXX in
11983 # FIXME: we may have to deal with multi-command sequences.
11986 # Test whether the compiler implicitly links with -lc since on some
11987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11988 # to ld, don't add -lc before -lgcc.
11989 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } 2>conftest.err; then
12001 libobjs=conftest.$ac_objext
12003 wl=$lt_prog_compiler_wl_CXX
12004 pic_flag=$lt_prog_compiler_pic_CXX
12010 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12011 allow_undefined_flag_CXX=
12012 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12013 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }
12018 archive_cmds_need_lc_CXX=no
12020 archive_cmds_need_lc_CXX=yes
12022 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12024 cat conftest.err 1>&5
12027 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12028 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12035 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12036 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12037 library_names_spec=
12038 libname_spec='lib$name'
12042 postuninstall_cmds=
12046 shlibpath_overrides_runpath=unknown
12048 dynamic_linker="$host_os ld.so"
12049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12050 if test "$GCC" = yes; then
12051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12052 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12053 # if the path contains ";" then we assume it to be the separator
12054 # otherwise default to the standard path separator (i.e. ":") - it is
12055 # assumed that no part of a normal pathname contains ";" but that should
12056 # okay in the real world where ";" in dirpaths is itself problematic.
12057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12064 need_lib_prefix=unknown
12065 hardcode_into_libs=no
12067 # when you set need_version to no, make sure it does not cause -set_version
12068 # flags to be left without arguments
12069 need_version=unknown
12074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12075 shlibpath_var=LIBPATH
12077 # AIX 3 has no versioning support, so we append a major version to the name.
12078 soname_spec='${libname}${release}${shared_ext}$major'
12085 hardcode_into_libs=yes
12086 if test "$host_cpu" = ia64; then
12087 # AIX 5 supports IA64
12088 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12089 shlibpath_var=LD_LIBRARY_PATH
12091 # With GCC up to 2.95.x, collect2 would create an import file
12092 # for dependence libraries. The import file would start with
12093 # the line `#! .'. This would cause the generated library to
12094 # depend on `.', always an invalid library. This was fixed in
12095 # development snapshots of GCC prior to 3.0.
12097 aix4 | aix4.[01] | aix4.[01].*)
12098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12100 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12103 can_build_shared=no
12107 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12108 # soname into executable. Probably we can add versioning support to
12109 # collect2, so additional links can be useful in future.
12110 if test "$aix_use_runtimelinking" = yes; then
12111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12112 # instead of lib<name>.a to let people know that these are not
12113 # typical AIX shared libraries.
12114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12116 # We preserve .a as extension for shared libraries through AIX4.2
12117 # and later when we are not doing run time linking.
12118 library_names_spec='${libname}${release}.a $libname.a'
12119 soname_spec='${libname}${release}${shared_ext}$major'
12121 shlibpath_var=LIBPATH
12126 library_names_spec='$libname.ixlibrary $libname.a'
12127 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12128 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'
12132 library_names_spec='${libname}${shared_ext}'
12133 dynamic_linker="$host_os ld.so"
12134 shlibpath_var=LIBRARY_PATH
12140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12141 soname_spec='${libname}${release}${shared_ext}$major'
12142 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12143 shlibpath_var=LD_LIBRARY_PATH
12144 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12145 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12146 # the default ld.so.conf also contains /usr/contrib/lib and
12147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12148 # libtool to hard-code these into programs
12151 cygwin* | mingw* | pw32*)
12152 version_type=windows
12157 case $GCC,$host_os in
12158 yes,cygwin* | yes,mingw* | yes,pw32*)
12159 library_names_spec='$libname.dll.a'
12160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12161 postinstall_cmds='base_file=`basename \${file}`~
12162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12163 dldir=$destdir/`dirname \$dlpath`~
12164 test -d \$dldir || mkdir -p \$dldir~
12165 $install_prog $dir/$dlname \$dldir/$dlname~
12166 chmod a+x \$dldir/$dlname'
12167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12168 dlpath=$dir/\$dldll~
12170 shlibpath_overrides_runpath=yes
12174 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12175 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12176 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12179 # MinGW DLLs use traditional 'lib' prefix
12180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12181 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12182 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12183 # It is most probably a Windows format PATH printed by
12184 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12185 # path with ; separators, and with drive letters. We can handle the
12186 # drive letters (cygwin fileutils understands them), so leave them,
12187 # especially as we might pass files found there to a mingw objdump,
12188 # which wouldn't understand a cygwinified path. Ahh.
12189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12195 # pw32 DLLs use 'pw' prefix rather than 'lib'
12196 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12202 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12205 dynamic_linker='Win32 ld.exe'
12206 # FIXME: first we should search . and the directory the executable is in
12210 darwin* | rhapsody*)
12211 dynamic_linker="$host_os dyld"
12212 version_type=darwin
12215 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12216 soname_spec='${libname}${release}${major}$shared_ext'
12217 shlibpath_overrides_runpath=yes
12218 shlibpath_var=DYLD_LIBRARY_PATH
12219 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12220 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12221 if test "$GCC" = yes; then
12222 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"`
12224 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 shlibpath_var=LD_LIBRARY_PATH
12246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12247 soname_spec='${libname}${release}${shared_ext}$major'
12248 shlibpath_var=LD_LIBRARY_PATH
12249 shlibpath_overrides_runpath=no
12250 hardcode_into_libs=yes
12251 dynamic_linker='GNU ld.so'
12254 freebsd* | dragonfly*)
12255 # DragonFly does not have aout. When/if they implement a new
12256 # versioning mechanism, adjust this.
12257 if test -x /usr/bin/objformat; then
12258 objformat=`/usr/bin/objformat`
12261 freebsd[123]*) objformat=aout ;;
12262 *) objformat=elf ;;
12265 version_type=freebsd-$objformat
12266 case $version_type in
12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12277 shlibpath_var=LD_LIBRARY_PATH
12280 shlibpath_overrides_runpath=yes
12282 freebsd3.[01]* | freebsdelf3.[01]*)
12283 shlibpath_overrides_runpath=yes
12284 hardcode_into_libs=yes
12286 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12287 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12288 shlibpath_overrides_runpath=no
12289 hardcode_into_libs=yes
12291 freebsd*) # from 4.6 on
12292 shlibpath_overrides_runpath=yes
12293 hardcode_into_libs=yes
12302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12303 soname_spec='${libname}${release}${shared_ext}$major'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 hardcode_into_libs=yes
12308 hpux9* | hpux10* | hpux11*)
12309 # Give a soname corresponding to the major version so that dld.sl refuses to
12310 # link against other versions.
12317 hardcode_into_libs=yes
12318 dynamic_linker="$host_os dld.so"
12319 shlibpath_var=LD_LIBRARY_PATH
12320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322 soname_spec='${libname}${release}${shared_ext}$major'
12323 if test "X$HPUX_IA64_MODE" = X32; then
12324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12332 hardcode_into_libs=yes
12333 dynamic_linker="$host_os dld.sl"
12334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12337 soname_spec='${libname}${release}${shared_ext}$major'
12338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12343 dynamic_linker="$host_os dld.sl"
12344 shlibpath_var=SHLIB_PATH
12345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12347 soname_spec='${libname}${release}${shared_ext}$major'
12350 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12351 postinstall_cmds='chmod 555 $lib'
12358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12359 soname_spec='${libname}${release}${shared_ext}$major'
12360 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12361 shlibpath_var=LD_LIBRARY_PATH
12362 shlibpath_overrides_runpath=no
12363 hardcode_into_libs=yes
12366 irix5* | irix6* | nonstopux*)
12368 nonstopux*) version_type=nonstopux ;;
12370 if test "$lt_cv_prog_gnu_ld" = yes; then
12378 soname_spec='${libname}${release}${shared_ext}$major'
12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12381 irix5* | nonstopux*)
12382 libsuff= shlibsuff=
12385 case $LD in # libtool.m4 will add one of these switches to LD
12386 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12387 libsuff= shlibsuff= libmagic=32-bit;;
12388 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12389 libsuff=32 shlibsuff=N32 libmagic=N32;;
12390 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12391 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12392 *) libsuff= shlibsuff= libmagic=never-match;;
12396 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12397 shlibpath_overrides_runpath=no
12398 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12399 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12400 hardcode_into_libs=yes
12403 # No shared lib support for Linux oldld, aout, or coff.
12404 linux*oldld* | linux*aout* | linux*coff*)
12408 # This must be Linux ELF.
12413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12414 soname_spec='${libname}${release}${shared_ext}$major'
12415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12416 shlibpath_var=LD_LIBRARY_PATH
12417 shlibpath_overrides_runpath=no
12418 # This implies no fast_install, which is unacceptable.
12419 # Some rework will be needed to allow for fast_install
12420 # before this can be enabled.
12421 hardcode_into_libs=yes
12423 # find out which ABI we are using
12425 case "$host_cpu" in
12426 x86_64*|s390x*|powerpc64*)
12427 echo '#line 12427 "configure"' > conftest.$ac_ext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429 (eval $ac_compile) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; then
12433 case `/usr/bin/file conftest.$ac_objext` in
12436 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12444 # Append ld.so.conf contents to the search path
12445 if test -f /etc/ld.so.conf; then
12446 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12447 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12450 # We used to test for /lib/ld.so.1 and disable shared libraries on
12451 # powerpc, because MkLinux only supported shared libraries with the
12452 # GNU dynamic linker. Since this was broken with cross compilers,
12453 # most powerpc-linux boxes support dynamic linking these days and
12454 # people can always --disable-shared, the test was removed, and we
12455 # assume the GNU/Linux dynamic linker is in use.
12456 dynamic_linker='GNU/Linux ld.so'
12463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12464 soname_spec='${libname}${release}${shared_ext}$major'
12465 shlibpath_var=LD_LIBRARY_PATH
12466 shlibpath_overrides_runpath=no
12467 hardcode_into_libs=yes
12468 dynamic_linker='GNU ld.so'
12475 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12478 dynamic_linker='NetBSD (a.out) ld.so'
12480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12481 soname_spec='${libname}${release}${shared_ext}$major'
12482 dynamic_linker='NetBSD ld.elf_so'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 shlibpath_overrides_runpath=yes
12486 hardcode_into_libs=yes
12491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12492 shlibpath_var=LD_LIBRARY_PATH
12493 shlibpath_overrides_runpath=yes
12500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12501 soname_spec='${libname}${release}${shared_ext}$major'
12502 shlibpath_var=LD_LIBRARY_PATH
12503 shlibpath_overrides_runpath=yes
12508 sys_lib_dlsearch_path_spec="/usr/lib"
12510 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12512 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12513 *) need_version=no ;;
12515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12517 shlibpath_var=LD_LIBRARY_PATH
12518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12520 openbsd2.[89] | openbsd2.[89].*)
12521 shlibpath_overrides_runpath=no
12524 shlibpath_overrides_runpath=yes
12528 shlibpath_overrides_runpath=yes
12533 libname_spec='$name'
12536 library_names_spec='$libname${shared_ext} $libname.a'
12537 dynamic_linker='OS/2 ld.exe'
12538 shlibpath_var=LIBPATH
12541 osf3* | osf4* | osf5*)
12545 soname_spec='${libname}${release}${shared_ext}$major'
12546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12547 shlibpath_var=LD_LIBRARY_PATH
12548 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12549 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12557 soname_spec='${libname}${release}${shared_ext}$major'
12558 shlibpath_var=LD_LIBRARY_PATH
12559 shlibpath_overrides_runpath=yes
12560 hardcode_into_libs=yes
12561 # ldd complains unless libraries are executable
12562 postinstall_cmds='chmod +x $lib'
12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12568 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12569 shlibpath_var=LD_LIBRARY_PATH
12570 shlibpath_overrides_runpath=yes
12571 if test "$with_gnu_ld" = yes; then
12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580 soname_spec='${libname}${release}${shared_ext}$major'
12581 shlibpath_var=LD_LIBRARY_PATH
12582 case $host_vendor in
12584 shlibpath_overrides_runpath=no
12586 export_dynamic_flag_spec='${wl}-Blargedynsym'
12587 runpath_var=LD_RUN_PATH
12595 shlibpath_overrides_runpath=no
12596 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12602 if test -d /usr/nec ;then
12604 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12605 soname_spec='$libname${shared_ext}.$major'
12606 shlibpath_var=LD_LIBRARY_PATH
12610 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12611 version_type=freebsd-elf
12614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12615 soname_spec='${libname}${release}${shared_ext}$major'
12616 shlibpath_var=LD_LIBRARY_PATH
12617 hardcode_into_libs=yes
12618 if test "$with_gnu_ld" = yes; then
12619 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12620 shlibpath_overrides_runpath=no
12622 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12623 shlibpath_overrides_runpath=yes
12626 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12630 sys_lib_dlsearch_path_spec='/usr/lib'
12635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12636 soname_spec='${libname}${release}${shared_ext}$major'
12637 shlibpath_var=LD_LIBRARY_PATH
12644 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12645 echo "${ECHO_T}$dynamic_linker" >&6
12646 test "$dynamic_linker" = no && can_build_shared=no
12648 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12649 if test "$GCC" = yes; then
12650 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12653 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12654 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12655 hardcode_action_CXX=
12656 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12657 test -n "$runpath_var_CXX" || \
12658 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12660 # We can hardcode non-existant directories.
12661 if test "$hardcode_direct_CXX" != no &&
12662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12663 # have to relink, otherwise we might link with an installed library
12664 # when we should be linking with a yet-to-be-installed one
12665 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12666 test "$hardcode_minus_L_CXX" != no; then
12667 # Linking always hardcodes the temporary library directory.
12668 hardcode_action_CXX=relink
12670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12671 hardcode_action_CXX=immediate
12674 # We cannot hardcode anything, or else we can only hardcode existing
12676 hardcode_action_CXX=unsupported
12678 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12679 echo "${ECHO_T}$hardcode_action_CXX" >&6
12681 if test "$hardcode_action_CXX" = relink; then
12682 # Fast installation is not supported
12683 enable_fast_install=no
12684 elif test "$shlibpath_overrides_runpath" = yes ||
12685 test "$enable_shared" = no; then
12686 # Fast installation is not necessary
12687 enable_fast_install=needless
12691 # The else clause should only fire when bootstrapping the
12692 # libtool distribution, otherwise you forgot to ship ltmain.sh
12693 # with your package, and you will get complaints that there are
12694 # no rules to generate ltmain.sh.
12695 if test -f "$ltmain"; then
12696 # See if we are running on zsh, and set the options which allow our commands through
12697 # without removal of \ escapes.
12698 if test -n "${ZSH_VERSION+set}" ; then
12699 setopt NO_GLOB_SUBST
12701 # Now quote all the things that may contain metacharacters while being
12702 # careful not to overquote the AC_SUBSTed values. We take copies of the
12703 # variables and quote the copies for generation of the libtool script.
12704 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12706 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12707 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12708 deplibs_check_method reload_flag reload_cmds need_locks \
12709 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12710 lt_cv_sys_global_symbol_to_c_name_address \
12711 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12712 old_postinstall_cmds old_postuninstall_cmds \
12716 lt_prog_compiler_wl_CXX \
12717 lt_prog_compiler_pic_CXX \
12718 lt_prog_compiler_static_CXX \
12719 lt_prog_compiler_no_builtin_flag_CXX \
12720 export_dynamic_flag_spec_CXX \
12721 thread_safe_flag_spec_CXX \
12722 whole_archive_flag_spec_CXX \
12723 enable_shared_with_static_runtimes_CXX \
12724 old_archive_cmds_CXX \
12725 old_archive_from_new_cmds_CXX \
12726 predep_objects_CXX \
12727 postdep_objects_CXX \
12730 compiler_lib_search_path_CXX \
12732 archive_expsym_cmds_CXX \
12733 postinstall_cmds_CXX \
12734 postuninstall_cmds_CXX \
12735 old_archive_from_expsyms_cmds_CXX \
12736 allow_undefined_flag_CXX \
12737 no_undefined_flag_CXX \
12738 export_symbols_cmds_CXX \
12739 hardcode_libdir_flag_spec_CXX \
12740 hardcode_libdir_flag_spec_ld_CXX \
12741 hardcode_libdir_separator_CXX \
12742 hardcode_automatic_CXX \
12744 module_expsym_cmds_CXX \
12745 lt_cv_prog_compiler_c_o_CXX \
12746 exclude_expsyms_CXX \
12747 include_expsyms_CXX; do
12750 old_archive_cmds_CXX | \
12751 old_archive_from_new_cmds_CXX | \
12752 archive_cmds_CXX | \
12753 archive_expsym_cmds_CXX | \
12754 module_cmds_CXX | \
12755 module_expsym_cmds_CXX | \
12756 old_archive_from_expsyms_cmds_CXX | \
12757 export_symbols_cmds_CXX | \
12758 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12759 postinstall_cmds | postuninstall_cmds | \
12760 old_postinstall_cmds | old_postuninstall_cmds | \
12761 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12762 # Double-quote double-evaled strings.
12763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12766 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12772 *'\$0 --fallback-echo"')
12773 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12779 cat <<__EOF__ >> "$cfgfile"
12780 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12784 # Shell to use when invoking shell scripts.
12787 # Whether or not to build shared libraries.
12788 build_libtool_libs=$enable_shared
12790 # Whether or not to build static libraries.
12791 build_old_libs=$enable_static
12793 # Whether or not to add -lc for building shared libraries.
12794 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12796 # Whether or not to disallow shared libs when runtime libs are static
12797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12799 # Whether or not to optimize for fast installation.
12800 fast_install=$enable_fast_install
12803 host_alias=$host_alias
12807 # The build system.
12808 build_alias=$build_alias
12812 # An echo program that does not interpret backslashes.
12817 AR_FLAGS=$lt_AR_FLAGS
12822 # LTCC compiler flags.
12823 LTCFLAGS=$lt_LTCFLAGS
12825 # A language-specific compiler.
12826 CC=$lt_compiler_CXX
12828 # Is the compiler the GNU C compiler?
12831 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12832 gcc_ver=\`gcc -dumpversion\`
12837 # The linker used to build libraries.
12840 # Whether we need hard or soft links.
12843 # A BSD-compatible nm program.
12846 # A symbol stripping program
12849 # Used to examine libraries when file_magic_cmd begins "file"
12850 MAGIC_CMD=$MAGIC_CMD
12852 # Used on cygwin: DLL creation program.
12855 # Used on cygwin: object dumper.
12858 # Used on cygwin: assembler.
12861 # The name of the directory that contains temporary libtool files.
12864 # How to create reloadable object files.
12865 reload_flag=$lt_reload_flag
12866 reload_cmds=$lt_reload_cmds
12868 # How to pass a linker flag through the compiler.
12869 wl=$lt_lt_prog_compiler_wl_CXX
12871 # Object file suffix (normally "o").
12872 objext="$ac_objext"
12874 # Old archive suffix (normally "a").
12877 # Shared library suffix (normally ".so").
12878 shrext_cmds='$shrext_cmds'
12880 # Executable file suffix (normally "").
12883 # Additional compiler flags for building library objects.
12884 pic_flag=$lt_lt_prog_compiler_pic_CXX
12887 # What is the maximum length of a command?
12888 max_cmd_len=$lt_cv_sys_max_cmd_len
12890 # Does compiler simultaneously support -c and -o options?
12891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12893 # Must we lock files when doing compilation?
12894 need_locks=$lt_need_locks
12896 # Do we need the lib prefix for modules?
12897 need_lib_prefix=$need_lib_prefix
12899 # Do we need a version for libraries?
12900 need_version=$need_version
12902 # Whether dlopen is supported.
12903 dlopen_support=$enable_dlopen
12905 # Whether dlopen of programs is supported.
12906 dlopen_self=$enable_dlopen_self
12908 # Whether dlopen of statically linked programs is supported.
12909 dlopen_self_static=$enable_dlopen_self_static
12911 # Compiler flag to prevent dynamic linking.
12912 link_static_flag=$lt_lt_prog_compiler_static_CXX
12914 # Compiler flag to turn off builtin functions.
12915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12917 # Compiler flag to allow reflexive dlopens.
12918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12920 # Compiler flag to generate shared objects directly from archives.
12921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12923 # Compiler flag to generate thread-safe objects.
12924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12926 # Library versioning type.
12927 version_type=$version_type
12929 # Format of library name prefix.
12930 libname_spec=$lt_libname_spec
12932 # List of archive names. First name is the real one, the rest are links.
12933 # The last name is the one that the linker finds with -lNAME.
12934 library_names_spec=$lt_library_names_spec
12936 # The coded name of the library, if different from the real name.
12937 soname_spec=$lt_soname_spec
12939 # Commands used to build and install an old-style archive.
12941 old_archive_cmds=$lt_old_archive_cmds_CXX
12942 old_postinstall_cmds=$lt_old_postinstall_cmds
12943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12945 # Create an old-style archive from a shared archive.
12946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12948 # Create a temporary old-style archive to link instead of a shared archive.
12949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12951 # Commands used to build and install a shared archive.
12952 archive_cmds=$lt_archive_cmds_CXX
12953 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12954 postinstall_cmds=$lt_postinstall_cmds
12955 postuninstall_cmds=$lt_postuninstall_cmds
12957 # Commands used to build a loadable module (assumed same as above if empty)
12958 module_cmds=$lt_module_cmds_CXX
12959 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12961 # Commands to strip libraries.
12962 old_striplib=$lt_old_striplib
12963 striplib=$lt_striplib
12965 # Dependencies to place before the objects being linked to create a
12967 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12969 # Dependencies to place after the objects being linked to create a
12971 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12973 # Dependencies to place before the objects being linked to create a
12975 predeps=$lt_predeps_CXX
12977 # Dependencies to place after the objects being linked to create a
12979 postdeps=$lt_postdeps_CXX
12981 # The library search path used internally by the compiler when linking
12982 # a shared library.
12983 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12985 # Method to check whether dependent libraries are shared objects.
12986 deplibs_check_method=$lt_deplibs_check_method
12988 # Command to use when deplibs_check_method == file_magic.
12989 file_magic_cmd=$lt_file_magic_cmd
12991 # Flag that allows shared libraries with undefined symbols to be built.
12992 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12994 # Flag that forces no undefined symbols.
12995 no_undefined_flag=$lt_no_undefined_flag_CXX
12997 # Commands used to finish a libtool library installation in a directory.
12998 finish_cmds=$lt_finish_cmds
13000 # Same as above, but a single script fragment to be evaled but not shown.
13001 finish_eval=$lt_finish_eval
13003 # Take the output of nm and produce a listing of raw symbols and C names.
13004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13006 # Transform the output of nm in a proper C declaration
13007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13009 # Transform the output of nm in a C name address pair
13010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13012 # This is the shared library runtime path variable.
13013 runpath_var=$runpath_var
13015 # This is the shared library path variable.
13016 shlibpath_var=$shlibpath_var
13018 # Is shlibpath searched before the hard-coded library search path?
13019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13021 # How to hardcode a shared library path into an executable.
13022 hardcode_action=$hardcode_action_CXX
13024 # Whether we should hardcode library paths into libraries.
13025 hardcode_into_libs=$hardcode_into_libs
13027 # Flag to hardcode \$libdir into a binary during linking.
13028 # This must work even if \$libdir does not exist.
13029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13031 # If ld is used when linking, flag to hardcode \$libdir into
13032 # a binary during linking. This must work even if \$libdir does
13034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13036 # Whether we need a single -rpath flag with a separated argument.
13037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13040 # resulting binary.
13041 hardcode_direct=$hardcode_direct_CXX
13043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13044 # resulting binary.
13045 hardcode_minus_L=$hardcode_minus_L_CXX
13047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13048 # the resulting binary.
13049 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13051 # Set to yes if building a shared library automatically hardcodes DIR into the library
13052 # and all subsequent libraries and executables linked against it.
13053 hardcode_automatic=$hardcode_automatic_CXX
13055 # Variables whose values should be saved in libtool wrapper scripts and
13056 # restored at relink time.
13057 variables_saved_for_relink="$variables_saved_for_relink"
13059 # Whether libtool must link a program against all its dependency libraries.
13060 link_all_deplibs=$link_all_deplibs_CXX
13062 # Compile-time system search path for libraries
13063 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13065 # Run-time system search path for libraries
13066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13068 # Fix the shell variable \$srcfile for the compiler.
13069 fix_srcfile_path="$fix_srcfile_path_CXX"
13071 # Set to yes if exported symbols are required.
13072 always_export_symbols=$always_export_symbols_CXX
13074 # The commands to list exported symbols.
13075 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13077 # The commands to extract the exported symbol list from a shared archive.
13078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13080 # Symbols that should not be listed in the preloaded symbols.
13081 exclude_expsyms=$lt_exclude_expsyms_CXX
13083 # Symbols that must always be exported.
13084 include_expsyms=$lt_include_expsyms_CXX
13086 # ### END LIBTOOL TAG CONFIG: $tagname
13092 # If there is no Makefile yet, we rely on a make rule to execute
13093 # `config.status --recheck' to rerun these tests and create the
13094 # libtool script then.
13095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13096 if test -f "$ltmain_in"; then
13097 test -f Makefile && make "$ltmain"
13103 ac_cpp='$CPP $CPPFLAGS'
13104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13112 with_gnu_ldcxx=$with_gnu_ld
13113 with_gnu_ld=$lt_save_with_gnu_ld
13114 lt_cv_path_LDCXX=$lt_cv_path_LD
13115 lt_cv_path_LD=$lt_save_path_LD
13116 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13117 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13125 if test -n "$F77" && test "X$F77" != "Xno"; then
13128 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13129 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13130 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13133 archive_cmds_need_lc_F77=no
13134 allow_undefined_flag_F77=
13135 always_export_symbols_F77=no
13136 archive_expsym_cmds_F77=
13137 export_dynamic_flag_spec_F77=
13138 hardcode_direct_F77=no
13139 hardcode_libdir_flag_spec_F77=
13140 hardcode_libdir_flag_spec_ld_F77=
13141 hardcode_libdir_separator_F77=
13142 hardcode_minus_L_F77=no
13143 hardcode_automatic_F77=no
13145 module_expsym_cmds_F77=
13146 link_all_deplibs_F77=unknown
13147 old_archive_cmds_F77=$old_archive_cmds
13148 no_undefined_flag_F77=
13149 whole_archive_flag_spec_F77=
13150 enable_shared_with_static_runtimes_F77=no
13152 # Source file extension for f77 test sources.
13155 # Object file extension for compiled f77 test sources.
13159 # Code to be used in simple compile tests
13160 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13162 # Code to be used in simple link tests
13163 lt_simple_link_test_code=" program t\n end\n"
13165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13167 # If no C compiler was specified, use CC.
13170 # If no C compiler flags were specified, use CFLAGS.
13171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13173 # Allow CC to be a program name with arguments.
13177 # save warnings/boilerplate of simple test code
13178 ac_outfile=conftest.$ac_objext
13179 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13181 _lt_compiler_boilerplate=`cat conftest.err`
13184 ac_outfile=conftest.$ac_objext
13185 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13187 _lt_linker_boilerplate=`cat conftest.err`
13191 # Allow CC to be a program name with arguments.
13196 for cc_temp in $compiler""; do
13198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13204 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13207 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13208 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13209 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13210 echo "${ECHO_T}$can_build_shared" >&6
13212 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13213 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13214 test "$can_build_shared" = "no" && enable_shared=no
13216 # On AIX, shared libraries and static libraries use the same namespace, and
13217 # are all built from PIC.
13220 test "$enable_shared" = yes && enable_static=no
13221 if test -n "$RANLIB"; then
13222 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13223 postinstall_cmds='$RANLIB $lib'
13227 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13228 test "$enable_shared" = yes && enable_static=no
13232 echo "$as_me:$LINENO: result: $enable_shared" >&5
13233 echo "${ECHO_T}$enable_shared" >&6
13235 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13236 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13237 # Make sure either enable_shared or enable_static is yes.
13238 test "$enable_shared" = yes || enable_static=yes
13239 echo "$as_me:$LINENO: result: $enable_static" >&5
13240 echo "${ECHO_T}$enable_static" >&6
13245 lt_prog_compiler_wl_F77=
13246 lt_prog_compiler_pic_F77=
13247 lt_prog_compiler_static_F77=
13249 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13250 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13252 if test "$GCC" = yes; then
13253 lt_prog_compiler_wl_F77='-Wl,'
13254 lt_prog_compiler_static_F77='-static'
13258 # All AIX code is PIC.
13259 if test "$host_cpu" = ia64; then
13260 # AIX 5 now supports IA64 processor
13261 lt_prog_compiler_static_F77='-Bstatic'
13266 # FIXME: we need at least 68020 code to build shared libraries, but
13267 # adding the `-m68020' flag to GCC prevents building anything better,
13269 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13272 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13273 # PIC is the default for these OSes.
13276 mingw* | pw32* | os2*)
13277 # This hack is so that the source file can tell whether it is being
13278 # built for inclusion in a dll (and should export symbols for example).
13279 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13282 darwin* | rhapsody*)
13283 # PIC is the default on this platform
13284 # Common symbols not allowed in MH_DYLIB files
13285 lt_prog_compiler_pic_F77='-fno-common'
13289 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13290 # Instead, we relocate shared libraries at runtime.
13294 # Just because we use GCC doesn't mean we suddenly get shared libraries
13295 # on systems that don't support them.
13296 lt_prog_compiler_can_build_shared_F77=no
13301 if test -d /usr/nec; then
13302 lt_prog_compiler_pic_F77=-Kconform_pic
13307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13308 # not for PA HP-UX.
13314 lt_prog_compiler_pic_F77='-fPIC'
13320 lt_prog_compiler_pic_F77='-fPIC'
13324 # PORTME Check for flag to pass linker flags through the system compiler.
13327 lt_prog_compiler_wl_F77='-Wl,'
13328 if test "$host_cpu" = ia64; then
13329 # AIX 5 now supports IA64 processor
13330 lt_prog_compiler_static_F77='-Bstatic'
13332 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13336 # PIC is the default on this platform
13337 # Common symbols not allowed in MH_DYLIB files
13338 case $cc_basename in
13340 lt_prog_compiler_pic_F77='-qnocommon'
13341 lt_prog_compiler_wl_F77='-Wl,'
13346 mingw* | pw32* | os2*)
13347 # This hack is so that the source file can tell whether it is being
13348 # built for inclusion in a dll (and should export symbols for example).
13349 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13352 hpux9* | hpux10* | hpux11*)
13353 lt_prog_compiler_wl_F77='-Wl,'
13354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13355 # not for PA HP-UX.
13361 lt_prog_compiler_pic_F77='+Z'
13364 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13365 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13368 irix5* | irix6* | nonstopux*)
13369 lt_prog_compiler_wl_F77='-Wl,'
13370 # PIC (with -KPIC) is the default.
13371 lt_prog_compiler_static_F77='-non_shared'
13375 lt_prog_compiler_pic_F77='-KPIC'
13376 lt_prog_compiler_static_F77='-Bstatic'
13380 case $cc_basename in
13382 lt_prog_compiler_wl_F77='-Wl,'
13383 lt_prog_compiler_pic_F77='-KPIC'
13384 lt_prog_compiler_static_F77='-static'
13386 pgcc* | pgf77* | pgf90* | pgf95*)
13387 # Portland Group compilers (*not* the Pentium gcc compiler,
13388 # which looks to be a dead project)
13389 lt_prog_compiler_wl_F77='-Wl,'
13390 lt_prog_compiler_pic_F77='-fpic'
13391 lt_prog_compiler_static_F77='-Bstatic'
13394 lt_prog_compiler_wl_F77='-Wl,'
13395 # All Alpha code is PIC.
13396 lt_prog_compiler_static_F77='-non_shared'
13401 osf3* | osf4* | osf5*)
13402 lt_prog_compiler_wl_F77='-Wl,'
13403 # All OSF/1 code is PIC.
13404 lt_prog_compiler_static_F77='-non_shared'
13408 lt_prog_compiler_pic_F77='-KPIC'
13409 lt_prog_compiler_static_F77='-Bstatic'
13410 case $cc_basename in
13411 f77* | f90* | f95*)
13412 lt_prog_compiler_wl_F77='-Qoption ld ';;
13414 lt_prog_compiler_wl_F77='-Wl,';;
13419 lt_prog_compiler_wl_F77='-Qoption ld '
13420 lt_prog_compiler_pic_F77='-PIC'
13421 lt_prog_compiler_static_F77='-Bstatic'
13424 sysv4 | sysv4.2uw2* | sysv4.3*)
13425 lt_prog_compiler_wl_F77='-Wl,'
13426 lt_prog_compiler_pic_F77='-KPIC'
13427 lt_prog_compiler_static_F77='-Bstatic'
13431 if test -d /usr/nec ;then
13432 lt_prog_compiler_pic_F77='-Kconform_pic'
13433 lt_prog_compiler_static_F77='-Bstatic'
13437 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13438 lt_prog_compiler_wl_F77='-Wl,'
13439 lt_prog_compiler_pic_F77='-KPIC'
13440 lt_prog_compiler_static_F77='-Bstatic'
13444 lt_prog_compiler_wl_F77='-Wl,'
13445 lt_prog_compiler_can_build_shared_F77=no
13449 lt_prog_compiler_pic_F77='-pic'
13450 lt_prog_compiler_static_F77='-Bstatic'
13454 lt_prog_compiler_can_build_shared_F77=no
13459 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13460 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13463 # Check to make sure the PIC flag actually works.
13465 if test -n "$lt_prog_compiler_pic_F77"; then
13467 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13468 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13469 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 lt_prog_compiler_pic_works_F77=no
13473 ac_outfile=conftest.$ac_objext
13474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13475 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13476 # Insert the option either (1) after the last *FLAGS variable, or
13477 # (2) before a word containing "conftest.", or (3) at the end.
13478 # Note that $ac_compile itself does not contain backslashes and begins
13479 # with a dollar sign (not a hyphen), so the echo should work correctly.
13480 # The option is referenced via a variable to avoid confusing sed.
13481 lt_compile=`echo "$ac_compile" | $SED \
13482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13484 -e 's:$: $lt_compiler_flag:'`
13485 (eval echo "\"\$as_me:13485: $lt_compile\"" >&5)
13486 (eval "$lt_compile" 2>conftest.err)
13488 cat conftest.err >&5
13489 echo "$as_me:13489: \$? = $ac_status" >&5
13490 if (exit $ac_status) && test -s "$ac_outfile"; then
13491 # The compiler can only warn and ignore the option if not recognized
13492 # So say no if there are warnings other than the usual output.
13493 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13495 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13496 lt_prog_compiler_pic_works_F77=yes
13502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13503 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13505 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13506 case $lt_prog_compiler_pic_F77 in
13508 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13511 lt_prog_compiler_pic_F77=
13512 lt_prog_compiler_can_build_shared_F77=no
13517 # For platforms which do not support PIC, -DPIC is meaningless:
13519 lt_prog_compiler_pic_F77=
13522 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13527 # Check to make sure the static flag actually works.
13529 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13530 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13531 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13532 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 lt_prog_compiler_static_works_F77=no
13536 save_LDFLAGS="$LDFLAGS"
13537 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13538 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13540 # The linker can only warn and ignore the option if not recognized
13541 # So say no if there are warnings
13542 if test -s conftest.err; then
13543 # Append any errors to the config.log.
13544 cat conftest.err 1>&5
13545 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13547 if diff conftest.exp conftest.er2 >/dev/null; then
13548 lt_prog_compiler_static_works_F77=yes
13551 lt_prog_compiler_static_works_F77=yes
13555 LDFLAGS="$save_LDFLAGS"
13558 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13559 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13561 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13564 lt_prog_compiler_static_F77=
13568 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13569 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13570 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 lt_cv_prog_compiler_c_o_F77=no
13574 $rm -r conftest 2>/dev/null
13578 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13580 lt_compiler_flag="-o out/conftest2.$ac_objext"
13581 # Insert the option either (1) after the last *FLAGS variable, or
13582 # (2) before a word containing "conftest.", or (3) at the end.
13583 # Note that $ac_compile itself does not contain backslashes and begins
13584 # with a dollar sign (not a hyphen), so the echo should work correctly.
13585 lt_compile=`echo "$ac_compile" | $SED \
13586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13588 -e 's:$: $lt_compiler_flag:'`
13589 (eval echo "\"\$as_me:13589: $lt_compile\"" >&5)
13590 (eval "$lt_compile" 2>out/conftest.err)
13592 cat out/conftest.err >&5
13593 echo "$as_me:13593: \$? = $ac_status" >&5
13594 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13596 # The compiler can only warn and ignore the option if not recognized
13597 # So say no if there are warnings
13598 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13599 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13600 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13601 lt_cv_prog_compiler_c_o_F77=yes
13606 # SGI C++ compiler will create directory out/ii_files/ for
13607 # template instantiation
13608 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13609 $rm out/* && rmdir out
13615 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13616 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13619 hard_links="nottested"
13620 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13621 # do not overwrite the value of need_locks provided by the user
13622 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13623 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13628 ln conftest.a conftest.b 2>&5 || hard_links=no
13629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13630 echo "$as_me:$LINENO: result: $hard_links" >&5
13631 echo "${ECHO_T}$hard_links" >&6
13632 if test "$hard_links" = no; then
13633 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13634 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13641 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13642 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13645 allow_undefined_flag_F77=
13646 enable_shared_with_static_runtimes_F77=no
13648 archive_expsym_cmds_F77=
13649 old_archive_From_new_cmds_F77=
13650 old_archive_from_expsyms_cmds_F77=
13651 export_dynamic_flag_spec_F77=
13652 whole_archive_flag_spec_F77=
13653 thread_safe_flag_spec_F77=
13654 hardcode_libdir_flag_spec_F77=
13655 hardcode_libdir_flag_spec_ld_F77=
13656 hardcode_libdir_separator_F77=
13657 hardcode_direct_F77=no
13658 hardcode_minus_L_F77=no
13659 hardcode_shlibpath_var_F77=unsupported
13660 link_all_deplibs_F77=unknown
13661 hardcode_automatic_F77=no
13663 module_expsym_cmds_F77=
13664 always_export_symbols_F77=no
13665 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13666 # include_expsyms should be a list of space-separated symbols to be *always*
13667 # included in the symbol list
13668 include_expsyms_F77=
13669 # exclude_expsyms can be an extended regexp of symbols to exclude
13670 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13671 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13672 # as well as any symbol that contains `d'.
13673 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13674 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13675 # platforms (ab)use it in PIC code, but their linkers get confused if
13676 # the symbol is explicitly referenced. Since portable code cannot
13677 # rely on this symbol name, it's probably fine to never include it in
13678 # preloaded symbol tables.
13679 extract_expsyms_cmds=
13680 # Just being paranoid about ensuring that cc_basename is set.
13681 for cc_temp in $compiler""; do
13683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13689 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13692 cygwin* | mingw* | pw32*)
13693 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13694 # When not using gcc, we currently assume that we are using
13695 # Microsoft Visual C++.
13696 if test "$GCC" != yes; then
13701 # we just hope/assume this is gcc and not c89 (= MSVC++)
13710 if test "$with_gnu_ld" = yes; then
13711 # If archive_cmds runs LD, not CC, wlarc should be empty
13714 # Set some defaults for GNU ld with shared library support. These
13715 # are reset later if shared libraries are not supported. Putting them
13716 # here allows them to be overridden if necessary.
13717 runpath_var=LD_RUN_PATH
13718 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13719 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13720 # ancient GNU ld didn't support --whole-archive et. al.
13721 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13722 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13724 whole_archive_flag_spec_F77=
13726 supports_anon_versioning=no
13727 case `$LD -v 2>/dev/null` in
13728 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13729 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13730 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13731 *\ 2.11.*) ;; # other 2.11 versions
13732 *) supports_anon_versioning=yes ;;
13735 # See if GNU ld supports shared libraries.
13737 aix3* | aix4* | aix5*)
13738 # On AIX/PPC, the GNU linker is very broken
13739 if test "$host_cpu" != ia64; then
13743 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13744 *** to be unable to reliably create shared libraries on AIX.
13745 *** Therefore, libtool is disabling shared libraries support. If you
13746 *** really care for shared libraries, you may want to modify your PATH
13747 *** so that a non-GNU linker is found, and then restart.
13754 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)'
13755 hardcode_libdir_flag_spec_F77='-L$libdir'
13756 hardcode_minus_L_F77=yes
13758 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13759 # that the semantics of dynamic libraries on AmigaOS, at least up
13760 # to version 4, is to share data among multiple programs linked
13761 # with the same dynamic library. Since this doesn't match the
13762 # behavior of shared libraries on other platforms, we can't use
13768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13769 allow_undefined_flag_F77=unsupported
13770 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13771 # support --undefined. This deserves some investigation. FIXME
13772 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13778 cygwin* | mingw* | pw32*)
13779 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13780 # as there is no search path for DLLs.
13781 hardcode_libdir_flag_spec_F77='-L$libdir'
13782 allow_undefined_flag_F77=unsupported
13783 always_export_symbols_F77=no
13784 enable_shared_with_static_runtimes_F77=yes
13785 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13787 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13788 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13789 # If the export-symbols file already is a .def file (1st line
13790 # is EXPORTS), use it as is; otherwise, prepend...
13791 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13792 cp $export_symbols $output_objdir/$soname.def;
13794 echo EXPORTS > $output_objdir/$soname.def;
13795 cat $export_symbols >> $output_objdir/$soname.def;
13797 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13804 hardcode_direct_F77=no
13805 hardcode_shlibpath_var_F77=no
13806 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13807 export_dynamic_flag_spec_F77='${wl}-E'
13808 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13809 # Instead, shared libraries are loaded at an image base (0x10000000 by
13810 # default) and relocated if they conflict, which is a slow very memory
13811 # consuming and fragmenting process. To avoid this, we pick a random,
13812 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13813 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13814 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13815 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13821 case $cc_basename,$host_cpu in
13822 pgcc*) # Portland Group C compiler
13823 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'
13824 tmp_addflag=' $pic_flag'
13826 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13827 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'
13828 tmp_addflag=' $pic_flag -Mnomain' ;;
13829 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13830 tmp_addflag=' -i_dynamic' ;;
13831 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13832 tmp_addflag=' -i_dynamic -nofor_main' ;;
13833 ifc* | ifort*) # Intel Fortran compiler
13834 tmp_addflag=' -nofor_main' ;;
13836 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13838 if test $supports_anon_versioning = yes; then
13839 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13841 $echo "local: *; };" >> $output_objdir/$libname.ver~
13842 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13851 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13854 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13855 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13860 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13864 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13865 *** create shared libraries on Solaris systems. Therefore, libtool
13866 *** is disabling shared libraries support. We urge you to upgrade GNU
13867 *** binutils to release 2.9.1 or newer. Another option is to modify
13868 *** your PATH or compiler configuration so that the native linker is
13869 *** used, and then restart.
13872 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13873 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13874 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13880 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13881 case `$LD -v 2>&1` in
13882 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13886 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13887 *** reliably create shared libraries on SCO systems. Therefore, libtool
13888 *** is disabling shared libraries support. We urge you to upgrade GNU
13889 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13890 *** your PATH or compiler configuration so that the native linker is
13891 *** used, and then restart.
13896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13897 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13898 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13899 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13908 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13910 hardcode_direct_F77=yes
13911 hardcode_shlibpath_var_F77=no
13915 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13916 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13924 if test "$ld_shlibs_F77" = no; then
13926 hardcode_libdir_flag_spec_F77=
13927 export_dynamic_flag_spec_F77=
13928 whole_archive_flag_spec_F77=
13931 # PORTME fill in a description of your system's linker (not GNU ld)
13934 allow_undefined_flag_F77=unsupported
13935 always_export_symbols_F77=yes
13936 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'
13937 # Note: this linker hardcodes the directories in LIBPATH if there
13938 # are no directories specified by -L.
13939 hardcode_minus_L_F77=yes
13940 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13941 # Neither direct hardcoding nor static linking is supported with a
13943 hardcode_direct_F77=unsupported
13948 if test "$host_cpu" = ia64; then
13949 # On IA64, the linker does run time linking by default, so we don't
13950 # have to do anything special.
13951 aix_use_runtimelinking=no
13952 exp_sym_flag='-Bexport'
13955 # If we're using GNU nm, then we don't want the "-C" option.
13956 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13957 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13958 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'
13960 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'
13962 aix_use_runtimelinking=no
13964 # Test if we are trying to use run time linking or normal
13965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13966 # need to do runtime linking.
13967 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13968 for ld_flag in $LDFLAGS; do
13969 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13970 aix_use_runtimelinking=yes
13977 exp_sym_flag='-bexport'
13978 no_entry_flag='-bnoentry'
13981 # When large executables or shared objects are built, AIX ld can
13982 # have problems creating the table of contents. If linking a library
13983 # or program results in "error TOC overflow" add -mminimal-toc to
13984 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13985 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13987 archive_cmds_F77=''
13988 hardcode_direct_F77=yes
13989 hardcode_libdir_separator_F77=':'
13990 link_all_deplibs_F77=yes
13992 if test "$GCC" = yes; then
13993 case $host_os in aix4.[012]|aix4.[012].*)
13994 # We only want to do this on AIX 4.2 and lower, the check
13995 # below for broken collect2 doesn't work under 4.3+
13996 collect2name=`${CC} -print-prog-name=collect2`
13997 if test -f "$collect2name" && \
13998 strings "$collect2name" | grep resolve_lib_name >/dev/null
14000 # We have reworked collect2
14001 hardcode_direct_F77=yes
14003 # We have old collect2
14004 hardcode_direct_F77=unsupported
14005 # It fails to find uninstalled libraries when the uninstalled
14006 # path is not listed in the libpath. Setting hardcode_minus_L
14007 # to unsupported forces relinking
14008 hardcode_minus_L_F77=yes
14009 hardcode_libdir_flag_spec_F77='-L$libdir'
14010 hardcode_libdir_separator_F77=
14014 shared_flag='-shared'
14015 if test "$aix_use_runtimelinking" = yes; then
14016 shared_flag="$shared_flag "'${wl}-G'
14020 if test "$host_cpu" = ia64; then
14021 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14022 # chokes on -Wl,-G. The following line is correct:
14025 if test "$aix_use_runtimelinking" = yes; then
14026 shared_flag='${wl}-G'
14028 shared_flag='${wl}-bM:SRE'
14033 # It seems that -bexpall does not export symbols beginning with
14034 # underscore (_), so it is better to generate a list of symbols to export.
14035 always_export_symbols_F77=yes
14036 if test "$aix_use_runtimelinking" = yes; then
14037 # Warning - without using the other runtime loading flags (-brtl),
14038 # -berok will link without error, but may produce a broken library.
14039 allow_undefined_flag_F77='-berok'
14040 # Determine the default libpath from the value encoded in an empty executable.
14041 cat >conftest.$ac_ext <<_ACEOF
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>conftest.er1
14050 grep -v '^ *+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_f77_werror_flag"
14056 || test ! -s conftest.err'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; } &&
14062 { ac_try='test -s conftest$ac_exeext'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14071 # Check for a 64-bit object if we didn't find anything.
14072 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; }
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14079 rm -f conftest.err conftest.$ac_objext \
14080 conftest$ac_exeext conftest.$ac_ext
14081 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14083 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14084 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14086 if test "$host_cpu" = ia64; then
14087 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14088 allow_undefined_flag_F77="-z nodefs"
14089 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14091 # Determine the default libpath from the value encoded in an empty executable.
14092 cat >conftest.$ac_ext <<_ACEOF
14097 rm -f conftest.$ac_objext conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099 (eval $ac_link) 2>conftest.er1
14101 grep -v '^ *+' conftest.er1 >conftest.err
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_f77_werror_flag"
14107 || test ! -s conftest.err'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest$ac_exeext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14122 # Check for a 64-bit object if we didn't find anything.
14123 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; }
14126 echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14130 rm -f conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14134 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14135 # Warning - without using the other run time loading flags,
14136 # -berok will link without error, but may produce a broken library.
14137 no_undefined_flag_F77=' ${wl}-bernotok'
14138 allow_undefined_flag_F77=' ${wl}-berok'
14139 # Exported symbols can be pulled into shared objects from archives
14140 whole_archive_flag_spec_F77='$convenience'
14141 archive_cmds_need_lc_F77=yes
14142 # This is similar to how AIX traditionally builds its shared libraries.
14143 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14149 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)'
14150 hardcode_libdir_flag_spec_F77='-L$libdir'
14151 hardcode_minus_L_F77=yes
14152 # see comment about different semantics on the GNU ld section
14157 export_dynamic_flag_spec_F77=-rdynamic
14160 cygwin* | mingw* | pw32*)
14161 # When not using gcc, we currently assume that we are using
14162 # Microsoft Visual C++.
14163 # hardcode_libdir_flag_spec is actually meaningless, as there is
14164 # no search path for DLLs.
14165 hardcode_libdir_flag_spec_F77=' '
14166 allow_undefined_flag_F77=unsupported
14167 # Tell ltmain to make .lib files, not .a files.
14169 # Tell ltmain to make .dll files, not .so files.
14171 # FIXME: Setting linknames here is a bad hack.
14172 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14173 # The linker will automatically build a .lib file if we build a DLL.
14174 old_archive_From_new_cmds_F77='true'
14175 # FIXME: Should let the user specify the lib program.
14176 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14177 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14178 enable_shared_with_static_runtimes_F77=yes
14181 darwin* | rhapsody*)
14183 rhapsody* | darwin1.[012])
14184 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14187 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14188 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14190 case ${MACOSX_DEPLOYMENT_TARGET} in
14192 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14195 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14201 archive_cmds_need_lc_F77=no
14202 hardcode_direct_F77=no
14203 hardcode_automatic_F77=yes
14204 hardcode_shlibpath_var_F77=unsupported
14205 whole_archive_flag_spec_F77=''
14206 link_all_deplibs_F77=yes
14207 if test "$GCC" = yes ; then
14208 output_verbose_link_cmd='echo'
14209 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14210 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14211 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14212 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}'
14213 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}'
14215 case $cc_basename in
14217 output_verbose_link_cmd='echo'
14218 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14219 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14221 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}'
14222 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}'
14232 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14233 hardcode_libdir_flag_spec_F77='-L$libdir'
14234 hardcode_shlibpath_var_F77=no
14241 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14242 # support. Future versions do this automatically, but an explicit c++rt0.o
14243 # does not break anything, and helps significantly (at the cost of a little
14246 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14247 hardcode_libdir_flag_spec_F77='-R$libdir'
14248 hardcode_direct_F77=yes
14249 hardcode_shlibpath_var_F77=no
14252 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14254 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14255 hardcode_direct_F77=yes
14256 hardcode_minus_L_F77=yes
14257 hardcode_shlibpath_var_F77=no
14260 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14261 freebsd* | kfreebsd*-gnu | dragonfly*)
14262 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14263 hardcode_libdir_flag_spec_F77='-R$libdir'
14264 hardcode_direct_F77=yes
14265 hardcode_shlibpath_var_F77=no
14269 if test "$GCC" = yes; then
14270 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'
14272 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'
14274 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14275 hardcode_libdir_separator_F77=:
14276 hardcode_direct_F77=yes
14278 # hardcode_minus_L: Not really in the search PATH,
14279 # but as the default location of the library.
14280 hardcode_minus_L_F77=yes
14281 export_dynamic_flag_spec_F77='${wl}-E'
14285 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14286 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14288 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14290 if test "$with_gnu_ld" = no; then
14291 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14292 hardcode_libdir_separator_F77=:
14294 hardcode_direct_F77=yes
14295 export_dynamic_flag_spec_F77='${wl}-E'
14297 # hardcode_minus_L: Not really in the search PATH,
14298 # but as the default location of the library.
14299 hardcode_minus_L_F77=yes
14304 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14307 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14310 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14313 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14319 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14322 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14325 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14329 if test "$with_gnu_ld" = no; then
14330 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14331 hardcode_libdir_separator_F77=:
14335 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14336 hardcode_direct_F77=no
14337 hardcode_shlibpath_var_F77=no
14340 hardcode_direct_F77=yes
14341 export_dynamic_flag_spec_F77='${wl}-E'
14343 # hardcode_minus_L: Not really in the search PATH,
14344 # but as the default location of the library.
14345 hardcode_minus_L_F77=yes
14351 irix5* | irix6* | nonstopux*)
14352 if test "$GCC" = yes; then
14353 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'
14355 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'
14356 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14358 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14359 hardcode_libdir_separator_F77=:
14360 link_all_deplibs_F77=yes
14364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14365 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14367 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14369 hardcode_libdir_flag_spec_F77='-R$libdir'
14370 hardcode_direct_F77=yes
14371 hardcode_shlibpath_var_F77=no
14375 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14376 hardcode_direct_F77=yes
14377 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14378 hardcode_libdir_separator_F77=:
14379 hardcode_shlibpath_var_F77=no
14383 hardcode_direct_F77=yes
14384 hardcode_shlibpath_var_F77=no
14385 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14386 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14387 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14388 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14389 export_dynamic_flag_spec_F77='${wl}-E'
14392 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14393 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14394 hardcode_libdir_flag_spec_F77='-R$libdir'
14397 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14398 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14405 hardcode_libdir_flag_spec_F77='-L$libdir'
14406 hardcode_minus_L_F77=yes
14407 allow_undefined_flag_F77=unsupported
14408 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'
14409 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14413 if test "$GCC" = yes; then
14414 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14415 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'
14417 allow_undefined_flag_F77=' -expect_unresolved \*'
14418 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'
14420 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14421 hardcode_libdir_separator_F77=:
14424 osf4* | osf5*) # as osf3* with the addition of -msym flag
14425 if test "$GCC" = yes; then
14426 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14427 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'
14428 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14430 allow_undefined_flag_F77=' -expect_unresolved \*'
14431 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'
14432 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~
14433 $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'
14435 # Both c and cxx compiler support -rpath directly
14436 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14438 hardcode_libdir_separator_F77=:
14442 no_undefined_flag_F77=' -z text'
14443 if test "$GCC" = yes; then
14445 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14446 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14447 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14450 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14451 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14452 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14454 hardcode_libdir_flag_spec_F77='-R$libdir'
14455 hardcode_shlibpath_var_F77=no
14457 solaris2.[0-5] | solaris2.[0-5].*) ;;
14459 # The compiler driver will combine linker options so we
14460 # cannot just pass the convience library names through
14461 # without $wl, iff we do not link with $LD.
14462 # Luckily, gcc supports the same syntax we need for Sun Studio.
14463 # Supported since Solaris 2.6 (maybe 2.5.1?)
14466 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14468 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' ;;
14471 link_all_deplibs_F77=yes
14475 if test "x$host_vendor" = xsequent; then
14476 # Use $CC to link under sequent, because it throws in some extra .o
14477 # files that make .init and .fini sections work.
14478 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14480 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14482 hardcode_libdir_flag_spec_F77='-L$libdir'
14483 hardcode_direct_F77=yes
14484 hardcode_minus_L_F77=yes
14485 hardcode_shlibpath_var_F77=no
14489 case $host_vendor in
14491 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14492 hardcode_direct_F77=yes # is this really true???
14495 ## LD is ld it makes a PLAMLIB
14496 ## CC just makes a GrossModule.
14497 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14498 reload_cmds_F77='$CC -r -o $output$reload_objs'
14499 hardcode_direct_F77=no
14502 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14503 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14506 runpath_var='LD_RUN_PATH'
14507 hardcode_shlibpath_var_F77=no
14511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14512 hardcode_shlibpath_var_F77=no
14513 export_dynamic_flag_spec_F77='-Bexport'
14517 if test -d /usr/nec; then
14518 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14519 hardcode_shlibpath_var_F77=no
14520 runpath_var=LD_RUN_PATH
14521 hardcode_runpath_var=yes
14526 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14527 no_undefined_flag_F77='${wl}-z,text'
14528 archive_cmds_need_lc_F77=no
14529 hardcode_shlibpath_var_F77=no
14530 runpath_var='LD_RUN_PATH'
14532 if test "$GCC" = yes; then
14533 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14534 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14536 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14537 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541 sysv5* | sco3.2v5* | sco5v6*)
14542 # Note: We can NOT use -z defs as we might desire, because we do not
14543 # link with -lc, and that would cause any symbols used from libc to
14544 # always be unresolved, which means just about no library would
14545 # ever link correctly. If we're not using GNU ld we use -z text
14546 # though, which does catch some bad symbols but isn't as heavy-handed
14548 no_undefined_flag_F77='${wl}-z,text'
14549 allow_undefined_flag_F77='${wl}-z,nodefs'
14550 archive_cmds_need_lc_F77=no
14551 hardcode_shlibpath_var_F77=no
14552 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14553 hardcode_libdir_separator_F77=':'
14554 link_all_deplibs_F77=yes
14555 export_dynamic_flag_spec_F77='${wl}-Bexport'
14556 runpath_var='LD_RUN_PATH'
14558 if test "$GCC" = yes; then
14559 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14560 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14562 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14563 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14569 hardcode_libdir_flag_spec_F77='-L$libdir'
14570 hardcode_shlibpath_var_F77=no
14579 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14580 echo "${ECHO_T}$ld_shlibs_F77" >&6
14581 test "$ld_shlibs_F77" = no && can_build_shared=no
14584 # Do we need to explicitly link libc?
14586 case "x$archive_cmds_need_lc_F77" in
14588 # Assume -lc should be added
14589 archive_cmds_need_lc_F77=yes
14591 if test "$enable_shared" = yes && test "$GCC" = yes; then
14592 case $archive_cmds_F77 in
14594 # FIXME: we may have to deal with multi-command sequences.
14597 # Test whether the compiler implicitly links with -lc since on some
14598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14599 # to ld, don't add -lc before -lgcc.
14600 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14601 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14606 (eval $ac_compile) 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } 2>conftest.err; then
14612 libobjs=conftest.$ac_objext
14614 wl=$lt_prog_compiler_wl_F77
14615 pic_flag=$lt_prog_compiler_pic_F77
14621 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14622 allow_undefined_flag_F77=
14623 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14624 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }
14629 archive_cmds_need_lc_F77=no
14631 archive_cmds_need_lc_F77=yes
14633 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14635 cat conftest.err 1>&5
14638 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14639 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14646 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14647 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14648 library_names_spec=
14649 libname_spec='lib$name'
14653 postuninstall_cmds=
14657 shlibpath_overrides_runpath=unknown
14659 dynamic_linker="$host_os ld.so"
14660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14661 if test "$GCC" = yes; then
14662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14663 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14664 # if the path contains ";" then we assume it to be the separator
14665 # otherwise default to the standard path separator (i.e. ":") - it is
14666 # assumed that no part of a normal pathname contains ";" but that should
14667 # okay in the real world where ";" in dirpaths is itself problematic.
14668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14675 need_lib_prefix=unknown
14676 hardcode_into_libs=no
14678 # when you set need_version to no, make sure it does not cause -set_version
14679 # flags to be left without arguments
14680 need_version=unknown
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14686 shlibpath_var=LIBPATH
14688 # AIX 3 has no versioning support, so we append a major version to the name.
14689 soname_spec='${libname}${release}${shared_ext}$major'
14696 hardcode_into_libs=yes
14697 if test "$host_cpu" = ia64; then
14698 # AIX 5 supports IA64
14699 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14700 shlibpath_var=LD_LIBRARY_PATH
14702 # With GCC up to 2.95.x, collect2 would create an import file
14703 # for dependence libraries. The import file would start with
14704 # the line `#! .'. This would cause the generated library to
14705 # depend on `.', always an invalid library. This was fixed in
14706 # development snapshots of GCC prior to 3.0.
14708 aix4 | aix4.[01] | aix4.[01].*)
14709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14711 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14714 can_build_shared=no
14718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14719 # soname into executable. Probably we can add versioning support to
14720 # collect2, so additional links can be useful in future.
14721 if test "$aix_use_runtimelinking" = yes; then
14722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14723 # instead of lib<name>.a to let people know that these are not
14724 # typical AIX shared libraries.
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727 # We preserve .a as extension for shared libraries through AIX4.2
14728 # and later when we are not doing run time linking.
14729 library_names_spec='${libname}${release}.a $libname.a'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14732 shlibpath_var=LIBPATH
14737 library_names_spec='$libname.ixlibrary $libname.a'
14738 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14739 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'
14743 library_names_spec='${libname}${shared_ext}'
14744 dynamic_linker="$host_os ld.so"
14745 shlibpath_var=LIBRARY_PATH
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14752 soname_spec='${libname}${release}${shared_ext}$major'
14753 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14754 shlibpath_var=LD_LIBRARY_PATH
14755 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14756 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14757 # the default ld.so.conf also contains /usr/contrib/lib and
14758 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14759 # libtool to hard-code these into programs
14762 cygwin* | mingw* | pw32*)
14763 version_type=windows
14768 case $GCC,$host_os in
14769 yes,cygwin* | yes,mingw* | yes,pw32*)
14770 library_names_spec='$libname.dll.a'
14771 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14772 postinstall_cmds='base_file=`basename \${file}`~
14773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14774 dldir=$destdir/`dirname \$dlpath`~
14775 test -d \$dldir || mkdir -p \$dldir~
14776 $install_prog $dir/$dlname \$dldir/$dlname~
14777 chmod a+x \$dldir/$dlname'
14778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14779 dlpath=$dir/\$dldll~
14781 shlibpath_overrides_runpath=yes
14785 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14786 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14787 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14790 # MinGW DLLs use traditional 'lib' prefix
14791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14793 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14794 # It is most probably a Windows format PATH printed by
14795 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14796 # path with ; separators, and with drive letters. We can handle the
14797 # drive letters (cygwin fileutils understands them), so leave them,
14798 # especially as we might pass files found there to a mingw objdump,
14799 # which wouldn't understand a cygwinified path. Ahh.
14800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14806 # pw32 DLLs use 'pw' prefix rather than 'lib'
14807 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14813 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14816 dynamic_linker='Win32 ld.exe'
14817 # FIXME: first we should search . and the directory the executable is in
14821 darwin* | rhapsody*)
14822 dynamic_linker="$host_os dyld"
14823 version_type=darwin
14826 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14827 soname_spec='${libname}${release}${major}$shared_ext'
14828 shlibpath_overrides_runpath=yes
14829 shlibpath_var=DYLD_LIBRARY_PATH
14830 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14831 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14832 if test "$GCC" = yes; then
14833 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"`
14835 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14846 shlibpath_var=LD_LIBRARY_PATH
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=no
14861 hardcode_into_libs=yes
14862 dynamic_linker='GNU ld.so'
14865 freebsd* | dragonfly*)
14866 # DragonFly does not have aout. When/if they implement a new
14867 # versioning mechanism, adjust this.
14868 if test -x /usr/bin/objformat; then
14869 objformat=`/usr/bin/objformat`
14872 freebsd[123]*) objformat=aout ;;
14873 *) objformat=elf ;;
14876 version_type=freebsd-$objformat
14877 case $version_type in
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14888 shlibpath_var=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath=yes
14893 freebsd3.[01]* | freebsdelf3.[01]*)
14894 shlibpath_overrides_runpath=yes
14895 hardcode_into_libs=yes
14897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14899 shlibpath_overrides_runpath=no
14900 hardcode_into_libs=yes
14902 freebsd*) # from 4.6 on
14903 shlibpath_overrides_runpath=yes
14904 hardcode_into_libs=yes
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 shlibpath_var=LD_LIBRARY_PATH
14916 hardcode_into_libs=yes
14919 hpux9* | hpux10* | hpux11*)
14920 # Give a soname corresponding to the major version so that dld.sl refuses to
14921 # link against other versions.
14928 hardcode_into_libs=yes
14929 dynamic_linker="$host_os dld.so"
14930 shlibpath_var=LD_LIBRARY_PATH
14931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 if test "X$HPUX_IA64_MODE" = X32; then
14935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14943 hardcode_into_libs=yes
14944 dynamic_linker="$host_os dld.sl"
14945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 soname_spec='${libname}${release}${shared_ext}$major'
14949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14954 dynamic_linker="$host_os dld.sl"
14955 shlibpath_var=SHLIB_PATH
14956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14962 postinstall_cmds='chmod 555 $lib'
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14970 soname_spec='${libname}${release}${shared_ext}$major'
14971 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14972 shlibpath_var=LD_LIBRARY_PATH
14973 shlibpath_overrides_runpath=no
14974 hardcode_into_libs=yes
14977 irix5* | irix6* | nonstopux*)
14979 nonstopux*) version_type=nonstopux ;;
14981 if test "$lt_cv_prog_gnu_ld" = yes; then
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14992 irix5* | nonstopux*)
14993 libsuff= shlibsuff=
14996 case $LD in # libtool.m4 will add one of these switches to LD
14997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14998 libsuff= shlibsuff= libmagic=32-bit;;
14999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15000 libsuff=32 shlibsuff=N32 libmagic=N32;;
15001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15003 *) libsuff= shlibsuff= libmagic=never-match;;
15007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15008 shlibpath_overrides_runpath=no
15009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15011 hardcode_into_libs=yes
15014 # No shared lib support for Linux oldld, aout, or coff.
15015 linux*oldld* | linux*aout* | linux*coff*)
15019 # This must be Linux ELF.
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15027 shlibpath_var=LD_LIBRARY_PATH
15028 shlibpath_overrides_runpath=no
15029 # This implies no fast_install, which is unacceptable.
15030 # Some rework will be needed to allow for fast_install
15031 # before this can be enabled.
15032 hardcode_into_libs=yes
15034 # find out which ABI we are using
15036 case "$host_cpu" in
15037 x86_64*|s390x*|powerpc64*)
15038 echo '#line 15038 "configure"' > conftest.$ac_ext
15039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15040 (eval $ac_compile) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; then
15044 case `/usr/bin/file conftest.$ac_objext` in
15047 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15055 # Append ld.so.conf contents to the search path
15056 if test -f /etc/ld.so.conf; then
15057 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15058 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15061 # We used to test for /lib/ld.so.1 and disable shared libraries on
15062 # powerpc, because MkLinux only supported shared libraries with the
15063 # GNU dynamic linker. Since this was broken with cross compilers,
15064 # most powerpc-linux boxes support dynamic linking these days and
15065 # people can always --disable-shared, the test was removed, and we
15066 # assume the GNU/Linux dynamic linker is in use.
15067 dynamic_linker='GNU/Linux ld.so'
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15075 soname_spec='${libname}${release}${shared_ext}$major'
15076 shlibpath_var=LD_LIBRARY_PATH
15077 shlibpath_overrides_runpath=no
15078 hardcode_into_libs=yes
15079 dynamic_linker='GNU ld.so'
15086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15089 dynamic_linker='NetBSD (a.out) ld.so'
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15092 soname_spec='${libname}${release}${shared_ext}$major'
15093 dynamic_linker='NetBSD ld.elf_so'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 shlibpath_overrides_runpath=yes
15097 hardcode_into_libs=yes
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 shlibpath_overrides_runpath=yes
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 shlibpath_var=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath=yes
15119 sys_lib_dlsearch_path_spec="/usr/lib"
15121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15124 *) need_version=no ;;
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15128 shlibpath_var=LD_LIBRARY_PATH
15129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15131 openbsd2.[89] | openbsd2.[89].*)
15132 shlibpath_overrides_runpath=no
15135 shlibpath_overrides_runpath=yes
15139 shlibpath_overrides_runpath=yes
15144 libname_spec='$name'
15147 library_names_spec='$libname${shared_ext} $libname.a'
15148 dynamic_linker='OS/2 ld.exe'
15149 shlibpath_var=LIBPATH
15152 osf3* | osf4* | osf5*)
15156 soname_spec='${libname}${release}${shared_ext}$major'
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15168 soname_spec='${libname}${release}${shared_ext}$major'
15169 shlibpath_var=LD_LIBRARY_PATH
15170 shlibpath_overrides_runpath=yes
15171 hardcode_into_libs=yes
15172 # ldd complains unless libraries are executable
15173 postinstall_cmds='chmod +x $lib'
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15180 shlibpath_var=LD_LIBRARY_PATH
15181 shlibpath_overrides_runpath=yes
15182 if test "$with_gnu_ld" = yes; then
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191 soname_spec='${libname}${release}${shared_ext}$major'
15192 shlibpath_var=LD_LIBRARY_PATH
15193 case $host_vendor in
15195 shlibpath_overrides_runpath=no
15197 export_dynamic_flag_spec='${wl}-Blargedynsym'
15198 runpath_var=LD_RUN_PATH
15206 shlibpath_overrides_runpath=no
15207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15213 if test -d /usr/nec ;then
15215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15216 soname_spec='$libname${shared_ext}.$major'
15217 shlibpath_var=LD_LIBRARY_PATH
15221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15222 version_type=freebsd-elf
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 hardcode_into_libs=yes
15229 if test "$with_gnu_ld" = yes; then
15230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15231 shlibpath_overrides_runpath=no
15233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15234 shlibpath_overrides_runpath=yes
15237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15241 sys_lib_dlsearch_path_spec='/usr/lib'
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247 soname_spec='${libname}${release}${shared_ext}$major'
15248 shlibpath_var=LD_LIBRARY_PATH
15255 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15256 echo "${ECHO_T}$dynamic_linker" >&6
15257 test "$dynamic_linker" = no && can_build_shared=no
15259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15260 if test "$GCC" = yes; then
15261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15266 hardcode_action_F77=
15267 if test -n "$hardcode_libdir_flag_spec_F77" || \
15268 test -n "$runpath_var_F77" || \
15269 test "X$hardcode_automatic_F77" = "Xyes" ; then
15271 # We can hardcode non-existant directories.
15272 if test "$hardcode_direct_F77" != no &&
15273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15274 # have to relink, otherwise we might link with an installed library
15275 # when we should be linking with a yet-to-be-installed one
15276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15277 test "$hardcode_minus_L_F77" != no; then
15278 # Linking always hardcodes the temporary library directory.
15279 hardcode_action_F77=relink
15281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15282 hardcode_action_F77=immediate
15285 # We cannot hardcode anything, or else we can only hardcode existing
15287 hardcode_action_F77=unsupported
15289 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15290 echo "${ECHO_T}$hardcode_action_F77" >&6
15292 if test "$hardcode_action_F77" = relink; then
15293 # Fast installation is not supported
15294 enable_fast_install=no
15295 elif test "$shlibpath_overrides_runpath" = yes ||
15296 test "$enable_shared" = no; then
15297 # Fast installation is not necessary
15298 enable_fast_install=needless
15302 # The else clause should only fire when bootstrapping the
15303 # libtool distribution, otherwise you forgot to ship ltmain.sh
15304 # with your package, and you will get complaints that there are
15305 # no rules to generate ltmain.sh.
15306 if test -f "$ltmain"; then
15307 # See if we are running on zsh, and set the options which allow our commands through
15308 # without removal of \ escapes.
15309 if test -n "${ZSH_VERSION+set}" ; then
15310 setopt NO_GLOB_SUBST
15312 # Now quote all the things that may contain metacharacters while being
15313 # careful not to overquote the AC_SUBSTed values. We take copies of the
15314 # variables and quote the copies for generation of the libtool script.
15315 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15319 deplibs_check_method reload_flag reload_cmds need_locks \
15320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15321 lt_cv_sys_global_symbol_to_c_name_address \
15322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15323 old_postinstall_cmds old_postuninstall_cmds \
15327 lt_prog_compiler_wl_F77 \
15328 lt_prog_compiler_pic_F77 \
15329 lt_prog_compiler_static_F77 \
15330 lt_prog_compiler_no_builtin_flag_F77 \
15331 export_dynamic_flag_spec_F77 \
15332 thread_safe_flag_spec_F77 \
15333 whole_archive_flag_spec_F77 \
15334 enable_shared_with_static_runtimes_F77 \
15335 old_archive_cmds_F77 \
15336 old_archive_from_new_cmds_F77 \
15337 predep_objects_F77 \
15338 postdep_objects_F77 \
15341 compiler_lib_search_path_F77 \
15343 archive_expsym_cmds_F77 \
15344 postinstall_cmds_F77 \
15345 postuninstall_cmds_F77 \
15346 old_archive_from_expsyms_cmds_F77 \
15347 allow_undefined_flag_F77 \
15348 no_undefined_flag_F77 \
15349 export_symbols_cmds_F77 \
15350 hardcode_libdir_flag_spec_F77 \
15351 hardcode_libdir_flag_spec_ld_F77 \
15352 hardcode_libdir_separator_F77 \
15353 hardcode_automatic_F77 \
15355 module_expsym_cmds_F77 \
15356 lt_cv_prog_compiler_c_o_F77 \
15357 exclude_expsyms_F77 \
15358 include_expsyms_F77; do
15361 old_archive_cmds_F77 | \
15362 old_archive_from_new_cmds_F77 | \
15363 archive_cmds_F77 | \
15364 archive_expsym_cmds_F77 | \
15365 module_cmds_F77 | \
15366 module_expsym_cmds_F77 | \
15367 old_archive_from_expsyms_cmds_F77 | \
15368 export_symbols_cmds_F77 | \
15369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15370 postinstall_cmds | postuninstall_cmds | \
15371 old_postinstall_cmds | old_postuninstall_cmds | \
15372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15373 # Double-quote double-evaled strings.
15374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15383 *'\$0 --fallback-echo"')
15384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15390 cat <<__EOF__ >> "$cfgfile"
15391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15395 # Shell to use when invoking shell scripts.
15398 # Whether or not to build shared libraries.
15399 build_libtool_libs=$enable_shared
15401 # Whether or not to build static libraries.
15402 build_old_libs=$enable_static
15404 # Whether or not to add -lc for building shared libraries.
15405 build_libtool_need_lc=$archive_cmds_need_lc_F77
15407 # Whether or not to disallow shared libs when runtime libs are static
15408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15410 # Whether or not to optimize for fast installation.
15411 fast_install=$enable_fast_install
15414 host_alias=$host_alias
15418 # The build system.
15419 build_alias=$build_alias
15423 # An echo program that does not interpret backslashes.
15428 AR_FLAGS=$lt_AR_FLAGS
15433 # LTCC compiler flags.
15434 LTCFLAGS=$lt_LTCFLAGS
15436 # A language-specific compiler.
15437 CC=$lt_compiler_F77
15439 # Is the compiler the GNU C compiler?
15442 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15443 gcc_ver=\`gcc -dumpversion\`
15448 # The linker used to build libraries.
15451 # Whether we need hard or soft links.
15454 # A BSD-compatible nm program.
15457 # A symbol stripping program
15460 # Used to examine libraries when file_magic_cmd begins "file"
15461 MAGIC_CMD=$MAGIC_CMD
15463 # Used on cygwin: DLL creation program.
15466 # Used on cygwin: object dumper.
15469 # Used on cygwin: assembler.
15472 # The name of the directory that contains temporary libtool files.
15475 # How to create reloadable object files.
15476 reload_flag=$lt_reload_flag
15477 reload_cmds=$lt_reload_cmds
15479 # How to pass a linker flag through the compiler.
15480 wl=$lt_lt_prog_compiler_wl_F77
15482 # Object file suffix (normally "o").
15483 objext="$ac_objext"
15485 # Old archive suffix (normally "a").
15488 # Shared library suffix (normally ".so").
15489 shrext_cmds='$shrext_cmds'
15491 # Executable file suffix (normally "").
15494 # Additional compiler flags for building library objects.
15495 pic_flag=$lt_lt_prog_compiler_pic_F77
15498 # What is the maximum length of a command?
15499 max_cmd_len=$lt_cv_sys_max_cmd_len
15501 # Does compiler simultaneously support -c and -o options?
15502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15504 # Must we lock files when doing compilation?
15505 need_locks=$lt_need_locks
15507 # Do we need the lib prefix for modules?
15508 need_lib_prefix=$need_lib_prefix
15510 # Do we need a version for libraries?
15511 need_version=$need_version
15513 # Whether dlopen is supported.
15514 dlopen_support=$enable_dlopen
15516 # Whether dlopen of programs is supported.
15517 dlopen_self=$enable_dlopen_self
15519 # Whether dlopen of statically linked programs is supported.
15520 dlopen_self_static=$enable_dlopen_self_static
15522 # Compiler flag to prevent dynamic linking.
15523 link_static_flag=$lt_lt_prog_compiler_static_F77
15525 # Compiler flag to turn off builtin functions.
15526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15528 # Compiler flag to allow reflexive dlopens.
15529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15531 # Compiler flag to generate shared objects directly from archives.
15532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15534 # Compiler flag to generate thread-safe objects.
15535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15537 # Library versioning type.
15538 version_type=$version_type
15540 # Format of library name prefix.
15541 libname_spec=$lt_libname_spec
15543 # List of archive names. First name is the real one, the rest are links.
15544 # The last name is the one that the linker finds with -lNAME.
15545 library_names_spec=$lt_library_names_spec
15547 # The coded name of the library, if different from the real name.
15548 soname_spec=$lt_soname_spec
15550 # Commands used to build and install an old-style archive.
15552 old_archive_cmds=$lt_old_archive_cmds_F77
15553 old_postinstall_cmds=$lt_old_postinstall_cmds
15554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15556 # Create an old-style archive from a shared archive.
15557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15559 # Create a temporary old-style archive to link instead of a shared archive.
15560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15562 # Commands used to build and install a shared archive.
15563 archive_cmds=$lt_archive_cmds_F77
15564 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15565 postinstall_cmds=$lt_postinstall_cmds
15566 postuninstall_cmds=$lt_postuninstall_cmds
15568 # Commands used to build a loadable module (assumed same as above if empty)
15569 module_cmds=$lt_module_cmds_F77
15570 module_expsym_cmds=$lt_module_expsym_cmds_F77
15572 # Commands to strip libraries.
15573 old_striplib=$lt_old_striplib
15574 striplib=$lt_striplib
15576 # Dependencies to place before the objects being linked to create a
15578 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15580 # Dependencies to place after the objects being linked to create a
15582 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15584 # Dependencies to place before the objects being linked to create a
15586 predeps=$lt_predeps_F77
15588 # Dependencies to place after the objects being linked to create a
15590 postdeps=$lt_postdeps_F77
15592 # The library search path used internally by the compiler when linking
15593 # a shared library.
15594 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15596 # Method to check whether dependent libraries are shared objects.
15597 deplibs_check_method=$lt_deplibs_check_method
15599 # Command to use when deplibs_check_method == file_magic.
15600 file_magic_cmd=$lt_file_magic_cmd
15602 # Flag that allows shared libraries with undefined symbols to be built.
15603 allow_undefined_flag=$lt_allow_undefined_flag_F77
15605 # Flag that forces no undefined symbols.
15606 no_undefined_flag=$lt_no_undefined_flag_F77
15608 # Commands used to finish a libtool library installation in a directory.
15609 finish_cmds=$lt_finish_cmds
15611 # Same as above, but a single script fragment to be evaled but not shown.
15612 finish_eval=$lt_finish_eval
15614 # Take the output of nm and produce a listing of raw symbols and C names.
15615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15617 # Transform the output of nm in a proper C declaration
15618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15620 # Transform the output of nm in a C name address pair
15621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15623 # This is the shared library runtime path variable.
15624 runpath_var=$runpath_var
15626 # This is the shared library path variable.
15627 shlibpath_var=$shlibpath_var
15629 # Is shlibpath searched before the hard-coded library search path?
15630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15632 # How to hardcode a shared library path into an executable.
15633 hardcode_action=$hardcode_action_F77
15635 # Whether we should hardcode library paths into libraries.
15636 hardcode_into_libs=$hardcode_into_libs
15638 # Flag to hardcode \$libdir into a binary during linking.
15639 # This must work even if \$libdir does not exist.
15640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15642 # If ld is used when linking, flag to hardcode \$libdir into
15643 # a binary during linking. This must work even if \$libdir does
15645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15647 # Whether we need a single -rpath flag with a separated argument.
15648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15651 # resulting binary.
15652 hardcode_direct=$hardcode_direct_F77
15654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15655 # resulting binary.
15656 hardcode_minus_L=$hardcode_minus_L_F77
15658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15659 # the resulting binary.
15660 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15662 # Set to yes if building a shared library automatically hardcodes DIR into the library
15663 # and all subsequent libraries and executables linked against it.
15664 hardcode_automatic=$hardcode_automatic_F77
15666 # Variables whose values should be saved in libtool wrapper scripts and
15667 # restored at relink time.
15668 variables_saved_for_relink="$variables_saved_for_relink"
15670 # Whether libtool must link a program against all its dependency libraries.
15671 link_all_deplibs=$link_all_deplibs_F77
15673 # Compile-time system search path for libraries
15674 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15676 # Run-time system search path for libraries
15677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15679 # Fix the shell variable \$srcfile for the compiler.
15680 fix_srcfile_path="$fix_srcfile_path_F77"
15682 # Set to yes if exported symbols are required.
15683 always_export_symbols=$always_export_symbols_F77
15685 # The commands to list exported symbols.
15686 export_symbols_cmds=$lt_export_symbols_cmds_F77
15688 # The commands to extract the exported symbol list from a shared archive.
15689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15691 # Symbols that should not be listed in the preloaded symbols.
15692 exclude_expsyms=$lt_exclude_expsyms_F77
15694 # Symbols that must always be exported.
15695 include_expsyms=$lt_include_expsyms_F77
15697 # ### END LIBTOOL TAG CONFIG: $tagname
15703 # If there is no Makefile yet, we rely on a make rule to execute
15704 # `config.status --recheck' to rerun these tests and create the
15705 # libtool script then.
15706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15707 if test -f "$ltmain_in"; then
15708 test -f Makefile && make "$ltmain"
15714 ac_cpp='$CPP $CPPFLAGS'
15715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15727 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15731 # Source file extension for Java test sources.
15734 # Object file extension for compiled Java test sources.
15738 # Code to be used in simple compile tests
15739 lt_simple_compile_test_code="class foo {}\n"
15741 # Code to be used in simple link tests
15742 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15746 # If no C compiler was specified, use CC.
15749 # If no C compiler flags were specified, use CFLAGS.
15750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15752 # Allow CC to be a program name with arguments.
15756 # save warnings/boilerplate of simple test code
15757 ac_outfile=conftest.$ac_objext
15758 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15759 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15760 _lt_compiler_boilerplate=`cat conftest.err`
15763 ac_outfile=conftest.$ac_objext
15764 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15765 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15766 _lt_linker_boilerplate=`cat conftest.err`
15770 # Allow CC to be a program name with arguments.
15775 for cc_temp in $compiler""; do
15777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15783 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15786 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15787 archive_cmds_need_lc_GCJ=no
15789 old_archive_cmds_GCJ=$old_archive_cmds
15792 lt_prog_compiler_no_builtin_flag_GCJ=
15794 if test "$GCC" = yes; then
15795 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15798 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15799 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15800 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 lt_cv_prog_compiler_rtti_exceptions=no
15804 ac_outfile=conftest.$ac_objext
15805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15806 lt_compiler_flag="-fno-rtti -fno-exceptions"
15807 # Insert the option either (1) after the last *FLAGS variable, or
15808 # (2) before a word containing "conftest.", or (3) at the end.
15809 # Note that $ac_compile itself does not contain backslashes and begins
15810 # with a dollar sign (not a hyphen), so the echo should work correctly.
15811 # The option is referenced via a variable to avoid confusing sed.
15812 lt_compile=`echo "$ac_compile" | $SED \
15813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15815 -e 's:$: $lt_compiler_flag:'`
15816 (eval echo "\"\$as_me:15816: $lt_compile\"" >&5)
15817 (eval "$lt_compile" 2>conftest.err)
15819 cat conftest.err >&5
15820 echo "$as_me:15820: \$? = $ac_status" >&5
15821 if (exit $ac_status) && test -s "$ac_outfile"; then
15822 # The compiler can only warn and ignore the option if not recognized
15823 # So say no if there are warnings other than the usual output.
15824 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15827 lt_cv_prog_compiler_rtti_exceptions=yes
15833 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15834 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15837 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15844 lt_prog_compiler_wl_GCJ=
15845 lt_prog_compiler_pic_GCJ=
15846 lt_prog_compiler_static_GCJ=
15848 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15851 if test "$GCC" = yes; then
15852 lt_prog_compiler_wl_GCJ='-Wl,'
15853 lt_prog_compiler_static_GCJ='-static'
15857 # All AIX code is PIC.
15858 if test "$host_cpu" = ia64; then
15859 # AIX 5 now supports IA64 processor
15860 lt_prog_compiler_static_GCJ='-Bstatic'
15865 # FIXME: we need at least 68020 code to build shared libraries, but
15866 # adding the `-m68020' flag to GCC prevents building anything better,
15868 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15871 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15872 # PIC is the default for these OSes.
15875 mingw* | pw32* | os2*)
15876 # This hack is so that the source file can tell whether it is being
15877 # built for inclusion in a dll (and should export symbols for example).
15878 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15881 darwin* | rhapsody*)
15882 # PIC is the default on this platform
15883 # Common symbols not allowed in MH_DYLIB files
15884 lt_prog_compiler_pic_GCJ='-fno-common'
15888 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15889 # Instead, we relocate shared libraries at runtime.
15893 # Just because we use GCC doesn't mean we suddenly get shared libraries
15894 # on systems that don't support them.
15895 lt_prog_compiler_can_build_shared_GCJ=no
15900 if test -d /usr/nec; then
15901 lt_prog_compiler_pic_GCJ=-Kconform_pic
15906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15907 # not for PA HP-UX.
15913 lt_prog_compiler_pic_GCJ='-fPIC'
15919 lt_prog_compiler_pic_GCJ='-fPIC'
15923 # PORTME Check for flag to pass linker flags through the system compiler.
15926 lt_prog_compiler_wl_GCJ='-Wl,'
15927 if test "$host_cpu" = ia64; then
15928 # AIX 5 now supports IA64 processor
15929 lt_prog_compiler_static_GCJ='-Bstatic'
15931 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15935 # PIC is the default on this platform
15936 # Common symbols not allowed in MH_DYLIB files
15937 case $cc_basename in
15939 lt_prog_compiler_pic_GCJ='-qnocommon'
15940 lt_prog_compiler_wl_GCJ='-Wl,'
15945 mingw* | pw32* | os2*)
15946 # This hack is so that the source file can tell whether it is being
15947 # built for inclusion in a dll (and should export symbols for example).
15948 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15951 hpux9* | hpux10* | hpux11*)
15952 lt_prog_compiler_wl_GCJ='-Wl,'
15953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15954 # not for PA HP-UX.
15960 lt_prog_compiler_pic_GCJ='+Z'
15963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15964 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15967 irix5* | irix6* | nonstopux*)
15968 lt_prog_compiler_wl_GCJ='-Wl,'
15969 # PIC (with -KPIC) is the default.
15970 lt_prog_compiler_static_GCJ='-non_shared'
15974 lt_prog_compiler_pic_GCJ='-KPIC'
15975 lt_prog_compiler_static_GCJ='-Bstatic'
15979 case $cc_basename in
15981 lt_prog_compiler_wl_GCJ='-Wl,'
15982 lt_prog_compiler_pic_GCJ='-KPIC'
15983 lt_prog_compiler_static_GCJ='-static'
15985 pgcc* | pgf77* | pgf90* | pgf95*)
15986 # Portland Group compilers (*not* the Pentium gcc compiler,
15987 # which looks to be a dead project)
15988 lt_prog_compiler_wl_GCJ='-Wl,'
15989 lt_prog_compiler_pic_GCJ='-fpic'
15990 lt_prog_compiler_static_GCJ='-Bstatic'
15993 lt_prog_compiler_wl_GCJ='-Wl,'
15994 # All Alpha code is PIC.
15995 lt_prog_compiler_static_GCJ='-non_shared'
16000 osf3* | osf4* | osf5*)
16001 lt_prog_compiler_wl_GCJ='-Wl,'
16002 # All OSF/1 code is PIC.
16003 lt_prog_compiler_static_GCJ='-non_shared'
16007 lt_prog_compiler_pic_GCJ='-KPIC'
16008 lt_prog_compiler_static_GCJ='-Bstatic'
16009 case $cc_basename in
16010 f77* | f90* | f95*)
16011 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16013 lt_prog_compiler_wl_GCJ='-Wl,';;
16018 lt_prog_compiler_wl_GCJ='-Qoption ld '
16019 lt_prog_compiler_pic_GCJ='-PIC'
16020 lt_prog_compiler_static_GCJ='-Bstatic'
16023 sysv4 | sysv4.2uw2* | sysv4.3*)
16024 lt_prog_compiler_wl_GCJ='-Wl,'
16025 lt_prog_compiler_pic_GCJ='-KPIC'
16026 lt_prog_compiler_static_GCJ='-Bstatic'
16030 if test -d /usr/nec ;then
16031 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16032 lt_prog_compiler_static_GCJ='-Bstatic'
16036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16037 lt_prog_compiler_wl_GCJ='-Wl,'
16038 lt_prog_compiler_pic_GCJ='-KPIC'
16039 lt_prog_compiler_static_GCJ='-Bstatic'
16043 lt_prog_compiler_wl_GCJ='-Wl,'
16044 lt_prog_compiler_can_build_shared_GCJ=no
16048 lt_prog_compiler_pic_GCJ='-pic'
16049 lt_prog_compiler_static_GCJ='-Bstatic'
16053 lt_prog_compiler_can_build_shared_GCJ=no
16058 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16059 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16062 # Check to make sure the PIC flag actually works.
16064 if test -n "$lt_prog_compiler_pic_GCJ"; then
16066 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16067 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16068 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 lt_prog_compiler_pic_works_GCJ=no
16072 ac_outfile=conftest.$ac_objext
16073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16074 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16075 # Insert the option either (1) after the last *FLAGS variable, or
16076 # (2) before a word containing "conftest.", or (3) at the end.
16077 # Note that $ac_compile itself does not contain backslashes and begins
16078 # with a dollar sign (not a hyphen), so the echo should work correctly.
16079 # The option is referenced via a variable to avoid confusing sed.
16080 lt_compile=`echo "$ac_compile" | $SED \
16081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083 -e 's:$: $lt_compiler_flag:'`
16084 (eval echo "\"\$as_me:16084: $lt_compile\"" >&5)
16085 (eval "$lt_compile" 2>conftest.err)
16087 cat conftest.err >&5
16088 echo "$as_me:16088: \$? = $ac_status" >&5
16089 if (exit $ac_status) && test -s "$ac_outfile"; then
16090 # The compiler can only warn and ignore the option if not recognized
16091 # So say no if there are warnings other than the usual output.
16092 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16095 lt_prog_compiler_pic_works_GCJ=yes
16101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16102 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16104 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16105 case $lt_prog_compiler_pic_GCJ in
16107 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16110 lt_prog_compiler_pic_GCJ=
16111 lt_prog_compiler_can_build_shared_GCJ=no
16116 # For platforms which do not support PIC, -DPIC is meaningless:
16118 lt_prog_compiler_pic_GCJ=
16121 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16126 # Check to make sure the static flag actually works.
16128 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16129 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16130 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16131 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 lt_prog_compiler_static_works_GCJ=no
16135 save_LDFLAGS="$LDFLAGS"
16136 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16137 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16139 # The linker can only warn and ignore the option if not recognized
16140 # So say no if there are warnings
16141 if test -s conftest.err; then
16142 # Append any errors to the config.log.
16143 cat conftest.err 1>&5
16144 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16146 if diff conftest.exp conftest.er2 >/dev/null; then
16147 lt_prog_compiler_static_works_GCJ=yes
16150 lt_prog_compiler_static_works_GCJ=yes
16154 LDFLAGS="$save_LDFLAGS"
16157 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16158 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16160 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16163 lt_prog_compiler_static_GCJ=
16167 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16168 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16169 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 lt_cv_prog_compiler_c_o_GCJ=no
16173 $rm -r conftest 2>/dev/null
16177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16179 lt_compiler_flag="-o out/conftest2.$ac_objext"
16180 # Insert the option either (1) after the last *FLAGS variable, or
16181 # (2) before a word containing "conftest.", or (3) at the end.
16182 # Note that $ac_compile itself does not contain backslashes and begins
16183 # with a dollar sign (not a hyphen), so the echo should work correctly.
16184 lt_compile=`echo "$ac_compile" | $SED \
16185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16187 -e 's:$: $lt_compiler_flag:'`
16188 (eval echo "\"\$as_me:16188: $lt_compile\"" >&5)
16189 (eval "$lt_compile" 2>out/conftest.err)
16191 cat out/conftest.err >&5
16192 echo "$as_me:16192: \$? = $ac_status" >&5
16193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16195 # The compiler can only warn and ignore the option if not recognized
16196 # So say no if there are warnings
16197 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16198 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16199 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16200 lt_cv_prog_compiler_c_o_GCJ=yes
16205 # SGI C++ compiler will create directory out/ii_files/ for
16206 # template instantiation
16207 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16208 $rm out/* && rmdir out
16214 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16215 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16218 hard_links="nottested"
16219 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16220 # do not overwrite the value of need_locks provided by the user
16221 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16222 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16227 ln conftest.a conftest.b 2>&5 || hard_links=no
16228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16229 echo "$as_me:$LINENO: result: $hard_links" >&5
16230 echo "${ECHO_T}$hard_links" >&6
16231 if test "$hard_links" = no; then
16232 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16233 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16240 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16244 allow_undefined_flag_GCJ=
16245 enable_shared_with_static_runtimes_GCJ=no
16247 archive_expsym_cmds_GCJ=
16248 old_archive_From_new_cmds_GCJ=
16249 old_archive_from_expsyms_cmds_GCJ=
16250 export_dynamic_flag_spec_GCJ=
16251 whole_archive_flag_spec_GCJ=
16252 thread_safe_flag_spec_GCJ=
16253 hardcode_libdir_flag_spec_GCJ=
16254 hardcode_libdir_flag_spec_ld_GCJ=
16255 hardcode_libdir_separator_GCJ=
16256 hardcode_direct_GCJ=no
16257 hardcode_minus_L_GCJ=no
16258 hardcode_shlibpath_var_GCJ=unsupported
16259 link_all_deplibs_GCJ=unknown
16260 hardcode_automatic_GCJ=no
16262 module_expsym_cmds_GCJ=
16263 always_export_symbols_GCJ=no
16264 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16265 # include_expsyms should be a list of space-separated symbols to be *always*
16266 # included in the symbol list
16267 include_expsyms_GCJ=
16268 # exclude_expsyms can be an extended regexp of symbols to exclude
16269 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16271 # as well as any symbol that contains `d'.
16272 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16274 # platforms (ab)use it in PIC code, but their linkers get confused if
16275 # the symbol is explicitly referenced. Since portable code cannot
16276 # rely on this symbol name, it's probably fine to never include it in
16277 # preloaded symbol tables.
16278 extract_expsyms_cmds=
16279 # Just being paranoid about ensuring that cc_basename is set.
16280 for cc_temp in $compiler""; do
16282 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16283 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16288 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16291 cygwin* | mingw* | pw32*)
16292 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16293 # When not using gcc, we currently assume that we are using
16294 # Microsoft Visual C++.
16295 if test "$GCC" != yes; then
16300 # we just hope/assume this is gcc and not c89 (= MSVC++)
16309 if test "$with_gnu_ld" = yes; then
16310 # If archive_cmds runs LD, not CC, wlarc should be empty
16313 # Set some defaults for GNU ld with shared library support. These
16314 # are reset later if shared libraries are not supported. Putting them
16315 # here allows them to be overridden if necessary.
16316 runpath_var=LD_RUN_PATH
16317 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16318 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16319 # ancient GNU ld didn't support --whole-archive et. al.
16320 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16321 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16323 whole_archive_flag_spec_GCJ=
16325 supports_anon_versioning=no
16326 case `$LD -v 2>/dev/null` in
16327 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16328 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16329 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16330 *\ 2.11.*) ;; # other 2.11 versions
16331 *) supports_anon_versioning=yes ;;
16334 # See if GNU ld supports shared libraries.
16336 aix3* | aix4* | aix5*)
16337 # On AIX/PPC, the GNU linker is very broken
16338 if test "$host_cpu" != ia64; then
16342 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16343 *** to be unable to reliably create shared libraries on AIX.
16344 *** Therefore, libtool is disabling shared libraries support. If you
16345 *** really care for shared libraries, you may want to modify your PATH
16346 *** so that a non-GNU linker is found, and then restart.
16353 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)'
16354 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16355 hardcode_minus_L_GCJ=yes
16357 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16358 # that the semantics of dynamic libraries on AmigaOS, at least up
16359 # to version 4, is to share data among multiple programs linked
16360 # with the same dynamic library. Since this doesn't match the
16361 # behavior of shared libraries on other platforms, we can't use
16367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16368 allow_undefined_flag_GCJ=unsupported
16369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16370 # support --undefined. This deserves some investigation. FIXME
16371 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16377 cygwin* | mingw* | pw32*)
16378 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16379 # as there is no search path for DLLs.
16380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16381 allow_undefined_flag_GCJ=unsupported
16382 always_export_symbols_GCJ=no
16383 enable_shared_with_static_runtimes_GCJ=yes
16384 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16386 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16387 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16388 # If the export-symbols file already is a .def file (1st line
16389 # is EXPORTS), use it as is; otherwise, prepend...
16390 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16391 cp $export_symbols $output_objdir/$soname.def;
16393 echo EXPORTS > $output_objdir/$soname.def;
16394 cat $export_symbols >> $output_objdir/$soname.def;
16396 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16403 hardcode_direct_GCJ=no
16404 hardcode_shlibpath_var_GCJ=no
16405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16406 export_dynamic_flag_spec_GCJ='${wl}-E'
16407 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16408 # Instead, shared libraries are loaded at an image base (0x10000000 by
16409 # default) and relocated if they conflict, which is a slow very memory
16410 # consuming and fragmenting process. To avoid this, we pick a random,
16411 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16412 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16413 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16414 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16420 case $cc_basename,$host_cpu in
16421 pgcc*) # Portland Group C compiler
16422 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'
16423 tmp_addflag=' $pic_flag'
16425 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16426 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'
16427 tmp_addflag=' $pic_flag -Mnomain' ;;
16428 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16429 tmp_addflag=' -i_dynamic' ;;
16430 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16431 tmp_addflag=' -i_dynamic -nofor_main' ;;
16432 ifc* | ifort*) # Intel Fortran compiler
16433 tmp_addflag=' -nofor_main' ;;
16435 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16437 if test $supports_anon_versioning = yes; then
16438 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16439 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16440 $echo "local: *; };" >> $output_objdir/$libname.ver~
16441 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16450 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16459 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16464 *** create shared libraries on Solaris systems. Therefore, libtool
16465 *** is disabling shared libraries support. We urge you to upgrade GNU
16466 *** binutils to release 2.9.1 or newer. Another option is to modify
16467 *** your PATH or compiler configuration so that the native linker is
16468 *** used, and then restart.
16471 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16473 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16480 case `$LD -v 2>&1` in
16481 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16485 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16486 *** reliably create shared libraries on SCO systems. Therefore, libtool
16487 *** is disabling shared libraries support. We urge you to upgrade GNU
16488 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16489 *** your PATH or compiler configuration so that the native linker is
16490 *** used, and then restart.
16495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16496 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16507 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16509 hardcode_direct_GCJ=yes
16510 hardcode_shlibpath_var_GCJ=no
16514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16515 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16516 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16523 if test "$ld_shlibs_GCJ" = no; then
16525 hardcode_libdir_flag_spec_GCJ=
16526 export_dynamic_flag_spec_GCJ=
16527 whole_archive_flag_spec_GCJ=
16530 # PORTME fill in a description of your system's linker (not GNU ld)
16533 allow_undefined_flag_GCJ=unsupported
16534 always_export_symbols_GCJ=yes
16535 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'
16536 # Note: this linker hardcodes the directories in LIBPATH if there
16537 # are no directories specified by -L.
16538 hardcode_minus_L_GCJ=yes
16539 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16540 # Neither direct hardcoding nor static linking is supported with a
16542 hardcode_direct_GCJ=unsupported
16547 if test "$host_cpu" = ia64; then
16548 # On IA64, the linker does run time linking by default, so we don't
16549 # have to do anything special.
16550 aix_use_runtimelinking=no
16551 exp_sym_flag='-Bexport'
16554 # If we're using GNU nm, then we don't want the "-C" option.
16555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16556 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16557 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'
16559 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'
16561 aix_use_runtimelinking=no
16563 # Test if we are trying to use run time linking or normal
16564 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16565 # need to do runtime linking.
16566 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16567 for ld_flag in $LDFLAGS; do
16568 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16569 aix_use_runtimelinking=yes
16576 exp_sym_flag='-bexport'
16577 no_entry_flag='-bnoentry'
16580 # When large executables or shared objects are built, AIX ld can
16581 # have problems creating the table of contents. If linking a library
16582 # or program results in "error TOC overflow" add -mminimal-toc to
16583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16586 archive_cmds_GCJ=''
16587 hardcode_direct_GCJ=yes
16588 hardcode_libdir_separator_GCJ=':'
16589 link_all_deplibs_GCJ=yes
16591 if test "$GCC" = yes; then
16592 case $host_os in aix4.[012]|aix4.[012].*)
16593 # We only want to do this on AIX 4.2 and lower, the check
16594 # below for broken collect2 doesn't work under 4.3+
16595 collect2name=`${CC} -print-prog-name=collect2`
16596 if test -f "$collect2name" && \
16597 strings "$collect2name" | grep resolve_lib_name >/dev/null
16599 # We have reworked collect2
16600 hardcode_direct_GCJ=yes
16602 # We have old collect2
16603 hardcode_direct_GCJ=unsupported
16604 # It fails to find uninstalled libraries when the uninstalled
16605 # path is not listed in the libpath. Setting hardcode_minus_L
16606 # to unsupported forces relinking
16607 hardcode_minus_L_GCJ=yes
16608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16609 hardcode_libdir_separator_GCJ=
16613 shared_flag='-shared'
16614 if test "$aix_use_runtimelinking" = yes; then
16615 shared_flag="$shared_flag "'${wl}-G'
16619 if test "$host_cpu" = ia64; then
16620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16621 # chokes on -Wl,-G. The following line is correct:
16624 if test "$aix_use_runtimelinking" = yes; then
16625 shared_flag='${wl}-G'
16627 shared_flag='${wl}-bM:SRE'
16632 # It seems that -bexpall does not export symbols beginning with
16633 # underscore (_), so it is better to generate a list of symbols to export.
16634 always_export_symbols_GCJ=yes
16635 if test "$aix_use_runtimelinking" = yes; then
16636 # Warning - without using the other runtime loading flags (-brtl),
16637 # -berok will link without error, but may produce a broken library.
16638 allow_undefined_flag_GCJ='-berok'
16639 # Determine the default libpath from the value encoded in an empty executable.
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657 (eval $ac_link) 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag"
16665 || test ! -s conftest.err'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; } &&
16671 { ac_try='test -s conftest$ac_exeext'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16680 # Check for a 64-bit object if we didn't find anything.
16681 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; }
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16688 rm -f conftest.err conftest.$ac_objext \
16689 conftest$ac_exeext conftest.$ac_ext
16690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16692 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16693 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16695 if test "$host_cpu" = ia64; then
16696 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16697 allow_undefined_flag_GCJ="-z nodefs"
16698 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16700 # Determine the default libpath from the value encoded in an empty executable.
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16716 rm -f conftest.$ac_objext conftest$ac_exeext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16718 (eval $ac_link) 2>conftest.er1
16720 grep -v '^ *+' conftest.er1 >conftest.err
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
16725 { ac_try='test -z "$ac_c_werror_flag"
16726 || test ! -s conftest.err'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest$ac_exeext'
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16741 # Check for a 64-bit object if we didn't find anything.
16742 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; }
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16749 rm -f conftest.err conftest.$ac_objext \
16750 conftest$ac_exeext conftest.$ac_ext
16751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16753 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16754 # Warning - without using the other run time loading flags,
16755 # -berok will link without error, but may produce a broken library.
16756 no_undefined_flag_GCJ=' ${wl}-bernotok'
16757 allow_undefined_flag_GCJ=' ${wl}-berok'
16758 # Exported symbols can be pulled into shared objects from archives
16759 whole_archive_flag_spec_GCJ='$convenience'
16760 archive_cmds_need_lc_GCJ=yes
16761 # This is similar to how AIX traditionally builds its shared libraries.
16762 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16768 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)'
16769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16770 hardcode_minus_L_GCJ=yes
16771 # see comment about different semantics on the GNU ld section
16776 export_dynamic_flag_spec_GCJ=-rdynamic
16779 cygwin* | mingw* | pw32*)
16780 # When not using gcc, we currently assume that we are using
16781 # Microsoft Visual C++.
16782 # hardcode_libdir_flag_spec is actually meaningless, as there is
16783 # no search path for DLLs.
16784 hardcode_libdir_flag_spec_GCJ=' '
16785 allow_undefined_flag_GCJ=unsupported
16786 # Tell ltmain to make .lib files, not .a files.
16788 # Tell ltmain to make .dll files, not .so files.
16790 # FIXME: Setting linknames here is a bad hack.
16791 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16792 # The linker will automatically build a .lib file if we build a DLL.
16793 old_archive_From_new_cmds_GCJ='true'
16794 # FIXME: Should let the user specify the lib program.
16795 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16796 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16797 enable_shared_with_static_runtimes_GCJ=yes
16800 darwin* | rhapsody*)
16802 rhapsody* | darwin1.[012])
16803 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16806 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16807 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16809 case ${MACOSX_DEPLOYMENT_TARGET} in
16811 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16814 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16820 archive_cmds_need_lc_GCJ=no
16821 hardcode_direct_GCJ=no
16822 hardcode_automatic_GCJ=yes
16823 hardcode_shlibpath_var_GCJ=unsupported
16824 whole_archive_flag_spec_GCJ=''
16825 link_all_deplibs_GCJ=yes
16826 if test "$GCC" = yes ; then
16827 output_verbose_link_cmd='echo'
16828 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16829 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16831 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}'
16832 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}'
16834 case $cc_basename in
16836 output_verbose_link_cmd='echo'
16837 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16838 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16839 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16840 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}'
16841 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}'
16851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16853 hardcode_shlibpath_var_GCJ=no
16860 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16861 # support. Future versions do this automatically, but an explicit c++rt0.o
16862 # does not break anything, and helps significantly (at the cost of a little
16865 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16866 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16867 hardcode_direct_GCJ=yes
16868 hardcode_shlibpath_var_GCJ=no
16871 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16873 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874 hardcode_direct_GCJ=yes
16875 hardcode_minus_L_GCJ=yes
16876 hardcode_shlibpath_var_GCJ=no
16879 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16880 freebsd* | kfreebsd*-gnu | dragonfly*)
16881 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16882 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16883 hardcode_direct_GCJ=yes
16884 hardcode_shlibpath_var_GCJ=no
16888 if test "$GCC" = yes; then
16889 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'
16891 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'
16893 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16894 hardcode_libdir_separator_GCJ=:
16895 hardcode_direct_GCJ=yes
16897 # hardcode_minus_L: Not really in the search PATH,
16898 # but as the default location of the library.
16899 hardcode_minus_L_GCJ=yes
16900 export_dynamic_flag_spec_GCJ='${wl}-E'
16904 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16905 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16907 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16909 if test "$with_gnu_ld" = no; then
16910 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16911 hardcode_libdir_separator_GCJ=:
16913 hardcode_direct_GCJ=yes
16914 export_dynamic_flag_spec_GCJ='${wl}-E'
16916 # hardcode_minus_L: Not really in the search PATH,
16917 # but as the default location of the library.
16918 hardcode_minus_L_GCJ=yes
16923 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16926 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16929 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16932 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16938 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16941 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16948 if test "$with_gnu_ld" = no; then
16949 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16950 hardcode_libdir_separator_GCJ=:
16954 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16955 hardcode_direct_GCJ=no
16956 hardcode_shlibpath_var_GCJ=no
16959 hardcode_direct_GCJ=yes
16960 export_dynamic_flag_spec_GCJ='${wl}-E'
16962 # hardcode_minus_L: Not really in the search PATH,
16963 # but as the default location of the library.
16964 hardcode_minus_L_GCJ=yes
16970 irix5* | irix6* | nonstopux*)
16971 if test "$GCC" = yes; then
16972 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'
16974 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'
16975 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16977 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16978 hardcode_libdir_separator_GCJ=:
16979 link_all_deplibs_GCJ=yes
16983 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16984 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16986 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16988 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16989 hardcode_direct_GCJ=yes
16990 hardcode_shlibpath_var_GCJ=no
16994 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16995 hardcode_direct_GCJ=yes
16996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16997 hardcode_libdir_separator_GCJ=:
16998 hardcode_shlibpath_var_GCJ=no
17002 hardcode_direct_GCJ=yes
17003 hardcode_shlibpath_var_GCJ=no
17004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17005 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17007 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17008 export_dynamic_flag_spec_GCJ='${wl}-E'
17011 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17012 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17016 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025 hardcode_minus_L_GCJ=yes
17026 allow_undefined_flag_GCJ=unsupported
17027 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'
17028 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17032 if test "$GCC" = yes; then
17033 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17034 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'
17036 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17037 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'
17039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17040 hardcode_libdir_separator_GCJ=:
17043 osf4* | osf5*) # as osf3* with the addition of -msym flag
17044 if test "$GCC" = yes; then
17045 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17046 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'
17047 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17049 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17050 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'
17051 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~
17052 $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'
17054 # Both c and cxx compiler support -rpath directly
17055 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17057 hardcode_libdir_separator_GCJ=:
17061 no_undefined_flag_GCJ=' -z text'
17062 if test "$GCC" = yes; then
17064 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17065 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17066 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17069 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17073 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17074 hardcode_shlibpath_var_GCJ=no
17076 solaris2.[0-5] | solaris2.[0-5].*) ;;
17078 # The compiler driver will combine linker options so we
17079 # cannot just pass the convience library names through
17080 # without $wl, iff we do not link with $LD.
17081 # Luckily, gcc supports the same syntax we need for Sun Studio.
17082 # Supported since Solaris 2.6 (maybe 2.5.1?)
17085 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17087 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' ;;
17090 link_all_deplibs_GCJ=yes
17094 if test "x$host_vendor" = xsequent; then
17095 # Use $CC to link under sequent, because it throws in some extra .o
17096 # files that make .init and .fini sections work.
17097 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17099 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17102 hardcode_direct_GCJ=yes
17103 hardcode_minus_L_GCJ=yes
17104 hardcode_shlibpath_var_GCJ=no
17108 case $host_vendor in
17110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17111 hardcode_direct_GCJ=yes # is this really true???
17114 ## LD is ld it makes a PLAMLIB
17115 ## CC just makes a GrossModule.
17116 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17117 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17118 hardcode_direct_GCJ=no
17121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17122 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17125 runpath_var='LD_RUN_PATH'
17126 hardcode_shlibpath_var_GCJ=no
17130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17131 hardcode_shlibpath_var_GCJ=no
17132 export_dynamic_flag_spec_GCJ='-Bexport'
17136 if test -d /usr/nec; then
17137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17138 hardcode_shlibpath_var_GCJ=no
17139 runpath_var=LD_RUN_PATH
17140 hardcode_runpath_var=yes
17145 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17146 no_undefined_flag_GCJ='${wl}-z,text'
17147 archive_cmds_need_lc_GCJ=no
17148 hardcode_shlibpath_var_GCJ=no
17149 runpath_var='LD_RUN_PATH'
17151 if test "$GCC" = yes; then
17152 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17153 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17155 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17156 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17160 sysv5* | sco3.2v5* | sco5v6*)
17161 # Note: We can NOT use -z defs as we might desire, because we do not
17162 # link with -lc, and that would cause any symbols used from libc to
17163 # always be unresolved, which means just about no library would
17164 # ever link correctly. If we're not using GNU ld we use -z text
17165 # though, which does catch some bad symbols but isn't as heavy-handed
17167 no_undefined_flag_GCJ='${wl}-z,text'
17168 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17169 archive_cmds_need_lc_GCJ=no
17170 hardcode_shlibpath_var_GCJ=no
17171 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17172 hardcode_libdir_separator_GCJ=':'
17173 link_all_deplibs_GCJ=yes
17174 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17175 runpath_var='LD_RUN_PATH'
17177 if test "$GCC" = yes; then
17178 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17179 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17181 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17182 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17188 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17189 hardcode_shlibpath_var_GCJ=no
17198 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17199 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17200 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17203 # Do we need to explicitly link libc?
17205 case "x$archive_cmds_need_lc_GCJ" in
17207 # Assume -lc should be added
17208 archive_cmds_need_lc_GCJ=yes
17210 if test "$enable_shared" = yes && test "$GCC" = yes; then
17211 case $archive_cmds_GCJ in
17213 # FIXME: we may have to deal with multi-command sequences.
17216 # Test whether the compiler implicitly links with -lc since on some
17217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17218 # to ld, don't add -lc before -lgcc.
17219 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17220 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225 (eval $ac_compile) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } 2>conftest.err; then
17231 libobjs=conftest.$ac_objext
17233 wl=$lt_prog_compiler_wl_GCJ
17234 pic_flag=$lt_prog_compiler_pic_GCJ
17240 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17241 allow_undefined_flag_GCJ=
17242 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17243 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }
17248 archive_cmds_need_lc_GCJ=no
17250 archive_cmds_need_lc_GCJ=yes
17252 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17254 cat conftest.err 1>&5
17257 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17258 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17265 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17266 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17267 library_names_spec=
17268 libname_spec='lib$name'
17272 postuninstall_cmds=
17276 shlibpath_overrides_runpath=unknown
17278 dynamic_linker="$host_os ld.so"
17279 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17280 if test "$GCC" = yes; then
17281 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17282 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17283 # if the path contains ";" then we assume it to be the separator
17284 # otherwise default to the standard path separator (i.e. ":") - it is
17285 # assumed that no part of a normal pathname contains ";" but that should
17286 # okay in the real world where ";" in dirpaths is itself problematic.
17287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17292 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17294 need_lib_prefix=unknown
17295 hardcode_into_libs=no
17297 # when you set need_version to no, make sure it does not cause -set_version
17298 # flags to be left without arguments
17299 need_version=unknown
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17305 shlibpath_var=LIBPATH
17307 # AIX 3 has no versioning support, so we append a major version to the name.
17308 soname_spec='${libname}${release}${shared_ext}$major'
17315 hardcode_into_libs=yes
17316 if test "$host_cpu" = ia64; then
17317 # AIX 5 supports IA64
17318 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17319 shlibpath_var=LD_LIBRARY_PATH
17321 # With GCC up to 2.95.x, collect2 would create an import file
17322 # for dependence libraries. The import file would start with
17323 # the line `#! .'. This would cause the generated library to
17324 # depend on `.', always an invalid library. This was fixed in
17325 # development snapshots of GCC prior to 3.0.
17327 aix4 | aix4.[01] | aix4.[01].*)
17328 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17330 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17333 can_build_shared=no
17337 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17338 # soname into executable. Probably we can add versioning support to
17339 # collect2, so additional links can be useful in future.
17340 if test "$aix_use_runtimelinking" = yes; then
17341 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17342 # instead of lib<name>.a to let people know that these are not
17343 # typical AIX shared libraries.
17344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346 # We preserve .a as extension for shared libraries through AIX4.2
17347 # and later when we are not doing run time linking.
17348 library_names_spec='${libname}${release}.a $libname.a'
17349 soname_spec='${libname}${release}${shared_ext}$major'
17351 shlibpath_var=LIBPATH
17356 library_names_spec='$libname.ixlibrary $libname.a'
17357 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17358 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'
17362 library_names_spec='${libname}${shared_ext}'
17363 dynamic_linker="$host_os ld.so"
17364 shlibpath_var=LIBRARY_PATH
17370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371 soname_spec='${libname}${release}${shared_ext}$major'
17372 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17373 shlibpath_var=LD_LIBRARY_PATH
17374 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17375 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17376 # the default ld.so.conf also contains /usr/contrib/lib and
17377 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17378 # libtool to hard-code these into programs
17381 cygwin* | mingw* | pw32*)
17382 version_type=windows
17387 case $GCC,$host_os in
17388 yes,cygwin* | yes,mingw* | yes,pw32*)
17389 library_names_spec='$libname.dll.a'
17390 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17391 postinstall_cmds='base_file=`basename \${file}`~
17392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17393 dldir=$destdir/`dirname \$dlpath`~
17394 test -d \$dldir || mkdir -p \$dldir~
17395 $install_prog $dir/$dlname \$dldir/$dlname~
17396 chmod a+x \$dldir/$dlname'
17397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17398 dlpath=$dir/\$dldll~
17400 shlibpath_overrides_runpath=yes
17404 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17405 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17406 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17409 # MinGW DLLs use traditional 'lib' prefix
17410 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17411 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17412 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17413 # It is most probably a Windows format PATH printed by
17414 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17415 # path with ; separators, and with drive letters. We can handle the
17416 # drive letters (cygwin fileutils understands them), so leave them,
17417 # especially as we might pass files found there to a mingw objdump,
17418 # which wouldn't understand a cygwinified path. Ahh.
17419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17425 # pw32 DLLs use 'pw' prefix rather than 'lib'
17426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17432 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17435 dynamic_linker='Win32 ld.exe'
17436 # FIXME: first we should search . and the directory the executable is in
17440 darwin* | rhapsody*)
17441 dynamic_linker="$host_os dyld"
17442 version_type=darwin
17445 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17446 soname_spec='${libname}${release}${major}$shared_ext'
17447 shlibpath_overrides_runpath=yes
17448 shlibpath_var=DYLD_LIBRARY_PATH
17449 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17450 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17451 if test "$GCC" = yes; then
17452 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"`
17454 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17456 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 shlibpath_var=LD_LIBRARY_PATH
17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17477 soname_spec='${libname}${release}${shared_ext}$major'
17478 shlibpath_var=LD_LIBRARY_PATH
17479 shlibpath_overrides_runpath=no
17480 hardcode_into_libs=yes
17481 dynamic_linker='GNU ld.so'
17484 freebsd* | dragonfly*)
17485 # DragonFly does not have aout. When/if they implement a new
17486 # versioning mechanism, adjust this.
17487 if test -x /usr/bin/objformat; then
17488 objformat=`/usr/bin/objformat`
17491 freebsd[123]*) objformat=aout ;;
17492 *) objformat=elf ;;
17495 version_type=freebsd-$objformat
17496 case $version_type in
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17507 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=yes
17512 freebsd3.[01]* | freebsdelf3.[01]*)
17513 shlibpath_overrides_runpath=yes
17514 hardcode_into_libs=yes
17516 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17517 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17518 shlibpath_overrides_runpath=no
17519 hardcode_into_libs=yes
17521 freebsd*) # from 4.6 on
17522 shlibpath_overrides_runpath=yes
17523 hardcode_into_libs=yes
17532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17533 soname_spec='${libname}${release}${shared_ext}$major'
17534 shlibpath_var=LD_LIBRARY_PATH
17535 hardcode_into_libs=yes
17538 hpux9* | hpux10* | hpux11*)
17539 # Give a soname corresponding to the major version so that dld.sl refuses to
17540 # link against other versions.
17547 hardcode_into_libs=yes
17548 dynamic_linker="$host_os dld.so"
17549 shlibpath_var=LD_LIBRARY_PATH
17550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 soname_spec='${libname}${release}${shared_ext}$major'
17553 if test "X$HPUX_IA64_MODE" = X32; then
17554 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17556 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17562 hardcode_into_libs=yes
17563 dynamic_linker="$host_os dld.sl"
17564 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567 soname_spec='${libname}${release}${shared_ext}$major'
17568 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17573 dynamic_linker="$host_os dld.sl"
17574 shlibpath_var=SHLIB_PATH
17575 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17577 soname_spec='${libname}${release}${shared_ext}$major'
17580 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17581 postinstall_cmds='chmod 555 $lib'
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17591 shlibpath_var=LD_LIBRARY_PATH
17592 shlibpath_overrides_runpath=no
17593 hardcode_into_libs=yes
17596 irix5* | irix6* | nonstopux*)
17598 nonstopux*) version_type=nonstopux ;;
17600 if test "$lt_cv_prog_gnu_ld" = yes; then
17608 soname_spec='${libname}${release}${shared_ext}$major'
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17611 irix5* | nonstopux*)
17612 libsuff= shlibsuff=
17615 case $LD in # libtool.m4 will add one of these switches to LD
17616 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17617 libsuff= shlibsuff= libmagic=32-bit;;
17618 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17619 libsuff=32 shlibsuff=N32 libmagic=N32;;
17620 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17621 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17622 *) libsuff= shlibsuff= libmagic=never-match;;
17626 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17627 shlibpath_overrides_runpath=no
17628 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17629 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17630 hardcode_into_libs=yes
17633 # No shared lib support for Linux oldld, aout, or coff.
17634 linux*oldld* | linux*aout* | linux*coff*)
17638 # This must be Linux ELF.
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644 soname_spec='${libname}${release}${shared_ext}$major'
17645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 shlibpath_overrides_runpath=no
17648 # This implies no fast_install, which is unacceptable.
17649 # Some rework will be needed to allow for fast_install
17650 # before this can be enabled.
17651 hardcode_into_libs=yes
17653 # find out which ABI we are using
17655 case "$host_cpu" in
17656 x86_64*|s390x*|powerpc64*)
17657 echo '#line 17657 "configure"' > conftest.$ac_ext
17658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17659 (eval $ac_compile) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; then
17663 case `/usr/bin/file conftest.$ac_objext` in
17666 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17674 # Append ld.so.conf contents to the search path
17675 if test -f /etc/ld.so.conf; then
17676 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17677 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17680 # We used to test for /lib/ld.so.1 and disable shared libraries on
17681 # powerpc, because MkLinux only supported shared libraries with the
17682 # GNU dynamic linker. Since this was broken with cross compilers,
17683 # most powerpc-linux boxes support dynamic linking these days and
17684 # people can always --disable-shared, the test was removed, and we
17685 # assume the GNU/Linux dynamic linker is in use.
17686 dynamic_linker='GNU/Linux ld.so'
17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17694 soname_spec='${libname}${release}${shared_ext}$major'
17695 shlibpath_var=LD_LIBRARY_PATH
17696 shlibpath_overrides_runpath=no
17697 hardcode_into_libs=yes
17698 dynamic_linker='GNU ld.so'
17705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17708 dynamic_linker='NetBSD (a.out) ld.so'
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 dynamic_linker='NetBSD ld.elf_so'
17714 shlibpath_var=LD_LIBRARY_PATH
17715 shlibpath_overrides_runpath=yes
17716 hardcode_into_libs=yes
17721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722 shlibpath_var=LD_LIBRARY_PATH
17723 shlibpath_overrides_runpath=yes
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731 soname_spec='${libname}${release}${shared_ext}$major'
17732 shlibpath_var=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath=yes
17738 sys_lib_dlsearch_path_spec="/usr/lib"
17740 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17742 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17743 *) need_version=no ;;
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17750 openbsd2.[89] | openbsd2.[89].*)
17751 shlibpath_overrides_runpath=no
17754 shlibpath_overrides_runpath=yes
17758 shlibpath_overrides_runpath=yes
17763 libname_spec='$name'
17766 library_names_spec='$libname${shared_ext} $libname.a'
17767 dynamic_linker='OS/2 ld.exe'
17768 shlibpath_var=LIBPATH
17771 osf3* | osf4* | osf5*)
17775 soname_spec='${libname}${release}${shared_ext}$major'
17776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17777 shlibpath_var=LD_LIBRARY_PATH
17778 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17779 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 shlibpath_var=LD_LIBRARY_PATH
17789 shlibpath_overrides_runpath=yes
17790 hardcode_into_libs=yes
17791 # ldd complains unless libraries are executable
17792 postinstall_cmds='chmod +x $lib'
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17798 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17799 shlibpath_var=LD_LIBRARY_PATH
17800 shlibpath_overrides_runpath=yes
17801 if test "$with_gnu_ld" = yes; then
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17810 soname_spec='${libname}${release}${shared_ext}$major'
17811 shlibpath_var=LD_LIBRARY_PATH
17812 case $host_vendor in
17814 shlibpath_overrides_runpath=no
17816 export_dynamic_flag_spec='${wl}-Blargedynsym'
17817 runpath_var=LD_RUN_PATH
17825 shlibpath_overrides_runpath=no
17826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17832 if test -d /usr/nec ;then
17834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17835 soname_spec='$libname${shared_ext}.$major'
17836 shlibpath_var=LD_LIBRARY_PATH
17840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17841 version_type=freebsd-elf
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17845 soname_spec='${libname}${release}${shared_ext}$major'
17846 shlibpath_var=LD_LIBRARY_PATH
17847 hardcode_into_libs=yes
17848 if test "$with_gnu_ld" = yes; then
17849 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17850 shlibpath_overrides_runpath=no
17852 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17853 shlibpath_overrides_runpath=yes
17856 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17860 sys_lib_dlsearch_path_spec='/usr/lib'
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17874 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17875 echo "${ECHO_T}$dynamic_linker" >&6
17876 test "$dynamic_linker" = no && can_build_shared=no
17878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17879 if test "$GCC" = yes; then
17880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17883 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17885 hardcode_action_GCJ=
17886 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17887 test -n "$runpath_var_GCJ" || \
17888 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17890 # We can hardcode non-existant directories.
17891 if test "$hardcode_direct_GCJ" != no &&
17892 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17893 # have to relink, otherwise we might link with an installed library
17894 # when we should be linking with a yet-to-be-installed one
17895 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17896 test "$hardcode_minus_L_GCJ" != no; then
17897 # Linking always hardcodes the temporary library directory.
17898 hardcode_action_GCJ=relink
17900 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17901 hardcode_action_GCJ=immediate
17904 # We cannot hardcode anything, or else we can only hardcode existing
17906 hardcode_action_GCJ=unsupported
17908 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17909 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17911 if test "$hardcode_action_GCJ" = relink; then
17912 # Fast installation is not supported
17913 enable_fast_install=no
17914 elif test "$shlibpath_overrides_runpath" = yes ||
17915 test "$enable_shared" = no; then
17916 # Fast installation is not necessary
17917 enable_fast_install=needless
17921 # The else clause should only fire when bootstrapping the
17922 # libtool distribution, otherwise you forgot to ship ltmain.sh
17923 # with your package, and you will get complaints that there are
17924 # no rules to generate ltmain.sh.
17925 if test -f "$ltmain"; then
17926 # See if we are running on zsh, and set the options which allow our commands through
17927 # without removal of \ escapes.
17928 if test -n "${ZSH_VERSION+set}" ; then
17929 setopt NO_GLOB_SUBST
17931 # Now quote all the things that may contain metacharacters while being
17932 # careful not to overquote the AC_SUBSTed values. We take copies of the
17933 # variables and quote the copies for generation of the libtool script.
17934 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17936 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17937 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17938 deplibs_check_method reload_flag reload_cmds need_locks \
17939 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17940 lt_cv_sys_global_symbol_to_c_name_address \
17941 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17942 old_postinstall_cmds old_postuninstall_cmds \
17946 lt_prog_compiler_wl_GCJ \
17947 lt_prog_compiler_pic_GCJ \
17948 lt_prog_compiler_static_GCJ \
17949 lt_prog_compiler_no_builtin_flag_GCJ \
17950 export_dynamic_flag_spec_GCJ \
17951 thread_safe_flag_spec_GCJ \
17952 whole_archive_flag_spec_GCJ \
17953 enable_shared_with_static_runtimes_GCJ \
17954 old_archive_cmds_GCJ \
17955 old_archive_from_new_cmds_GCJ \
17956 predep_objects_GCJ \
17957 postdep_objects_GCJ \
17960 compiler_lib_search_path_GCJ \
17962 archive_expsym_cmds_GCJ \
17963 postinstall_cmds_GCJ \
17964 postuninstall_cmds_GCJ \
17965 old_archive_from_expsyms_cmds_GCJ \
17966 allow_undefined_flag_GCJ \
17967 no_undefined_flag_GCJ \
17968 export_symbols_cmds_GCJ \
17969 hardcode_libdir_flag_spec_GCJ \
17970 hardcode_libdir_flag_spec_ld_GCJ \
17971 hardcode_libdir_separator_GCJ \
17972 hardcode_automatic_GCJ \
17974 module_expsym_cmds_GCJ \
17975 lt_cv_prog_compiler_c_o_GCJ \
17976 exclude_expsyms_GCJ \
17977 include_expsyms_GCJ; do
17980 old_archive_cmds_GCJ | \
17981 old_archive_from_new_cmds_GCJ | \
17982 archive_cmds_GCJ | \
17983 archive_expsym_cmds_GCJ | \
17984 module_cmds_GCJ | \
17985 module_expsym_cmds_GCJ | \
17986 old_archive_from_expsyms_cmds_GCJ | \
17987 export_symbols_cmds_GCJ | \
17988 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17989 postinstall_cmds | postuninstall_cmds | \
17990 old_postinstall_cmds | old_postuninstall_cmds | \
17991 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17992 # Double-quote double-evaled strings.
17993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18002 *'\$0 --fallback-echo"')
18003 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18009 cat <<__EOF__ >> "$cfgfile"
18010 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18014 # Shell to use when invoking shell scripts.
18017 # Whether or not to build shared libraries.
18018 build_libtool_libs=$enable_shared
18020 # Whether or not to build static libraries.
18021 build_old_libs=$enable_static
18023 # Whether or not to add -lc for building shared libraries.
18024 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18026 # Whether or not to disallow shared libs when runtime libs are static
18027 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18029 # Whether or not to optimize for fast installation.
18030 fast_install=$enable_fast_install
18033 host_alias=$host_alias
18037 # The build system.
18038 build_alias=$build_alias
18042 # An echo program that does not interpret backslashes.
18047 AR_FLAGS=$lt_AR_FLAGS
18052 # LTCC compiler flags.
18053 LTCFLAGS=$lt_LTCFLAGS
18055 # A language-specific compiler.
18056 CC=$lt_compiler_GCJ
18058 # Is the compiler the GNU C compiler?
18061 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18062 gcc_ver=\`gcc -dumpversion\`
18067 # The linker used to build libraries.
18070 # Whether we need hard or soft links.
18073 # A BSD-compatible nm program.
18076 # A symbol stripping program
18079 # Used to examine libraries when file_magic_cmd begins "file"
18080 MAGIC_CMD=$MAGIC_CMD
18082 # Used on cygwin: DLL creation program.
18085 # Used on cygwin: object dumper.
18088 # Used on cygwin: assembler.
18091 # The name of the directory that contains temporary libtool files.
18094 # How to create reloadable object files.
18095 reload_flag=$lt_reload_flag
18096 reload_cmds=$lt_reload_cmds
18098 # How to pass a linker flag through the compiler.
18099 wl=$lt_lt_prog_compiler_wl_GCJ
18101 # Object file suffix (normally "o").
18102 objext="$ac_objext"
18104 # Old archive suffix (normally "a").
18107 # Shared library suffix (normally ".so").
18108 shrext_cmds='$shrext_cmds'
18110 # Executable file suffix (normally "").
18113 # Additional compiler flags for building library objects.
18114 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18117 # What is the maximum length of a command?
18118 max_cmd_len=$lt_cv_sys_max_cmd_len
18120 # Does compiler simultaneously support -c and -o options?
18121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18123 # Must we lock files when doing compilation?
18124 need_locks=$lt_need_locks
18126 # Do we need the lib prefix for modules?
18127 need_lib_prefix=$need_lib_prefix
18129 # Do we need a version for libraries?
18130 need_version=$need_version
18132 # Whether dlopen is supported.
18133 dlopen_support=$enable_dlopen
18135 # Whether dlopen of programs is supported.
18136 dlopen_self=$enable_dlopen_self
18138 # Whether dlopen of statically linked programs is supported.
18139 dlopen_self_static=$enable_dlopen_self_static
18141 # Compiler flag to prevent dynamic linking.
18142 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18144 # Compiler flag to turn off builtin functions.
18145 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18147 # Compiler flag to allow reflexive dlopens.
18148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18150 # Compiler flag to generate shared objects directly from archives.
18151 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18153 # Compiler flag to generate thread-safe objects.
18154 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18156 # Library versioning type.
18157 version_type=$version_type
18159 # Format of library name prefix.
18160 libname_spec=$lt_libname_spec
18162 # List of archive names. First name is the real one, the rest are links.
18163 # The last name is the one that the linker finds with -lNAME.
18164 library_names_spec=$lt_library_names_spec
18166 # The coded name of the library, if different from the real name.
18167 soname_spec=$lt_soname_spec
18169 # Commands used to build and install an old-style archive.
18171 old_archive_cmds=$lt_old_archive_cmds_GCJ
18172 old_postinstall_cmds=$lt_old_postinstall_cmds
18173 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18175 # Create an old-style archive from a shared archive.
18176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18178 # Create a temporary old-style archive to link instead of a shared archive.
18179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18181 # Commands used to build and install a shared archive.
18182 archive_cmds=$lt_archive_cmds_GCJ
18183 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18184 postinstall_cmds=$lt_postinstall_cmds
18185 postuninstall_cmds=$lt_postuninstall_cmds
18187 # Commands used to build a loadable module (assumed same as above if empty)
18188 module_cmds=$lt_module_cmds_GCJ
18189 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18191 # Commands to strip libraries.
18192 old_striplib=$lt_old_striplib
18193 striplib=$lt_striplib
18195 # Dependencies to place before the objects being linked to create a
18197 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18199 # Dependencies to place after the objects being linked to create a
18201 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18203 # Dependencies to place before the objects being linked to create a
18205 predeps=$lt_predeps_GCJ
18207 # Dependencies to place after the objects being linked to create a
18209 postdeps=$lt_postdeps_GCJ
18211 # The library search path used internally by the compiler when linking
18212 # a shared library.
18213 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18215 # Method to check whether dependent libraries are shared objects.
18216 deplibs_check_method=$lt_deplibs_check_method
18218 # Command to use when deplibs_check_method == file_magic.
18219 file_magic_cmd=$lt_file_magic_cmd
18221 # Flag that allows shared libraries with undefined symbols to be built.
18222 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18224 # Flag that forces no undefined symbols.
18225 no_undefined_flag=$lt_no_undefined_flag_GCJ
18227 # Commands used to finish a libtool library installation in a directory.
18228 finish_cmds=$lt_finish_cmds
18230 # Same as above, but a single script fragment to be evaled but not shown.
18231 finish_eval=$lt_finish_eval
18233 # Take the output of nm and produce a listing of raw symbols and C names.
18234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18236 # Transform the output of nm in a proper C declaration
18237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18239 # Transform the output of nm in a C name address pair
18240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18242 # This is the shared library runtime path variable.
18243 runpath_var=$runpath_var
18245 # This is the shared library path variable.
18246 shlibpath_var=$shlibpath_var
18248 # Is shlibpath searched before the hard-coded library search path?
18249 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18251 # How to hardcode a shared library path into an executable.
18252 hardcode_action=$hardcode_action_GCJ
18254 # Whether we should hardcode library paths into libraries.
18255 hardcode_into_libs=$hardcode_into_libs
18257 # Flag to hardcode \$libdir into a binary during linking.
18258 # This must work even if \$libdir does not exist.
18259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18261 # If ld is used when linking, flag to hardcode \$libdir into
18262 # a binary during linking. This must work even if \$libdir does
18264 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18266 # Whether we need a single -rpath flag with a separated argument.
18267 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18269 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18270 # resulting binary.
18271 hardcode_direct=$hardcode_direct_GCJ
18273 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18274 # resulting binary.
18275 hardcode_minus_L=$hardcode_minus_L_GCJ
18277 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18278 # the resulting binary.
18279 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18281 # Set to yes if building a shared library automatically hardcodes DIR into the library
18282 # and all subsequent libraries and executables linked against it.
18283 hardcode_automatic=$hardcode_automatic_GCJ
18285 # Variables whose values should be saved in libtool wrapper scripts and
18286 # restored at relink time.
18287 variables_saved_for_relink="$variables_saved_for_relink"
18289 # Whether libtool must link a program against all its dependency libraries.
18290 link_all_deplibs=$link_all_deplibs_GCJ
18292 # Compile-time system search path for libraries
18293 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18295 # Run-time system search path for libraries
18296 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18298 # Fix the shell variable \$srcfile for the compiler.
18299 fix_srcfile_path="$fix_srcfile_path_GCJ"
18301 # Set to yes if exported symbols are required.
18302 always_export_symbols=$always_export_symbols_GCJ
18304 # The commands to list exported symbols.
18305 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18307 # The commands to extract the exported symbol list from a shared archive.
18308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18310 # Symbols that should not be listed in the preloaded symbols.
18311 exclude_expsyms=$lt_exclude_expsyms_GCJ
18313 # Symbols that must always be exported.
18314 include_expsyms=$lt_include_expsyms_GCJ
18316 # ### END LIBTOOL TAG CONFIG: $tagname
18322 # If there is no Makefile yet, we rely on a make rule to execute
18323 # `config.status --recheck' to rerun these tests and create the
18324 # libtool script then.
18325 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18326 if test -f "$ltmain_in"; then
18327 test -f Makefile && make "$ltmain"
18333 ac_cpp='$CPP $CPPFLAGS'
18334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349 # Source file extension for RC test sources.
18352 # Object file extension for compiled RC test sources.
18356 # Code to be used in simple compile tests
18357 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18359 # Code to be used in simple link tests
18360 lt_simple_link_test_code="$lt_simple_compile_test_code"
18362 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18364 # If no C compiler was specified, use CC.
18367 # If no C compiler flags were specified, use CFLAGS.
18368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18370 # Allow CC to be a program name with arguments.
18374 # save warnings/boilerplate of simple test code
18375 ac_outfile=conftest.$ac_objext
18376 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18377 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18378 _lt_compiler_boilerplate=`cat conftest.err`
18381 ac_outfile=conftest.$ac_objext
18382 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18383 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18384 _lt_linker_boilerplate=`cat conftest.err`
18388 # Allow CC to be a program name with arguments.
18393 for cc_temp in $compiler""; do
18395 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18396 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18401 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18403 lt_cv_prog_compiler_c_o_RC=yes
18405 # The else clause should only fire when bootstrapping the
18406 # libtool distribution, otherwise you forgot to ship ltmain.sh
18407 # with your package, and you will get complaints that there are
18408 # no rules to generate ltmain.sh.
18409 if test -f "$ltmain"; then
18410 # See if we are running on zsh, and set the options which allow our commands through
18411 # without removal of \ escapes.
18412 if test -n "${ZSH_VERSION+set}" ; then
18413 setopt NO_GLOB_SUBST
18415 # Now quote all the things that may contain metacharacters while being
18416 # careful not to overquote the AC_SUBSTed values. We take copies of the
18417 # variables and quote the copies for generation of the libtool script.
18418 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18420 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18421 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18422 deplibs_check_method reload_flag reload_cmds need_locks \
18423 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18424 lt_cv_sys_global_symbol_to_c_name_address \
18425 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18426 old_postinstall_cmds old_postuninstall_cmds \
18430 lt_prog_compiler_wl_RC \
18431 lt_prog_compiler_pic_RC \
18432 lt_prog_compiler_static_RC \
18433 lt_prog_compiler_no_builtin_flag_RC \
18434 export_dynamic_flag_spec_RC \
18435 thread_safe_flag_spec_RC \
18436 whole_archive_flag_spec_RC \
18437 enable_shared_with_static_runtimes_RC \
18438 old_archive_cmds_RC \
18439 old_archive_from_new_cmds_RC \
18440 predep_objects_RC \
18441 postdep_objects_RC \
18444 compiler_lib_search_path_RC \
18446 archive_expsym_cmds_RC \
18447 postinstall_cmds_RC \
18448 postuninstall_cmds_RC \
18449 old_archive_from_expsyms_cmds_RC \
18450 allow_undefined_flag_RC \
18451 no_undefined_flag_RC \
18452 export_symbols_cmds_RC \
18453 hardcode_libdir_flag_spec_RC \
18454 hardcode_libdir_flag_spec_ld_RC \
18455 hardcode_libdir_separator_RC \
18456 hardcode_automatic_RC \
18458 module_expsym_cmds_RC \
18459 lt_cv_prog_compiler_c_o_RC \
18460 exclude_expsyms_RC \
18461 include_expsyms_RC; do
18464 old_archive_cmds_RC | \
18465 old_archive_from_new_cmds_RC | \
18466 archive_cmds_RC | \
18467 archive_expsym_cmds_RC | \
18469 module_expsym_cmds_RC | \
18470 old_archive_from_expsyms_cmds_RC | \
18471 export_symbols_cmds_RC | \
18472 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18473 postinstall_cmds | postuninstall_cmds | \
18474 old_postinstall_cmds | old_postuninstall_cmds | \
18475 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18476 # Double-quote double-evaled strings.
18477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18486 *'\$0 --fallback-echo"')
18487 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18493 cat <<__EOF__ >> "$cfgfile"
18494 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18496 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18498 # Shell to use when invoking shell scripts.
18501 # Whether or not to build shared libraries.
18502 build_libtool_libs=$enable_shared
18504 # Whether or not to build static libraries.
18505 build_old_libs=$enable_static
18507 # Whether or not to add -lc for building shared libraries.
18508 build_libtool_need_lc=$archive_cmds_need_lc_RC
18510 # Whether or not to disallow shared libs when runtime libs are static
18511 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18513 # Whether or not to optimize for fast installation.
18514 fast_install=$enable_fast_install
18517 host_alias=$host_alias
18521 # The build system.
18522 build_alias=$build_alias
18526 # An echo program that does not interpret backslashes.
18531 AR_FLAGS=$lt_AR_FLAGS
18536 # LTCC compiler flags.
18537 LTCFLAGS=$lt_LTCFLAGS
18539 # A language-specific compiler.
18542 # Is the compiler the GNU C compiler?
18545 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18546 gcc_ver=\`gcc -dumpversion\`
18551 # The linker used to build libraries.
18554 # Whether we need hard or soft links.
18557 # A BSD-compatible nm program.
18560 # A symbol stripping program
18563 # Used to examine libraries when file_magic_cmd begins "file"
18564 MAGIC_CMD=$MAGIC_CMD
18566 # Used on cygwin: DLL creation program.
18569 # Used on cygwin: object dumper.
18572 # Used on cygwin: assembler.
18575 # The name of the directory that contains temporary libtool files.
18578 # How to create reloadable object files.
18579 reload_flag=$lt_reload_flag
18580 reload_cmds=$lt_reload_cmds
18582 # How to pass a linker flag through the compiler.
18583 wl=$lt_lt_prog_compiler_wl_RC
18585 # Object file suffix (normally "o").
18586 objext="$ac_objext"
18588 # Old archive suffix (normally "a").
18591 # Shared library suffix (normally ".so").
18592 shrext_cmds='$shrext_cmds'
18594 # Executable file suffix (normally "").
18597 # Additional compiler flags for building library objects.
18598 pic_flag=$lt_lt_prog_compiler_pic_RC
18601 # What is the maximum length of a command?
18602 max_cmd_len=$lt_cv_sys_max_cmd_len
18604 # Does compiler simultaneously support -c and -o options?
18605 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18607 # Must we lock files when doing compilation?
18608 need_locks=$lt_need_locks
18610 # Do we need the lib prefix for modules?
18611 need_lib_prefix=$need_lib_prefix
18613 # Do we need a version for libraries?
18614 need_version=$need_version
18616 # Whether dlopen is supported.
18617 dlopen_support=$enable_dlopen
18619 # Whether dlopen of programs is supported.
18620 dlopen_self=$enable_dlopen_self
18622 # Whether dlopen of statically linked programs is supported.
18623 dlopen_self_static=$enable_dlopen_self_static
18625 # Compiler flag to prevent dynamic linking.
18626 link_static_flag=$lt_lt_prog_compiler_static_RC
18628 # Compiler flag to turn off builtin functions.
18629 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18631 # Compiler flag to allow reflexive dlopens.
18632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18634 # Compiler flag to generate shared objects directly from archives.
18635 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18637 # Compiler flag to generate thread-safe objects.
18638 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18640 # Library versioning type.
18641 version_type=$version_type
18643 # Format of library name prefix.
18644 libname_spec=$lt_libname_spec
18646 # List of archive names. First name is the real one, the rest are links.
18647 # The last name is the one that the linker finds with -lNAME.
18648 library_names_spec=$lt_library_names_spec
18650 # The coded name of the library, if different from the real name.
18651 soname_spec=$lt_soname_spec
18653 # Commands used to build and install an old-style archive.
18655 old_archive_cmds=$lt_old_archive_cmds_RC
18656 old_postinstall_cmds=$lt_old_postinstall_cmds
18657 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18659 # Create an old-style archive from a shared archive.
18660 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18662 # Create a temporary old-style archive to link instead of a shared archive.
18663 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18665 # Commands used to build and install a shared archive.
18666 archive_cmds=$lt_archive_cmds_RC
18667 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18668 postinstall_cmds=$lt_postinstall_cmds
18669 postuninstall_cmds=$lt_postuninstall_cmds
18671 # Commands used to build a loadable module (assumed same as above if empty)
18672 module_cmds=$lt_module_cmds_RC
18673 module_expsym_cmds=$lt_module_expsym_cmds_RC
18675 # Commands to strip libraries.
18676 old_striplib=$lt_old_striplib
18677 striplib=$lt_striplib
18679 # Dependencies to place before the objects being linked to create a
18681 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18683 # Dependencies to place after the objects being linked to create a
18685 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18687 # Dependencies to place before the objects being linked to create a
18689 predeps=$lt_predeps_RC
18691 # Dependencies to place after the objects being linked to create a
18693 postdeps=$lt_postdeps_RC
18695 # The library search path used internally by the compiler when linking
18696 # a shared library.
18697 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18699 # Method to check whether dependent libraries are shared objects.
18700 deplibs_check_method=$lt_deplibs_check_method
18702 # Command to use when deplibs_check_method == file_magic.
18703 file_magic_cmd=$lt_file_magic_cmd
18705 # Flag that allows shared libraries with undefined symbols to be built.
18706 allow_undefined_flag=$lt_allow_undefined_flag_RC
18708 # Flag that forces no undefined symbols.
18709 no_undefined_flag=$lt_no_undefined_flag_RC
18711 # Commands used to finish a libtool library installation in a directory.
18712 finish_cmds=$lt_finish_cmds
18714 # Same as above, but a single script fragment to be evaled but not shown.
18715 finish_eval=$lt_finish_eval
18717 # Take the output of nm and produce a listing of raw symbols and C names.
18718 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18720 # Transform the output of nm in a proper C declaration
18721 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18723 # Transform the output of nm in a C name address pair
18724 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18726 # This is the shared library runtime path variable.
18727 runpath_var=$runpath_var
18729 # This is the shared library path variable.
18730 shlibpath_var=$shlibpath_var
18732 # Is shlibpath searched before the hard-coded library search path?
18733 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18735 # How to hardcode a shared library path into an executable.
18736 hardcode_action=$hardcode_action_RC
18738 # Whether we should hardcode library paths into libraries.
18739 hardcode_into_libs=$hardcode_into_libs
18741 # Flag to hardcode \$libdir into a binary during linking.
18742 # This must work even if \$libdir does not exist.
18743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18745 # If ld is used when linking, flag to hardcode \$libdir into
18746 # a binary during linking. This must work even if \$libdir does
18748 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18750 # Whether we need a single -rpath flag with a separated argument.
18751 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18753 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18754 # resulting binary.
18755 hardcode_direct=$hardcode_direct_RC
18757 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18758 # resulting binary.
18759 hardcode_minus_L=$hardcode_minus_L_RC
18761 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18762 # the resulting binary.
18763 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18765 # Set to yes if building a shared library automatically hardcodes DIR into the library
18766 # and all subsequent libraries and executables linked against it.
18767 hardcode_automatic=$hardcode_automatic_RC
18769 # Variables whose values should be saved in libtool wrapper scripts and
18770 # restored at relink time.
18771 variables_saved_for_relink="$variables_saved_for_relink"
18773 # Whether libtool must link a program against all its dependency libraries.
18774 link_all_deplibs=$link_all_deplibs_RC
18776 # Compile-time system search path for libraries
18777 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18779 # Run-time system search path for libraries
18780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18782 # Fix the shell variable \$srcfile for the compiler.
18783 fix_srcfile_path="$fix_srcfile_path_RC"
18785 # Set to yes if exported symbols are required.
18786 always_export_symbols=$always_export_symbols_RC
18788 # The commands to list exported symbols.
18789 export_symbols_cmds=$lt_export_symbols_cmds_RC
18791 # The commands to extract the exported symbol list from a shared archive.
18792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18794 # Symbols that should not be listed in the preloaded symbols.
18795 exclude_expsyms=$lt_exclude_expsyms_RC
18797 # Symbols that must always be exported.
18798 include_expsyms=$lt_include_expsyms_RC
18800 # ### END LIBTOOL TAG CONFIG: $tagname
18806 # If there is no Makefile yet, we rely on a make rule to execute
18807 # `config.status --recheck' to rerun these tests and create the
18808 # libtool script then.
18809 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18810 if test -f "$ltmain_in"; then
18811 test -f Makefile && make "$ltmain"
18817 ac_cpp='$CPP $CPPFLAGS'
18818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18827 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18828 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18829 { (exit 1); exit 1; }; }
18833 # Append the new tag name to the list of available tags.
18834 if test -n "$tagname" ; then
18835 available_tags="$available_tags $tagname"
18841 # Now substitute the updated list of available tags.
18842 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18843 mv "${ofile}T" "$ofile"
18847 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18848 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18849 { (exit 1); exit 1; }; }
18855 # This can be used to rebuild libtool when needed
18856 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18858 # Always use our own libtool.
18859 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18861 # Prevent multiple expansion
18883 echo "$as_me:$LINENO: checking for X" >&5
18884 echo $ECHO_N "checking for X... $ECHO_C" >&6
18887 # Check whether --with-x or --without-x was given.
18888 if test "${with_x+set}" = set; then
18892 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18893 if test "x$with_x" = xno; then
18894 # The user explicitly disabled X.
18897 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18898 # Both variables are already set.
18901 if test "${ac_cv_have_x+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 # One or both of the vars are not set, and there is no cached value.
18905 ac_x_includes=no ac_x_libraries=no
18906 rm -fr conftest.dir
18907 if mkdir conftest.dir; then
18909 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18910 cat >Imakefile <<'_ACEOF'
18912 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18914 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18916 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18917 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18918 for ac_extension in a so sl; do
18919 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18920 test -f $ac_im_libdir/libX11.$ac_extension; then
18921 ac_im_usrlibdir=$ac_im_libdir; break
18924 # Screen out bogus values from the imake configuration. They are
18925 # bogus both because they are the default anyway, and because
18926 # using them would break gcc on systems where it needs fixed includes.
18927 case $ac_im_incroot in
18929 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18931 case $ac_im_usrlibdir in
18932 /usr/lib | /lib) ;;
18933 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18937 rm -fr conftest.dir
18940 # Standard set of common directories for X headers.
18941 # Check X11 before X11Rn because it is often a symlink to the current release.
18953 /usr/local/X11/include
18954 /usr/local/X11R6/include
18955 /usr/local/X11R5/include
18956 /usr/local/X11R4/include
18958 /usr/local/include/X11
18959 /usr/local/include/X11R6
18960 /usr/local/include/X11R5
18961 /usr/local/include/X11R4
18965 /usr/XFree86/include/X11
18969 /usr/unsupported/include
18970 /usr/athena/include
18971 /usr/local/x11r5/include
18972 /usr/lpp/Xamples/include
18974 /usr/openwin/include
18975 /usr/openwin/share/include'
18977 if test "$ac_x_includes" = no; then
18978 # Guess where to find include files, by looking for Xlib.h.
18979 # First, try using that file with no special directory specified.
18980 cat >conftest.$ac_ext <<_ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18986 #include <X11/Xlib.h>
18988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } >/dev/null; then
18996 if test -s conftest.err; then
18997 ac_cpp_err=$ac_c_preproc_warn_flag
18998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19005 if test -z "$ac_cpp_err"; then
19006 # We can compile using X headers with no special include directory.
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19012 for ac_dir in $ac_x_header_dirs; do
19013 if test -r "$ac_dir/X11/Xlib.h"; then
19014 ac_x_includes=$ac_dir
19019 rm -f conftest.err conftest.$ac_ext
19020 fi # $ac_x_includes = no
19022 if test "$ac_x_libraries" = no; then
19023 # Check for the libraries.
19024 # See if we find them without any special options.
19025 # Don't add to $LIBS permanently.
19028 cat >conftest.$ac_ext <<_ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 #include <X11/Xlib.h>
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag"
19053 || test ! -s conftest.err'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest$ac_exeext'
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19066 # We can link X programs with no special library path.
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19073 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19075 # Don't even attempt the hair of trying to link an X program!
19076 for ac_extension in a so sl; do
19077 if test -r $ac_dir/libXt.$ac_extension; then
19078 ac_x_libraries=$ac_dir
19084 rm -f conftest.err conftest.$ac_objext \
19085 conftest$ac_exeext conftest.$ac_ext
19086 fi # $ac_x_libraries = no
19088 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19089 # Didn't find X anywhere. Cache the known absence of X.
19090 ac_cv_have_x="have_x=no"
19092 # Record where we found X for the cache.
19093 ac_cv_have_x="have_x=yes \
19094 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19099 eval "$ac_cv_have_x"
19102 if test "$have_x" != yes; then
19103 echo "$as_me:$LINENO: result: $have_x" >&5
19104 echo "${ECHO_T}$have_x" >&6
19107 # If each of the values was on the command line, it overrides each guess.
19108 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19109 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19110 # Update the cache value to reflect the command line values.
19111 ac_cv_have_x="have_x=yes \
19112 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19113 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19114 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19117 if test "$no_x" = yes; then
19118 # Not all programs may use this symbol, but it does not hurt to define it.
19120 cat >>confdefs.h <<\_ACEOF
19121 #define X_DISPLAY_MISSING 1
19124 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19126 if test -n "$x_includes"; then
19127 X_CFLAGS="$X_CFLAGS -I$x_includes"
19130 # It would also be nice to do this for all -L options, not just this one.
19131 if test -n "$x_libraries"; then
19132 X_LIBS="$X_LIBS -L$x_libraries"
19133 # For Solaris; some versions of Sun CC require a space after -R and
19134 # others require no space. Words are not sufficient . . . .
19135 case `(uname -sr) 2>/dev/null` in
19137 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19138 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19139 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19140 cat >conftest.$ac_ext <<_ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19157 (eval $ac_link) 2>conftest.er1
19159 grep -v '^ *+' conftest.er1 >conftest.err
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
19164 { ac_try='test -z "$ac_c_werror_flag"
19165 || test ! -s conftest.err'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; } &&
19171 { ac_try='test -s conftest$ac_exeext'
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; }; then
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19184 rm -f conftest.err conftest.$ac_objext \
19185 conftest$ac_exeext conftest.$ac_ext
19186 if test $ac_R_nospace = yes; then
19187 echo "$as_me:$LINENO: result: no" >&5
19188 echo "${ECHO_T}no" >&6
19189 X_LIBS="$X_LIBS -R$x_libraries"
19191 LIBS="$ac_xsave_LIBS -R $x_libraries"
19192 cat >conftest.$ac_ext <<_ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209 (eval $ac_link) 2>conftest.er1
19211 grep -v '^ *+' conftest.er1 >conftest.err
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } &&
19216 { ac_try='test -z "$ac_c_werror_flag"
19217 || test ! -s conftest.err'
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; } &&
19223 { ac_try='test -s conftest$ac_exeext'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; }; then
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19236 rm -f conftest.err conftest.$ac_objext \
19237 conftest$ac_exeext conftest.$ac_ext
19238 if test $ac_R_space = yes; then
19239 echo "$as_me:$LINENO: result: yes" >&5
19240 echo "${ECHO_T}yes" >&6
19241 X_LIBS="$X_LIBS -R $x_libraries"
19243 echo "$as_me:$LINENO: result: neither works" >&5
19244 echo "${ECHO_T}neither works" >&6
19247 LIBS=$ac_xsave_LIBS
19251 # Check for system-dependent libraries X programs must link with.
19252 # Do this before checking for the system-independent R6 libraries
19253 # (-lICE), since we may need -lsocket or whatever for X linking.
19255 if test "$ISC" = yes; then
19256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19258 # Martyn Johnson says this is needed for Ultrix, if the X
19259 # libraries were built with DECnet support. And Karl Berry says
19260 # the Alpha needs dnet_stub (dnet does not exist).
19261 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19262 cat >conftest.$ac_ext <<_ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19269 /* Override any gcc2 internal prototype to avoid an error. */
19273 /* We use char because int might match the return type of a gcc2
19274 builtin and then its argument prototype would still apply. */
19275 char XOpenDisplay ();
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286 (eval $ac_link) 2>conftest.er1
19288 grep -v '^ *+' conftest.er1 >conftest.err
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -z "$ac_c_werror_flag"
19294 || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest$ac_exeext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19312 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19313 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
19316 ac_check_lib_save_LIBS=$LIBS
19317 LIBS="-ldnet $LIBS"
19318 cat >conftest.$ac_ext <<_ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h. */
19325 /* Override any gcc2 internal prototype to avoid an error. */
19329 /* We use char because int might match the return type of a gcc2
19330 builtin and then its argument prototype would still apply. */
19340 rm -f conftest.$ac_objext conftest$ac_exeext
19341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19342 (eval $ac_link) 2>conftest.er1
19344 grep -v '^ *+' conftest.er1 >conftest.err
19346 cat conftest.err >&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } &&
19349 { ac_try='test -z "$ac_c_werror_flag"
19350 || test ! -s conftest.err'
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; } &&
19356 { ac_try='test -s conftest$ac_exeext'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19362 ac_cv_lib_dnet_dnet_ntoa=yes
19364 echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19367 ac_cv_lib_dnet_dnet_ntoa=no
19369 rm -f conftest.err conftest.$ac_objext \
19370 conftest$ac_exeext conftest.$ac_ext
19371 LIBS=$ac_check_lib_save_LIBS
19373 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19374 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19375 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19376 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19379 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19380 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19381 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19382 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-ldnet_stub $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 /* Override any gcc2 internal prototype to avoid an error. */
19398 /* We use char because int might match the return type of a gcc2
19399 builtin and then its argument prototype would still apply. */
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411 (eval $ac_link) 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try='test -z "$ac_c_werror_flag"
19419 || test ! -s conftest.err'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; } &&
19425 { ac_try='test -s conftest$ac_exeext'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; }; then
19431 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 ac_cv_lib_dnet_stub_dnet_ntoa=no
19438 rm -f conftest.err conftest.$ac_objext \
19439 conftest$ac_exeext conftest.$ac_ext
19440 LIBS=$ac_check_lib_save_LIBS
19442 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19443 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19444 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19445 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19450 rm -f conftest.err conftest.$ac_objext \
19451 conftest$ac_exeext conftest.$ac_ext
19452 LIBS="$ac_xsave_LIBS"
19454 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19455 # to get the SysV transport functions.
19456 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19458 # The nsl library prevents programs from opening the X display
19459 # on Irix 5.2, according to T.E. Dickey.
19460 # The functions gethostbyname, getservbyname, and inet_addr are
19461 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19462 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19463 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19464 if test "${ac_cv_func_gethostbyname+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 cat >conftest.$ac_ext <<_ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19473 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19475 #define gethostbyname innocuous_gethostbyname
19477 /* System header to define __stub macros and hopefully few prototypes,
19478 which can conflict with char gethostbyname (); below.
19479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19480 <limits.h> exists even on freestanding compilers. */
19483 # include <limits.h>
19485 # include <assert.h>
19488 #undef gethostbyname
19490 /* Override any gcc2 internal prototype to avoid an error. */
19495 /* We use char because int might match the return type of a gcc2
19496 builtin and then its argument prototype would still apply. */
19497 char gethostbyname ();
19498 /* The GNU C library defines this for functions which it implements
19499 to always fail with ENOSYS. Some functions are actually named
19500 something starting with __ and the normal name is an alias. */
19501 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19504 char (*f) () = gethostbyname;
19513 return f != gethostbyname;
19518 rm -f conftest.$ac_objext conftest$ac_exeext
19519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19520 (eval $ac_link) 2>conftest.er1
19522 grep -v '^ *+' conftest.er1 >conftest.err
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -z "$ac_c_werror_flag"
19528 || test ! -s conftest.err'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest$ac_exeext'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19540 ac_cv_func_gethostbyname=yes
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 ac_cv_func_gethostbyname=no
19547 rm -f conftest.err conftest.$ac_objext \
19548 conftest$ac_exeext conftest.$ac_ext
19550 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19551 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19553 if test $ac_cv_func_gethostbyname = no; then
19554 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19555 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19556 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19559 ac_check_lib_save_LIBS=$LIBS
19561 cat >conftest.$ac_ext <<_ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19568 /* Override any gcc2 internal prototype to avoid an error. */
19572 /* We use char because int might match the return type of a gcc2
19573 builtin and then its argument prototype would still apply. */
19574 char gethostbyname ();
19583 rm -f conftest.$ac_objext conftest$ac_exeext
19584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19585 (eval $ac_link) 2>conftest.er1
19587 grep -v '^ *+' conftest.er1 >conftest.err
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -z "$ac_c_werror_flag"
19593 || test ! -s conftest.err'
19594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; } &&
19599 { ac_try='test -s conftest$ac_exeext'
19600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601 (eval $ac_try) 2>&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; }; then
19605 ac_cv_lib_nsl_gethostbyname=yes
19607 echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 ac_cv_lib_nsl_gethostbyname=no
19612 rm -f conftest.err conftest.$ac_objext \
19613 conftest$ac_exeext conftest.$ac_ext
19614 LIBS=$ac_check_lib_save_LIBS
19616 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19617 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19618 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19619 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19622 if test $ac_cv_lib_nsl_gethostbyname = no; then
19623 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19624 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19625 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 ac_check_lib_save_LIBS=$LIBS
19630 cat >conftest.$ac_ext <<_ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19637 /* Override any gcc2 internal prototype to avoid an error. */
19641 /* We use char because int might match the return type of a gcc2
19642 builtin and then its argument prototype would still apply. */
19643 char gethostbyname ();
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19654 (eval $ac_link) 2>conftest.er1
19656 grep -v '^ *+' conftest.er1 >conftest.err
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -z "$ac_c_werror_flag"
19662 || test ! -s conftest.err'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest$ac_exeext'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 ac_cv_lib_bsd_gethostbyname=yes
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ac_cv_lib_bsd_gethostbyname=no
19681 rm -f conftest.err conftest.$ac_objext \
19682 conftest$ac_exeext conftest.$ac_ext
19683 LIBS=$ac_check_lib_save_LIBS
19685 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19686 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19687 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19688 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19694 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19695 # socket/setsockopt and other routines are undefined under SCO ODT
19696 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19697 # on later versions), says Simon Leinen: it contains gethostby*
19698 # variants that don't use the name server (or something). -lsocket
19699 # must be given before -lnsl if both are needed. We assume that
19700 # if connect needs -lnsl, so does gethostbyname.
19701 echo "$as_me:$LINENO: checking for connect" >&5
19702 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19703 if test "${ac_cv_func_connect+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19714 #define connect innocuous_connect
19716 /* System header to define __stub macros and hopefully few prototypes,
19717 which can conflict with char connect (); below.
19718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19719 <limits.h> exists even on freestanding compilers. */
19722 # include <limits.h>
19724 # include <assert.h>
19729 /* Override any gcc2 internal prototype to avoid an error. */
19734 /* We use char because int might match the return type of a gcc2
19735 builtin and then its argument prototype would still apply. */
19737 /* The GNU C library defines this for functions which it implements
19738 to always fail with ENOSYS. Some functions are actually named
19739 something starting with __ and the normal name is an alias. */
19740 #if defined (__stub_connect) || defined (__stub___connect)
19743 char (*f) () = connect;
19752 return f != connect;
19757 rm -f conftest.$ac_objext conftest$ac_exeext
19758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19759 (eval $ac_link) 2>conftest.er1
19761 grep -v '^ *+' conftest.er1 >conftest.err
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } &&
19766 { ac_try='test -z "$ac_c_werror_flag"
19767 || test ! -s conftest.err'
19768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769 (eval $ac_try) 2>&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; } &&
19773 { ac_try='test -s conftest$ac_exeext'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_cv_func_connect=yes
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19784 ac_cv_func_connect=no
19786 rm -f conftest.err conftest.$ac_objext \
19787 conftest$ac_exeext conftest.$ac_ext
19789 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19790 echo "${ECHO_T}$ac_cv_func_connect" >&6
19792 if test $ac_cv_func_connect = no; then
19793 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19794 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19795 if test "${ac_cv_lib_socket_connect+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19798 ac_check_lib_save_LIBS=$LIBS
19799 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19800 cat >conftest.$ac_ext <<_ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19807 /* Override any gcc2 internal prototype to avoid an error. */
19811 /* We use char because int might match the return type of a gcc2
19812 builtin and then its argument prototype would still apply. */
19822 rm -f conftest.$ac_objext conftest$ac_exeext
19823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19824 (eval $ac_link) 2>conftest.er1
19826 grep -v '^ *+' conftest.er1 >conftest.err
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
19831 { ac_try='test -z "$ac_c_werror_flag"
19832 || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest$ac_exeext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 ac_cv_lib_socket_connect=yes
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ac_cv_lib_socket_connect=no
19851 rm -f conftest.err conftest.$ac_objext \
19852 conftest$ac_exeext conftest.$ac_ext
19853 LIBS=$ac_check_lib_save_LIBS
19855 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19856 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19857 if test $ac_cv_lib_socket_connect = yes; then
19858 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19863 # Guillermo Gomez says -lposix is necessary on A/UX.
19864 echo "$as_me:$LINENO: checking for remove" >&5
19865 echo $ECHO_N "checking for remove... $ECHO_C" >&6
19866 if test "${ac_cv_func_remove+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 cat >conftest.$ac_ext <<_ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19877 #define remove innocuous_remove
19879 /* System header to define __stub macros and hopefully few prototypes,
19880 which can conflict with char remove (); below.
19881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19882 <limits.h> exists even on freestanding compilers. */
19885 # include <limits.h>
19887 # include <assert.h>
19892 /* Override any gcc2 internal prototype to avoid an error. */
19897 /* We use char because int might match the return type of a gcc2
19898 builtin and then its argument prototype would still apply. */
19900 /* The GNU C library defines this for functions which it implements
19901 to always fail with ENOSYS. Some functions are actually named
19902 something starting with __ and the normal name is an alias. */
19903 #if defined (__stub_remove) || defined (__stub___remove)
19906 char (*f) () = remove;
19915 return f != remove;
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19922 (eval $ac_link) 2>conftest.er1
19924 grep -v '^ *+' conftest.er1 >conftest.err
19926 cat conftest.err >&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } &&
19929 { ac_try='test -z "$ac_c_werror_flag"
19930 || test ! -s conftest.err'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; } &&
19936 { ac_try='test -s conftest$ac_exeext'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
19942 ac_cv_func_remove=yes
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 ac_cv_func_remove=no
19949 rm -f conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext conftest.$ac_ext
19952 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19953 echo "${ECHO_T}$ac_cv_func_remove" >&6
19955 if test $ac_cv_func_remove = no; then
19956 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19957 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
19958 if test "${ac_cv_lib_posix_remove+set}" = set; then
19959 echo $ECHO_N "(cached) $ECHO_C" >&6
19961 ac_check_lib_save_LIBS=$LIBS
19962 LIBS="-lposix $LIBS"
19963 cat >conftest.$ac_ext <<_ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19970 /* Override any gcc2 internal prototype to avoid an error. */
19974 /* We use char because int might match the return type of a gcc2
19975 builtin and then its argument prototype would still apply. */
19985 rm -f conftest.$ac_objext conftest$ac_exeext
19986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19987 (eval $ac_link) 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -z "$ac_c_werror_flag"
19995 || test ! -s conftest.err'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest$ac_exeext'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 ac_cv_lib_posix_remove=yes
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20012 ac_cv_lib_posix_remove=no
20014 rm -f conftest.err conftest.$ac_objext \
20015 conftest$ac_exeext conftest.$ac_ext
20016 LIBS=$ac_check_lib_save_LIBS
20018 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20019 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20020 if test $ac_cv_lib_posix_remove = yes; then
20021 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20026 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20027 echo "$as_me:$LINENO: checking for shmat" >&5
20028 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20029 if test "${ac_cv_func_shmat+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 cat >conftest.$ac_ext <<_ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20038 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20040 #define shmat innocuous_shmat
20042 /* System header to define __stub macros and hopefully few prototypes,
20043 which can conflict with char shmat (); below.
20044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20045 <limits.h> exists even on freestanding compilers. */
20048 # include <limits.h>
20050 # include <assert.h>
20055 /* Override any gcc2 internal prototype to avoid an error. */
20060 /* We use char because int might match the return type of a gcc2
20061 builtin and then its argument prototype would still apply. */
20063 /* The GNU C library defines this for functions which it implements
20064 to always fail with ENOSYS. Some functions are actually named
20065 something starting with __ and the normal name is an alias. */
20066 #if defined (__stub_shmat) || defined (__stub___shmat)
20069 char (*f) () = shmat;
20083 rm -f conftest.$ac_objext conftest$ac_exeext
20084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20085 (eval $ac_link) 2>conftest.er1
20087 grep -v '^ *+' conftest.er1 >conftest.err
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } &&
20092 { ac_try='test -z "$ac_c_werror_flag"
20093 || test ! -s conftest.err'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; } &&
20099 { ac_try='test -s conftest$ac_exeext'
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; }; then
20105 ac_cv_func_shmat=yes
20107 echo "$as_me: failed program was:" >&5
20108 sed 's/^/| /' conftest.$ac_ext >&5
20110 ac_cv_func_shmat=no
20112 rm -f conftest.err conftest.$ac_objext \
20113 conftest$ac_exeext conftest.$ac_ext
20115 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20116 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20118 if test $ac_cv_func_shmat = no; then
20119 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20120 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20121 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20122 echo $ECHO_N "(cached) $ECHO_C" >&6
20124 ac_check_lib_save_LIBS=$LIBS
20126 cat >conftest.$ac_ext <<_ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20133 /* Override any gcc2 internal prototype to avoid an error. */
20137 /* We use char because int might match the return type of a gcc2
20138 builtin and then its argument prototype would still apply. */
20148 rm -f conftest.$ac_objext conftest$ac_exeext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20150 (eval $ac_link) 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -z "$ac_c_werror_flag"
20158 || test ! -s conftest.err'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try='test -s conftest$ac_exeext'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_cv_lib_ipc_shmat=yes
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20175 ac_cv_lib_ipc_shmat=no
20177 rm -f conftest.err conftest.$ac_objext \
20178 conftest$ac_exeext conftest.$ac_ext
20179 LIBS=$ac_check_lib_save_LIBS
20181 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20182 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20183 if test $ac_cv_lib_ipc_shmat = yes; then
20184 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20190 # Check for libraries that X11R6 Xt/Xaw programs need.
20191 ac_save_LDFLAGS=$LDFLAGS
20192 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20193 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20194 # check for ICE first), but we must link in the order -lSM -lICE or
20195 # we get undefined symbols. So assume we have SM if we have ICE.
20196 # These have to be linked with before -lX11, unlike the other
20197 # libraries we check for below, so use a different variable.
20198 # John Interrante, Karl Berry
20199 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20200 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20201 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 ac_check_lib_save_LIBS=$LIBS
20205 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20206 cat >conftest.$ac_ext <<_ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h. */
20213 /* Override any gcc2 internal prototype to avoid an error. */
20217 /* We use char because int might match the return type of a gcc2
20218 builtin and then its argument prototype would still apply. */
20219 char IceConnectionNumber ();
20223 IceConnectionNumber ();
20228 rm -f conftest.$ac_objext conftest$ac_exeext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20230 (eval $ac_link) 2>conftest.er1
20232 grep -v '^ *+' conftest.er1 >conftest.err
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try='test -z "$ac_c_werror_flag"
20238 || test ! -s conftest.err'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try='test -s conftest$ac_exeext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 ac_cv_lib_ICE_IceConnectionNumber=yes
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20255 ac_cv_lib_ICE_IceConnectionNumber=no
20257 rm -f conftest.err conftest.$ac_objext \
20258 conftest$ac_exeext conftest.$ac_ext
20259 LIBS=$ac_check_lib_save_LIBS
20261 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20262 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20263 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20264 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20267 LDFLAGS=$ac_save_LDFLAGS
20272 echo "$as_me:$LINENO: checking whether variable-length arrays are supported" >&5
20273 echo $ECHO_N "checking whether variable-length arrays are supported... $ECHO_C" >&6
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20291 rm -f conftest.$ac_objext
20292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20293 (eval $ac_compile) 2>conftest.er1
20295 grep -v '^ *+' conftest.er1 >conftest.err
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
20300 { ac_try='test -z "$ac_c_werror_flag"
20301 || test ! -s conftest.err'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest.$ac_objext'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20313 echo "$as_me:$LINENO: result: yes" >&5
20314 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20322 echo "$as_me:$LINENO: result: no" >&5
20323 echo "${ECHO_T}no" >&6
20325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20328 ############################################################
20329 # Check for the IJG JPEG library.
20330 ############################################################
20332 # Allow the user to explicitly specify whether the JPEG library is present.
20333 # Check whether --enable-libjpeg or --disable-libjpeg was given.
20334 if test "${enable_libjpeg+set}" = set; then
20335 enableval="$enable_libjpeg"
20337 case "${enableval}" in
20339 ENABLE_LIBJPEG=yes;;
20341 ENABLE_LIBJPEG=no;;
20343 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-libjpeg" >&5
20344 echo "$as_me: error: bad value ${enableval} for --disable-libjpeg" >&2;}
20345 { (exit 1); exit 1; }; }
20354 if test $ENABLE_LIBJPEG = yes; then
20355 # Check for the JPEG library.
20356 echo "$as_me:$LINENO: checking for jpeg_destroy in -ljpeg" >&5
20357 echo $ECHO_N "checking for jpeg_destroy in -ljpeg... $ECHO_C" >&6
20358 if test "${ac_cv_lib_jpeg_jpeg_destroy+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 ac_check_lib_save_LIBS=$LIBS
20362 LIBS="-ljpeg $LIBS"
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20370 /* Override any gcc2 internal prototype to avoid an error. */
20374 /* We use char because int might match the return type of a gcc2
20375 builtin and then its argument prototype would still apply. */
20376 char jpeg_destroy ();
20385 rm -f conftest.$ac_objext conftest$ac_exeext
20386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20387 (eval $ac_link) 2>conftest.er1
20389 grep -v '^ *+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -z "$ac_c_werror_flag"
20395 || test ! -s conftest.err'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; } &&
20401 { ac_try='test -s conftest$ac_exeext'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20407 ac_cv_lib_jpeg_jpeg_destroy=yes
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ac_cv_lib_jpeg_jpeg_destroy=no
20414 rm -f conftest.err conftest.$ac_objext \
20415 conftest$ac_exeext conftest.$ac_ext
20416 LIBS=$ac_check_lib_save_LIBS
20418 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy" >&5
20419 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy" >&6
20420 if test $ac_cv_lib_jpeg_jpeg_destroy = yes; then
20426 if test $HAVE_LIBJPEG = yes; then
20427 LIBS="$LIBS -ljpeg"
20432 if test $HAVE_LIBJPEG = yes; then
20434 HAVE_LIBJPEG_FALSE='#'
20436 HAVE_LIBJPEG_TRUE='#'
20437 HAVE_LIBJPEG_FALSE=
20441 ############################################################
20442 # Check for OpenGL libraries.
20443 ############################################################
20446 # Check whether --with-glut-include-dir or --without-glut-include-dir was given.
20447 if test "${with_glut_include_dir+set}" = set; then
20448 withval="$with_glut_include_dir"
20452 CFLAGS="$CFLAGS -I$withval"
20453 CPPFLAGS="$CPPFLAGS -I$withval";;
20455 { { echo "$as_me:$LINENO: error: --with-glut-include-dir requires absolute path" >&5
20456 echo "$as_me: error: --with-glut-include-dir requires absolute path" >&2;}
20457 { (exit 1); exit 1; }; }
20463 # Check whether --with-glut-lib-dir or --without-glut-lib-dir was given.
20464 if test "${with_glut_lib_dir+set}" = set; then
20465 withval="$with_glut_lib_dir"
20469 LIBS="$LIBS -L$withval";;
20471 { { echo "$as_me:$LINENO: error: --with-glut-lib-dir requires absolute path" >&5
20472 echo "$as_me: error: --with-glut-lib-dir requires absolute path" >&2;}
20473 { (exit 1); exit 1; }; }
20479 # Check whether --enable-opengl or --disable-opengl was given.
20480 if test "${enable_opengl+set}" = set; then
20481 enableval="$enable_opengl"
20483 case "$enableval" in
20485 ENABLE_OPENGL=yes;;
20489 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-libjpeg" >&5
20490 echo "$as_me: error: bad value ${enableval} for --disable-libjpeg" >&2;}
20491 { (exit 1); exit 1; }; }
20501 if test $ENABLE_OPENGL = yes; then
20502 if test $HAVE_OPENGL = no; then
20503 TMPLIBS="-lglut -lGL -lGLU $X_PRE_LIBS -lX11 -lXmu -lXi -lXext -lXt $X_EXTRA_LIBS $X_LIBS"
20504 echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
20505 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6
20506 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 ac_check_lib_save_LIBS=$LIBS
20510 LIBS="-lglut $TMPLIBS $LIBS"
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20518 /* Override any gcc2 internal prototype to avoid an error. */
20522 /* We use char because int might match the return type of a gcc2
20523 builtin and then its argument prototype would still apply. */
20533 rm -f conftest.$ac_objext conftest$ac_exeext
20534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20535 (eval $ac_link) 2>conftest.er1
20537 grep -v '^ *+' conftest.er1 >conftest.err
20539 cat conftest.err >&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } &&
20542 { ac_try='test -z "$ac_c_werror_flag"
20543 || test ! -s conftest.err'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; } &&
20549 { ac_try='test -s conftest$ac_exeext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_lib_glut_glutInit=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_cv_lib_glut_glutInit=no
20562 rm -f conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564 LIBS=$ac_check_lib_save_LIBS
20566 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
20567 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6
20568 if test $ac_cv_lib_glut_glutInit = yes; then
20570 OPENGL_LIBS=$TMPLIBS
20576 if test "${ac_cv_header_GL_glut_h+set}" = set; then
20577 echo "$as_me:$LINENO: checking for GL/glut.h" >&5
20578 echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6
20579 if test "${ac_cv_header_GL_glut_h+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
20583 echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6
20585 # Is the header compilable?
20586 echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
20587 echo $ECHO_N "checking GL/glut.h usability... $ECHO_C" >&6
20588 cat >conftest.$ac_ext <<_ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 $ac_includes_default
20595 #include <GL/glut.h>
20597 rm -f conftest.$ac_objext
20598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20599 (eval $ac_compile) 2>conftest.er1
20601 grep -v '^ *+' conftest.er1 >conftest.err
20603 cat conftest.err >&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } &&
20606 { ac_try='test -z "$ac_c_werror_flag"
20607 || test ! -s conftest.err'
20608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609 (eval $ac_try) 2>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; } &&
20613 { ac_try='test -s conftest.$ac_objext'
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; }; then
20619 ac_header_compiler=yes
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_header_compiler=no
20626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20628 echo "${ECHO_T}$ac_header_compiler" >&6
20630 # Is the header present?
20631 echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
20632 echo $ECHO_N "checking GL/glut.h presence... $ECHO_C" >&6
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 #include <GL/glut.h>
20641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20644 grep -v '^ *+' conftest.er1 >conftest.err
20646 cat conftest.err >&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } >/dev/null; then
20649 if test -s conftest.err; then
20650 ac_cpp_err=$ac_c_preproc_warn_flag
20651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20658 if test -z "$ac_cpp_err"; then
20659 ac_header_preproc=yes
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 ac_header_preproc=no
20666 rm -f conftest.err conftest.$ac_ext
20667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20668 echo "${ECHO_T}$ac_header_preproc" >&6
20670 # So? What about this header?
20671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20673 { echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
20674 echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20675 { echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the compiler's result" >&5
20676 echo "$as_me: WARNING: GL/glut.h: proceeding with the compiler's result" >&2;}
20677 ac_header_preproc=yes
20680 { echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
20681 echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
20682 { echo "$as_me:$LINENO: WARNING: GL/glut.h: check for missing prerequisite headers?" >&5
20683 echo "$as_me: WARNING: GL/glut.h: check for missing prerequisite headers?" >&2;}
20684 { echo "$as_me:$LINENO: WARNING: GL/glut.h: see the Autoconf documentation" >&5
20685 echo "$as_me: WARNING: GL/glut.h: see the Autoconf documentation" >&2;}
20686 { echo "$as_me:$LINENO: WARNING: GL/glut.h: section \"Present But Cannot Be Compiled\"" >&5
20687 echo "$as_me: WARNING: GL/glut.h: section \"Present But Cannot Be Compiled\"" >&2;}
20688 { echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
20689 echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
20690 { echo "$as_me:$LINENO: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&5
20691 echo "$as_me: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&2;}
20694 ## --------------------------------- ##
20695 ## Report this to the jasper lists. ##
20696 ## --------------------------------- ##
20699 sed "s/^/$as_me: WARNING: /" >&2
20702 echo "$as_me:$LINENO: checking for GL/glut.h" >&5
20703 echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6
20704 if test "${ac_cv_header_GL_glut_h+set}" = set; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 ac_cv_header_GL_glut_h=$ac_header_preproc
20709 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
20710 echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6
20713 if test $ac_cv_header_GL_glut_h = yes; then
20716 HAVE_OPENGL=no; OPENGL_LIBS="";
20724 if test $HAVE_OPENGL = yes; then
20726 HAVE_OPENGL_FALSE='#'
20728 HAVE_OPENGL_TRUE='#'
20733 echo "$as_me:$LINENO: checking whether OpenGL libraries and headers were detected" >&5
20734 echo $ECHO_N "checking whether OpenGL libraries and headers were detected... $ECHO_C" >&6
20735 echo "$as_me:$LINENO: result: $HAVE_OPENGL" >&5
20736 echo "${ECHO_T}$HAVE_OPENGL" >&6
20738 ############################################################
20739 # Check for other libraries.
20740 ############################################################
20742 # Check for the math library.
20744 echo "$as_me:$LINENO: checking for main in -lm" >&5
20745 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
20746 if test "${ac_cv_lib_m_main+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 ac_check_lib_save_LIBS=$LIBS
20751 cat >conftest.$ac_ext <<_ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20767 rm -f conftest.$ac_objext conftest$ac_exeext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20769 (eval $ac_link) 2>conftest.er1
20771 grep -v '^ *+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } &&
20776 { ac_try='test -z "$ac_c_werror_flag"
20777 || test ! -s conftest.err'
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; } &&
20783 { ac_try='test -s conftest$ac_exeext'
20784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785 (eval $ac_try) 2>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; }; then
20789 ac_cv_lib_m_main=yes
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20794 ac_cv_lib_m_main=no
20796 rm -f conftest.err conftest.$ac_objext \
20797 conftest$ac_exeext conftest.$ac_ext
20798 LIBS=$ac_check_lib_save_LIBS
20800 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
20801 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
20802 if test $ac_cv_lib_m_main = yes; then
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_LIBM 1
20812 ############################################################
20813 # Check for header files.
20814 ############################################################
20816 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20818 if test "${ac_cv_header_stdc+set}" = set; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 #include <stdlib.h>
20828 #include <stdarg.h>
20829 #include <string.h>
20840 rm -f conftest.$ac_objext
20841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20842 (eval $ac_compile) 2>conftest.er1
20844 grep -v '^ *+' conftest.er1 >conftest.err
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } &&
20849 { ac_try='test -z "$ac_c_werror_flag"
20850 || test ! -s conftest.err'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; } &&
20856 { ac_try='test -s conftest.$ac_objext'
20857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; }; then
20862 ac_cv_header_stdc=yes
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20867 ac_cv_header_stdc=no
20869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20871 if test $ac_cv_header_stdc = yes; then
20872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20873 cat >conftest.$ac_ext <<_ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20879 #include <string.h>
20882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20883 $EGREP "memchr" >/dev/null 2>&1; then
20886 ac_cv_header_stdc=no
20892 if test $ac_cv_header_stdc = yes; then
20893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900 #include <stdlib.h>
20903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20904 $EGREP "free" >/dev/null 2>&1; then
20907 ac_cv_header_stdc=no
20913 if test $ac_cv_header_stdc = yes; then
20914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20915 if test "$cross_compiling" = yes; then
20918 cat >conftest.$ac_ext <<_ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h. */
20925 #if ((' ' & 0x0FF) == 0x020)
20926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20929 # define ISLOWER(c) \
20930 (('a' <= (c) && (c) <= 'i') \
20931 || ('j' <= (c) && (c) <= 'r') \
20932 || ('s' <= (c) && (c) <= 'z'))
20933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20941 for (i = 0; i < 256; i++)
20942 if (XOR (islower (i), ISLOWER (i))
20943 || toupper (i) != TOUPPER (i))
20948 rm -f conftest$ac_exeext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20950 (eval $ac_link) 2>&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955 (eval $ac_try) 2>&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; }; then
20961 echo "$as_me: program exited with status $ac_status" >&5
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 ( exit $ac_status )
20966 ac_cv_header_stdc=no
20968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20972 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20973 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20974 if test $ac_cv_header_stdc = yes; then
20976 cat >>confdefs.h <<\_ACEOF
20977 #define STDC_HEADERS 1
20993 for ac_header in fcntl.h limits.h unistd.h stdint.h stdbool.h io.h windows.h sys/types.h sys/time.h stdlib.h stddef.h
20995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20997 echo "$as_me:$LINENO: checking for $ac_header" >&5
20998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21005 # Is the header compilable?
21006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21008 cat >conftest.$ac_ext <<_ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21014 $ac_includes_default
21015 #include <$ac_header>
21017 rm -f conftest.$ac_objext
21018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21019 (eval $ac_compile) 2>conftest.er1
21021 grep -v '^ *+' conftest.er1 >conftest.err
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } &&
21026 { ac_try='test -z "$ac_c_werror_flag"
21027 || test ! -s conftest.err'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; } &&
21033 { ac_try='test -s conftest.$ac_objext'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21039 ac_header_compiler=yes
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ac_header_compiler=no
21046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21048 echo "${ECHO_T}$ac_header_compiler" >&6
21050 # Is the header present?
21051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 #include <$ac_header>
21061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21064 grep -v '^ *+' conftest.er1 >conftest.err
21066 cat conftest.err >&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } >/dev/null; then
21069 if test -s conftest.err; then
21070 ac_cpp_err=$ac_c_preproc_warn_flag
21071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21078 if test -z "$ac_cpp_err"; then
21079 ac_header_preproc=yes
21081 echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21084 ac_header_preproc=no
21086 rm -f conftest.err conftest.$ac_ext
21087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21088 echo "${ECHO_T}$ac_header_preproc" >&6
21090 # So? What about this header?
21091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21097 ac_header_preproc=yes
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21114 ## --------------------------------- ##
21115 ## Report this to the jasper lists. ##
21116 ## --------------------------------- ##
21119 sed "s/^/$as_me: WARNING: /" >&2
21122 echo "$as_me:$LINENO: checking for $ac_header" >&5
21123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
21127 eval "$as_ac_Header=\$ac_header_preproc"
21129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21134 cat >>confdefs.h <<_ACEOF
21135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21143 ############################################################
21144 # Check for typedefs, structures, and compiler characteristics.
21145 ############################################################
21147 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21148 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21149 if test "${ac_cv_c_const+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21162 /* FIXME: Include the comments suggested by Paul. */
21163 #ifndef __cplusplus
21164 /* Ultrix mips cc rejects this. */
21165 typedef int charset[2];
21167 /* SunOS 4.1.1 cc rejects this. */
21168 char const *const *ccp;
21170 /* NEC SVR4.0.2 mips cc rejects this. */
21171 struct point {int x, y;};
21172 static struct point const zero = {0,0};
21173 /* AIX XL C 1.02.0.0 rejects this.
21174 It does not let you subtract one const X* pointer from another in
21175 an arm of an if-expression whose if-part is not a constant
21177 const char *g = "string";
21178 ccp = &g + (g ? g-g : 0);
21179 /* HPUX 7.0 cc rejects these. */
21182 ccp = (char const *const *) p;
21183 { /* SCO 3.2v4 cc rejects this. */
21185 char const *s = 0 ? (char *) 0 : (char const *) 0;
21189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21190 int x[] = {25, 17};
21191 const int *foo = &x[0];
21194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21195 typedef const int *iptr;
21199 { /* AIX XL C 1.02.0.0 rejects this saying
21200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21201 struct s { int j; const int *ap[3]; };
21202 struct s *b; b->j = 5;
21204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21205 const int foo = 10;
21213 rm -f conftest.$ac_objext
21214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21215 (eval $ac_compile) 2>conftest.er1
21217 grep -v '^ *+' conftest.er1 >conftest.err
21219 cat conftest.err >&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
21222 { ac_try='test -z "$ac_c_werror_flag"
21223 || test ! -s conftest.err'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; } &&
21229 { ac_try='test -s conftest.$ac_objext'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21237 echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21244 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21245 echo "${ECHO_T}$ac_cv_c_const" >&6
21246 if test $ac_cv_c_const = no; then
21248 cat >>confdefs.h <<\_ACEOF
21254 echo "$as_me:$LINENO: checking for inline" >&5
21255 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21256 if test "${ac_cv_c_inline+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 for ac_kw in inline __inline__ __inline; do
21261 cat >conftest.$ac_ext <<_ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 #ifndef __cplusplus
21269 static $ac_kw foo_t static_foo () {return 0; }
21270 $ac_kw foo_t foo () {return 0; }
21274 rm -f conftest.$ac_objext
21275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21276 (eval $ac_compile) 2>conftest.er1
21278 grep -v '^ *+' conftest.er1 >conftest.err
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } &&
21283 { ac_try='test -z "$ac_c_werror_flag"
21284 || test ! -s conftest.err'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; } &&
21290 { ac_try='test -s conftest.$ac_objext'
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; }; then
21296 ac_cv_c_inline=$ac_kw; break
21298 echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21306 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21307 echo "${ECHO_T}$ac_cv_c_inline" >&6
21310 case $ac_cv_c_inline in
21313 case $ac_cv_c_inline in
21315 *) ac_val=$ac_cv_c_inline;;
21317 cat >>confdefs.h <<_ACEOF
21318 #ifndef __cplusplus
21319 #define inline $ac_val
21325 echo "$as_me:$LINENO: checking for size_t" >&5
21326 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21327 if test "${ac_cv_type_size_t+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21336 $ac_includes_default
21342 if (sizeof (size_t))
21348 rm -f conftest.$ac_objext
21349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21350 (eval $ac_compile) 2>conftest.er1
21352 grep -v '^ *+' conftest.er1 >conftest.err
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } &&
21357 { ac_try='test -z "$ac_c_werror_flag"
21358 || test ! -s conftest.err'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; } &&
21364 { ac_try='test -s conftest.$ac_objext'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
21370 ac_cv_type_size_t=yes
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ac_cv_type_size_t=no
21377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21379 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21380 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21381 if test $ac_cv_type_size_t = yes; then
21385 cat >>confdefs.h <<_ACEOF
21386 #define size_t unsigned
21391 echo "$as_me:$LINENO: checking for uchar" >&5
21392 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
21393 if test "${ac_cv_type_uchar+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 $ac_includes_default
21408 if (sizeof (uchar))
21414 rm -f conftest.$ac_objext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21416 (eval $ac_compile) 2>conftest.er1
21418 grep -v '^ *+' conftest.er1 >conftest.err
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -z "$ac_c_werror_flag"
21424 || test ! -s conftest.err'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ac_cv_type_uchar=yes
21438 echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21441 ac_cv_type_uchar=no
21443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21445 echo "$as_me:$LINENO: result: $ac_cv_type_uchar" >&5
21446 echo "${ECHO_T}$ac_cv_type_uchar" >&6
21447 if test $ac_cv_type_uchar = yes; then
21451 cat >>confdefs.h <<_ACEOF
21452 #define uchar unsigned char
21457 echo "$as_me:$LINENO: checking for ushort" >&5
21458 echo $ECHO_N "checking for ushort... $ECHO_C" >&6
21459 if test "${ac_cv_type_ushort+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. */
21468 $ac_includes_default
21474 if (sizeof (ushort))
21480 rm -f conftest.$ac_objext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21482 (eval $ac_compile) 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_objext'
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_type_ushort=yes
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_cv_type_ushort=no
21509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21511 echo "$as_me:$LINENO: result: $ac_cv_type_ushort" >&5
21512 echo "${ECHO_T}$ac_cv_type_ushort" >&6
21513 if test $ac_cv_type_ushort = yes; then
21517 cat >>confdefs.h <<_ACEOF
21518 #define ushort unsigned short
21523 echo "$as_me:$LINENO: checking for uint" >&5
21524 echo $ECHO_N "checking for uint... $ECHO_C" >&6
21525 if test "${ac_cv_type_uint+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 cat >conftest.$ac_ext <<_ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21534 $ac_includes_default
21546 rm -f conftest.$ac_objext
21547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21548 (eval $ac_compile) 2>conftest.er1
21550 grep -v '^ *+' conftest.er1 >conftest.err
21552 cat conftest.err >&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
21555 { ac_try='test -z "$ac_c_werror_flag"
21556 || test ! -s conftest.err'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; } &&
21562 { ac_try='test -s conftest.$ac_objext'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; }; then
21568 ac_cv_type_uint=yes
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21577 echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
21578 echo "${ECHO_T}$ac_cv_type_uint" >&6
21579 if test $ac_cv_type_uint = yes; then
21583 cat >>confdefs.h <<_ACEOF
21584 #define uint unsigned int
21589 echo "$as_me:$LINENO: checking for ulong" >&5
21590 echo $ECHO_N "checking for ulong... $ECHO_C" >&6
21591 if test "${ac_cv_type_ulong+set}" = set; then
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 $ac_includes_default
21606 if (sizeof (ulong))
21612 rm -f conftest.$ac_objext
21613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21614 (eval $ac_compile) 2>conftest.er1
21616 grep -v '^ *+' conftest.er1 >conftest.err
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } &&
21621 { ac_try='test -z "$ac_c_werror_flag"
21622 || test ! -s conftest.err'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; } &&
21628 { ac_try='test -s conftest.$ac_objext'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; }; then
21634 ac_cv_type_ulong=yes
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 ac_cv_type_ulong=no
21641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21643 echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
21644 echo "${ECHO_T}$ac_cv_type_ulong" >&6
21645 if test $ac_cv_type_ulong = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define ulong unsigned long
21655 echo "$as_me:$LINENO: checking for longlong" >&5
21656 echo $ECHO_N "checking for longlong... $ECHO_C" >&6
21657 if test "${ac_cv_type_longlong+set}" = set; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 cat >conftest.$ac_ext <<_ACEOF
21663 cat confdefs.h >>conftest.$ac_ext
21664 cat >>conftest.$ac_ext <<_ACEOF
21665 /* end confdefs.h. */
21666 $ac_includes_default
21670 if ((longlong *) 0)
21672 if (sizeof (longlong))
21678 rm -f conftest.$ac_objext
21679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21680 (eval $ac_compile) 2>conftest.er1
21682 grep -v '^ *+' conftest.er1 >conftest.err
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
21687 { ac_try='test -z "$ac_c_werror_flag"
21688 || test ! -s conftest.err'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; } &&
21694 { ac_try='test -s conftest.$ac_objext'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 ac_cv_type_longlong=yes
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21705 ac_cv_type_longlong=no
21707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21709 echo "$as_me:$LINENO: result: $ac_cv_type_longlong" >&5
21710 echo "${ECHO_T}$ac_cv_type_longlong" >&6
21711 if test $ac_cv_type_longlong = yes; then
21715 cat >>confdefs.h <<_ACEOF
21716 #define longlong long long
21721 echo "$as_me:$LINENO: checking for ulonglong" >&5
21722 echo $ECHO_N "checking for ulonglong... $ECHO_C" >&6
21723 if test "${ac_cv_type_ulonglong+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21726 cat >conftest.$ac_ext <<_ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 $ac_includes_default
21736 if ((ulonglong *) 0)
21738 if (sizeof (ulonglong))
21744 rm -f conftest.$ac_objext
21745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21746 (eval $ac_compile) 2>conftest.er1
21748 grep -v '^ *+' conftest.er1 >conftest.err
21750 cat conftest.err >&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } &&
21753 { ac_try='test -z "$ac_c_werror_flag"
21754 || test ! -s conftest.err'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; } &&
21760 { ac_try='test -s conftest.$ac_objext'
21761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766 ac_cv_type_ulonglong=yes
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 ac_cv_type_ulonglong=no
21773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21775 echo "$as_me:$LINENO: result: $ac_cv_type_ulonglong" >&5
21776 echo "${ECHO_T}$ac_cv_type_ulonglong" >&6
21777 if test $ac_cv_type_ulonglong = yes; then
21781 cat >>confdefs.h <<_ACEOF
21782 #define ulonglong unsigned long long
21787 echo "$as_me:$LINENO: checking for ssize_t" >&5
21788 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
21789 if test "${ac_cv_type_ssize_t+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 cat >conftest.$ac_ext <<_ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 $ac_includes_default
21804 if (sizeof (ssize_t))
21810 rm -f conftest.$ac_objext
21811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21812 (eval $ac_compile) 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } &&
21819 { ac_try='test -z "$ac_c_werror_flag"
21820 || test ! -s conftest.err'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; } &&
21826 { ac_try='test -s conftest.$ac_objext'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21832 ac_cv_type_ssize_t=yes
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 ac_cv_type_ssize_t=no
21839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21841 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21842 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
21843 if test $ac_cv_type_ssize_t = yes; then
21847 cat >>confdefs.h <<_ACEOF
21848 #define ssize_t int
21854 for ac_func in gettimeofday
21856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21857 echo "$as_me:$LINENO: checking for $ac_func" >&5
21858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21859 if eval "test \"\${$as_ac_var+set}\" = set"; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 cat >conftest.$ac_ext <<_ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21870 #define $ac_func innocuous_$ac_func
21872 /* System header to define __stub macros and hopefully few prototypes,
21873 which can conflict with char $ac_func (); below.
21874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21875 <limits.h> exists even on freestanding compilers. */
21878 # include <limits.h>
21880 # include <assert.h>
21885 /* Override any gcc2 internal prototype to avoid an error. */
21890 /* We use char because int might match the return type of a gcc2
21891 builtin and then its argument prototype would still apply. */
21893 /* The GNU C library defines this for functions which it implements
21894 to always fail with ENOSYS. Some functions are actually named
21895 something starting with __ and the normal name is an alias. */
21896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21899 char (*f) () = $ac_func;
21908 return f != $ac_func;
21913 rm -f conftest.$ac_objext conftest$ac_exeext
21914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21915 (eval $ac_link) 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } &&
21922 { ac_try='test -z "$ac_c_werror_flag"
21923 || test ! -s conftest.err'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; } &&
21929 { ac_try='test -s conftest$ac_exeext'
21930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931 (eval $ac_try) 2>&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); }; }; then
21935 eval "$as_ac_var=yes"
21937 echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21940 eval "$as_ac_var=no"
21942 rm -f conftest.err conftest.$ac_objext \
21943 conftest$ac_exeext conftest.$ac_ext
21945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21947 if test `eval echo '${'$as_ac_var'}'` = yes; then
21948 cat >>confdefs.h <<_ACEOF
21949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21956 for ac_func in getrusage
21958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21959 echo "$as_me:$LINENO: checking for $ac_func" >&5
21960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21961 if eval "test \"\${$as_ac_var+set}\" = set"; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 cat >conftest.$ac_ext <<_ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21972 #define $ac_func innocuous_$ac_func
21974 /* System header to define __stub macros and hopefully few prototypes,
21975 which can conflict with char $ac_func (); below.
21976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21977 <limits.h> exists even on freestanding compilers. */
21980 # include <limits.h>
21982 # include <assert.h>
21987 /* Override any gcc2 internal prototype to avoid an error. */
21992 /* We use char because int might match the return type of a gcc2
21993 builtin and then its argument prototype would still apply. */
21995 /* The GNU C library defines this for functions which it implements
21996 to always fail with ENOSYS. Some functions are actually named
21997 something starting with __ and the normal name is an alias. */
21998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22001 char (*f) () = $ac_func;
22010 return f != $ac_func;
22015 rm -f conftest.$ac_objext conftest$ac_exeext
22016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22017 (eval $ac_link) 2>conftest.er1
22019 grep -v '^ *+' conftest.er1 >conftest.err
22021 cat conftest.err >&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } &&
22024 { ac_try='test -z "$ac_c_werror_flag"
22025 || test ! -s conftest.err'
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; } &&
22031 { ac_try='test -s conftest$ac_exeext'
22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; }; then
22037 eval "$as_ac_var=yes"
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22042 eval "$as_ac_var=no"
22044 rm -f conftest.err conftest.$ac_objext \
22045 conftest$ac_exeext conftest.$ac_ext
22047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22049 if test `eval echo '${'$as_ac_var'}'` = yes; then
22050 cat >>confdefs.h <<_ACEOF
22051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22058 ############################################################
22059 # Checks for library functions.
22060 ############################################################
22063 for ac_func in vprintf
22065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22066 echo "$as_me:$LINENO: checking for $ac_func" >&5
22067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22068 if eval "test \"\${$as_ac_var+set}\" = set"; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22071 cat >conftest.$ac_ext <<_ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22079 #define $ac_func innocuous_$ac_func
22081 /* System header to define __stub macros and hopefully few prototypes,
22082 which can conflict with char $ac_func (); below.
22083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22084 <limits.h> exists even on freestanding compilers. */
22087 # include <limits.h>
22089 # include <assert.h>
22094 /* Override any gcc2 internal prototype to avoid an error. */
22099 /* We use char because int might match the return type of a gcc2
22100 builtin and then its argument prototype would still apply. */
22102 /* The GNU C library defines this for functions which it implements
22103 to always fail with ENOSYS. Some functions are actually named
22104 something starting with __ and the normal name is an alias. */
22105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22108 char (*f) () = $ac_func;
22117 return f != $ac_func;
22122 rm -f conftest.$ac_objext conftest$ac_exeext
22123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22124 (eval $ac_link) 2>conftest.er1
22126 grep -v '^ *+' conftest.er1 >conftest.err
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } &&
22131 { ac_try='test -z "$ac_c_werror_flag"
22132 || test ! -s conftest.err'
22133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; } &&
22138 { ac_try='test -s conftest$ac_exeext'
22139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140 (eval $ac_try) 2>&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; }; then
22144 eval "$as_ac_var=yes"
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22149 eval "$as_ac_var=no"
22151 rm -f conftest.err conftest.$ac_objext \
22152 conftest$ac_exeext conftest.$ac_ext
22154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22156 if test `eval echo '${'$as_ac_var'}'` = yes; then
22157 cat >>confdefs.h <<_ACEOF
22158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22161 echo "$as_me:$LINENO: checking for _doprnt" >&5
22162 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
22163 if test "${ac_cv_func__doprnt+set}" = set; then
22164 echo $ECHO_N "(cached) $ECHO_C" >&6
22166 cat >conftest.$ac_ext <<_ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22172 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
22173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22174 #define _doprnt innocuous__doprnt
22176 /* System header to define __stub macros and hopefully few prototypes,
22177 which can conflict with char _doprnt (); below.
22178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22179 <limits.h> exists even on freestanding compilers. */
22182 # include <limits.h>
22184 # include <assert.h>
22189 /* Override any gcc2 internal prototype to avoid an error. */
22194 /* We use char because int might match the return type of a gcc2
22195 builtin and then its argument prototype would still apply. */
22197 /* The GNU C library defines this for functions which it implements
22198 to always fail with ENOSYS. Some functions are actually named
22199 something starting with __ and the normal name is an alias. */
22200 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22203 char (*f) () = _doprnt;
22212 return f != _doprnt;
22217 rm -f conftest.$ac_objext conftest$ac_exeext
22218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22219 (eval $ac_link) 2>conftest.er1
22221 grep -v '^ *+' conftest.er1 >conftest.err
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } &&
22226 { ac_try='test -z "$ac_c_werror_flag"
22227 || test ! -s conftest.err'
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; } &&
22233 { ac_try='test -s conftest$ac_exeext'
22234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235 (eval $ac_try) 2>&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); }; }; then
22239 ac_cv_func__doprnt=yes
22241 echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22244 ac_cv_func__doprnt=no
22246 rm -f conftest.err conftest.$ac_objext \
22247 conftest$ac_exeext conftest.$ac_ext
22249 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22250 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
22251 if test $ac_cv_func__doprnt = yes; then
22253 cat >>confdefs.h <<\_ACEOF
22254 #define HAVE_DOPRNT 1
22264 ############################################################
22265 # Enable/disable special memory allocator for debugging.
22266 ############################################################
22268 # Check whether --enable-dmalloc or --disable-dmalloc was given.
22269 if test "${enable_dmalloc+set}" = set; then
22270 enableval="$enable_dmalloc"
22272 case "${enableval}" in
22274 cat >>confdefs.h <<\_ACEOF
22275 #define DEBUG_MEMALLOC 1
22282 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dmalloc" >&5
22283 echo "$as_me: error: bad value ${enableval} for --enable-dmalloc" >&2;}
22284 { (exit 1); exit 1; }; }
22290 ############################################################
22291 # Enable/disable extra code for debugging.
22292 ############################################################
22294 # Check whether --enable-debug or --disable-debug was given.
22295 if test "${enable_debug+set}" = set; then
22296 enableval="$enable_debug"
22298 case "${enableval}" in
22301 cat >>confdefs.h <<\_ACEOF
22305 cat >>confdefs.h <<\_ACEOF
22306 #define DEBUG_OVERFLOW 1
22309 if test "$GCC" = yes; then
22317 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
22318 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
22319 { (exit 1); exit 1; }; }
22327 if test "$GCC" = yes; then
22329 #CFLAGS="$CFLAGS -std=c99"
22330 #CFLAGS="$CFLAGS -pedantic"
22331 #CFLAGS="$CFLAGS -pedantic-errors"
22332 #CFLAGS="$CFLAGS -W -Wall -Wno-long-long -Wformat -Wmissing-prototypes -Wstrict-prototypes"
22335 ############################################################
22336 # Extra stuff for research purposes.
22337 ############################################################
22339 # Check whether --enable-special0 or --disable-special0 was given.
22340 if test "${enable_special0+set}" = set; then
22341 enableval="$enable_special0"
22343 case "${enableval}" in
22345 if test "$GCC" = yes; then
22352 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-special0" >&5
22353 echo "$as_me: error: bad value ${enableval} for --enable-special0" >&2;}
22354 { (exit 1); exit 1; }; }
22360 if test -n "$EXTRACFLAGS"; then
22361 CFLAGS="$CFLAGS $EXTRACFLAGS"
22364 ############################################################
22365 # Generate the configuration header file.
22366 ############################################################
22368 ac_config_headers="$ac_config_headers src/libjasper/include/jasper/jas_config.h"
22371 ############################################################
22372 # Generate the makefiles.
22373 ############################################################
22375 ac_config_files="$ac_config_files Makefile src/Makefile src/appl/Makefile src/libjasper/Makefile src/libjasper/base/Makefile src/libjasper/bmp/Makefile src/libjasper/include/Makefile src/libjasper/include/jasper/Makefile src/libjasper/jp2/Makefile src/libjasper/jpc/Makefile src/libjasper/jpg/Makefile src/libjasper/mif/Makefile src/libjasper/pgx/Makefile src/libjasper/pnm/Makefile src/libjasper/ras/Makefile src/msvc/Makefile jasper.spec"
22377 cat >confcache <<\_ACEOF
22378 # This file is a shell script that caches the results of configure
22379 # tests run on this system so they can be shared between configure
22380 # scripts and configure runs, see configure's option --config-cache.
22381 # It is not useful on other systems. If it contains results you don't
22382 # want to keep, you may remove or edit it.
22384 # config.status only pays attention to the cache file if you give it
22385 # the --recheck option to rerun configure.
22387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22389 # following values.
22393 # The following way of writing the cache mishandles newlines in values,
22394 # but we know of no workaround that is simple, portable, and efficient.
22395 # So, don't put newlines in cache variables' values.
22396 # Ultrix sh set writes to stderr and can't be redirected directly,
22397 # and sets the high bit in the cache file unless we assign to the vars.
22400 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22402 # `set' does not quote correctly, so add quotes (double-quote
22403 # substitution turns \\\\ into \\, and sed turns \\ into \).
22406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22409 # `set' quotes correctly as required by POSIX, so do not add quotes.
22411 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22420 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22422 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22423 if test -w $cache_file; then
22424 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22425 cat confcache >$cache_file
22427 echo "not updating unwritable cache $cache_file"
22432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22433 # Let make expand exec_prefix.
22434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22438 # trailing colons and then remove the whole line if VPATH becomes empty
22439 # (actually we leave an empty line to preserve line numbers).
22440 if test "x$srcdir" = x.; then
22441 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22442 s/:*\$(srcdir):*/:/;
22443 s/:*\${srcdir}:*/:/;
22445 s/^\([^=]*=[ ]*\):*/\1/;
22451 DEFS=-DHAVE_CONFIG_H
22455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22456 # 1. Remove the extension, and $U if already installed.
22457 ac_i=`echo "$ac_i" |
22458 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22460 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22461 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22463 LIBOBJS=$ac_libobjs
22465 LTLIBOBJS=$ac_ltlibobjs
22468 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22469 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22470 Usually this means the macro was only invoked conditionally." >&5
22471 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22472 Usually this means the macro was only invoked conditionally." >&2;}
22473 { (exit 1); exit 1; }; }
22475 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22476 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22477 Usually this means the macro was only invoked conditionally." >&5
22478 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22479 Usually this means the macro was only invoked conditionally." >&2;}
22480 { (exit 1); exit 1; }; }
22482 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22483 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22484 Usually this means the macro was only invoked conditionally." >&5
22485 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22486 Usually this means the macro was only invoked conditionally." >&2;}
22487 { (exit 1); exit 1; }; }
22489 if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then
22490 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBJPEG\" was never defined.
22491 Usually this means the macro was only invoked conditionally." >&5
22492 echo "$as_me: error: conditional \"HAVE_LIBJPEG\" was never defined.
22493 Usually this means the macro was only invoked conditionally." >&2;}
22494 { (exit 1); exit 1; }; }
22496 if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
22497 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENGL\" was never defined.
22498 Usually this means the macro was only invoked conditionally." >&5
22499 echo "$as_me: error: conditional \"HAVE_OPENGL\" was never defined.
22500 Usually this means the macro was only invoked conditionally." >&2;}
22501 { (exit 1); exit 1; }; }
22504 : ${CONFIG_STATUS=./config.status}
22505 ac_clean_files_save=$ac_clean_files
22506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22507 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22509 cat >$CONFIG_STATUS <<_ACEOF
22511 # Generated by $as_me.
22512 # Run this file to recreate the current configuration.
22513 # Compiler output produced by configure, useful for debugging
22514 # configure, is in config.log if it exists.
22517 ac_cs_recheck=false
22519 SHELL=\${CONFIG_SHELL-$SHELL}
22522 cat >>$CONFIG_STATUS <<\_ACEOF
22523 ## --------------------- ##
22524 ## M4sh Initialization. ##
22525 ## --------------------- ##
22527 # Be Bourne compatible
22528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22531 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22532 # is contrary to our usage. Disable this feature.
22533 alias -g '${1+"$@"}'='"$@"'
22534 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22537 DUALCASE=1; export DUALCASE # for MKS sh
22539 # Support unset when possible.
22540 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22547 # Work around bugs in pre-3.0 UWIN ksh.
22548 $as_unset ENV MAIL MAILPATH
22555 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22556 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22557 LC_TELEPHONE LC_TIME
22559 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22560 eval $as_var=C; export $as_var
22566 # Required to use basename.
22567 if expr a : '\(a\)' >/dev/null 2>&1; then
22573 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22574 as_basename=basename
22580 # Name of the executable.
22581 as_me=`$as_basename "$0" ||
22582 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22583 X"$0" : 'X\(//\)$' \| \
22584 X"$0" : 'X\(/\)$' \| \
22585 . : '\(.\)' 2>/dev/null ||
22587 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22588 /^X\/\(\/\/\)$/{ s//\1/; q; }
22589 /^X\/\(\/\).*/{ s//\1/; q; }
22593 # PATH needs CR, and LINENO needs CR and PATH.
22594 # Avoid depending upon Character Ranges.
22595 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22596 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22597 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22598 as_cr_digits='0123456789'
22599 as_cr_alnum=$as_cr_Letters$as_cr_digits
22601 # The user is always right.
22602 if test "${PATH_SEPARATOR+set}" != set; then
22603 echo "#! /bin/sh" >conf$$.sh
22604 echo "exit 0" >>conf$$.sh
22606 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22615 as_lineno_1=$LINENO
22616 as_lineno_2=$LINENO
22617 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22618 test "x$as_lineno_1" != "x$as_lineno_2" &&
22619 test "x$as_lineno_3" = "x$as_lineno_2" || {
22620 # Find who we are. Look in the path if we contain no path at all
22623 *[\\/]* ) as_myself=$0 ;;
22624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22625 for as_dir in $PATH
22628 test -z "$as_dir" && as_dir=.
22629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22634 # We did not find ourselves, most probably we were run as `sh COMMAND'
22635 # in which case we are not to be found in the path.
22636 if test "x$as_myself" = x; then
22639 if test ! -f "$as_myself"; then
22640 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22641 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22642 { (exit 1); exit 1; }; }
22644 case $CONFIG_SHELL in
22646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22647 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22650 test -z "$as_dir" && as_dir=.
22651 for as_base in sh bash ksh sh5; do
22654 if ("$as_dir/$as_base" -c '
22655 as_lineno_1=$LINENO
22656 as_lineno_2=$LINENO
22657 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22658 test "x$as_lineno_1" != "x$as_lineno_2" &&
22659 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22660 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22661 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22662 CONFIG_SHELL=$as_dir/$as_base
22663 export CONFIG_SHELL
22664 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22672 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22673 # uniformly replaced by the line number. The first 'sed' inserts a
22674 # line-number line before each line; the second 'sed' does the real
22675 # work. The second script uses 'N' to pair each line-number line
22676 # with the numbered line, and appends trailing '-' during
22677 # substitution so that $LINENO is not a special case at line end.
22678 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22679 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22680 sed '=' <$as_myself |
22685 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22688 s,^['$as_cr_digits']*\n,,
22689 ' >$as_me.lineno &&
22690 chmod +x $as_me.lineno ||
22691 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22692 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22693 { (exit 1); exit 1; }; }
22695 # Don't try to exec as it changes $[0], causing all sort of problems
22696 # (the dirname of $[0] is not the place where we might find the
22697 # original and so on. Autoconf is especially sensible to this).
22699 # Exit status is that of the last command.
22704 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22705 *c*,-n*) ECHO_N= ECHO_C='
22707 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22708 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22711 if expr a : '\(a\)' >/dev/null 2>&1; then
22717 rm -f conf$$ conf$$.exe conf$$.file
22719 if ln -s conf$$.file conf$$ 2>/dev/null; then
22720 # We could just check for DJGPP; but this test a) works b) is more generic
22721 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22722 if test -f conf$$.exe; then
22723 # Don't use ln at all; we don't have any links
22728 elif ln conf$$.file conf$$ 2>/dev/null; then
22733 rm -f conf$$ conf$$.exe conf$$.file
22735 if mkdir -p . 2>/dev/null; then
22738 test -d ./-p && rmdir ./-p
22742 as_executable_p="test -f"
22744 # Sed expression to map a string onto a valid CPP name.
22745 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22747 # Sed expression to map a string onto a valid variable name.
22748 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22752 # We need space, tab and new line, in precisely that order.
22762 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22763 # report actual input values of CONFIG_FILES etc. instead of their
22764 # values after options handling. Logging --version etc. is OK.
22768 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22769 ## Running $as_me. ##
22774 This file was extended by jasper $as_me 1.900.1, which was
22775 generated by GNU Autoconf 2.59. Invocation command line was
22777 CONFIG_FILES = $CONFIG_FILES
22778 CONFIG_HEADERS = $CONFIG_HEADERS
22779 CONFIG_LINKS = $CONFIG_LINKS
22780 CONFIG_COMMANDS = $CONFIG_COMMANDS
22784 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22788 # Files that config.status was made for.
22789 if test -n "$ac_config_files"; then
22790 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22793 if test -n "$ac_config_headers"; then
22794 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22797 if test -n "$ac_config_links"; then
22798 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22801 if test -n "$ac_config_commands"; then
22802 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22805 cat >>$CONFIG_STATUS <<\_ACEOF
22808 \`$as_me' instantiates files from templates according to the
22809 current configuration.
22811 Usage: $0 [OPTIONS] [FILE]...
22813 -h, --help print this help, then exit
22814 -V, --version print version number, then exit
22815 -q, --quiet do not print progress messages
22816 -d, --debug don't remove temporary files
22817 --recheck update $as_me by reconfiguring in the same conditions
22818 --file=FILE[:TEMPLATE]
22819 instantiate the configuration file FILE
22820 --header=FILE[:TEMPLATE]
22821 instantiate the configuration header FILE
22823 Configuration files:
22826 Configuration headers:
22829 Configuration commands:
22832 Report bugs to <bug-autoconf@gnu.org>."
22835 cat >>$CONFIG_STATUS <<_ACEOF
22837 jasper config.status 1.900.1
22838 configured by $0, generated by GNU Autoconf 2.59,
22839 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22841 Copyright (C) 2003 Free Software Foundation, Inc.
22842 This config.status script is free software; the Free Software Foundation
22843 gives unlimited permission to copy, distribute and modify it."
22848 cat >>$CONFIG_STATUS <<\_ACEOF
22849 # If no file are specified by the user, then we need to provide default
22850 # value. By we need to know if files were specified by the user.
22856 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22857 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22865 *) # This is not an option, so the user has probably given explicit
22868 ac_need_defaults=false;;
22872 # Handling of the options.
22874 cat >>$CONFIG_STATUS <<\_ACEOF
22875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22877 --version | --vers* | -V )
22878 echo "$ac_cs_version"; exit 0 ;;
22880 # Conflict between --help and --header
22881 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22882 Try \`$0 --help' for more information." >&5
22883 echo "$as_me: error: ambiguous option: $1
22884 Try \`$0 --help' for more information." >&2;}
22885 { (exit 1); exit 1; }; };;
22886 --help | --hel | -h )
22887 echo "$ac_cs_usage"; exit 0 ;;
22888 --debug | --d* | -d )
22890 --file | --fil | --fi | --f )
22892 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22893 ac_need_defaults=false;;
22894 --header | --heade | --head | --hea )
22896 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22897 ac_need_defaults=false;;
22898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22902 # This is an error.
22903 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22904 Try \`$0 --help' for more information." >&5
22905 echo "$as_me: error: unrecognized option: $1
22906 Try \`$0 --help' for more information." >&2;}
22907 { (exit 1); exit 1; }; } ;;
22909 *) ac_config_targets="$ac_config_targets $1" ;;
22915 ac_configure_extra_args=
22917 if $ac_cs_silent; then
22919 ac_configure_extra_args="$ac_configure_extra_args --silent"
22923 cat >>$CONFIG_STATUS <<_ACEOF
22924 if \$ac_cs_recheck; then
22925 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22926 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22931 cat >>$CONFIG_STATUS <<_ACEOF
22933 # INIT-COMMANDS section.
22936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22942 cat >>$CONFIG_STATUS <<\_ACEOF
22943 for ac_config_target in $ac_config_targets
22945 case "$ac_config_target" in
22946 # Handling of arguments.
22947 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22948 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22949 "src/appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/appl/Makefile" ;;
22950 "src/libjasper/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/Makefile" ;;
22951 "src/libjasper/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/base/Makefile" ;;
22952 "src/libjasper/bmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/bmp/Makefile" ;;
22953 "src/libjasper/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/include/Makefile" ;;
22954 "src/libjasper/include/jasper/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/include/jasper/Makefile" ;;
22955 "src/libjasper/jp2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/jp2/Makefile" ;;
22956 "src/libjasper/jpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/jpc/Makefile" ;;
22957 "src/libjasper/jpg/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/jpg/Makefile" ;;
22958 "src/libjasper/mif/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/mif/Makefile" ;;
22959 "src/libjasper/pgx/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/pgx/Makefile" ;;
22960 "src/libjasper/pnm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/pnm/Makefile" ;;
22961 "src/libjasper/ras/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/ras/Makefile" ;;
22962 "src/msvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/msvc/Makefile" ;;
22963 "jasper.spec" ) CONFIG_FILES="$CONFIG_FILES jasper.spec" ;;
22964 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22965 "src/libjasper/include/jasper/jas_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/libjasper/include/jasper/jas_config.h" ;;
22966 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22968 { (exit 1); exit 1; }; };;
22972 # If the user did not use the arguments to specify the items to instantiate,
22973 # then the envvar interface is used. Set only those that are not.
22974 # We use the long form for the default assignment because of an extremely
22975 # bizarre bug on SunOS 4.1.3.
22976 if $ac_need_defaults; then
22977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22982 # Have a temporary directory for convenience. Make it in the build tree
22983 # simply because there is no reason to put it here, and in addition,
22984 # creating and moving files from /tmp can sometimes cause problems.
22985 # Create a temporary directory, and hook for its removal unless debugging.
22988 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22989 trap '{ (exit 1); exit 1; }' 1 2 13 15
22992 # Create a (secure) tmp directory for tmp files.
22995 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22996 test -n "$tmp" && test -d "$tmp"
22999 tmp=./confstat$$-$RANDOM
23000 (umask 077 && mkdir $tmp)
23003 echo "$me: cannot create a temporary directory in ." >&2
23004 { (exit 1); exit 1; }
23009 cat >>$CONFIG_STATUS <<_ACEOF
23012 # CONFIG_FILES section.
23015 # No need to generate the scripts if there are no CONFIG_FILES.
23016 # This happens for instance when ./config.status config.h
23017 if test -n "\$CONFIG_FILES"; then
23018 # Protect against being on the right side of a sed subst in config.status.
23019 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23020 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23021 s,@SHELL@,$SHELL,;t t
23022 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23023 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23024 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23025 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23026 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23027 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23028 s,@exec_prefix@,$exec_prefix,;t t
23029 s,@prefix@,$prefix,;t t
23030 s,@program_transform_name@,$program_transform_name,;t t
23031 s,@bindir@,$bindir,;t t
23032 s,@sbindir@,$sbindir,;t t
23033 s,@libexecdir@,$libexecdir,;t t
23034 s,@datadir@,$datadir,;t t
23035 s,@sysconfdir@,$sysconfdir,;t t
23036 s,@sharedstatedir@,$sharedstatedir,;t t
23037 s,@localstatedir@,$localstatedir,;t t
23038 s,@libdir@,$libdir,;t t
23039 s,@includedir@,$includedir,;t t
23040 s,@oldincludedir@,$oldincludedir,;t t
23041 s,@infodir@,$infodir,;t t
23042 s,@mandir@,$mandir,;t t
23043 s,@build_alias@,$build_alias,;t t
23044 s,@host_alias@,$host_alias,;t t
23045 s,@target_alias@,$target_alias,;t t
23046 s,@DEFS@,$DEFS,;t t
23047 s,@ECHO_C@,$ECHO_C,;t t
23048 s,@ECHO_N@,$ECHO_N,;t t
23049 s,@ECHO_T@,$ECHO_T,;t t
23050 s,@LIBS@,$LIBS,;t t
23051 s,@build@,$build,;t t
23052 s,@build_cpu@,$build_cpu,;t t
23053 s,@build_vendor@,$build_vendor,;t t
23054 s,@build_os@,$build_os,;t t
23055 s,@host@,$host,;t t
23056 s,@host_cpu@,$host_cpu,;t t
23057 s,@host_vendor@,$host_vendor,;t t
23058 s,@host_os@,$host_os,;t t
23059 s,@target@,$target,;t t
23060 s,@target_cpu@,$target_cpu,;t t
23061 s,@target_vendor@,$target_vendor,;t t
23062 s,@target_os@,$target_os,;t t
23063 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23064 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23065 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23066 s,@CYGPATH_W@,$CYGPATH_W,;t t
23067 s,@PACKAGE@,$PACKAGE,;t t
23068 s,@VERSION@,$VERSION,;t t
23069 s,@ACLOCAL@,$ACLOCAL,;t t
23070 s,@AUTOCONF@,$AUTOCONF,;t t
23071 s,@AUTOMAKE@,$AUTOMAKE,;t t
23072 s,@AUTOHEADER@,$AUTOHEADER,;t t
23073 s,@MAKEINFO@,$MAKEINFO,;t t
23074 s,@install_sh@,$install_sh,;t t
23075 s,@STRIP@,$STRIP,;t t
23076 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23077 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23078 s,@mkdir_p@,$mkdir_p,;t t
23080 s,@SET_MAKE@,$SET_MAKE,;t t
23081 s,@am__leading_dot@,$am__leading_dot,;t t
23082 s,@AMTAR@,$AMTAR,;t t
23083 s,@am__tar@,$am__tar,;t t
23084 s,@am__untar@,$am__untar,;t t
23085 s,@JAS_MAJOR_VERSION@,$JAS_MAJOR_VERSION,;t t
23086 s,@JAS_MINOR_VERSION@,$JAS_MINOR_VERSION,;t t
23087 s,@JAS_MICRO_VERSION@,$JAS_MICRO_VERSION,;t t
23088 s,@JAS_VERSION@,$JAS_VERSION,;t t
23089 s,@JAS_RPM_RELEASE@,$JAS_RPM_RELEASE,;t t
23090 s,@LT_RELEASE@,$LT_RELEASE,;t t
23091 s,@LT_CURRENT@,$LT_CURRENT,;t t
23092 s,@LT_REVISION@,$LT_REVISION,;t t
23093 s,@LT_AGE@,$LT_AGE,;t t
23095 s,@CFLAGS@,$CFLAGS,;t t
23096 s,@LDFLAGS@,$LDFLAGS,;t t
23097 s,@CPPFLAGS@,$CPPFLAGS,;t t
23098 s,@ac_ct_CC@,$ac_ct_CC,;t t
23099 s,@EXEEXT@,$EXEEXT,;t t
23100 s,@OBJEXT@,$OBJEXT,;t t
23101 s,@DEPDIR@,$DEPDIR,;t t
23102 s,@am__include@,$am__include,;t t
23103 s,@am__quote@,$am__quote,;t t
23104 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23105 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23106 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23107 s,@CCDEPMODE@,$CCDEPMODE,;t t
23108 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23109 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23110 s,@RANLIB@,$RANLIB,;t t
23111 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23113 s,@EGREP@,$EGREP,;t t
23114 s,@LN_S@,$LN_S,;t t
23115 s,@ECHO@,$ECHO,;t t
23117 s,@ac_ct_AR@,$ac_ct_AR,;t t
23120 s,@CXXFLAGS@,$CXXFLAGS,;t t
23121 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23122 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23123 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23124 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23125 s,@CXXCPP@,$CXXCPP,;t t
23127 s,@FFLAGS@,$FFLAGS,;t t
23128 s,@ac_ct_F77@,$ac_ct_F77,;t t
23129 s,@LIBTOOL@,$LIBTOOL,;t t
23130 s,@X_CFLAGS@,$X_CFLAGS,;t t
23131 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
23132 s,@X_LIBS@,$X_LIBS,;t t
23133 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
23134 s,@HAVE_LIBJPEG_TRUE@,$HAVE_LIBJPEG_TRUE,;t t
23135 s,@HAVE_LIBJPEG_FALSE@,$HAVE_LIBJPEG_FALSE,;t t
23136 s,@HAVE_OPENGL_TRUE@,$HAVE_OPENGL_TRUE,;t t
23137 s,@HAVE_OPENGL_FALSE@,$HAVE_OPENGL_FALSE,;t t
23138 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
23139 s,@LIBOBJS@,$LIBOBJS,;t t
23140 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23145 cat >>$CONFIG_STATUS <<\_ACEOF
23146 # Split the substitutions into bite-sized pieces for seds with
23147 # small command number limits, like on Digital OSF/1 and HP-UX.
23148 ac_max_sed_lines=48
23149 ac_sed_frag=1 # Number of current file.
23150 ac_beg=1 # First line for current file.
23151 ac_end=$ac_max_sed_lines # Line after last line for current file.
23154 while $ac_more_lines; do
23155 if test $ac_beg -gt 1; then
23156 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23158 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23160 if test ! -s $tmp/subs.frag; then
23161 ac_more_lines=false
23163 # The purpose of the label and of the branching condition is to
23164 # speed up the sed processing (if there are no `@' at all, there
23165 # is no need to browse any of the substitutions).
23166 # These are the two extra sed commands mentioned above.
23168 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23169 if test -z "$ac_sed_cmds"; then
23170 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23172 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23174 ac_sed_frag=`expr $ac_sed_frag + 1`
23176 ac_end=`expr $ac_end + $ac_max_sed_lines`
23179 if test -z "$ac_sed_cmds"; then
23182 fi # test -n "$CONFIG_FILES"
23185 cat >>$CONFIG_STATUS <<\_ACEOF
23186 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23187 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23189 - | *:- | *:-:* ) # input from stdin
23191 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23192 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23193 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23194 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23195 * ) ac_file_in=$ac_file.in ;;
23198 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23199 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23201 X"$ac_file" : 'X\(//\)[^/]' \| \
23202 X"$ac_file" : 'X\(//\)$' \| \
23203 X"$ac_file" : 'X\(/\)' \| \
23204 . : '\(.\)' 2>/dev/null ||
23206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23208 /^X\(\/\/\)$/{ s//\1/; q; }
23209 /^X\(\/\).*/{ s//\1/; q; }
23211 { if $as_mkdir_p; then
23216 while test ! -d "$as_dir"; do
23217 as_dirs="$as_dir $as_dirs"
23218 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23220 X"$as_dir" : 'X\(//\)[^/]' \| \
23221 X"$as_dir" : 'X\(//\)$' \| \
23222 X"$as_dir" : 'X\(/\)' \| \
23223 . : '\(.\)' 2>/dev/null ||
23225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23227 /^X\(\/\/\)$/{ s//\1/; q; }
23228 /^X\(\/\).*/{ s//\1/; q; }
23231 test ! -n "$as_dirs" || mkdir $as_dirs
23232 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23233 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23234 { (exit 1); exit 1; }; }; }
23238 if test "$ac_dir" != .; then
23239 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23240 # A "../" for each directory in $ac_dir_suffix.
23241 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23243 ac_dir_suffix= ac_top_builddir=
23247 .) # No --srcdir option. We are building in place.
23249 if test -z "$ac_top_builddir"; then
23252 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23254 [\\/]* | ?:[\\/]* ) # Absolute path.
23255 ac_srcdir=$srcdir$ac_dir_suffix;
23256 ac_top_srcdir=$srcdir ;;
23257 *) # Relative path.
23258 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23259 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23262 # Do not use `cd foo && pwd` to compute absolute paths, because
23263 # the directories may not exist.
23265 .) ac_abs_builddir="$ac_dir";;
23268 .) ac_abs_builddir=`pwd`;;
23269 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23270 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23273 case $ac_abs_builddir in
23274 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23276 case ${ac_top_builddir}. in
23277 .) ac_abs_top_builddir=$ac_abs_builddir;;
23278 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23279 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23282 case $ac_abs_builddir in
23283 .) ac_abs_srcdir=$ac_srcdir;;
23286 .) ac_abs_srcdir=$ac_abs_builddir;;
23287 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23288 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23291 case $ac_abs_builddir in
23292 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23294 case $ac_top_srcdir in
23295 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23296 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23297 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23303 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23304 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23307 if test x"$ac_file" != x-; then
23308 { echo "$as_me:$LINENO: creating $ac_file" >&5
23309 echo "$as_me: creating $ac_file" >&6;}
23312 # Let's still pretend it is `configure' which instantiates (i.e., don't
23313 # use $as_me), people would be surprised to read:
23314 # /* config.h. Generated by config.status. */
23315 if test x"$ac_file" = x-; then
23318 configure_input="$ac_file. "
23320 configure_input=$configure_input"Generated from `echo $ac_file_in |
23321 sed 's,.*/,,'` by configure."
23323 # First look for the input files in the build tree, otherwise in the
23325 ac_file_inputs=`IFS=:
23326 for f in $ac_file_in; do
23328 -) echo $tmp/stdin ;;
23330 # Absolute (can't be DOS-style, as IFS=:)
23331 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23332 echo "$as_me: error: cannot find input file: $f" >&2;}
23333 { (exit 1); exit 1; }; }
23336 if test -f "$f"; then
23339 elif test -f "$srcdir/$f"; then
23344 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23345 echo "$as_me: error: cannot find input file: $f" >&2;}
23346 { (exit 1); exit 1; }; }
23349 done` || { (exit 1); exit 1; }
23351 cat >>$CONFIG_STATUS <<_ACEOF
23355 cat >>$CONFIG_STATUS <<\_ACEOF
23357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23358 s,@configure_input@,$configure_input,;t t
23359 s,@srcdir@,$ac_srcdir,;t t
23360 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23361 s,@top_srcdir@,$ac_top_srcdir,;t t
23362 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23363 s,@builddir@,$ac_builddir,;t t
23364 s,@abs_builddir@,$ac_abs_builddir,;t t
23365 s,@top_builddir@,$ac_top_builddir,;t t
23366 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23367 s,@INSTALL@,$ac_INSTALL,;t t
23368 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23370 if test x"$ac_file" != x-; then
23371 mv $tmp/out $ac_file
23379 cat >>$CONFIG_STATUS <<\_ACEOF
23382 # CONFIG_HEADER section.
23385 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23386 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23388 # ac_d sets the value in "#define NAME VALUE" lines.
23389 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23390 ac_dB='[ ].*$,\1#\2'
23393 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23394 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23395 ac_uB='$,\1#\2define\3'
23399 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23400 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23402 - | *:- | *:-:* ) # input from stdin
23404 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23405 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23406 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23408 * ) ac_file_in=$ac_file.in ;;
23411 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23412 echo "$as_me: creating $ac_file" >&6;}
23414 # First look for the input files in the build tree, otherwise in the
23416 ac_file_inputs=`IFS=:
23417 for f in $ac_file_in; do
23419 -) echo $tmp/stdin ;;
23421 # Absolute (can't be DOS-style, as IFS=:)
23422 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23423 echo "$as_me: error: cannot find input file: $f" >&2;}
23424 { (exit 1); exit 1; }; }
23425 # Do quote $f, to prevent DOS paths from being IFS'd.
23428 if test -f "$f"; then
23431 elif test -f "$srcdir/$f"; then
23436 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23437 echo "$as_me: error: cannot find input file: $f" >&2;}
23438 { (exit 1); exit 1; }; }
23441 done` || { (exit 1); exit 1; }
23442 # Remove the trailing spaces.
23443 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23447 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23448 # `conftest.undefs', that substitutes the proper values into
23449 # config.h.in to produce config.h. The first handles `#define'
23450 # templates, and the second `#undef' templates.
23451 # And first: Protect against being on the right side of a sed subst in
23452 # config.status. Protect against being in an unquoted here document
23453 # in config.status.
23454 rm -f conftest.defines conftest.undefs
23455 # Using a here document instead of a string reduces the quoting nightmare.
23456 # Putting comments in sed scripts is not portable.
23458 # `end' is used to avoid that the second main sed command (meant for
23459 # 0-ary CPP macros) applies to n-ary macro definitions.
23460 # See the Autoconf documentation for `clear'.
23461 cat >confdef2sed.sed <<\_ACEOF
23466 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23468 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23471 # If some macros were called several times there might be several times
23472 # the same #defines, which is useless. Nevertheless, we may not want to
23473 # sort them, since we want the *last* AC-DEFINE to be honored.
23474 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23475 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23476 rm -f confdef2sed.sed
23478 # This sed command replaces #undef with comments. This is necessary, for
23479 # example, in the case of _POSIX_SOURCE, which is predefined and required
23480 # on some systems where configure will not decide to define it.
23481 cat >>conftest.undefs <<\_ACEOF
23482 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23485 # Break up conftest.defines because some shells have a limit on the size
23486 # of here documents, and old seds have small limits too (100 cmds).
23487 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23488 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23489 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23490 echo ' :' >>$CONFIG_STATUS
23491 rm -f conftest.tail
23492 while grep . conftest.defines >/dev/null
23494 # Write a limited-size here document to $tmp/defines.sed.
23495 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23496 # Speed up: don't consider the non `#define' lines.
23497 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23498 # Work around the forget-to-reset-the-flag bug.
23499 echo 't clr' >>$CONFIG_STATUS
23500 echo ': clr' >>$CONFIG_STATUS
23501 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23503 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23505 mv $tmp/out $tmp/in
23507 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23508 rm -f conftest.defines
23509 mv conftest.tail conftest.defines
23511 rm -f conftest.defines
23512 echo ' fi # grep' >>$CONFIG_STATUS
23513 echo >>$CONFIG_STATUS
23515 # Break up conftest.undefs because some shells have a limit on the size
23516 # of here documents, and old seds have small limits too (100 cmds).
23517 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23518 rm -f conftest.tail
23519 while grep . conftest.undefs >/dev/null
23521 # Write a limited-size here document to $tmp/undefs.sed.
23522 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23523 # Speed up: don't consider the non `#undef'
23524 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23525 # Work around the forget-to-reset-the-flag bug.
23526 echo 't clr' >>$CONFIG_STATUS
23527 echo ': clr' >>$CONFIG_STATUS
23528 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23530 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23532 mv $tmp/out $tmp/in
23534 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23535 rm -f conftest.undefs
23536 mv conftest.tail conftest.undefs
23538 rm -f conftest.undefs
23540 cat >>$CONFIG_STATUS <<\_ACEOF
23541 # Let's still pretend it is `configure' which instantiates (i.e., don't
23542 # use $as_me), people would be surprised to read:
23543 # /* config.h. Generated by config.status. */
23544 if test x"$ac_file" = x-; then
23545 echo "/* Generated by configure. */" >$tmp/config.h
23547 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23549 cat $tmp/in >>$tmp/config.h
23551 if test x"$ac_file" != x-; then
23552 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23553 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23554 echo "$as_me: $ac_file is unchanged" >&6;}
23556 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23558 X"$ac_file" : 'X\(//\)[^/]' \| \
23559 X"$ac_file" : 'X\(//\)$' \| \
23560 X"$ac_file" : 'X\(/\)' \| \
23561 . : '\(.\)' 2>/dev/null ||
23563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23565 /^X\(\/\/\)$/{ s//\1/; q; }
23566 /^X\(\/\).*/{ s//\1/; q; }
23568 { if $as_mkdir_p; then
23573 while test ! -d "$as_dir"; do
23574 as_dirs="$as_dir $as_dirs"
23575 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23577 X"$as_dir" : 'X\(//\)[^/]' \| \
23578 X"$as_dir" : 'X\(//\)$' \| \
23579 X"$as_dir" : 'X\(/\)' \| \
23580 . : '\(.\)' 2>/dev/null ||
23582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23584 /^X\(\/\/\)$/{ s//\1/; q; }
23585 /^X\(\/\).*/{ s//\1/; q; }
23588 test ! -n "$as_dirs" || mkdir $as_dirs
23589 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23591 { (exit 1); exit 1; }; }; }
23594 mv $tmp/config.h $ac_file
23598 rm -f $tmp/config.h
23600 # Compute $ac_file's index in $config_headers.
23602 for _am_header in $config_headers :; do
23603 case $_am_header in
23604 $ac_file | $ac_file:* )
23607 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23610 echo "timestamp for $ac_file" >`(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; }
23621 s/.*/./; q'`/stamp-h$_am_stamp_count
23624 cat >>$CONFIG_STATUS <<\_ACEOF
23627 # CONFIG_COMMANDS section.
23629 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23630 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23631 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23632 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23633 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23634 X"$ac_dest" : 'X\(//\)[^/]' \| \
23635 X"$ac_dest" : 'X\(//\)$' \| \
23636 X"$ac_dest" : 'X\(/\)' \| \
23637 . : '\(.\)' 2>/dev/null ||
23639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23641 /^X\(\/\/\)$/{ s//\1/; q; }
23642 /^X\(\/\).*/{ s//\1/; q; }
23644 { if $as_mkdir_p; then
23649 while test ! -d "$as_dir"; do
23650 as_dirs="$as_dir $as_dirs"
23651 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23653 X"$as_dir" : 'X\(//\)[^/]' \| \
23654 X"$as_dir" : 'X\(//\)$' \| \
23655 X"$as_dir" : 'X\(/\)' \| \
23656 . : '\(.\)' 2>/dev/null ||
23658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23660 /^X\(\/\/\)$/{ s//\1/; q; }
23661 /^X\(\/\).*/{ s//\1/; q; }
23664 test ! -n "$as_dirs" || mkdir $as_dirs
23665 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23666 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23667 { (exit 1); exit 1; }; }; }
23671 if test "$ac_dir" != .; then
23672 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23673 # A "../" for each directory in $ac_dir_suffix.
23674 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23676 ac_dir_suffix= ac_top_builddir=
23680 .) # No --srcdir option. We are building in place.
23682 if test -z "$ac_top_builddir"; then
23685 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23687 [\\/]* | ?:[\\/]* ) # Absolute path.
23688 ac_srcdir=$srcdir$ac_dir_suffix;
23689 ac_top_srcdir=$srcdir ;;
23690 *) # Relative path.
23691 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23692 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23695 # Do not use `cd foo && pwd` to compute absolute paths, because
23696 # the directories may not exist.
23698 .) ac_abs_builddir="$ac_dir";;
23701 .) ac_abs_builddir=`pwd`;;
23702 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23703 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23706 case $ac_abs_builddir in
23707 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23709 case ${ac_top_builddir}. in
23710 .) ac_abs_top_builddir=$ac_abs_builddir;;
23711 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23712 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23715 case $ac_abs_builddir in
23716 .) ac_abs_srcdir=$ac_srcdir;;
23719 .) ac_abs_srcdir=$ac_abs_builddir;;
23720 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23721 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23724 case $ac_abs_builddir in
23725 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23727 case $ac_top_srcdir in
23728 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23729 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23730 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23735 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23736 echo "$as_me: executing $ac_dest commands" >&6;}
23738 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23739 # Strip MF so we end up with the name of the file.
23740 mf=`echo "$mf" | sed -e 's/:.*$//'`
23741 # Check whether this is an Automake generated Makefile or not.
23742 # We used to match only the files named `Makefile.in', but
23743 # some people rename them; so instead we look at the file content.
23744 # Grep'ing the first line is not enough: some people post-process
23745 # each Makefile.in and add a new line on top of each file to say so.
23746 # So let's grep whole file.
23747 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23748 dirpart=`(dirname "$mf") 2>/dev/null ||
23749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23750 X"$mf" : 'X\(//\)[^/]' \| \
23751 X"$mf" : 'X\(//\)$' \| \
23752 X"$mf" : 'X\(/\)' \| \
23753 . : '\(.\)' 2>/dev/null ||
23755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23757 /^X\(\/\/\)$/{ s//\1/; q; }
23758 /^X\(\/\).*/{ s//\1/; q; }
23763 # Extract the definition of DEPDIR, am__include, and am__quote
23764 # from the Makefile without running `make'.
23765 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23766 test -z "$DEPDIR" && continue
23767 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23768 test -z "am__include" && continue
23769 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23770 # When using ansi2knr, U may be empty or an underscore; expand it
23771 U=`sed -n 's/^U = //p' < "$mf"`
23772 # Find all dependency output files, they are included files with
23773 # $(DEPDIR) in their names. We invoke sed twice because it is the
23774 # simplest approach to changing $(DEPDIR) to its actual value in the
23776 for file in `sed -n "
23777 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23778 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23779 # Make sure the directory exists.
23780 test -f "$dirpart/$file" && continue
23781 fdir=`(dirname "$file") 2>/dev/null ||
23782 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23783 X"$file" : 'X\(//\)[^/]' \| \
23784 X"$file" : 'X\(//\)$' \| \
23785 X"$file" : 'X\(/\)' \| \
23786 . : '\(.\)' 2>/dev/null ||
23788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23790 /^X\(\/\/\)$/{ s//\1/; q; }
23791 /^X\(\/\).*/{ s//\1/; q; }
23793 { if $as_mkdir_p; then
23794 mkdir -p $dirpart/$fdir
23796 as_dir=$dirpart/$fdir
23798 while test ! -d "$as_dir"; do
23799 as_dirs="$as_dir $as_dirs"
23800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23802 X"$as_dir" : 'X\(//\)[^/]' \| \
23803 X"$as_dir" : 'X\(//\)$' \| \
23804 X"$as_dir" : 'X\(/\)' \| \
23805 . : '\(.\)' 2>/dev/null ||
23807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23809 /^X\(\/\/\)$/{ s//\1/; q; }
23810 /^X\(\/\).*/{ s//\1/; q; }
23813 test ! -n "$as_dirs" || mkdir $as_dirs
23814 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23815 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23816 { (exit 1); exit 1; }; }; }
23818 # echo "creating $dirpart/$file"
23819 echo '# dummy' > "$dirpart/$file"
23827 cat >>$CONFIG_STATUS <<\_ACEOF
23829 { (exit 0); exit 0; }
23831 chmod +x $CONFIG_STATUS
23832 ac_clean_files=$ac_clean_files_save
23835 # configure is writing to config.log, and then calls config.status.
23836 # config.status does its own redirection, appending to config.log.
23837 # Unfortunately, on DOS this fails, as config.log is still kept open
23838 # by configure, so config.status won't be able to write to it; its
23839 # output is simply discarded. So we exec the FD to /dev/null,
23840 # effectively closing config.log, so it can be properly (re)opened and
23841 # appended to by config.status. When coming back to configure, we
23842 # need to make the FD available again.
23843 if test "$no_create" != yes; then
23845 ac_config_status_args=
23846 test "$silent" = yes &&
23847 ac_config_status_args="$ac_config_status_args --quiet"
23849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23852 # would make configure fail if this is the last instruction.
23853 $ac_cs_success || { (exit 1); exit 1; }