2 # From configure.ac Revision: 1.2 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.040129.
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
262 elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
273 if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292 echo_test_string="`eval $cmd`" &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
309 # So, first we look for a working echo in the user's PATH.
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
362 # maybe with a smaller string...
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 # Oops. We lost completely, so just stick with echo.
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 tagnames=${tagnames+${tagnames},}CXX
399 tagnames=${tagnames+${tagnames},}F77
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
426 PACKAGE_TARNAME='gras'
427 PACKAGE_VERSION='0.0.040129'
428 PACKAGE_STRING='GRAS 0.0.040129'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
431 ac_unique_file="src/include/gras.h"
432 ac_subdirs_all="$ac_subdirs_all src/nws_portability"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
437 # include <sys/types.h>
440 # include <sys/stat.h>
451 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <strings.h>
460 # include <inttypes.h>
470 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 subdirs 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE FLIBS LIBOBJS ACI_CACHE_PROG aci_module_desc_XML aci_pkg_config_XML HAVE_XML CFLAGS_XML LIBS_XML aci_module_desc_SimGrid aci_pkg_prefix_SimGrid aci_pkg_inc_SimGrid aci_pkg_lib_SimGrid aci_pkg_extra_SimGrid HAVE_SimGrid CFLAGS_SimGrid LIBS_SimGrid MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING LTLIBOBJS'
473 # Initialize some variables set by options.
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
485 program_transform_name=s,x,x,
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523 # Accept the important Cygnus configure options, so we can diagnose typos.
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
545 cache_file=config.cache ;;
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 datadir=$ac_optarg ;;
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 eval "enable_$ac_feature='$ac_optarg'" ;;
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
588 -help | --help | --hel | --he | -h)
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir=$ac_optarg ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir=$ac_optarg ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers | -V)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 eval "with_$ac_package='$ac_optarg'" ;;
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
767 # Obsolete; use --with-x.
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
831 eval ac_val=$`echo $ac_var`
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860 test "$silent" = yes && exec 6>/dev/null
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
880 if test ! -r $srcdir/$ac_unique_file; then
884 ac_srcdir_defaulted=no
886 if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931 ac_env_CXX_set=${CXX+set}
932 ac_env_CXX_value=$CXX
933 ac_cv_env_CXX_set=${CXX+set}
934 ac_cv_env_CXX_value=$CXX
935 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_env_CXXFLAGS_value=$CXXFLAGS
937 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
953 # Report the --help message.
955 if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh.
959 \`configure' configures GRAS 0.0.040129 to adapt to many kinds of systems.
961 Usage: $0 [OPTION]... [VAR=VALUE]...
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE. See below for descriptions of some of the useful variables.
966 Defaults for the options are specified in brackets.
969 -h, --help display this help and exit
970 --help=short display options specific to this package
971 --help=recursive display the short help of all the included packages
972 -V, --version display version information and exit
973 -q, --quiet, --silent do not print \`checking...' messages
974 --cache-file=FILE cache test results in FILE [disabled]
975 -C, --config-cache alias for \`--cache-file=config.cache'
976 -n, --no-create do not create output files
977 --srcdir=DIR find the sources in DIR [configure dir or \`..']
982 Installation directories:
983 --prefix=PREFIX install architecture-independent files in PREFIX
985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
993 For better control, use the options below.
995 Fine tuning of the installation directories:
996 --bindir=DIR user executables [EPREFIX/bin]
997 --sbindir=DIR system admin executables [EPREFIX/sbin]
998 --libexecdir=DIR program executables [EPREFIX/libexec]
999 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003 --libdir=DIR object code libraries [EPREFIX/lib]
1004 --includedir=DIR C header files [PREFIX/include]
1005 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1006 --infodir=DIR info documentation [PREFIX/info]
1007 --mandir=DIR man documentation [PREFIX/man]
1013 --program-prefix=PREFIX prepend PREFIX to installed program names
1014 --program-suffix=SUFFIX append SUFFIX to installed program names
1015 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
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 GRAS 0.0.040129:";;
1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033 --enable-shared[=PKGS]
1034 build shared libraries [default=yes]
1035 --enable-static[=PKGS]
1036 build static libraries [default=yes]
1037 --enable-fast-install[=PKGS]
1038 optimize for fast installation [default=yes]
1039 --disable-dependency-tracking Speeds up one-time builds
1040 --enable-dependency-tracking Do not reject slow dependency extractors
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-gtk-doc use gtk-doc to build documentation default=no
1043 --enable-maintainer-mode enable make rules and dependencies not useful
1044 (and sometimes confusing) to the casual installer
1045 --enable-compile-warnings=no/minimum/yes Turn on compiler warnings.
1046 --enable-iso-c Try to warn if code is not ISO C
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-html-dir=PATH path to installed docs
1057 --with-SimGrid=DIR root directory of the SimGrid simulator installation
1058 --with-SimGrid-includes=DIR
1059 specify exact include dir for the SimGrid simulator headers
1060 --with-SimGrid-libraries=DIR
1061 specify exact library dir for the SimGrid simulator library
1062 --with-SimGrid-extra=ARG
1063 specify extra args to pass to the linker to get the
1064 the SimGrid simulator library (with no space. A sed to change "!"
1067 Some influential environment variables:
1068 CC C compiler command
1069 CFLAGS C compiler flags
1070 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1071 nonstandard directory <lib dir>
1072 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1073 headers in a nonstandard directory <include dir>
1075 CXX C++ compiler command
1076 CXXFLAGS C++ compiler flags
1077 CXXCPP C++ preprocessor
1078 F77 Fortran 77 compiler command
1079 FFLAGS Fortran 77 compiler flags
1081 Use these variables to override the choices made by `configure' or to help
1082 it to find libraries and programs with nonstandard names/locations.
1084 Report bugs to <martin.quinson@ens-lyon.fr>.
1088 if test "$ac_init_help" = "recursive"; then
1089 # If there are subdirs, report their specific --help.
1091 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1092 test -d $ac_dir || continue
1095 if test "$ac_dir" != .; then
1096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1097 # A "../" for each directory in $ac_dir_suffix.
1098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 ac_dir_suffix= ac_top_builddir=
1104 .) # No --srcdir option. We are building in place.
1106 if test -z "$ac_top_builddir"; then
1109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111 [\\/]* | ?:[\\/]* ) # Absolute path.
1112 ac_srcdir=$srcdir$ac_dir_suffix;
1113 ac_top_srcdir=$srcdir ;;
1115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1119 # Do not use `cd foo && pwd` to compute absolute paths, because
1120 # the directories may not exist.
1122 .) ac_abs_builddir="$ac_dir";;
1125 .) ac_abs_builddir=`pwd`;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1127 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 case ${ac_top_builddir}. in
1134 .) ac_abs_top_builddir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1136 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1139 case $ac_abs_builddir in
1140 .) ac_abs_srcdir=$ac_srcdir;;
1143 .) ac_abs_srcdir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1145 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1148 case $ac_abs_builddir in
1149 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 case $ac_top_srcdir in
1152 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1154 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159 # Check for guested configure; otherwise get Cygnus style configure.
1160 if test -f $ac_srcdir/configure.gnu; then
1162 $SHELL $ac_srcdir/configure.gnu --help=recursive
1163 elif test -f $ac_srcdir/configure; then
1165 $SHELL $ac_srcdir/configure --help=recursive
1166 elif test -f $ac_srcdir/configure.ac ||
1167 test -f $ac_srcdir/configure.in; then
1169 $ac_configure --help
1171 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1177 test -n "$ac_init_help" && exit 0
1178 if $ac_init_version; then
1180 GRAS configure 0.0.040129
1181 generated by GNU Autoconf 2.59
1183 Copyright (C) 2003 Free Software Foundation, Inc.
1184 This configure script is free software; the Free Software Foundation
1185 gives unlimited permission to copy, distribute and modify it.
1191 This file contains any messages produced by compilers while
1192 running configure, to aid debugging if configure makes a mistake.
1194 It was created by GRAS $as_me 0.0.040129, which was
1195 generated by GNU Autoconf 2.59. Invocation command line was
1206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1218 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229 test -z "$as_dir" && as_dir=.
1230 echo "PATH: $as_dir"
1245 # Keep a trace of the command line.
1246 # Strip out --no-create and --no-recursion so they do not pile up.
1247 # Strip out --silent because we don't want to record it for future runs.
1248 # Also quote any args containing shell meta-characters.
1249 # Make two passes to allow for proper duplicate-argument suppression.
1254 ac_must_keep_next=false
1260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262 | -silent | --silent | --silen | --sile | --sil)
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1271 if test $ac_must_keep_next = true; then
1272 ac_must_keep_next=false # Got value, back to normal.
1275 *=* | --config-cache | -C | -disable-* | --disable-* \
1276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1278 | -with-* | --with-* | -without-* | --without-* | --x)
1279 case "$ac_configure_args0 " in
1280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1283 -* ) ac_must_keep_next=true ;;
1286 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1287 # Get rid of the leading space.
1293 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1294 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296 # When interrupted or exit'd, cleanup temporary files, and complete
1297 # config.log. We remove comments because anyway the quotes in there
1298 # would cause problems or look ugly.
1299 # WARNING: Be sure not to use single quotes in there, as some shells,
1300 # such as our DU 5.0 friend, will then `close' the trap.
1301 trap 'exit_status=$?
1302 # Save into config.log some information that might help in debugging.
1307 ## ---------------- ##
1308 ## Cache variables. ##
1309 ## ---------------- ##
1312 # The following way of writing the cache mishandles newlines in values,
1315 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1318 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1330 ## ----------------- ##
1331 ## Output variables. ##
1332 ## ----------------- ##
1335 for ac_var in $ac_subst_vars
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1342 if test -n "$ac_subst_files"; then
1349 for ac_var in $ac_subst_files
1351 eval ac_val=$`echo $ac_var`
1352 echo "$ac_var='"'"'$ac_val'"'"'"
1357 if test -s confdefs.h; then
1364 sed "/^$/d" confdefs.h | sort
1367 test "$ac_signal" != 0 &&
1368 echo "$as_me: caught signal $ac_signal"
1369 echo "$as_me: exit $exit_status"
1371 rm -f core *.core &&
1372 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1375 for ac_signal in 1 2 13 15; do
1376 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1381 rm -rf conftest* confdefs.h
1382 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1385 # Predefined preprocessor variables.
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_NAME "$PACKAGE_NAME"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_STRING "$PACKAGE_STRING"
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412 # Let the site file select an alternate cache file if it wants to.
1413 # Prefer explicitly selected file to automatically selected ones.
1414 if test -z "$CONFIG_SITE"; then
1415 if test "x$prefix" != xNONE; then
1416 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1421 for ac_site_file in $CONFIG_SITE; do
1422 if test -r "$ac_site_file"; then
1423 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1424 echo "$as_me: loading site script $ac_site_file" >&6;}
1425 sed 's/^/| /' "$ac_site_file" >&5
1430 if test -r "$cache_file"; then
1431 # Some versions of bash will fail to source /dev/null (special
1432 # files actually), so we avoid doing that.
1433 if test -f "$cache_file"; then
1434 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1435 echo "$as_me: loading cache $cache_file" >&6;}
1437 [\\/]* | ?:[\\/]* ) . $cache_file;;
1438 *) . ./$cache_file;;
1442 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1443 echo "$as_me: creating cache $cache_file" >&6;}
1447 # Check that the precious variables saved in the cache have kept the same
1449 ac_cache_corrupted=false
1450 for ac_var in `(set) 2>&1 |
1451 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1452 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1453 eval ac_new_set=\$ac_env_${ac_var}_set
1454 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1455 eval ac_new_val="\$ac_env_${ac_var}_value"
1456 case $ac_old_set,$ac_new_set in
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1462 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1463 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1464 ac_cache_corrupted=: ;;
1467 if test "x$ac_old_val" != "x$ac_new_val"; then
1468 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1469 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1470 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1471 echo "$as_me: former value: $ac_old_val" >&2;}
1472 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1473 echo "$as_me: current value: $ac_new_val" >&2;}
1474 ac_cache_corrupted=:
1477 # Pass precious variables to config.status.
1478 if test "$ac_new_set" = set; then
1480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1481 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1482 *) ac_arg=$ac_var=$ac_new_val ;;
1484 case " $ac_configure_args " in
1485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1486 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490 if $ac_cache_corrupted; then
1491 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1492 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1493 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1494 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1495 { (exit 1); exit 1; }; }
1499 ac_cpp='$CPP $CPPFLAGS'
1500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1538 elif test -f $ac_dir/install.sh; then
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1542 elif test -f $ac_dir/shtool; then
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559 subdirs="$subdirs src/nws_portability"
1562 # Make sure we can run config.sub.
1563 $ac_config_sub sun4 >/dev/null 2>&1 ||
1564 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1565 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1566 { (exit 1); exit 1; }; }
1568 echo "$as_me:$LINENO: checking build system type" >&5
1569 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1570 if test "${ac_cv_build+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 ac_cv_build_alias=$build_alias
1574 test -z "$ac_cv_build_alias" &&
1575 ac_cv_build_alias=`$ac_config_guess`
1576 test -z "$ac_cv_build_alias" &&
1577 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1578 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1579 { (exit 1); exit 1; }; }
1580 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1586 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1587 echo "${ECHO_T}$ac_cv_build" >&6
1589 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594 echo "$as_me:$LINENO: checking host system type" >&5
1595 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1596 if test "${ac_cv_host+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 ac_cv_host_alias=$host_alias
1600 test -z "$ac_cv_host_alias" &&
1601 ac_cv_host_alias=$ac_cv_build_alias
1602 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1608 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1609 echo "${ECHO_T}$ac_cv_host" >&6
1611 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616 echo "$as_me:$LINENO: checking target system type" >&5
1617 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1618 if test "${ac_cv_target+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_target_alias=$target_alias
1622 test "x$ac_cv_target_alias" = "x" &&
1623 ac_cv_target_alias=$ac_cv_host_alias
1624 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1630 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1631 echo "${ECHO_T}$ac_cv_target" >&6
1632 target=$ac_cv_target
1633 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638 # The aliases save the names the user supplied, while $host etc.
1639 # will get canonicalized.
1640 test -n "$target_alias" &&
1641 test "$program_prefix$program_suffix$program_transform_name" = \
1643 program_prefix=${target_alias}-
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1651 ac_config_headers="$ac_config_headers src/gras_config.h"
1653 am__api_version="1.7"
1654 # Find a good install program. We prefer a C program (faster),
1655 # so one script is as good as another. But avoid the broken or
1656 # incompatible versions:
1657 # SysV /etc/install, /usr/sbin/install
1658 # SunOS /usr/etc/install
1659 # IRIX /sbin/install
1661 # AmigaOS /C/install, which installs bootblocks on floppy discs
1662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1665 # OS/2's system install, which has a completely different semantic
1666 # ./install, which can be erroneously created by make from ./install.sh.
1667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1669 if test -z "$INSTALL"; then
1670 if test "${ac_cv_path_install+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 # Account for people who put trailing slashes in PATH elements.
1680 ./ | .// | /cC/* | \
1681 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1682 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1685 # OSF1 and SCO ODT 3.0 have their own names for install.
1686 # Don't use installbsd from OSF since it installs stuff as root
1688 for ac_prog in ginstall scoinst install; do
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1691 if test $ac_prog = install &&
1692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1693 # AIX install. It has an incompatible calling convention.
1695 elif test $ac_prog = install &&
1696 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1697 # program-specific install script used by HP pwplus--don't use.
1700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1712 if test "${ac_cv_path_install+set}" = set; then
1713 INSTALL=$ac_cv_path_install
1715 # As a last resort, use the slow shell script. We don't cache a
1716 # path for INSTALL within a source directory, because that will
1717 # break other packages using the cache if that directory is
1718 # removed, or if the path is relative.
1719 INSTALL=$ac_install_sh
1722 echo "$as_me:$LINENO: result: $INSTALL" >&5
1723 echo "${ECHO_T}$INSTALL" >&6
1725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1726 # It thinks the first close brace ends the variable substitution.
1727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1733 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1734 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1737 echo timestamp > conftest.file
1738 # Do `set' in a subshell so we don't clobber the current shell's
1739 # arguments. Must try -L first in case configure is actually a
1740 # symlink; some systems play weird games with the mod time of symlinks
1741 # (eg FreeBSD returns the mod time of the symlink's containing
1744 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1745 if test "$*" = "X"; then
1747 set X `ls -t $srcdir/configure conftest.file`
1750 if test "$*" != "X $srcdir/configure conftest.file" \
1751 && test "$*" != "X conftest.file $srcdir/configure"; then
1753 # If neither matched, then we have a broken ls. This can happen
1754 # if, for instance, CONFIG_SHELL is bash and it inherits a
1755 # broken ls alias from the environment. This has actually
1756 # happened. Such a system could not be considered "sane".
1757 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1758 alias in your environment" >&5
1759 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1760 alias in your environment" >&2;}
1761 { (exit 1); exit 1; }; }
1764 test "$2" = conftest.file
1770 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1771 Check your system clock" >&5
1772 echo "$as_me: error: newly created file is older than distributed files!
1773 Check your system clock" >&2;}
1774 { (exit 1); exit 1; }; }
1776 echo "$as_me:$LINENO: result: yes" >&5
1777 echo "${ECHO_T}yes" >&6
1778 test "$program_prefix" != NONE &&
1779 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1780 # Use a double $ so make ignores it.
1781 test "$program_suffix" != NONE &&
1782 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1783 # Double any \ or $. echo might interpret backslashes.
1784 # By default was `s,x,x', remove it if useless.
1785 cat <<\_ACEOF >conftest.sed
1786 s/[\\$]/&&/g;s/;s,x,x,$//
1788 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1792 # expand $ac_aux_dir to an absolute path
1793 am_aux_dir=`cd $ac_aux_dir && pwd`
1795 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1796 # Use eval to expand $SHELL
1797 if eval "$MISSING --run true"; then
1798 am_missing_run="$MISSING --run "
1801 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1802 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1805 for ac_prog in gawk mawk nawk awk
1807 # Extract the first word of "$ac_prog", so it can be a program name with args.
1808 set dummy $ac_prog; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_AWK+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$AWK"; then
1815 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_AWK="$ac_prog"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 if test -n "$AWK"; then
1835 echo "$as_me:$LINENO: result: $AWK" >&5
1836 echo "${ECHO_T}$AWK" >&6
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1842 test -n "$AWK" && break
1845 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1846 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1847 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1848 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 cat >conftest.make <<\_ACEOF
1853 @echo 'ac_maketemp="$(MAKE)"'
1855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1856 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1857 if test -n "$ac_maketemp"; then
1858 eval ac_cv_prog_make_${ac_make}_set=yes
1860 eval ac_cv_prog_make_${ac_make}_set=no
1864 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1865 echo "$as_me:$LINENO: result: yes" >&5
1866 echo "${ECHO_T}yes" >&6
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1871 SET_MAKE="MAKE=${MAKE-make}"
1874 rm -rf .tst 2>/dev/null
1875 mkdir .tst 2>/dev/null
1876 if test -d .tst; then
1881 rmdir .tst 2>/dev/null
1883 # test to see if srcdir already configured
1884 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1885 test -f $srcdir/config.status; then
1886 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1887 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1888 { (exit 1); exit 1; }; }
1891 # test whether we have cygpath
1892 if test -z "$CYGPATH_W"; then
1893 if (cygpath --version) >/dev/null 2>/dev/null; then
1894 CYGPATH_W='cygpath -w'
1901 # Define the identity of the package.
1903 VERSION='0.0.040129'
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE "$PACKAGE"
1911 cat >>confdefs.h <<_ACEOF
1912 #define VERSION "$VERSION"
1915 # Some tools Automake needs.
1917 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1920 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1923 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1926 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1929 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1932 AMTAR=${AMTAR-"${am_missing_run}tar"}
1934 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1936 # Installed binaries are usually stripped using `strip' when the user
1937 # run `make install-strip'. However `strip' might not be the right
1938 # tool to use in cross-compilation environments, therefore Automake
1939 # will honor the `STRIP' environment variable to overrule this program.
1940 if test "$cross_compiling" != no; then
1941 if test -n "$ac_tool_prefix"; then
1942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}strip; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_STRIP+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 if test -n "$STRIP"; then
1950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 STRIP=$ac_cv_prog_STRIP
1969 if test -n "$STRIP"; then
1970 echo "$as_me:$LINENO: result: $STRIP" >&5
1971 echo "${ECHO_T}$STRIP" >&6
1973 echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1978 if test -z "$ac_cv_prog_STRIP"; then
1980 # Extract the first word of "strip", so it can be a program name with args.
1981 set dummy strip; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$ac_ct_STRIP"; then
1988 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997 ac_cv_prog_ac_ct_STRIP="strip"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2008 if test -n "$ac_ct_STRIP"; then
2009 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2010 echo "${ECHO_T}$ac_ct_STRIP" >&6
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2018 STRIP="$ac_cv_prog_STRIP"
2022 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2024 # We need awk for the "check" target. The system "awk" is bad on
2030 # Check whether --enable-shared or --disable-shared was given.
2031 if test "${enable_shared+set}" = set; then
2032 enableval="$enable_shared"
2033 p=${PACKAGE-default}
2035 yes) enable_shared=yes ;;
2036 no) enable_shared=no ;;
2039 # Look at the argument we got. We use all the common list separators.
2040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2041 for pkg in $enableval; do
2043 if test "X$pkg" = "X$p"; then
2054 # Check whether --enable-static or --disable-static was given.
2055 if test "${enable_static+set}" = set; then
2056 enableval="$enable_static"
2057 p=${PACKAGE-default}
2059 yes) enable_static=yes ;;
2060 no) enable_static=no ;;
2063 # Look at the argument we got. We use all the common list separators.
2064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2065 for pkg in $enableval; do
2067 if test "X$pkg" = "X$p"; then
2078 # Check whether --enable-fast-install or --disable-fast-install was given.
2079 if test "${enable_fast_install+set}" = set; then
2080 enableval="$enable_fast_install"
2081 p=${PACKAGE-default}
2083 yes) enable_fast_install=yes ;;
2084 no) enable_fast_install=no ;;
2086 enable_fast_install=no
2087 # Look at the argument we got. We use all the common list separators.
2088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2089 for pkg in $enableval; do
2091 if test "X$pkg" = "X$p"; then
2092 enable_fast_install=yes
2099 enable_fast_install=yes
2102 DEPDIR="${am__leading_dot}deps"
2104 ac_config_commands="$ac_config_commands depfiles"
2107 am_make=${MAKE-make}
2108 cat > confinc << 'END'
2113 # If we don't find an include directive, just comment out the code.
2114 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2115 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2119 # First try GNU make style include.
2120 echo "include confinc" > confmf
2121 # We grep out `Entering directory' and `Leaving directory'
2122 # messages which can occur if `w' ends up in MAKEFLAGS.
2123 # In particular we don't look at `^make:' because GNU make might
2124 # be invoked under some other name (usually "gmake"), in which
2125 # case it prints its new name instead of `make'.
2126 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2131 # Now try BSD make style include.
2132 if test "$am__include" = "#"; then
2133 echo '.include "confinc"' > confmf
2134 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2135 am__include=.include
2142 echo "$as_me:$LINENO: result: $_am_result" >&5
2143 echo "${ECHO_T}$_am_result" >&6
2144 rm -f confinc confmf
2146 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2147 if test "${enable_dependency_tracking+set}" = set; then
2148 enableval="$enable_dependency_tracking"
2151 if test "x$enable_dependency_tracking" != xno; then
2152 am_depcomp="$ac_aux_dir/depcomp"
2157 if test "x$enable_dependency_tracking" != xno; then
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172 if test -n "$ac_tool_prefix"; then
2173 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 if test -n "$CC"; then
2201 echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6
2204 echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2209 if test -z "$ac_cv_prog_CC"; then
2211 # Extract the first word of "gcc", so it can be a program name with args.
2212 set dummy gcc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$ac_ct_CC"; then
2219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 ac_cv_prog_ac_ct_CC="gcc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2238 if test -n "$ac_ct_CC"; then
2239 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2240 echo "${ECHO_T}$ac_ct_CC" >&6
2242 echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2251 if test -z "$CC"; then
2252 if test -n "$ac_tool_prefix"; then
2253 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2254 set dummy ${ac_tool_prefix}cc; ac_word=$2
2255 echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257 if test "${ac_cv_prog_CC+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 if test -n "$CC"; then
2261 ac_cv_prog_CC="$CC" # Let the user override the test.
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270 ac_cv_prog_CC="${ac_tool_prefix}cc"
2271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 if test -n "$CC"; then
2281 echo "$as_me:$LINENO: result: $CC" >&5
2282 echo "${ECHO_T}$CC" >&6
2284 echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2289 if test -z "$ac_cv_prog_CC"; then
2291 # Extract the first word of "cc", so it can be a program name with args.
2292 set dummy cc; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test -n "$ac_ct_CC"; then
2299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308 ac_cv_prog_ac_ct_CC="cc"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318 if test -n "$ac_ct_CC"; then
2319 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2320 echo "${ECHO_T}$ac_ct_CC" >&6
2322 echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6
2332 if test -z "$CC"; then
2333 # Extract the first word of "cc", so it can be a program name with args.
2334 set dummy cc; ac_word=$2
2335 echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2351 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2352 ac_prog_rejected=yes
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 if test $ac_prog_rejected = yes; then
2363 # We found a bogon in the path, so make sure we never use it.
2364 set dummy $ac_cv_prog_CC
2366 if test $# != 0; then
2367 # We chose a different compiler from the bogus one.
2368 # However, it has the same basename, so the bogon will be chosen
2369 # first if we set CC to just the basename; use the full file name.
2371 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2377 if test -n "$CC"; then
2378 echo "$as_me:$LINENO: result: $CC" >&5
2379 echo "${ECHO_T}$CC" >&6
2381 echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6
2386 if test -z "$CC"; then
2387 if test -n "$ac_tool_prefix"; then
2390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test -n "$CC"; then
2398 ac_cv_prog_CC="$CC" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 if test -n "$CC"; then
2418 echo "$as_me:$LINENO: result: $CC" >&5
2419 echo "${ECHO_T}$CC" >&6
2421 echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2425 test -n "$CC" && break
2428 if test -z "$CC"; then
2432 # Extract the first word of "$ac_prog", so it can be a program name with args.
2433 set dummy $ac_prog; ac_word=$2
2434 echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_ac_ct_CC="$ac_prog"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6
2463 echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6
2467 test -n "$ac_ct_CC" && break
2476 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2477 See \`config.log' for more details." >&5
2478 echo "$as_me: error: no acceptable C compiler found in \$PATH
2479 See \`config.log' for more details." >&2;}
2480 { (exit 1); exit 1; }; }
2482 # Provide some information about the compiler.
2483 echo "$as_me:$LINENO:" \
2484 "checking for C compiler version" >&5
2485 ac_compiler=`set X $ac_compile; echo $2`
2486 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2487 (eval $ac_compiler --version </dev/null >&5) 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }
2491 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2492 (eval $ac_compiler -v </dev/null >&5) 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }
2496 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2497 (eval $ac_compiler -V </dev/null >&5) 2>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2517 ac_clean_files_save=$ac_clean_files
2518 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2519 # Try to create an executable without -o first, disregard a.out.
2520 # It will help us diagnose broken compilers, and finding out an intuition
2522 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2523 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2524 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2526 (eval $ac_link_default) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; then
2530 # Find the output, starting from the most likely. This scheme is
2531 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2534 # Be careful to initialize this variable, since it used to be cached.
2535 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2537 # b.out is created by i960 compilers.
2538 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2540 test -f "$ac_file" || continue
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2545 # This is the source file.
2548 # We found the default executable, but exeext='' is most
2552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 # FIXME: I believe we export ac_cv_exeext for Libtool,
2554 # but it would be cool to find out if it's true. Does anybody
2555 # maintain Libtool? --akim.
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: C compiler cannot create executables
2569 See \`config.log' for more details." >&2;}
2570 { (exit 77); exit 77; }; }
2573 ac_exeext=$ac_cv_exeext
2574 echo "$as_me:$LINENO: result: $ac_file" >&5
2575 echo "${ECHO_T}$ac_file" >&6
2577 # Check the compiler produces executables we can run. If not, either
2578 # the compiler is broken, or we cross compile.
2579 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2580 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2581 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2582 # If not cross compiling, check that we can run a simple program.
2583 if test "$cross_compiling" != yes; then
2584 if { ac_try='./$ac_file'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2592 if test "$cross_compiling" = maybe; then
2595 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2596 If you meant to cross compile, use \`--host'.
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: cannot run C compiled programs.
2599 If you meant to cross compile, use \`--host'.
2600 See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2605 echo "$as_me:$LINENO: result: yes" >&5
2606 echo "${ECHO_T}yes" >&6
2608 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2609 ac_clean_files=$ac_clean_files_save
2610 # Check the compiler produces executables we can run. If not, either
2611 # the compiler is broken, or we cross compile.
2612 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2613 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2614 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2615 echo "${ECHO_T}$cross_compiling" >&6
2617 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2618 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620 (eval $ac_link) 2>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; then
2624 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2625 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2626 # work properly (i.e., refer to `conftest.exe'), while it won't with
2628 for ac_file in conftest.exe conftest conftest.*; do
2629 test -f "$ac_file" || continue
2631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2639 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2646 rm -f conftest$ac_cv_exeext
2647 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2648 echo "${ECHO_T}$ac_cv_exeext" >&6
2650 rm -f conftest.$ac_ext
2651 EXEEXT=$ac_cv_exeext
2653 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2654 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2655 if test "${ac_cv_objext+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 cat >conftest.$ac_ext <<_ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2673 rm -f conftest.o conftest.obj
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; then
2679 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2690 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2691 See \`config.log' for more details." >&5
2692 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2693 See \`config.log' for more details." >&2;}
2694 { (exit 1); exit 1; }; }
2697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2699 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2700 echo "${ECHO_T}$ac_cv_objext" >&6
2701 OBJEXT=$ac_cv_objext
2703 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2704 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2705 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 cat >conftest.$ac_ext <<_ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* 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" || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2758 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2759 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2760 GCC=`test $ac_compiler_gnu = yes && echo yes`
2761 ac_test_CFLAGS=${CFLAGS+set}
2762 ac_save_CFLAGS=$CFLAGS
2764 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2765 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2766 if test "${ac_cv_prog_cc_g+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2788 grep -v '^ *+' conftest.er1 >conftest.err
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2815 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2816 if test "$ac_test_CFLAGS" = set; then
2817 CFLAGS=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819 if test "$GCC" = yes; then
2825 if test "$GCC" = yes; then
2831 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2832 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2833 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 ac_cv_prog_cc_stdc=no
2838 cat >conftest.$ac_ext <<_ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2846 #include <sys/types.h>
2847 #include <sys/stat.h>
2848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2849 struct buf { int x; };
2850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2851 static char *e (p, i)
2857 static char *f (char * (*g) (char **, int), char **p, ...)
2862 s = g (p, va_arg (v,int));
2867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2868 function prototypes and stuff, but not '\xHH' hex character constants.
2869 These don't provoke an error unfortunately, instead are silently treated
2870 as 'x'. The following induces an error, until -std1 is added to get
2871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2872 array size at least. It's necessary to write '\x00'==0 to get something
2873 that's true only with -std1. */
2874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2876 int test (int i, double x);
2877 struct s1 {int (*f) (int a);};
2878 struct s2 {int (*f) (double a);};
2879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2890 # Don't try gcc -ansi; that turns off useful extensions and
2891 # breaks some systems' header files.
2892 # AIX -qlanglvl=ansi
2893 # Ultrix and OSF/1 -std1
2894 # HP-UX 10.20 and later -Ae
2895 # HP-UX older versions -Aa -D_HPUX_SOURCE
2896 # SVR4 -Xc -D__EXTENSIONS__
2897 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2899 CC="$ac_save_CC $ac_arg"
2900 rm -f conftest.$ac_objext
2901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2902 (eval $ac_compile) 2>conftest.er1
2904 grep -v '^ *+' conftest.er1 >conftest.err
2906 cat conftest.err >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } &&
2909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; } &&
2915 { ac_try='test -s conftest.$ac_objext'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 ac_cv_prog_cc_stdc=$ac_arg
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2928 rm -f conftest.err conftest.$ac_objext
2930 rm -f conftest.$ac_ext conftest.$ac_objext
2935 case "x$ac_cv_prog_cc_stdc" in
2937 echo "$as_me:$LINENO: result: none needed" >&5
2938 echo "${ECHO_T}none needed" >&6 ;;
2940 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2941 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2942 CC="$CC $ac_cv_prog_cc_stdc" ;;
2945 # Some people use a C++ compiler to compile C. Since we use `exit',
2946 # in C++ we need to declare it. In case someone uses the same compiler
2947 # for both compiling C and C++ we need to have the C++ compiler decide
2948 # the declaration of exit, since it's the most demanding environment.
2949 cat >conftest.$ac_ext <<_ACEOF
2954 rm -f conftest.$ac_objext
2955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956 (eval $ac_compile) 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 for ac_declaration in \
2977 'extern "C" void std::exit (int) throw (); using std::exit;' \
2978 'extern "C" void std::exit (int); using std::exit;' \
2979 'extern "C" void exit (int) throw ();' \
2980 'extern "C" void exit (int);' \
2983 cat >conftest.$ac_ext <<_ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2999 rm -f conftest.$ac_objext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3001 (eval $ac_compile) 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; } &&
3014 { ac_try='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045 (eval $ac_compile) 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 if test -n "$ac_declaration"; then
3074 echo '#ifdef __cplusplus' >>confdefs.h
3075 echo $ac_declaration >>confdefs.h
3076 echo '#endif' >>confdefs.h
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091 depcc="$CC" am_compiler_list=
3093 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3094 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3095 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3099 # We make a subdir and do the tests there. Otherwise we can end up
3100 # making bogus files that we don't know about and never remove. For
3101 # instance it was reported that on HP-UX the gcc test will end up
3102 # making a dummy file named `D' -- because `-MD' means `put the output
3105 # Copy depcomp to subdir because otherwise we won't find it if we're
3106 # using a relative directory.
3107 cp "$am_depcomp" conftest.dir
3109 # We will build objects and dependencies in a subdirectory because
3110 # it helps to detect inapplicable dependency modes. For instance
3111 # both Tru64's cc and ICC support -MD to output dependencies as a
3112 # side effect of compilation, but ICC will put the dependencies in
3113 # the current directory while Tru64 will put them in the object
3117 am_cv_CC_dependencies_compiler_type=none
3118 if test "$am_compiler_list" = ""; then
3119 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3121 for depmode in $am_compiler_list; do
3122 # Setup a source with many dependencies, because some compilers
3123 # like to wrap large dependency lists on column 80 (with \), and
3124 # we should not choose a depcomp mode which is confused by this.
3126 # We need to recreate these files for each test, as the compiler may
3127 # overwrite some of them when testing with obscure command lines.
3128 # This happens at least with the AIX C compiler.
3130 for i in 1 2 3 4 5 6; do
3131 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3134 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3138 # after this tag, mechanisms are not by side-effect, so they'll
3139 # only be used when explicitly requested
3140 if test "x$enable_dependency_tracking" = xyes; then
3148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3149 # mode. It turns out that the SunPro C++ compiler does not properly
3150 # handle `-M -o', and we need to detect this.
3151 if depmode=$depmode \
3152 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3154 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3155 >/dev/null 2>conftest.err &&
3156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3157 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3159 # icc doesn't choke on unknown options, it will just issue warnings
3160 # (even with -Werror). So we grep stderr for any message
3161 # that says an option was ignored.
3162 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3163 am_cv_CC_dependencies_compiler_type=$depmode
3172 am_cv_CC_dependencies_compiler_type=none
3176 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3177 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3183 test "x$enable_dependency_tracking" != xno \
3184 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3186 am__fastdepCC_FALSE='#'
3188 am__fastdepCC_TRUE='#'
3189 am__fastdepCC_FALSE=
3193 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3194 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3195 if test "${lt_cv_path_SED+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 # Loop through the user's path and test for sed and gsed.
3199 # Then use that list of sed's as ones to test for truncation.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for lt_ac_prog in sed gsed; do
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3208 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3215 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3216 # along with /bin/sed that truncates output.
3217 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3218 test ! -f $lt_ac_sed && break
3219 cat /dev/null > conftest.in
3221 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3222 # Check for GNU sed and select it if it is found.
3223 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3224 lt_cv_path_SED=$lt_ac_sed
3228 cat conftest.in conftest.in >conftest.tmp
3229 mv conftest.tmp conftest.in
3230 cp conftest.in conftest.nl
3232 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3233 cmp -s conftest.out conftest.nl || break
3234 # 10000 chars as input seems more than enough
3235 test $lt_ac_count -gt 10 && break
3236 lt_ac_count=`expr $lt_ac_count + 1`
3237 if test $lt_ac_count -gt $lt_ac_max; then
3238 lt_ac_max=$lt_ac_count
3239 lt_cv_path_SED=$lt_ac_sed
3247 echo "$as_me:$LINENO: result: $SED" >&5
3248 echo "${ECHO_T}$SED" >&6
3250 echo "$as_me:$LINENO: checking for egrep" >&5
3251 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3252 if test "${ac_cv_prog_egrep+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3256 then ac_cv_prog_egrep='grep -E'
3257 else ac_cv_prog_egrep='egrep'
3260 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3261 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3262 EGREP=$ac_cv_prog_egrep
3266 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3267 if test "${with_gnu_ld+set}" = set; then
3268 withval="$with_gnu_ld"
3269 test "$withval" = no || with_gnu_ld=yes
3274 if test "$GCC" = yes; then
3275 # Check if gcc -print-prog-name=ld gives a path.
3276 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3277 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3280 # gcc leaves a trailing carriage return which upsets mingw
3281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3286 # Accept absolute paths.
3288 re_direlt='/[^/][^/]*/\.\./'
3289 # Canonicalize the pathname of ld
3290 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3291 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3292 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3294 test -z "$LD" && LD="$ac_prog"
3297 # If it fails, then pretend we aren't using GCC.
3301 # If it is relative, then search for the first ld in PATH.
3305 elif test "$with_gnu_ld" = yes; then
3306 echo "$as_me:$LINENO: checking for GNU ld" >&5
3307 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3309 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3310 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3312 if test "${lt_cv_path_LD+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 if test -z "$LD"; then
3316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3317 for ac_dir in $PATH; do
3319 test -z "$ac_dir" && ac_dir=.
3320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3321 lt_cv_path_LD="$ac_dir/$ac_prog"
3322 # Check to see if the program is GNU ld. I'd rather use --version,
3323 # but apparently some GNU ld's only accept -v.
3324 # Break only if it was the GNU/non-GNU ld that we prefer.
3325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3326 *GNU* | *'with BFD'*)
3327 test "$with_gnu_ld" != no && break
3330 test "$with_gnu_ld" != yes && break
3337 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3342 if test -n "$LD"; then
3343 echo "$as_me:$LINENO: result: $LD" >&5
3344 echo "${ECHO_T}$LD" >&6
3346 echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3349 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3350 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3351 { (exit 1); exit 1; }; }
3352 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3353 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3354 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3358 case `$LD -v 2>&1 </dev/null` in
3359 *GNU* | *'with BFD'*)
3360 lt_cv_prog_gnu_ld=yes
3363 lt_cv_prog_gnu_ld=no
3367 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3368 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3369 with_gnu_ld=$lt_cv_prog_gnu_ld
3372 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3373 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3374 if test "${lt_cv_ld_reload_flag+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 lt_cv_ld_reload_flag='-r'
3379 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3380 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3381 reload_flag=$lt_cv_ld_reload_flag
3382 case $reload_flag in
3384 *) reload_flag=" $reload_flag" ;;
3386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3388 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3389 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3390 if test "${lt_cv_path_NM+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 if test -n "$NM"; then
3394 # Let the user override the test.
3397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3398 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3400 test -z "$ac_dir" && ac_dir=.
3401 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3402 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3403 # Check to see if the nm accepts a BSD-compat flag.
3404 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3405 # nm: unknown option "B" ignored
3406 # Tru64's nm complains that /dev/null is an invalid object file
3407 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3408 */dev/null* | *'Invalid file or object type'*)
3409 lt_cv_path_NM="$tmp_nm -B"
3413 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3415 lt_cv_path_NM="$tmp_nm -p"
3419 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3420 continue # so that we can try to find one that supports BSD flags
3427 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3430 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3431 echo "${ECHO_T}$lt_cv_path_NM" >&6
3434 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3435 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3437 if test "$LN_S" = "ln -s"; then
3438 echo "$as_me:$LINENO: result: yes" >&5
3439 echo "${ECHO_T}yes" >&6
3441 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3442 echo "${ECHO_T}no, using $LN_S" >&6
3445 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3446 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3447 if test "${lt_cv_deplibs_check_method+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 lt_cv_file_magic_cmd='$MAGIC_CMD'
3451 lt_cv_file_magic_test_file=
3452 lt_cv_deplibs_check_method='unknown'
3453 # Need to set the preceding variable on all platforms that support
3454 # interlibrary dependencies.
3455 # 'none' -- dependencies not supported.
3456 # `unknown' -- same as none, but documents that we really don't know.
3457 # 'pass_all' -- all dependencies passed with no checks.
3458 # 'test_compile' -- check by making test program.
3459 # 'file_magic [[regex]]' -- check by looking for files in library path
3460 # which responds to the $file_magic_cmd with a given extended regex.
3461 # If you have `file' or equivalent on your system and you're not sure
3462 # whether `pass_all' will *always* work, you probably want this one.
3466 lt_cv_deplibs_check_method=pass_all
3470 lt_cv_deplibs_check_method=pass_all
3474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3475 lt_cv_file_magic_cmd='/usr/bin/file -L'
3476 lt_cv_file_magic_test_file=/shlib/libc.so
3480 # win32_libid is a shell function defined in ltmain.sh
3481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3482 lt_cv_file_magic_cmd='win32_libid'
3486 # Base MSYS/MinGW do not provide the 'file' command needed by
3487 # win32_libid shell function, so use a weaker test based on 'objdump'.
3488 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3489 lt_cv_file_magic_cmd='$OBJDUMP -f'
3492 darwin* | rhapsody*)
3493 lt_cv_deplibs_check_method=pass_all
3496 freebsd* | kfreebsd*-gnu)
3497 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3500 # Not sure whether the presence of OpenBSD here was a mistake.
3501 # Let's accept both of them until this is cleared up.
3502 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3503 lt_cv_file_magic_cmd=/usr/bin/file
3504 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3508 lt_cv_deplibs_check_method=pass_all
3513 lt_cv_deplibs_check_method=pass_all
3516 hpux10.20* | hpux11*)
3517 lt_cv_file_magic_cmd=/usr/bin/file
3520 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3521 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3524 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]'
3525 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3528 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3529 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3534 irix5* | irix6* | nonstopux*)
3536 *-32|*"-32 ") libmagic=32-bit;;
3537 *-n32|*"-n32 ") libmagic=N32;;
3538 *-64|*"-64 ") libmagic=64-bit;;
3539 *) libmagic=never-match;;
3541 lt_cv_deplibs_check_method=pass_all
3544 # This must be Linux ELF.
3546 lt_cv_deplibs_check_method=pass_all
3550 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3559 lt_cv_file_magic_cmd=/usr/bin/file
3560 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3564 lt_cv_deplibs_check_method=unknown
3568 lt_cv_file_magic_cmd=/usr/bin/file
3569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3573 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3577 osf3* | osf4* | osf5*)
3578 lt_cv_deplibs_check_method=pass_all
3582 lt_cv_deplibs_check_method=pass_all
3586 lt_cv_deplibs_check_method=pass_all
3589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3590 case $host_vendor in
3592 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]'
3593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3596 lt_cv_deplibs_check_method=pass_all
3599 lt_cv_file_magic_cmd='/bin/file'
3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3603 lt_cv_file_magic_cmd='/bin/file'
3604 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3605 lt_cv_file_magic_test_file=/lib/libc.so
3608 lt_cv_deplibs_check_method=pass_all
3613 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3614 lt_cv_deplibs_check_method=pass_all
3619 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3620 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3621 file_magic_cmd=$lt_cv_file_magic_cmd
3622 deplibs_check_method=$lt_cv_deplibs_check_method
3623 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3628 # If no C compiler was specified, use CC.
3631 # Allow CC to be a program name with arguments.
3635 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3636 if test "${enable_libtool_lock+set}" = set; then
3637 enableval="$enable_libtool_lock"
3640 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3642 # Some flags need to be propagated to the compiler or linker for good
3646 # Find out which ABI we are using.
3647 echo 'int i;' > conftest.$ac_ext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; then
3653 case `/usr/bin/file conftest.$ac_objext` in
3665 # Find out which ABI we are using.
3666 echo '#line 3666 "configure"' > conftest.$ac_ext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; then
3672 if test "$lt_cv_prog_gnu_ld" = yes; then
3673 case `/usr/bin/file conftest.$ac_objext` in
3675 LD="${LD-ld} -melf32bsmip"
3678 LD="${LD-ld} -melf32bmipn32"
3681 LD="${LD-ld} -melf64bmip"
3685 case `/usr/bin/file conftest.$ac_objext` in
3701 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3702 # Find out which ABI we are using.
3703 echo 'int i;' > conftest.$ac_ext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; then
3709 case "`/usr/bin/file conftest.o`" in
3713 LD="${LD-ld} -m elf_i386"
3715 ppc64-*linux*|powerpc64-*linux*)
3716 LD="${LD-ld} -m elf32ppclinux"
3719 LD="${LD-ld} -m elf_s390"
3722 LD="${LD-ld} -m elf32_sparc"
3729 LD="${LD-ld} -m elf_x86_64"
3731 ppc*-*linux*|powerpc*-*linux*)
3732 LD="${LD-ld} -m elf64ppc"
3735 LD="${LD-ld} -m elf64_s390"
3738 LD="${LD-ld} -m elf64_sparc"
3748 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3749 SAVE_CFLAGS="$CFLAGS"
3750 CFLAGS="$CFLAGS -belf"
3751 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3752 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3753 if test "${lt_cv_cc_needs_belf+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 cat >conftest.$ac_ext <<_ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3777 rm -f conftest.$ac_objext conftest$ac_exeext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779 (eval $ac_link) 2>conftest.er1
3781 grep -v '^ *+' conftest.er1 >conftest.err
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try='test -s conftest$ac_exeext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 lt_cv_cc_needs_belf=yes
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 lt_cv_cc_needs_belf=no
3805 rm -f conftest.err conftest.$ac_objext \
3806 conftest$ac_exeext conftest.$ac_ext
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3815 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3816 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3817 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3818 CFLAGS="$SAVE_CFLAGS"
3824 need_locks="$enable_libtool_lock"
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3838 if test -z "$CPP"; then
3839 if test "${ac_cv_prog_CPP+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 # Double quotes because CPP needs to be expanded
3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3846 for ac_c_preproc_warn_flag in '' yes
3848 # Use a header file that comes with gcc, so configuring glibc
3849 # with a fresh cross-compiler works.
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851 # <limits.h> exists even on freestanding compilers.
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
3853 # not just through cpp. "Syntax error" is here to catch this case.
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3861 # include <limits.h>
3863 # include <assert.h>
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3870 grep -v '^ *+' conftest.er1 >conftest.err
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev/null; then
3875 if test -s conftest.err; then
3876 ac_cpp_err=$ac_c_preproc_warn_flag
3877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3884 if test -z "$ac_cpp_err"; then
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 # Broken: fails on valid input.
3893 rm -f conftest.err conftest.$ac_ext
3895 # OK, works on sane cases. Now check whether non-existent headers
3896 # can be detected and how.
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3903 #include <ac_nonexistent.h>
3905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } >/dev/null; then
3913 if test -s conftest.err; then
3914 ac_cpp_err=$ac_c_preproc_warn_flag
3915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3922 if test -z "$ac_cpp_err"; then
3923 # Broken: success on invalid input.
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 # Passes both tests.
3933 rm -f conftest.err conftest.$ac_ext
3936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3937 rm -f conftest.err conftest.$ac_ext
3938 if $ac_preproc_ok; then
3950 echo "$as_me:$LINENO: result: $CPP" >&5
3951 echo "${ECHO_T}$CPP" >&6
3953 for ac_c_preproc_warn_flag in '' yes
3955 # Use a header file that comes with gcc, so configuring glibc
3956 # with a fresh cross-compiler works.
3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 # <limits.h> exists even on freestanding compilers.
3959 # On the NeXT, cc -E runs the code through the compiler's parser,
3960 # not just through cpp. "Syntax error" is here to catch this case.
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3968 # include <limits.h>
3970 # include <assert.h>
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3977 grep -v '^ *+' conftest.er1 >conftest.err
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } >/dev/null; then
3982 if test -s conftest.err; then
3983 ac_cpp_err=$ac_c_preproc_warn_flag
3984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3991 if test -z "$ac_cpp_err"; then
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 # Broken: fails on valid input.
4000 rm -f conftest.err conftest.$ac_ext
4002 # OK, works on sane cases. Now check whether non-existent headers
4003 # can be detected and how.
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <ac_nonexistent.h>
4012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } >/dev/null; then
4020 if test -s conftest.err; then
4021 ac_cpp_err=$ac_c_preproc_warn_flag
4022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4029 if test -z "$ac_cpp_err"; then
4030 # Broken: success on invalid input.
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 # Passes both tests.
4040 rm -f conftest.err conftest.$ac_ext
4043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044 rm -f conftest.err conftest.$ac_ext
4045 if $ac_preproc_ok; then
4048 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4049 See \`config.log' for more details." >&5
4050 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4051 See \`config.log' for more details." >&2;}
4052 { (exit 1); exit 1; }; }
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4064 if test "${ac_cv_header_stdc+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 cat >conftest.$ac_ext <<_ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>conftest.er1
4090 grep -v '^ *+' conftest.er1 >conftest.err
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 ac_cv_header_stdc=yes
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 ac_cv_header_stdc=no
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116 if test $ac_cv_header_stdc = yes; then
4117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4118 cat >conftest.$ac_ext <<_ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128 $EGREP "memchr" >/dev/null 2>&1; then
4131 ac_cv_header_stdc=no
4137 if test $ac_cv_header_stdc = yes; then
4138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 $EGREP "free" >/dev/null 2>&1; then
4152 ac_cv_header_stdc=no
4158 if test $ac_cv_header_stdc = yes; then
4159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4160 if test "$cross_compiling" = yes; then
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4170 #if ((' ' & 0x0FF) == 0x020)
4171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4174 # define ISLOWER(c) \
4175 (('a' <= (c) && (c) <= 'i') \
4176 || ('j' <= (c) && (c) <= 'r') \
4177 || ('s' <= (c) && (c) <= 'z'))
4178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4186 for (i = 0; i < 256; i++)
4187 if (XOR (islower (i), ISLOWER (i))
4188 || toupper (i) != TOUPPER (i))
4193 rm -f conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195 (eval $ac_link) 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4206 echo "$as_me: program exited with status $ac_status" >&5
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_cv_header_stdc=no
4213 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4217 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4219 if test $ac_cv_header_stdc = yes; then
4221 cat >>confdefs.h <<\_ACEOF
4222 #define STDC_HEADERS 1
4227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238 inttypes.h stdint.h unistd.h
4240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 echo "$as_me:$LINENO: checking for $ac_header" >&5
4242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 $ac_includes_default
4254 #include <$ac_header>
4256 rm -f conftest.$ac_objext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258 (eval $ac_compile) 2>conftest.er1
4260 grep -v '^ *+' conftest.er1 >conftest.err
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 eval "$as_ac_Header=yes"
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 eval "$as_ac_Header=no"
4284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4289 cat >>confdefs.h <<_ACEOF
4290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4299 for ac_header in dlfcn.h
4301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303 echo "$as_me:$LINENO: checking for $ac_header" >&5
4304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4311 # Is the header compilable?
4312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 $ac_includes_default
4321 #include <$ac_header>
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325 (eval $ac_compile) 2>conftest.er1
4327 grep -v '^ *+' conftest.er1 >conftest.err
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; } &&
4338 { ac_try='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_header_compiler=yes
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 ac_header_compiler=no
4351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4353 echo "${ECHO_T}$ac_header_compiler" >&6
4355 # Is the header present?
4356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4358 cat >conftest.$ac_ext <<_ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 #include <$ac_header>
4366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } >/dev/null; then
4374 if test -s conftest.err; then
4375 ac_cpp_err=$ac_c_preproc_warn_flag
4376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4383 if test -z "$ac_cpp_err"; then
4384 ac_header_preproc=yes
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 ac_header_preproc=no
4391 rm -f conftest.err conftest.$ac_ext
4392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4393 echo "${ECHO_T}$ac_header_preproc" >&6
4395 # So? What about this header?
4396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4402 ac_header_preproc=yes
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4419 ## ----------------------------------------- ##
4420 ## Report this to martin.quinson@ens-lyon.fr ##
4421 ## ----------------------------------------- ##
4424 sed "s/^/$as_me: WARNING: /" >&2
4427 echo "$as_me:$LINENO: checking for $ac_header" >&5
4428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 eval "$as_ac_Header=\$ac_header_preproc"
4434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4439 cat >>confdefs.h <<_ACEOF
4440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4448 ac_cpp='$CXXCPP $CPPFLAGS'
4449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4452 if test -n "$ac_tool_prefix"; then
4453 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_prog_CXX+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 if test -n "$CXX"; then
4463 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 if test -n "$CXX"; then
4483 echo "$as_me:$LINENO: result: $CXX" >&5
4484 echo "${ECHO_T}$CXX" >&6
4486 echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4490 test -n "$CXX" && break
4493 if test -z "$CXX"; then
4495 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4497 # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 if test -n "$ac_ct_CXX"; then
4505 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_ac_ct_CXX="$ac_prog"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4524 if test -n "$ac_ct_CXX"; then
4525 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4526 echo "${ECHO_T}$ac_ct_CXX" >&6
4528 echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6
4532 test -n "$ac_ct_CXX" && break
4534 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4540 # Provide some information about the compiler.
4541 echo "$as_me:$LINENO:" \
4542 "checking for C++ compiler version" >&5
4543 ac_compiler=`set X $ac_compile; echo $2`
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4545 (eval $ac_compiler --version </dev/null >&5) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }
4549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4550 (eval $ac_compiler -v </dev/null >&5) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }
4554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4555 (eval $ac_compiler -V </dev/null >&5) 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }
4560 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4561 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4562 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>conftest.er1
4587 grep -v '^ *+' conftest.er1 >conftest.err
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4615 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4616 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4617 GXX=`test $ac_compiler_gnu = yes && echo yes`
4618 ac_test_CXXFLAGS=${CXXFLAGS+set}
4619 ac_save_CXXFLAGS=$CXXFLAGS
4621 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4623 if test "${ac_cv_prog_cxx_g+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 cat >conftest.$ac_ext <<_ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_prog_cxx_g=yes
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4673 if test "$ac_test_CXXFLAGS" = set; then
4674 CXXFLAGS=$ac_save_CXXFLAGS
4675 elif test $ac_cv_prog_cxx_g = yes; then
4676 if test "$GXX" = yes; then
4682 if test "$GXX" = yes; then
4688 for ac_declaration in \
4690 'extern "C" void std::exit (int) throw (); using std::exit;' \
4691 'extern "C" void std::exit (int); using std::exit;' \
4692 'extern "C" void exit (int) throw ();' \
4693 'extern "C" void exit (int);' \
4696 cat >conftest.$ac_ext <<_ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4760 grep -v '^ *+' conftest.er1 >conftest.err
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786 if test -n "$ac_declaration"; then
4787 echo '#ifdef __cplusplus' >>confdefs.h
4788 echo $ac_declaration >>confdefs.h
4789 echo '#endif' >>confdefs.h
4793 ac_cpp='$CXXCPP $CPPFLAGS'
4794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4798 depcc="$CXX" am_compiler_list=
4800 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4801 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4802 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4806 # We make a subdir and do the tests there. Otherwise we can end up
4807 # making bogus files that we don't know about and never remove. For
4808 # instance it was reported that on HP-UX the gcc test will end up
4809 # making a dummy file named `D' -- because `-MD' means `put the output
4812 # Copy depcomp to subdir because otherwise we won't find it if we're
4813 # using a relative directory.
4814 cp "$am_depcomp" conftest.dir
4816 # We will build objects and dependencies in a subdirectory because
4817 # it helps to detect inapplicable dependency modes. For instance
4818 # both Tru64's cc and ICC support -MD to output dependencies as a
4819 # side effect of compilation, but ICC will put the dependencies in
4820 # the current directory while Tru64 will put them in the object
4824 am_cv_CXX_dependencies_compiler_type=none
4825 if test "$am_compiler_list" = ""; then
4826 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4828 for depmode in $am_compiler_list; do
4829 # Setup a source with many dependencies, because some compilers
4830 # like to wrap large dependency lists on column 80 (with \), and
4831 # we should not choose a depcomp mode which is confused by this.
4833 # We need to recreate these files for each test, as the compiler may
4834 # overwrite some of them when testing with obscure command lines.
4835 # This happens at least with the AIX C compiler.
4837 for i in 1 2 3 4 5 6; do
4838 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4841 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4845 # after this tag, mechanisms are not by side-effect, so they'll
4846 # only be used when explicitly requested
4847 if test "x$enable_dependency_tracking" = xyes; then
4855 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4856 # mode. It turns out that the SunPro C++ compiler does not properly
4857 # handle `-M -o', and we need to detect this.
4858 if depmode=$depmode \
4859 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4861 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4862 >/dev/null 2>conftest.err &&
4863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4864 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4866 # icc doesn't choke on unknown options, it will just issue warnings
4867 # (even with -Werror). So we grep stderr for any message
4868 # that says an option was ignored.
4869 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4870 am_cv_CXX_dependencies_compiler_type=$depmode
4879 am_cv_CXX_dependencies_compiler_type=none
4883 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4884 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4885 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4890 test "x$enable_dependency_tracking" != xno \
4891 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4892 am__fastdepCXX_TRUE=
4893 am__fastdepCXX_FALSE='#'
4895 am__fastdepCXX_TRUE='#'
4896 am__fastdepCXX_FALSE=
4901 ac_cpp='$CXXCPP $CPPFLAGS'
4902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4905 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4906 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4907 if test -z "$CXXCPP"; then
4908 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 # Double quotes because CXXCPP needs to be expanded
4912 for CXXCPP in "$CXX -E" "/lib/cpp"
4915 for ac_cxx_preproc_warn_flag in '' yes
4917 # Use a header file that comes with gcc, so configuring glibc
4918 # with a fresh cross-compiler works.
4919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920 # <limits.h> exists even on freestanding compilers.
4921 # On the NeXT, cc -E runs the code through the compiler's parser,
4922 # not just through cpp. "Syntax error" is here to catch this case.
4923 cat >conftest.$ac_ext <<_ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4930 # include <limits.h>
4932 # include <assert.h>
4936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4939 grep -v '^ *+' conftest.er1 >conftest.err
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } >/dev/null; then
4944 if test -s conftest.err; then
4945 ac_cpp_err=$ac_cxx_preproc_warn_flag
4946 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4953 if test -z "$ac_cpp_err"; then
4956 echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4959 # Broken: fails on valid input.
4962 rm -f conftest.err conftest.$ac_ext
4964 # OK, works on sane cases. Now check whether non-existent headers
4965 # can be detected and how.
4966 cat >conftest.$ac_ext <<_ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 #include <ac_nonexistent.h>
4974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4977 grep -v '^ *+' conftest.er1 >conftest.err
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } >/dev/null; then
4982 if test -s conftest.err; then
4983 ac_cpp_err=$ac_cxx_preproc_warn_flag
4984 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4991 if test -z "$ac_cpp_err"; then
4992 # Broken: success on invalid input.
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4998 # Passes both tests.
5002 rm -f conftest.err conftest.$ac_ext
5005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5006 rm -f conftest.err conftest.$ac_ext
5007 if $ac_preproc_ok; then
5012 ac_cv_prog_CXXCPP=$CXXCPP
5015 CXXCPP=$ac_cv_prog_CXXCPP
5017 ac_cv_prog_CXXCPP=$CXXCPP
5019 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5020 echo "${ECHO_T}$CXXCPP" >&6
5022 for ac_cxx_preproc_warn_flag in '' yes
5024 # Use a header file that comes with gcc, so configuring glibc
5025 # with a fresh cross-compiler works.
5026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027 # <limits.h> exists even on freestanding compilers.
5028 # On the NeXT, cc -E runs the code through the compiler's parser,
5029 # not just through cpp. "Syntax error" is here to catch this case.
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5037 # include <limits.h>
5039 # include <assert.h>
5043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5046 grep -v '^ *+' conftest.er1 >conftest.err
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } >/dev/null; then
5051 if test -s conftest.err; then
5052 ac_cpp_err=$ac_cxx_preproc_warn_flag
5053 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5060 if test -z "$ac_cpp_err"; then
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5066 # Broken: fails on valid input.
5069 rm -f conftest.err conftest.$ac_ext
5071 # OK, works on sane cases. Now check whether non-existent headers
5072 # can be detected and how.
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <ac_nonexistent.h>
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5084 grep -v '^ *+' conftest.er1 >conftest.err
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_cxx_preproc_warn_flag
5091 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5098 if test -z "$ac_cpp_err"; then
5099 # Broken: success on invalid input.
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 # Passes both tests.
5109 rm -f conftest.err conftest.$ac_ext
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.err conftest.$ac_ext
5114 if $ac_preproc_ok; then
5117 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5118 See \`config.log' for more details." >&5
5119 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5120 See \`config.log' for more details." >&2;}
5121 { (exit 1); exit 1; }; }
5125 ac_cpp='$CXXCPP $CPPFLAGS'
5126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5132 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5133 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5135 if test -n "$ac_tool_prefix"; then
5136 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_prog_F77+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 if test -n "$F77"; then
5146 ac_cv_prog_F77="$F77" # Let the user override the test.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 if test -n "$F77"; then
5166 echo "$as_me:$LINENO: result: $F77" >&5
5167 echo "${ECHO_T}$F77" >&6
5169 echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6
5173 test -n "$F77" && break
5176 if test -z "$F77"; then
5178 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5180 # Extract the first word of "$ac_prog", so it can be a program name with args.
5181 set dummy $ac_prog; ac_word=$2
5182 echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 if test -n "$ac_ct_F77"; then
5188 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_ac_ct_F77="$ac_prog"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5207 if test -n "$ac_ct_F77"; then
5208 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5209 echo "${ECHO_T}$ac_ct_F77" >&6
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5215 test -n "$ac_ct_F77" && break
5222 # Provide some information about the compiler.
5223 echo "$as_me:5223:" \
5224 "checking for Fortran 77 compiler version" >&5
5225 ac_compiler=`set X $ac_compile; echo $2`
5226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5227 (eval $ac_compiler --version </dev/null >&5) 2>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5232 (eval $ac_compiler -v </dev/null >&5) 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }
5236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5237 (eval $ac_compiler -V </dev/null >&5) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5243 # If we don't use `.F' as extension, the preprocessor is not run on the
5244 # input file. (Note that this only needs to work for GNU compilers.)
5247 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5248 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5249 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 cat >conftest.$ac_ext <<_ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5292 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5293 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5295 ac_test_FFLAGS=${FFLAGS+set}
5296 ac_save_FFLAGS=$FFLAGS
5298 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5299 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5300 if test "${ac_cv_prog_f77_g+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 cat >conftest.$ac_ext <<_ACEOF
5309 rm -f conftest.$ac_objext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5311 (eval $ac_compile) 2>conftest.er1
5313 grep -v '^ *+' conftest.er1 >conftest.err
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_cv_prog_f77_g=yes
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5340 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5341 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5342 if test "$ac_test_FFLAGS" = set; then
5343 FFLAGS=$ac_save_FFLAGS
5344 elif test $ac_cv_prog_f77_g = yes; then
5345 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5351 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5358 G77=`test $ac_compiler_gnu = yes && echo yes`
5360 ac_cpp='$CPP $CPPFLAGS'
5361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5367 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5369 # find the maximum length of command line arguments
5370 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5371 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5372 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 # On DJGPP, this test can blow up pretty badly due to problems in libc
5381 # (any single argument exceeding 2000 bytes causes a buffer overrun
5382 # during glob expansion). Even if it were fixed, the result of this
5383 # check would be larger than it should be.
5384 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5388 # Under GNU Hurd, this test is not required because there is
5389 # no limit to the length of command line arguments.
5390 # Libtool will interpret -1 as no limit whatsoever
5391 lt_cv_sys_max_cmd_len=-1;
5395 # On Win9x/ME, this test blows up -- it succeeds, but takes
5396 # about 5 minutes as the teststring grows exponentially.
5397 # Worse, since 9x/ME are not pre-emptively multitasking,
5398 # you end up with a "frozen" computer, even though with patience
5399 # the test eventually succeeds (with a max line length of 256k).
5400 # Instead, let's just punt: use the minimum linelength reported by
5401 # all of the supported platforms: 8192 (on NT/2K/XP).
5402 lt_cv_sys_max_cmd_len=8192;
5406 # On AmigaOS with pdksh, this test takes hours, literally.
5407 # So we just punt and use a minimum line length of 8192.
5408 lt_cv_sys_max_cmd_len=8192;
5412 # If test is not a shell built-in, we'll probably end up computing a
5413 # maximum length that is only half of the actual maximum length, but
5415 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5416 = "XX$testring") >/dev/null 2>&1 &&
5417 new_result=`expr "X$testring" : ".*" 2>&1` &&
5418 lt_cv_sys_max_cmd_len=$new_result &&
5419 test $i != 17 # 1/2 MB should be enough
5422 testring=$testring$testring
5425 # Add a significant safety factor because C++ compilers can tack on massive
5426 # amounts of additional arguments before passing them to the linker.
5427 # It appears as though 1/2 is a usable value.
5428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5434 if test -n $lt_cv_sys_max_cmd_len ; then
5435 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5436 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5438 echo "$as_me:$LINENO: result: none" >&5
5439 echo "${ECHO_T}none" >&6
5445 # Check for command to grab the raw symbol name followed by C symbol from nm.
5446 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5447 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5448 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 # These are sane defaults that work on at least a few old systems.
5453 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5455 # Character class describing NM global symbol codes.
5456 symcode='[BCDEGRST]'
5458 # Regexp to match symbols that can be accessed directly from C.
5459 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5461 # Transform the above into a raw symbol and a C symbol.
5462 symxfrm='\1 \2\3 \3'
5464 # Transform an extracted symbol line into a proper C declaration
5465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5467 # Transform an extracted symbol line into symbol name and symbol address
5468 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'"
5470 # Define system-specific variables.
5475 cygwin* | mingw* | pw32*)
5476 symcode='[ABCDGISTW]'
5478 hpux*) # Its linker distinguishes data from code symbols
5479 if test "$host_cpu" = ia64; then
5480 symcode='[ABCDEGRST]'
5482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5483 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'"
5486 symcode='[BCDEGRST]'
5489 symcode='[BCDEGQRST]'
5499 # Handle CRLF in mingw tool chain
5503 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5507 # If we're using GNU nm, then use its standard symbol codes.
5508 case `$NM -V 2>&1` in
5509 *GNU* | *'with BFD'*)
5510 symcode='[ABCDGIRSTW]' ;;
5513 # Try without a prefix undercore, then with it.
5514 for ac_symprfx in "" "_"; do
5516 # Write the raw and C identifiers.
5517 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5519 # Check to see that the pipe works correctly.
5523 cat > conftest.$ac_ext <<EOF
5528 void nm_test_func(){}
5532 int main(){nm_test_var='a';nm_test_func();return(0);}
5535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5536 (eval $ac_compile) 2>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; then
5540 # Now try to grab the symbols.
5542 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5543 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && test -s "$nlist"; then
5547 # Try sorting and uniquifying the output.
5548 if sort "$nlist" | uniq > "$nlist"T; then
5549 mv -f "$nlist"T "$nlist"
5554 # Make sure that we snagged all the symbols we need.
5555 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5556 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5557 cat <<EOF > conftest.$ac_ext
5563 # Now generate the symbol file.
5564 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5566 cat <<EOF >> conftest.$ac_ext
5567 #if defined (__STDC__) && __STDC__
5568 # define lt_ptr_t void *
5570 # define lt_ptr_t char *
5574 /* The mapping between symbol names and symbols. */
5579 lt_preloaded_symbols[] =
5582 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5583 cat <<\EOF >> conftest.$ac_ext
5591 # Now try linking the two files.
5592 mv conftest.$ac_objext conftstm.$ac_objext
5593 lt_save_LIBS="$LIBS"
5594 lt_save_CFLAGS="$CFLAGS"
5595 LIBS="conftstm.$ac_objext"
5596 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5604 LIBS="$lt_save_LIBS"
5605 CFLAGS="$lt_save_CFLAGS"
5607 echo "cannot find nm_test_func in $nlist" >&5
5610 echo "cannot find nm_test_var in $nlist" >&5
5613 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5616 echo "$progname: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5619 rm -f conftest* conftst*
5621 # Do not use the global_symbol_pipe unless it works.
5622 if test "$pipe_works" = yes; then
5625 lt_cv_sys_global_symbol_pipe=
5631 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5632 lt_cv_sys_global_symbol_to_cdecl=
5634 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5635 echo "$as_me:$LINENO: result: failed" >&5
5636 echo "${ECHO_T}failed" >&6
5638 echo "$as_me:$LINENO: result: ok" >&5
5639 echo "${ECHO_T}ok" >&6
5642 echo "$as_me:$LINENO: checking for objdir" >&5
5643 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5644 if test "${lt_cv_objdir+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 rm -f .libs 2>/dev/null
5648 mkdir .libs 2>/dev/null
5649 if test -d .libs; then
5652 # MS-DOS does not allow filenames that begin with a dot.
5655 rmdir .libs 2>/dev/null
5657 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5658 echo "${ECHO_T}$lt_cv_objdir" >&6
5659 objdir=$lt_cv_objdir
5667 # AIX sometimes has problems with the GCC collect2 program. For some
5668 # reason, if we set the COLLECT_NAMES environment variable, the problems
5669 # vanish in a puff of smoke.
5670 if test "X${COLLECT_NAMES+set}" != Xset; then
5672 export COLLECT_NAMES
5677 # Sed substitution that helps us do robust quoting. It backslashifies
5678 # metacharacters that are still active within double-quoted strings.
5679 Xsed='sed -e s/^X//'
5680 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5682 # Same as above, but do not quote variable references.
5683 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5685 # Sed substitution to delay expansion of an escaped shell variable in a
5686 # double_quote_subst'ed string.
5687 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5689 # Sed substitution to avoid accidental globbing in evaled expressions
5690 no_glob_subst='s/\*/\\\*/g'
5696 default_ofile=libtool
5697 can_build_shared=yes
5699 # All known linkers require a `.a' archive for static linking (except M$VC,
5700 # which needs '.lib').
5702 ltmain="$ac_aux_dir/ltmain.sh"
5703 ofile="$default_ofile"
5704 with_gnu_ld="$lt_cv_prog_gnu_ld"
5706 if test -n "$ac_tool_prefix"; then
5707 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5708 set dummy ${ac_tool_prefix}ar; ac_word=$2
5709 echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5711 if test "${ac_cv_prog_AR+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 if test -n "$AR"; then
5715 ac_cv_prog_AR="$AR" # Let the user override the test.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_AR="${ac_tool_prefix}ar"
5725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 if test -n "$AR"; then
5735 echo "$as_me:$LINENO: result: $AR" >&5
5736 echo "${ECHO_T}$AR" >&6
5738 echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6
5743 if test -z "$ac_cv_prog_AR"; then
5745 # Extract the first word of "ar", so it can be a program name with args.
5746 set dummy ar; ac_word=$2
5747 echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5749 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 if test -n "$ac_ct_AR"; then
5753 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762 ac_cv_prog_ac_ct_AR="ar"
5763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5772 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5773 if test -n "$ac_ct_AR"; then
5774 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5775 echo "${ECHO_T}$ac_ct_AR" >&6
5777 echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5786 if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5789 echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5791 if test "${ac_cv_prog_RANLIB+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 if test -n "$RANLIB"; then
5795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 RANLIB=$ac_cv_prog_RANLIB
5814 if test -n "$RANLIB"; then
5815 echo "$as_me:$LINENO: result: $RANLIB" >&5
5816 echo "${ECHO_T}$RANLIB" >&6
5818 echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5823 if test -z "$ac_cv_prog_RANLIB"; then
5824 ac_ct_RANLIB=$RANLIB
5825 # Extract the first word of "ranlib", so it can be a program name with args.
5826 set dummy ranlib; ac_word=$2
5827 echo "$as_me:$LINENO: checking for $ac_word" >&5
5828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5829 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 if test -n "$ac_ct_RANLIB"; then
5833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_ac_ct_RANLIB="ranlib"
5843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5853 if test -n "$ac_ct_RANLIB"; then
5854 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5855 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5857 echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5861 RANLIB=$ac_ct_RANLIB
5863 RANLIB="$ac_cv_prog_RANLIB"
5866 if test -n "$ac_tool_prefix"; then
5867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5868 set dummy ${ac_tool_prefix}strip; ac_word=$2
5869 echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871 if test "${ac_cv_prog_STRIP+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 if test -n "$STRIP"; then
5875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 STRIP=$ac_cv_prog_STRIP
5894 if test -n "$STRIP"; then
5895 echo "$as_me:$LINENO: result: $STRIP" >&5
5896 echo "${ECHO_T}$STRIP" >&6
5898 echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5903 if test -z "$ac_cv_prog_STRIP"; then
5905 # Extract the first word of "strip", so it can be a program name with args.
5906 set dummy strip; ac_word=$2
5907 echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5909 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 if test -n "$ac_ct_STRIP"; then
5913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922 ac_cv_prog_ac_ct_STRIP="strip"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5933 if test -n "$ac_ct_STRIP"; then
5934 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5935 echo "${ECHO_T}$ac_ct_STRIP" >&6
5937 echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5943 STRIP="$ac_cv_prog_STRIP"
5948 old_CFLAGS="$CFLAGS"
5950 # Set sane defaults for various variables
5951 test -z "$AR" && AR=ar
5952 test -z "$AR_FLAGS" && AR_FLAGS=cru
5953 test -z "$AS" && AS=as
5954 test -z "$CC" && CC=cc
5955 test -z "$LTCC" && LTCC=$CC
5956 test -z "$DLLTOOL" && DLLTOOL=dlltool
5957 test -z "$LD" && LD=ld
5958 test -z "$LN_S" && LN_S="ln -s"
5959 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5960 test -z "$NM" && NM=nm
5961 test -z "$SED" && SED=sed
5962 test -z "$OBJDUMP" && OBJDUMP=objdump
5963 test -z "$RANLIB" && RANLIB=:
5964 test -z "$STRIP" && STRIP=:
5965 test -z "$ac_objext" && ac_objext=o
5967 # Determine commands to create old-style static archives.
5968 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5969 old_postinstall_cmds='chmod 644 $oldlib'
5970 old_postuninstall_cmds=
5972 if test -n "$RANLIB"; then
5975 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5978 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5981 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5984 # Only perform the check for file, if the check method requires it
5985 case $deplibs_check_method in
5987 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5988 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5989 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5990 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5998 lt_save_MAGIC_CMD="$MAGIC_CMD"
5999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6000 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6001 for ac_dir in $ac_dummy; do
6003 test -z "$ac_dir" && ac_dir=.
6004 if test -f $ac_dir/${ac_tool_prefix}file; then
6005 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6006 if test -n "$file_magic_test_file"; then
6007 case $deplibs_check_method in
6009 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6011 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6012 $EGREP "$file_magic_regex" > /dev/null; then
6017 *** Warning: the command libtool uses to detect shared libraries,
6018 *** $file_magic_cmd, produces output that libtool cannot recognize.
6019 *** The result is that libtool may fail to recognize shared libraries
6020 *** as such. This will affect the creation of libtool libraries that
6021 *** depend on shared libraries, but programs linked with such libtool
6022 *** libraries will work regardless of this problem. Nevertheless, you
6023 *** may want to report the problem to your system manager and/or to
6024 *** bug-libtool@gnu.org
6034 MAGIC_CMD="$lt_save_MAGIC_CMD"
6039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6040 if test -n "$MAGIC_CMD"; then
6041 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6042 echo "${ECHO_T}$MAGIC_CMD" >&6
6044 echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6
6048 if test -z "$lt_cv_path_MAGIC_CMD"; then
6049 if test -n "$ac_tool_prefix"; then
6050 echo "$as_me:$LINENO: checking for file" >&5
6051 echo $ECHO_N "checking for file... $ECHO_C" >&6
6052 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6060 lt_save_MAGIC_CMD="$MAGIC_CMD"
6061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6062 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6063 for ac_dir in $ac_dummy; do
6065 test -z "$ac_dir" && ac_dir=.
6066 if test -f $ac_dir/file; then
6067 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6068 if test -n "$file_magic_test_file"; then
6069 case $deplibs_check_method in
6071 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6073 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6074 $EGREP "$file_magic_regex" > /dev/null; then
6079 *** Warning: the command libtool uses to detect shared libraries,
6080 *** $file_magic_cmd, produces output that libtool cannot recognize.
6081 *** The result is that libtool may fail to recognize shared libraries
6082 *** as such. This will affect the creation of libtool libraries that
6083 *** depend on shared libraries, but programs linked with such libtool
6084 *** libraries will work regardless of this problem. Nevertheless, you
6085 *** may want to report the problem to your system manager and/or to
6086 *** bug-libtool@gnu.org
6096 MAGIC_CMD="$lt_save_MAGIC_CMD"
6101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6102 if test -n "$MAGIC_CMD"; then
6103 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6104 echo "${ECHO_T}$MAGIC_CMD" >&6
6106 echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6
6122 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6123 if test "${enable_libtool_lock+set}" = set; then
6124 enableval="$enable_libtool_lock"
6127 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6130 # Check whether --with-pic or --without-pic was given.
6131 if test "${with_pic+set}" = set; then
6137 test -z "$pic_mode" && pic_mode=default
6139 # Use C for the default configuration in the libtool script
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149 # Source file extension for C test sources.
6152 # Object file extension for compiled C test sources.
6156 # Code to be used in simple compile tests
6157 lt_simple_compile_test_code="int some_variable = 0;\n"
6159 # Code to be used in simple link tests
6160 lt_simple_link_test_code='int main(){return(0);}\n'
6163 # If no C compiler was specified, use CC.
6166 # Allow CC to be a program name with arguments.
6171 # Check for any special shared library compilation flags.
6174 if test "$GCC" = no; then
6177 lt_prog_cc_shlib='-belf'
6181 if test -n "$lt_prog_cc_shlib"; then
6182 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6183 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6184 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6186 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6187 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6188 lt_cv_prog_cc_can_build_shared=no
6194 # Check to make sure the static flag actually works.
6196 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6197 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6198 if test "${lt_prog_compiler_static_works+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 lt_prog_compiler_static_works=no
6202 save_LDFLAGS="$LDFLAGS"
6203 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6204 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6206 # The compiler can only warn and ignore the option if not recognized
6207 # So say no if there are warnings
6208 if test -s conftest.err; then
6209 # Append any errors to the config.log.
6210 cat conftest.err 1>&5
6212 lt_prog_compiler_static_works=yes
6216 LDFLAGS="$save_LDFLAGS"
6219 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6220 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6222 if test x"$lt_prog_compiler_static_works" = xyes; then
6225 lt_prog_compiler_static=
6231 lt_prog_compiler_no_builtin_flag=
6233 if test "$GCC" = yes; then
6234 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6237 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6238 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6239 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 lt_cv_prog_compiler_rtti_exceptions=no
6243 ac_outfile=conftest.$ac_objext
6244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6245 lt_compiler_flag="-fno-rtti -fno-exceptions"
6246 # Insert the option either (1) after the last *FLAGS variable, or
6247 # (2) before a word containing "conftest.", or (3) at the end.
6248 # Note that $ac_compile itself does not contain backslashes and begins
6249 # with a dollar sign (not a hyphen), so the echo should work correctly.
6250 # The option is referenced via a variable to avoid confusing sed.
6251 lt_compile=`echo "$ac_compile" | $SED \
6252 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6254 -e 's:$: $lt_compiler_flag:'`
6255 (eval echo "\"\$as_me:6255: $lt_compile\"" >&5)
6256 (eval "$lt_compile" 2>conftest.err)
6258 cat conftest.err >&5
6259 echo "$as_me:6259: \$? = $ac_status" >&5
6260 if (exit $ac_status) && test -s "$ac_outfile"; then
6261 # The compiler can only warn and ignore the option if not recognized
6262 # So say no if there are warnings
6263 if test ! -s conftest.err; then
6264 lt_cv_prog_compiler_rtti_exceptions=yes
6270 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6271 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6273 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6274 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6281 lt_prog_compiler_wl=
6282 lt_prog_compiler_pic=
6283 lt_prog_compiler_static=
6285 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6286 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6288 if test "$GCC" = yes; then
6289 lt_prog_compiler_wl='-Wl,'
6290 lt_prog_compiler_static='-static'
6294 # All AIX code is PIC.
6295 if test "$host_cpu" = ia64; then
6296 # AIX 5 now supports IA64 processor
6297 lt_prog_compiler_static='-Bstatic'
6302 # FIXME: we need at least 68020 code to build shared libraries, but
6303 # adding the `-m68020' flag to GCC prevents building anything better,
6305 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6308 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6309 # PIC is the default for these OSes.
6312 mingw* | pw32* | os2*)
6313 # This hack is so that the source file can tell whether it is being
6314 # built for inclusion in a dll (and should export symbols for example).
6315 lt_prog_compiler_pic='-DDLL_EXPORT'
6318 darwin* | rhapsody*)
6319 # PIC is the default on this platform
6320 # Common symbols not allowed in MH_DYLIB files
6321 lt_prog_compiler_pic='-fno-common'
6325 # Just because we use GCC doesn't mean we suddenly get shared libraries
6326 # on systems that don't support them.
6327 lt_prog_compiler_can_build_shared=no
6332 if test -d /usr/nec; then
6333 lt_prog_compiler_pic=-Kconform_pic
6338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6345 lt_prog_compiler_pic='-fPIC'
6351 lt_prog_compiler_pic='-fPIC'
6355 # PORTME Check for flag to pass linker flags through the system compiler.
6358 lt_prog_compiler_wl='-Wl,'
6359 if test "$host_cpu" = ia64; then
6360 # AIX 5 now supports IA64 processor
6361 lt_prog_compiler_static='-Bstatic'
6363 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6367 mingw* | pw32* | os2*)
6368 # This hack is so that the source file can tell whether it is being
6369 # built for inclusion in a dll (and should export symbols for example).
6370 lt_prog_compiler_pic='-DDLL_EXPORT'
6373 hpux9* | hpux10* | hpux11*)
6374 lt_prog_compiler_wl='-Wl,'
6375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6382 lt_prog_compiler_pic='+Z'
6385 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6386 lt_prog_compiler_static='${wl}-a ${wl}archive'
6389 irix5* | irix6* | nonstopux*)
6390 lt_prog_compiler_wl='-Wl,'
6391 # PIC (with -KPIC) is the default.
6392 lt_prog_compiler_static='-non_shared'
6396 lt_prog_compiler_pic='-KPIC'
6397 lt_prog_compiler_static='-Bstatic'
6403 lt_prog_compiler_wl='-Wl,'
6404 lt_prog_compiler_pic='-KPIC'
6405 lt_prog_compiler_static='-static'
6408 lt_prog_compiler_wl='-Wl,'
6409 # All Alpha code is PIC.
6410 lt_prog_compiler_static='-non_shared'
6415 osf3* | osf4* | osf5*)
6416 lt_prog_compiler_wl='-Wl,'
6417 # All OSF/1 code is PIC.
6418 lt_prog_compiler_static='-non_shared'
6422 lt_prog_compiler_pic='-Kpic'
6423 lt_prog_compiler_static='-dn'
6427 lt_prog_compiler_wl='-Wl,'
6428 lt_prog_compiler_pic='-KPIC'
6429 lt_prog_compiler_static='-Bstatic'
6433 lt_prog_compiler_wl='-Qoption ld '
6434 lt_prog_compiler_pic='-PIC'
6435 lt_prog_compiler_static='-Bstatic'
6438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6439 lt_prog_compiler_wl='-Wl,'
6440 lt_prog_compiler_pic='-KPIC'
6441 lt_prog_compiler_static='-Bstatic'
6445 if test -d /usr/nec ;then
6446 lt_prog_compiler_pic='-Kconform_pic'
6447 lt_prog_compiler_static='-Bstatic'
6452 lt_prog_compiler_pic='-pic'
6453 lt_prog_compiler_static='-Bstatic'
6457 lt_prog_compiler_can_build_shared=no
6462 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6463 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6466 # Check to make sure the PIC flag actually works.
6468 if test -n "$lt_prog_compiler_pic"; then
6470 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6472 if test "${lt_prog_compiler_pic_works+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 lt_prog_compiler_pic_works=no
6476 ac_outfile=conftest.$ac_objext
6477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6479 # Insert the option either (1) after the last *FLAGS variable, or
6480 # (2) before a word containing "conftest.", or (3) at the end.
6481 # Note that $ac_compile itself does not contain backslashes and begins
6482 # with a dollar sign (not a hyphen), so the echo should work correctly.
6483 # The option is referenced via a variable to avoid confusing sed.
6484 lt_compile=`echo "$ac_compile" | $SED \
6485 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6487 -e 's:$: $lt_compiler_flag:'`
6488 (eval echo "\"\$as_me:6488: $lt_compile\"" >&5)
6489 (eval "$lt_compile" 2>conftest.err)
6491 cat conftest.err >&5
6492 echo "$as_me:6492: \$? = $ac_status" >&5
6493 if (exit $ac_status) && test -s "$ac_outfile"; then
6494 # The compiler can only warn and ignore the option if not recognized
6495 # So say no if there are warnings
6496 if test ! -s conftest.err; then
6497 lt_prog_compiler_pic_works=yes
6503 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6504 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6506 if test x"$lt_prog_compiler_pic_works" = xyes; then
6507 case $lt_prog_compiler_pic in
6509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6512 lt_prog_compiler_pic=
6513 lt_prog_compiler_can_build_shared=no
6518 # For platforms which do not support PIC, -DPIC is meaningless:
6520 lt_prog_compiler_pic=
6523 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6527 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6529 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 lt_cv_prog_compiler_c_o=no
6533 $rm -r conftest 2>/dev/null
6537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6539 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6540 # that will create temporary files in the current directory regardless of
6541 # the output directory. Thus, making CWD read-only will cause this test
6542 # to fail, enabling locking or at least warning the user not to do parallel
6546 lt_compiler_flag="-o out/conftest2.$ac_objext"
6547 # Insert the option either (1) after the last *FLAGS variable, or
6548 # (2) before a word containing "conftest.", or (3) at the end.
6549 # Note that $ac_compile itself does not contain backslashes and begins
6550 # with a dollar sign (not a hyphen), so the echo should work correctly.
6551 lt_compile=`echo "$ac_compile" | $SED \
6552 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6554 -e 's:$: $lt_compiler_flag:'`
6555 (eval echo "\"\$as_me:6555: $lt_compile\"" >&5)
6556 (eval "$lt_compile" 2>out/conftest.err)
6558 cat out/conftest.err >&5
6559 echo "$as_me:6559: \$? = $ac_status" >&5
6560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6562 # The compiler can only warn and ignore the option if not recognized
6563 # So say no if there are warnings
6564 if test ! -s out/conftest.err; then
6565 lt_cv_prog_compiler_c_o=yes
6570 # SGI C++ compiler will create directory out/ii_files/ for
6571 # template instantiation
6572 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6573 $rm out/* && rmdir out
6579 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6580 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6583 hard_links="nottested"
6584 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6585 # do not overwrite the value of need_locks provided by the user
6586 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6587 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6592 ln conftest.a conftest.b 2>&5 || hard_links=no
6593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6594 echo "$as_me:$LINENO: result: $hard_links" >&5
6595 echo "${ECHO_T}$hard_links" >&6
6596 if test "$hard_links" = no; then
6597 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6598 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6605 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6606 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6609 allow_undefined_flag=
6610 enable_shared_with_static_runtimes=no
6612 archive_expsym_cmds=
6613 old_archive_From_new_cmds=
6614 old_archive_from_expsyms_cmds=
6615 export_dynamic_flag_spec=
6616 whole_archive_flag_spec=
6617 thread_safe_flag_spec=
6618 hardcode_libdir_flag_spec=
6619 hardcode_libdir_flag_spec_ld=
6620 hardcode_libdir_separator=
6623 hardcode_shlibpath_var=unsupported
6624 link_all_deplibs=unknown
6625 hardcode_automatic=no
6628 always_export_symbols=no
6629 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6630 # include_expsyms should be a list of space-separated symbols to be *always*
6631 # included in the symbol list
6633 # exclude_expsyms can be an extended regexp of symbols to exclude
6634 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6635 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6636 # as well as any symbol that contains `d'.
6637 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6638 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6639 # platforms (ab)use it in PIC code, but their linkers get confused if
6640 # the symbol is explicitly referenced. Since portable code cannot
6641 # rely on this symbol name, it's probably fine to never include it in
6642 # preloaded symbol tables.
6643 extract_expsyms_cmds=
6646 cygwin* | mingw* | pw32*)
6647 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6648 # When not using gcc, we currently assume that we are using
6649 # Microsoft Visual C++.
6650 if test "$GCC" != yes; then
6660 if test "$with_gnu_ld" = yes; then
6661 # If archive_cmds runs LD, not CC, wlarc should be empty
6664 # See if GNU ld supports shared libraries.
6666 aix3* | aix4* | aix5*)
6667 # On AIX/PPC, the GNU linker is very broken
6668 if test "$host_cpu" != ia64; then
6672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6673 *** to be unable to reliably create shared libraries on AIX.
6674 *** Therefore, libtool is disabling shared libraries support. If you
6675 *** really care for shared libraries, you may want to modify your PATH
6676 *** so that a non-GNU linker is found, and then restart.
6683 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)'
6684 hardcode_libdir_flag_spec='-L$libdir'
6685 hardcode_minus_L=yes
6687 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6688 # that the semantics of dynamic libraries on AmigaOS, at least up
6689 # to version 4, is to share data among multiple programs linked
6690 # with the same dynamic library. Since this doesn't match the
6691 # behavior of shared libraries on other platforms, we can't use
6697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6698 allow_undefined_flag=unsupported
6699 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6700 # support --undefined. This deserves some investigation. FIXME
6701 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6707 cygwin* | mingw* | pw32*)
6708 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6709 # as there is no search path for DLLs.
6710 hardcode_libdir_flag_spec='-L$libdir'
6711 allow_undefined_flag=unsupported
6712 always_export_symbols=no
6713 enable_shared_with_static_runtimes=yes
6714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6716 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6718 # If the export-symbols file already is a .def file (1st line
6719 # is EXPORTS), use it as is; otherwise, prepend...
6720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6721 cp $export_symbols $output_objdir/$soname.def;
6723 echo EXPORTS > $output_objdir/$soname.def;
6724 cat $export_symbols >> $output_objdir/$soname.def;
6726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6734 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6738 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6743 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6747 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6748 *** create shared libraries on Solaris systems. Therefore, libtool
6749 *** is disabling shared libraries support. We urge you to upgrade GNU
6750 *** binutils to release 2.9.1 or newer. Another option is to modify
6751 *** your PATH or compiler configuration so that the native linker is
6752 *** used, and then restart.
6755 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6764 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6767 hardcode_shlibpath_var=no
6771 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6772 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6773 archive_cmds="$tmp_archive_cmds"
6774 supports_anon_versioning=no
6775 case `$LD -v 2>/dev/null` in
6776 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6777 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6778 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6779 *\ 2.11.*) ;; # other 2.11 versions
6780 *) supports_anon_versioning=yes ;;
6782 if test $supports_anon_versioning = yes; then
6783 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6785 $echo "local: *; };" >> $output_objdir/$libname.ver~
6786 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6788 archive_expsym_cmds="$tmp_archive_cmds"
6796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6805 if test "$ld_shlibs" = yes; then
6806 runpath_var=LD_RUN_PATH
6807 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6808 export_dynamic_flag_spec='${wl}--export-dynamic'
6809 # ancient GNU ld didn't support --whole-archive et. al.
6810 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6811 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6813 whole_archive_flag_spec=
6817 # PORTME fill in a description of your system's linker (not GNU ld)
6820 allow_undefined_flag=unsupported
6821 always_export_symbols=yes
6822 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'
6823 # Note: this linker hardcodes the directories in LIBPATH if there
6824 # are no directories specified by -L.
6825 hardcode_minus_L=yes
6826 if test "$GCC" = yes && test -z "$link_static_flag"; then
6827 # Neither direct hardcoding nor static linking is supported with a
6829 hardcode_direct=unsupported
6834 if test "$host_cpu" = ia64; then
6835 # On IA64, the linker does run time linking by default, so we don't
6836 # have to do anything special.
6837 aix_use_runtimelinking=no
6838 exp_sym_flag='-Bexport'
6841 # If we're using GNU nm, then we don't want the "-C" option.
6842 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6843 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6844 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'
6846 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'
6848 aix_use_runtimelinking=no
6850 # Test if we are trying to use run time linking or normal
6851 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6852 # need to do runtime linking.
6853 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6854 for ld_flag in $LDFLAGS; do
6855 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6856 aix_use_runtimelinking=yes
6862 exp_sym_flag='-bexport'
6863 no_entry_flag='-bnoentry'
6866 # When large executables or shared objects are built, AIX ld can
6867 # have problems creating the table of contents. If linking a library
6868 # or program results in "error TOC overflow" add -mminimal-toc to
6869 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6870 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6874 hardcode_libdir_separator=':'
6875 link_all_deplibs=yes
6877 if test "$GCC" = yes; then
6878 case $host_os in aix4.012|aix4.012.*)
6879 # We only want to do this on AIX 4.2 and lower, the check
6880 # below for broken collect2 doesn't work under 4.3+
6881 collect2name=`${CC} -print-prog-name=collect2`
6882 if test -f "$collect2name" && \
6883 strings "$collect2name" | grep resolve_lib_name >/dev/null
6885 # We have reworked collect2
6888 # We have old collect2
6889 hardcode_direct=unsupported
6890 # It fails to find uninstalled libraries when the uninstalled
6891 # path is not listed in the libpath. Setting hardcode_minus_L
6892 # to unsupported forces relinking
6893 hardcode_minus_L=yes
6894 hardcode_libdir_flag_spec='-L$libdir'
6895 hardcode_libdir_separator=
6898 shared_flag='-shared'
6901 if test "$host_cpu" = ia64; then
6902 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6903 # chokes on -Wl,-G. The following line is correct:
6906 if test "$aix_use_runtimelinking" = yes; then
6907 shared_flag='${wl}-G'
6909 shared_flag='${wl}-bM:SRE'
6914 # It seems that -bexpall does not export symbols beginning with
6915 # underscore (_), so it is better to generate a list of symbols to export.
6916 always_export_symbols=yes
6917 if test "$aix_use_runtimelinking" = yes; then
6918 # Warning - without using the other runtime loading flags (-brtl),
6919 # -berok will link without error, but may produce a broken library.
6920 allow_undefined_flag='-berok'
6921 # Determine the default libpath from the value encoded in an empty executable.
6922 cat >conftest.$ac_ext <<_ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6937 rm -f conftest.$ac_objext conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939 (eval $ac_link) 2>conftest.er1
6941 grep -v '^ *+' conftest.er1 >conftest.err
6943 cat conftest.err >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest$ac_exeext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6961 # Check for a 64-bit object if we didn't find anything.
6962 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; }
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6969 rm -f conftest.err conftest.$ac_objext \
6970 conftest$ac_exeext conftest.$ac_ext
6971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6973 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6974 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6976 if test "$host_cpu" = ia64; then
6977 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6978 allow_undefined_flag="-z nodefs"
6979 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6981 # Determine the default libpath from the value encoded in an empty executable.
6982 cat >conftest.$ac_ext <<_ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6997 rm -f conftest.$ac_objext conftest$ac_exeext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999 (eval $ac_link) 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } &&
7006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; } &&
7012 { ac_try='test -s conftest$ac_exeext'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
7019 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7021 # Check for a 64-bit object if we didn't find anything.
7022 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; }
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7029 rm -f conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7033 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7034 # Warning - without using the other run time loading flags,
7035 # -berok will link without error, but may produce a broken library.
7036 no_undefined_flag=' ${wl}-bernotok'
7037 allow_undefined_flag=' ${wl}-berok'
7038 # -bexpall does not export symbols beginning with underscore (_)
7039 always_export_symbols=yes
7040 # Exported symbols can be pulled into shared objects from archives
7041 whole_archive_flag_spec=' '
7042 archive_cmds_need_lc=yes
7043 # This is similar to how AIX traditionally builds it's shared libraries.
7044 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7050 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)'
7051 hardcode_libdir_flag_spec='-L$libdir'
7052 hardcode_minus_L=yes
7053 # see comment about different semantics on the GNU ld section
7058 export_dynamic_flag_spec=-rdynamic
7061 cygwin* | mingw* | pw32*)
7062 # When not using gcc, we currently assume that we are using
7063 # Microsoft Visual C++.
7064 # hardcode_libdir_flag_spec is actually meaningless, as there is
7065 # no search path for DLLs.
7066 hardcode_libdir_flag_spec=' '
7067 allow_undefined_flag=unsupported
7068 # Tell ltmain to make .lib files, not .a files.
7070 # Tell ltmain to make .dll files, not .so files.
7072 # FIXME: Setting linknames here is a bad hack.
7073 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7074 # The linker will automatically build a .lib file if we build a DLL.
7075 old_archive_From_new_cmds='true'
7076 # FIXME: Should let the user specify the lib program.
7077 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7078 fix_srcfile_path='`cygpath -w "$srcfile"`'
7079 enable_shared_with_static_runtimes=yes
7082 darwin* | rhapsody*)
7083 if test "$GXX" = yes ; then
7084 archive_cmds_need_lc=no
7086 rhapsody* | darwin1.[012])
7087 allow_undefined_flag='-undefined suppress'
7090 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7091 allow_undefined_flag='-flat_namespace -undefined suppress'
7093 case ${MACOSX_DEPLOYMENT_TARGET} in
7095 allow_undefined_flag='-flat_namespace -undefined suppress'
7098 allow_undefined_flag='-undefined dynamic_lookup'
7104 lt_int_apple_cc_single_mod=no
7105 output_verbose_link_cmd='echo'
7106 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7107 lt_int_apple_cc_single_mod=yes
7109 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7110 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7112 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7114 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7115 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7116 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7117 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7119 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7121 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}'
7123 hardcode_automatic=yes
7124 hardcode_shlibpath_var=unsupported
7125 whole_archive_flag_spec='-all_load $convenience'
7126 link_all_deplibs=yes
7133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7134 hardcode_libdir_flag_spec='-L$libdir'
7135 hardcode_shlibpath_var=no
7142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7143 # support. Future versions do this automatically, but an explicit c++rt0.o
7144 # does not break anything, and helps significantly (at the cost of a little
7147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7148 hardcode_libdir_flag_spec='-R$libdir'
7150 hardcode_shlibpath_var=no
7153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7157 hardcode_minus_L=yes
7158 hardcode_shlibpath_var=no
7161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7162 freebsd* | kfreebsd*-gnu)
7163 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7164 hardcode_libdir_flag_spec='-R$libdir'
7166 hardcode_shlibpath_var=no
7170 if test "$GCC" = yes; then
7171 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'
7173 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'
7175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7176 hardcode_libdir_separator=:
7179 # hardcode_minus_L: Not really in the search PATH,
7180 # but as the default location of the library.
7181 hardcode_minus_L=yes
7182 export_dynamic_flag_spec='${wl}-E'
7186 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7189 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7192 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7198 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7201 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7205 if test "$with_gnu_ld" = no; then
7208 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7209 hardcode_libdir_flag_spec_ld='+b $libdir'
7210 hardcode_libdir_separator=:
7212 hardcode_shlibpath_var=no
7215 hardcode_libdir_flag_spec='-L$libdir'
7217 hardcode_shlibpath_var=no
7219 # hardcode_minus_L: Not really in the search PATH,
7220 # but as the default location of the library.
7221 hardcode_minus_L=yes
7224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225 hardcode_libdir_separator=:
7227 export_dynamic_flag_spec='${wl}-E'
7229 # hardcode_minus_L: Not really in the search PATH,
7230 # but as the default location of the library.
7231 hardcode_minus_L=yes
7237 irix5* | irix6* | nonstopux*)
7238 if test "$GCC" = yes; then
7239 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'
7241 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'
7242 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7245 hardcode_libdir_separator=:
7246 link_all_deplibs=yes
7250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7255 hardcode_libdir_flag_spec='-R$libdir'
7257 hardcode_shlibpath_var=no
7261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7264 hardcode_libdir_separator=:
7265 hardcode_shlibpath_var=no
7270 hardcode_shlibpath_var=no
7271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7273 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7274 export_dynamic_flag_spec='${wl}-E'
7277 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7279 hardcode_libdir_flag_spec='-R$libdir'
7282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7290 hardcode_libdir_flag_spec='-L$libdir'
7291 hardcode_minus_L=yes
7292 allow_undefined_flag=unsupported
7293 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'
7294 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7298 if test "$GCC" = yes; then
7299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7300 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'
7302 allow_undefined_flag=' -expect_unresolved \*'
7303 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'
7305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7306 hardcode_libdir_separator=:
7309 osf4* | osf5*) # as osf3* with the addition of -msym flag
7310 if test "$GCC" = yes; then
7311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7312 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'
7313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7315 allow_undefined_flag=' -expect_unresolved \*'
7316 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'
7317 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7318 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7320 # Both c and cxx compiler support -rpath directly
7321 hardcode_libdir_flag_spec='-rpath $libdir'
7323 hardcode_libdir_separator=:
7327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328 hardcode_shlibpath_var=no
7329 export_dynamic_flag_spec='${wl}-Bexport'
7330 runpath_var=LD_RUN_PATH
7331 hardcode_runpath_var=yes
7335 no_undefined_flag=' -z text'
7336 if test "$GCC" = yes; then
7337 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7338 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7339 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7341 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7345 hardcode_libdir_flag_spec='-R$libdir'
7346 hardcode_shlibpath_var=no
7348 solaris2.[0-5] | solaris2.[0-5].*) ;;
7349 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7350 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7352 link_all_deplibs=yes
7356 if test "x$host_vendor" = xsequent; then
7357 # Use $CC to link under sequent, because it throws in some extra .o
7358 # files that make .init and .fini sections work.
7359 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7361 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7363 hardcode_libdir_flag_spec='-L$libdir'
7365 hardcode_minus_L=yes
7366 hardcode_shlibpath_var=no
7370 case $host_vendor in
7372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373 hardcode_direct=yes # is this really true???
7376 ## LD is ld it makes a PLAMLIB
7377 ## CC just makes a GrossModule.
7378 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7379 reload_cmds='$CC -r -o $output$reload_objs'
7383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7387 runpath_var='LD_RUN_PATH'
7388 hardcode_shlibpath_var=no
7392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7393 hardcode_shlibpath_var=no
7394 export_dynamic_flag_spec='-Bexport'
7398 if test -d /usr/nec; then
7399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_shlibpath_var=no
7401 runpath_var=LD_RUN_PATH
7402 hardcode_runpath_var=yes
7408 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7411 hardcode_shlibpath_var=no
7412 hardcode_runpath_var=yes
7413 runpath_var=LD_RUN_PATH
7416 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7417 no_undefined_flag='${wl}-z ${wl}text'
7418 if test "$GCC" = yes; then
7419 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7421 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7423 runpath_var='LD_RUN_PATH'
7424 hardcode_shlibpath_var=no
7428 no_undefined_flag=' -z text'
7429 # $CC -shared without GNU ld will not create a library from C++
7430 # object files and a static libstdc++, better avoid it by now
7431 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7433 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7434 hardcode_libdir_flag_spec=
7435 hardcode_shlibpath_var=no
7436 runpath_var='LD_RUN_PATH'
7440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7441 hardcode_libdir_flag_spec='-L$libdir'
7442 hardcode_shlibpath_var=no
7451 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7452 echo "${ECHO_T}$ld_shlibs" >&6
7453 test "$ld_shlibs" = no && can_build_shared=no
7455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7456 if test "$GCC" = yes; then
7457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7461 # Do we need to explicitly link libc?
7463 case "x$archive_cmds_need_lc" in
7465 # Assume -lc should be added
7466 archive_cmds_need_lc=yes
7468 if test "$enable_shared" = yes && test "$GCC" = yes; then
7469 case $archive_cmds in
7471 # FIXME: we may have to deal with multi-command sequences.
7474 # Test whether the compiler implicitly links with -lc since on some
7475 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7476 # to ld, don't add -lc before -lgcc.
7477 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7478 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483 (eval $ac_compile) 2>&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } 2>conftest.err; then
7489 libobjs=conftest.$ac_objext
7491 wl=$lt_prog_compiler_wl
7497 lt_save_allow_undefined_flag=$allow_undefined_flag
7498 allow_undefined_flag=
7499 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7500 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }
7505 archive_cmds_need_lc=no
7507 archive_cmds_need_lc=yes
7509 allow_undefined_flag=$lt_save_allow_undefined_flag
7511 cat conftest.err 1>&5
7514 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7515 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7522 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7523 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7525 libname_spec='lib$name'
7533 shlibpath_overrides_runpath=unknown
7535 dynamic_linker="$host_os ld.so"
7536 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7537 if test "$GCC" = yes; then
7538 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7539 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7540 # if the path contains ";" then we assume it to be the separator
7541 # otherwise default to the standard path separator (i.e. ":") - it is
7542 # assumed that no part of a normal pathname contains ";" but that should
7543 # okay in the real world where ";" in dirpaths is itself problematic.
7544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7546 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7549 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7551 need_lib_prefix=unknown
7552 hardcode_into_libs=no
7554 # when you set need_version to no, make sure it does not cause -set_version
7555 # flags to be left without arguments
7556 need_version=unknown
7561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7562 shlibpath_var=LIBPATH
7564 # AIX 3 has no versioning support, so we append a major version to the name.
7565 soname_spec='${libname}${release}${shared_ext}$major'
7572 hardcode_into_libs=yes
7573 if test "$host_cpu" = ia64; then
7574 # AIX 5 supports IA64
7575 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7576 shlibpath_var=LD_LIBRARY_PATH
7578 # With GCC up to 2.95.x, collect2 would create an import file
7579 # for dependence libraries. The import file would start with
7580 # the line `#! .'. This would cause the generated library to
7581 # depend on `.', always an invalid library. This was fixed in
7582 # development snapshots of GCC prior to 3.0.
7584 aix4 | aix4.[01] | aix4.[01].*)
7585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7587 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7594 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7595 # soname into executable. Probably we can add versioning support to
7596 # collect2, so additional links can be useful in future.
7597 if test "$aix_use_runtimelinking" = yes; then
7598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7599 # instead of lib<name>.a to let people know that these are not
7600 # typical AIX shared libraries.
7601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7603 # We preserve .a as extension for shared libraries through AIX4.2
7604 # and later when we are not doing run time linking.
7605 library_names_spec='${libname}${release}.a $libname.a'
7606 soname_spec='${libname}${release}${shared_ext}$major'
7608 shlibpath_var=LIBPATH
7613 library_names_spec='$libname.ixlibrary $libname.a'
7614 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7615 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'
7619 library_names_spec='${libname}${shared_ext}'
7620 dynamic_linker="$host_os ld.so"
7621 shlibpath_var=LIBRARY_PATH
7627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7628 soname_spec='${libname}${release}${shared_ext}$major'
7629 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7630 shlibpath_var=LD_LIBRARY_PATH
7631 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7632 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7633 # the default ld.so.conf also contains /usr/contrib/lib and
7634 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7635 # libtool to hard-code these into programs
7638 cygwin* | mingw* | pw32*)
7639 version_type=windows
7644 case $GCC,$host_os in
7645 yes,cygwin* | yes,mingw* | yes,pw32*)
7646 library_names_spec='$libname.dll.a'
7647 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7648 postinstall_cmds='base_file=`basename \${file}`~
7649 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7650 dldir=$destdir/`dirname \$dlpath`~
7651 test -d \$dldir || mkdir -p \$dldir~
7652 $install_prog $dir/$dlname \$dldir/$dlname'
7653 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7654 dlpath=$dir/\$dldll~
7656 shlibpath_overrides_runpath=yes
7660 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7661 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7662 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7665 # MinGW DLLs use traditional 'lib' prefix
7666 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7667 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7668 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7669 # It is most probably a Windows format PATH printed by
7670 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7671 # path with ; separators, and with drive letters. We can handle the
7672 # drive letters (cygwin fileutils understands them), so leave them,
7673 # especially as we might pass files found there to a mingw objdump,
7674 # which wouldn't understand a cygwinified path. Ahh.
7675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7681 # pw32 DLLs use 'pw' prefix rather than 'lib'
7682 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7688 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7691 dynamic_linker='Win32 ld.exe'
7692 # FIXME: first we should search . and the directory the executable is in
7696 darwin* | rhapsody*)
7697 dynamic_linker="$host_os dyld"
7701 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7702 soname_spec='${libname}${release}${major}$shared_ext'
7703 shlibpath_overrides_runpath=yes
7704 shlibpath_var=DYLD_LIBRARY_PATH
7705 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7706 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7707 if test "$GCC" = yes; then
7708 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"`
7710 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7712 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7720 soname_spec='${libname}${release}${shared_ext}$major'
7721 shlibpath_var=LD_LIBRARY_PATH
7732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7733 soname_spec='${libname}${release}${shared_ext}$major'
7734 shlibpath_var=LD_LIBRARY_PATH
7735 shlibpath_overrides_runpath=no
7736 hardcode_into_libs=yes
7737 dynamic_linker='GNU ld.so'
7741 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7742 version_type=freebsd-$objformat
7743 case $version_type in
7745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7754 shlibpath_var=LD_LIBRARY_PATH
7757 shlibpath_overrides_runpath=yes
7759 freebsd3.01* | freebsdelf3.01*)
7760 shlibpath_overrides_runpath=yes
7761 hardcode_into_libs=yes
7764 shlibpath_overrides_runpath=no
7765 hardcode_into_libs=yes
7774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7775 soname_spec='${libname}${release}${shared_ext}$major'
7776 shlibpath_var=LD_LIBRARY_PATH
7777 hardcode_into_libs=yes
7780 hpux9* | hpux10* | hpux11*)
7781 # Give a soname corresponding to the major version so that dld.sl refuses to
7782 # link against other versions.
7789 hardcode_into_libs=yes
7790 dynamic_linker="$host_os dld.so"
7791 shlibpath_var=LD_LIBRARY_PATH
7792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794 soname_spec='${libname}${release}${shared_ext}$major'
7795 if test "X$HPUX_IA64_MODE" = X32; then
7796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7804 hardcode_into_libs=yes
7805 dynamic_linker="$host_os dld.sl"
7806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7809 soname_spec='${libname}${release}${shared_ext}$major'
7810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7815 dynamic_linker="$host_os dld.sl"
7816 shlibpath_var=SHLIB_PATH
7817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7819 soname_spec='${libname}${release}${shared_ext}$major'
7822 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7823 postinstall_cmds='chmod 555 $lib'
7826 irix5* | irix6* | nonstopux*)
7828 nonstopux*) version_type=nonstopux ;;
7830 if test "$lt_cv_prog_gnu_ld" = yes; then
7838 soname_spec='${libname}${release}${shared_ext}$major'
7839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7841 irix5* | nonstopux*)
7845 case $LD in # libtool.m4 will add one of these switches to LD
7846 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7847 libsuff= shlibsuff= libmagic=32-bit;;
7848 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7849 libsuff=32 shlibsuff=N32 libmagic=N32;;
7850 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7851 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7852 *) libsuff= shlibsuff= libmagic=never-match;;
7856 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7857 shlibpath_overrides_runpath=no
7858 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7859 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7860 hardcode_into_libs=yes
7863 # No shared lib support for Linux oldld, aout, or coff.
7864 linux*oldld* | linux*aout* | linux*coff*)
7868 # This must be Linux ELF.
7873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874 soname_spec='${libname}${release}${shared_ext}$major'
7875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7876 shlibpath_var=LD_LIBRARY_PATH
7877 shlibpath_overrides_runpath=no
7878 # This implies no fast_install, which is unacceptable.
7879 # Some rework will be needed to allow for fast_install
7880 # before this can be enabled.
7881 hardcode_into_libs=yes
7883 # Append ld.so.conf contents to the search path
7884 if test -f /etc/ld.so.conf; then
7885 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7886 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7889 # We used to test for /lib/ld.so.1 and disable shared libraries on
7890 # powerpc, because MkLinux only supported shared libraries with the
7891 # GNU dynamic linker. Since this was broken with cross compilers,
7892 # most powerpc-linux boxes support dynamic linking these days and
7893 # people can always --disable-shared, the test was removed, and we
7894 # assume the GNU/Linux dynamic linker is in use.
7895 dynamic_linker='GNU/Linux ld.so'
7902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7903 soname_spec='${libname}${release}${shared_ext}$major'
7904 shlibpath_var=LD_LIBRARY_PATH
7905 shlibpath_overrides_runpath=no
7906 hardcode_into_libs=yes
7907 dynamic_linker='GNU ld.so'
7914 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7917 dynamic_linker='NetBSD (a.out) ld.so'
7919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7920 soname_spec='${libname}${release}${shared_ext}$major'
7921 dynamic_linker='NetBSD ld.elf_so'
7923 shlibpath_var=LD_LIBRARY_PATH
7924 shlibpath_overrides_runpath=yes
7925 hardcode_into_libs=yes
7930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7931 shlibpath_var=LD_LIBRARY_PATH
7932 shlibpath_overrides_runpath=yes
7939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7940 soname_spec='${libname}${release}${shared_ext}$major'
7941 shlibpath_var=LD_LIBRARY_PATH
7942 shlibpath_overrides_runpath=yes
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7951 shlibpath_var=LD_LIBRARY_PATH
7952 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7954 openbsd2.[89] | openbsd2.[89].*)
7955 shlibpath_overrides_runpath=no
7958 shlibpath_overrides_runpath=yes
7962 shlibpath_overrides_runpath=yes
7967 libname_spec='$name'
7970 library_names_spec='$libname${shared_ext} $libname.a'
7971 dynamic_linker='OS/2 ld.exe'
7972 shlibpath_var=LIBPATH
7975 osf3* | osf4* | osf5*)
7979 soname_spec='${libname}${release}${shared_ext}$major'
7980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7983 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7988 soname_spec='${libname}${release}${shared_ext}$major'
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990 shlibpath_var=LD_LIBRARY_PATH
7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998 soname_spec='${libname}${release}${shared_ext}$major'
7999 shlibpath_var=LD_LIBRARY_PATH
8000 shlibpath_overrides_runpath=yes
8001 hardcode_into_libs=yes
8002 # ldd complains unless libraries are executable
8003 postinstall_cmds='chmod +x $lib'
8008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8009 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8010 shlibpath_var=LD_LIBRARY_PATH
8011 shlibpath_overrides_runpath=yes
8012 if test "$with_gnu_ld" = yes; then
8018 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021 soname_spec='${libname}${release}${shared_ext}$major'
8022 shlibpath_var=LD_LIBRARY_PATH
8023 case $host_vendor in
8025 shlibpath_overrides_runpath=no
8027 export_dynamic_flag_spec='${wl}-Blargedynsym'
8028 runpath_var=LD_RUN_PATH
8036 shlibpath_overrides_runpath=no
8037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8043 if test -d /usr/nec ;then
8045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8046 soname_spec='$libname${shared_ext}.$major'
8047 shlibpath_var=LD_LIBRARY_PATH
8053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8054 soname_spec='${libname}${release}${shared_ext}$major'
8055 shlibpath_var=LD_LIBRARY_PATH
8062 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8063 echo "${ECHO_T}$dynamic_linker" >&6
8064 test "$dynamic_linker" = no && can_build_shared=no
8066 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8067 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8069 if test -n "$hardcode_libdir_flag_spec" || \
8070 test -n "$runpath_var " || \
8071 test "X$hardcode_automatic"="Xyes" ; then
8073 # We can hardcode non-existant directories.
8074 if test "$hardcode_direct" != no &&
8075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8076 # have to relink, otherwise we might link with an installed library
8077 # when we should be linking with a yet-to-be-installed one
8078 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8079 test "$hardcode_minus_L" != no; then
8080 # Linking always hardcodes the temporary library directory.
8081 hardcode_action=relink
8083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8084 hardcode_action=immediate
8087 # We cannot hardcode anything, or else we can only hardcode existing
8089 hardcode_action=unsupported
8091 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8092 echo "${ECHO_T}$hardcode_action" >&6
8094 if test "$hardcode_action" = relink; then
8095 # Fast installation is not supported
8096 enable_fast_install=no
8097 elif test "$shlibpath_overrides_runpath" = yes ||
8098 test "$enable_shared" = no; then
8099 # Fast installation is not necessary
8100 enable_fast_install=needless
8105 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8106 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8107 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8108 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8109 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8110 echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6
8113 # FIXME - insert some real tests, host_os isn't really good enough
8116 if test -n "$STRIP" ; then
8117 striplib="$STRIP -x"
8118 echo "$as_me:$LINENO: result: yes" >&5
8119 echo "${ECHO_T}yes" >&6
8121 echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6
8126 echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8132 if test "x$enable_dlopen" != xyes; then
8133 enable_dlopen=unknown
8134 enable_dlopen_self=unknown
8135 enable_dlopen_self_static=unknown
8142 lt_cv_dlopen="load_add_on"
8144 lt_cv_dlopen_self=yes
8148 lt_cv_dlopen="LoadLibrary"
8153 lt_cv_dlopen="dlopen"
8158 # if libdl is installed we need to link against it
8159 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 ac_check_lib_save_LIBS=$LIBS
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 /* Override any gcc2 internal prototype to avoid an error. */
8177 /* We use char because int might match the return type of a gcc2
8178 builtin and then its argument prototype would still apply. */
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190 (eval $ac_link) 2>conftest.er1
8192 grep -v '^ *+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; } &&
8203 { ac_try='test -s conftest$ac_exeext'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 ac_cv_lib_dl_dlopen=yes
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8214 ac_cv_lib_dl_dlopen=no
8216 rm -f conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
8218 LIBS=$ac_check_lib_save_LIBS
8220 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8221 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8222 if test $ac_cv_lib_dl_dlopen = yes; then
8223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8228 lt_cv_dlopen_self=yes
8235 echo "$as_me:$LINENO: checking for shl_load" >&5
8236 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8237 if test "${ac_cv_func_shl_load+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 cat >conftest.$ac_ext <<_ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8248 #define shl_load innocuous_shl_load
8250 /* System header to define __stub macros and hopefully few prototypes,
8251 which can conflict with char shl_load (); below.
8252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8253 <limits.h> exists even on freestanding compilers. */
8256 # include <limits.h>
8258 # include <assert.h>
8263 /* Override any gcc2 internal prototype to avoid an error. */
8268 /* We use char because int might match the return type of a gcc2
8269 builtin and then its argument prototype would still apply. */
8271 /* The GNU C library defines this for functions which it implements
8272 to always fail with ENOSYS. Some functions are actually named
8273 something starting with __ and the normal name is an alias. */
8274 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8277 char (*f) () = shl_load;
8286 return f != shl_load;
8291 rm -f conftest.$ac_objext conftest$ac_exeext
8292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8293 (eval $ac_link) 2>conftest.er1
8295 grep -v '^ *+' conftest.er1 >conftest.err
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; } &&
8306 { ac_try='test -s conftest$ac_exeext'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8312 ac_cv_func_shl_load=yes
8314 echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8317 ac_cv_func_shl_load=no
8319 rm -f conftest.err conftest.$ac_objext \
8320 conftest$ac_exeext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8323 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8324 if test $ac_cv_func_shl_load = yes; then
8325 lt_cv_dlopen="shl_load"
8327 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8328 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8329 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 ac_check_lib_save_LIBS=$LIBS
8334 cat >conftest.$ac_ext <<_ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8341 /* Override any gcc2 internal prototype to avoid an error. */
8345 /* We use char because int might match the return type of a gcc2
8346 builtin and then its argument prototype would still apply. */
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>conftest.er1
8360 grep -v '^ *+' conftest.er1 >conftest.err
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_lib_dld_shl_load=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_lib_dld_shl_load=no
8384 rm -f conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8389 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8390 if test $ac_cv_lib_dld_shl_load = yes; then
8391 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8393 echo "$as_me:$LINENO: checking for dlopen" >&5
8394 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8395 if test "${ac_cv_func_dlopen+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8406 #define dlopen innocuous_dlopen
8408 /* System header to define __stub macros and hopefully few prototypes,
8409 which can conflict with char dlopen (); below.
8410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8411 <limits.h> exists even on freestanding compilers. */
8414 # include <limits.h>
8416 # include <assert.h>
8421 /* Override any gcc2 internal prototype to avoid an error. */
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8429 /* The GNU C library defines this for functions which it implements
8430 to always fail with ENOSYS. Some functions are actually named
8431 something starting with __ and the normal name is an alias. */
8432 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8435 char (*f) () = dlopen;
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451 (eval $ac_link) 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_func_dlopen=yes
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_cv_func_dlopen=no
8477 rm -f conftest.err conftest.$ac_objext \
8478 conftest$ac_exeext conftest.$ac_ext
8480 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8481 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8482 if test $ac_cv_func_dlopen = yes; then
8483 lt_cv_dlopen="dlopen"
8485 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8486 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 ac_check_lib_save_LIBS=$LIBS
8492 cat >conftest.$ac_ext <<_ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8499 /* Override any gcc2 internal prototype to avoid an error. */
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest$ac_exeext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_lib_dl_dlopen=yes
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 ac_cv_lib_dl_dlopen=no
8542 rm -f conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8544 LIBS=$ac_check_lib_save_LIBS
8546 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8547 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8548 if test $ac_cv_lib_dl_dlopen = yes; then
8549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8551 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8552 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8553 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 ac_check_lib_save_LIBS=$LIBS
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8565 /* Override any gcc2 internal prototype to avoid an error. */
8569 /* We use char because int might match the return type of a gcc2
8570 builtin and then its argument prototype would still apply. */
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_lib_svld_dlopen=yes
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 ac_cv_lib_svld_dlopen=no
8608 rm -f conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8610 LIBS=$ac_check_lib_save_LIBS
8612 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8613 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8614 if test $ac_cv_lib_svld_dlopen = yes; then
8615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8617 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8618 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8619 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 ac_check_lib_save_LIBS=$LIBS
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8631 /* Override any gcc2 internal prototype to avoid an error. */
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; } &&
8661 { ac_try='test -s conftest$ac_exeext'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 ac_cv_lib_dld_dld_link=yes
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_cv_lib_dld_dld_link=no
8674 rm -f conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8679 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8680 if test $ac_cv_lib_dld_dld_link = yes; then
8681 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8702 if test "x$lt_cv_dlopen" != xno; then
8708 case $lt_cv_dlopen in
8710 save_CPPFLAGS="$CPPFLAGS"
8711 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8713 save_LDFLAGS="$LDFLAGS"
8714 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8717 LIBS="$lt_cv_dlopen_libs $LIBS"
8719 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8720 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8721 if test "${lt_cv_dlopen_self+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 if test "$cross_compiling" = yes; then :
8725 lt_cv_dlopen_self=cross
8727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8728 lt_status=$lt_dlunknown
8729 cat > conftest.$ac_ext <<EOF
8730 #line 8730 "configure"
8731 #include "confdefs.h"
8740 # define LT_DLGLOBAL RTLD_GLOBAL
8743 # define LT_DLGLOBAL DL_GLOBAL
8745 # define LT_DLGLOBAL 0
8749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8750 find out it does not work in some platform. */
8751 #ifndef LT_DLLAZY_OR_NOW
8753 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8756 # define LT_DLLAZY_OR_NOW DL_LAZY
8759 # define LT_DLLAZY_OR_NOW RTLD_NOW
8762 # define LT_DLLAZY_OR_NOW DL_NOW
8764 # define LT_DLLAZY_OR_NOW 0
8772 extern "C" void exit (int);
8775 void fnord() { int i=42;}
8778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8779 int status = $lt_dlunknown;
8783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8784 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8785 /* dlclose (self); */
8791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8792 (eval $ac_link) 2>&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8796 (./conftest; exit; ) 2>/dev/null
8799 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8800 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8801 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8804 # compilation failed
8805 lt_cv_dlopen_self=no
8812 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8813 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8815 if test "x$lt_cv_dlopen_self" = xyes; then
8816 LDFLAGS="$LDFLAGS $link_static_flag"
8817 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8818 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8819 if test "${lt_cv_dlopen_self_static+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 if test "$cross_compiling" = yes; then :
8823 lt_cv_dlopen_self_static=cross
8825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8826 lt_status=$lt_dlunknown
8827 cat > conftest.$ac_ext <<EOF
8828 #line 8828 "configure"
8829 #include "confdefs.h"
8838 # define LT_DLGLOBAL RTLD_GLOBAL
8841 # define LT_DLGLOBAL DL_GLOBAL
8843 # define LT_DLGLOBAL 0
8847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8848 find out it does not work in some platform. */
8849 #ifndef LT_DLLAZY_OR_NOW
8851 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8854 # define LT_DLLAZY_OR_NOW DL_LAZY
8857 # define LT_DLLAZY_OR_NOW RTLD_NOW
8860 # define LT_DLLAZY_OR_NOW DL_NOW
8862 # define LT_DLLAZY_OR_NOW 0
8870 extern "C" void exit (int);
8873 void fnord() { int i=42;}
8876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8877 int status = $lt_dlunknown;
8881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8882 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8883 /* dlclose (self); */
8889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8890 (eval $ac_link) 2>&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8894 (./conftest; exit; ) 2>/dev/null
8897 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8898 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8899 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8902 # compilation failed
8903 lt_cv_dlopen_self_static=no
8910 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8911 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8914 CPPFLAGS="$save_CPPFLAGS"
8915 LDFLAGS="$save_LDFLAGS"
8920 case $lt_cv_dlopen_self in
8921 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8922 *) enable_dlopen_self=unknown ;;
8925 case $lt_cv_dlopen_self_static in
8926 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8927 *) enable_dlopen_self_static=unknown ;;
8932 # Report which librarie types wil actually be built
8933 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8934 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8935 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8936 echo "${ECHO_T}$can_build_shared" >&6
8938 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8939 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8940 test "$can_build_shared" = "no" && enable_shared=no
8942 # On AIX, shared libraries and static libraries use the same namespace, and
8943 # are all built from PIC.
8946 test "$enable_shared" = yes && enable_static=no
8947 if test -n "$RANLIB"; then
8948 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8949 postinstall_cmds='$RANLIB $lib'
8954 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8955 test "$enable_shared" = yes && enable_static=no
8958 darwin* | rhapsody*)
8959 if test "$GCC" = yes; then
8960 archive_cmds_need_lc=no
8962 rhapsody* | darwin1.[012])
8963 allow_undefined_flag='-undefined suppress'
8966 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8967 allow_undefined_flag='-flat_namespace -undefined suppress'
8969 case ${MACOSX_DEPLOYMENT_TARGET} in
8971 allow_undefined_flag='-flat_namespace -undefined suppress'
8974 allow_undefined_flag='-undefined dynamic_lookup'
8980 output_verbose_link_cmd='echo'
8981 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8982 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8983 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8984 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}'
8985 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}'
8987 hardcode_automatic=yes
8988 hardcode_shlibpath_var=unsupported
8989 whole_archive_flag_spec='-all_load $convenience'
8990 link_all_deplibs=yes
8996 echo "$as_me:$LINENO: result: $enable_shared" >&5
8997 echo "${ECHO_T}$enable_shared" >&6
8999 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9000 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9001 # Make sure either enable_shared or enable_static is yes.
9002 test "$enable_shared" = yes || enable_static=yes
9003 echo "$as_me:$LINENO: result: $enable_static" >&5
9004 echo "${ECHO_T}$enable_static" >&6
9006 # The else clause should only fire when bootstrapping the
9007 # libtool distribution, otherwise you forgot to ship ltmain.sh
9008 # with your package, and you will get complaints that there are
9009 # no rules to generate ltmain.sh.
9010 if test -f "$ltmain"; then
9011 # See if we are running on zsh, and set the options which allow our commands through
9012 # without removal of \ escapes.
9013 if test -n "${ZSH_VERSION+set}" ; then
9014 setopt NO_GLOB_SUBST
9016 # Now quote all the things that may contain metacharacters while being
9017 # careful not to overquote the AC_SUBSTed values. We take copies of the
9018 # variables and quote the copies for generation of the libtool script.
9019 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9021 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9022 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9023 deplibs_check_method reload_flag reload_cmds need_locks \
9024 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9025 lt_cv_sys_global_symbol_to_c_name_address \
9026 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9027 old_postinstall_cmds old_postuninstall_cmds \
9031 lt_prog_compiler_wl \
9032 lt_prog_compiler_pic \
9033 lt_prog_compiler_static \
9034 lt_prog_compiler_no_builtin_flag \
9035 export_dynamic_flag_spec \
9036 thread_safe_flag_spec \
9037 whole_archive_flag_spec \
9038 enable_shared_with_static_runtimes \
9040 old_archive_from_new_cmds \
9045 compiler_lib_search_path \
9047 archive_expsym_cmds \
9049 postuninstall_cmds \
9050 old_archive_from_expsyms_cmds \
9051 allow_undefined_flag \
9053 export_symbols_cmds \
9054 hardcode_libdir_flag_spec \
9055 hardcode_libdir_flag_spec_ld \
9056 hardcode_libdir_separator \
9057 hardcode_automatic \
9059 module_expsym_cmds \
9060 lt_cv_prog_compiler_c_o \
9065 old_archive_cmds | \
9066 old_archive_from_new_cmds | \
9068 archive_expsym_cmds | \
9070 module_expsym_cmds | \
9071 old_archive_from_expsyms_cmds | \
9072 export_symbols_cmds | \
9073 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9074 postinstall_cmds | postuninstall_cmds | \
9075 old_postinstall_cmds | old_postuninstall_cmds | \
9076 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9077 # Double-quote double-evaled strings.
9078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9087 *'\$0 --fallback-echo"')
9088 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9093 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9095 { echo "$as_me:$LINENO: creating $ofile" >&5
9096 echo "$as_me: creating $ofile" >&6;}
9098 cat <<__EOF__ >> "$cfgfile"
9101 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9102 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9103 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9105 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9106 # Free Software Foundation, Inc.
9108 # This file is part of GNU Libtool:
9109 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9111 # This program is free software; you can redistribute it and/or modify
9112 # it under the terms of the GNU General Public License as published by
9113 # the Free Software Foundation; either version 2 of the License, or
9114 # (at your option) any later version.
9116 # This program is distributed in the hope that it will be useful, but
9117 # WITHOUT ANY WARRANTY; without even the implied warranty of
9118 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9119 # General Public License for more details.
9121 # You should have received a copy of the GNU General Public License
9122 # along with this program; if not, write to the Free Software
9123 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9125 # As a special exception to the GNU General Public License, if you
9126 # distribute this file as part of a program that contains a
9127 # configuration script generated by Autoconf, you may include it under
9128 # the same distribution terms that you use for the rest of that program.
9130 # A sed program that does not truncate output.
9133 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9134 Xsed="$SED -e s/^X//"
9136 # The HP-UX ksh and POSIX shell print the target directory to stdout
9138 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9140 # The names of the tagged configurations supported by this script.
9143 # ### BEGIN LIBTOOL CONFIG
9145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9147 # Shell to use when invoking shell scripts.
9150 # Whether or not to build shared libraries.
9151 build_libtool_libs=$enable_shared
9153 # Whether or not to build static libraries.
9154 build_old_libs=$enable_static
9156 # Whether or not to add -lc for building shared libraries.
9157 build_libtool_need_lc=$archive_cmds_need_lc
9159 # Whether or not to disallow shared libs when runtime libs are static
9160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9162 # Whether or not to optimize for fast installation.
9163 fast_install=$enable_fast_install
9166 host_alias=$host_alias
9169 # An echo program that does not interpret backslashes.
9174 AR_FLAGS=$lt_AR_FLAGS
9179 # A language-specific compiler.
9182 # Is the compiler the GNU C compiler?
9188 # The linker used to build libraries.
9191 # Whether we need hard or soft links.
9194 # A BSD-compatible nm program.
9197 # A symbol stripping program
9200 # Used to examine libraries when file_magic_cmd begins "file"
9201 MAGIC_CMD=$MAGIC_CMD
9203 # Used on cygwin: DLL creation program.
9206 # Used on cygwin: object dumper.
9209 # Used on cygwin: assembler.
9212 # The name of the directory that contains temporary libtool files.
9215 # How to create reloadable object files.
9216 reload_flag=$lt_reload_flag
9217 reload_cmds=$lt_reload_cmds
9219 # How to pass a linker flag through the compiler.
9220 wl=$lt_lt_prog_compiler_wl
9222 # Object file suffix (normally "o").
9225 # Old archive suffix (normally "a").
9228 # Shared library suffix (normally ".so").
9231 # Executable file suffix (normally "").
9234 # Additional compiler flags for building library objects.
9235 pic_flag=$lt_lt_prog_compiler_pic
9238 # What is the maximum length of a command?
9239 max_cmd_len=$lt_cv_sys_max_cmd_len
9241 # Does compiler simultaneously support -c and -o options?
9242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9244 # Must we lock files when doing compilation ?
9245 need_locks=$lt_need_locks
9247 # Do we need the lib prefix for modules?
9248 need_lib_prefix=$need_lib_prefix
9250 # Do we need a version for libraries?
9251 need_version=$need_version
9253 # Whether dlopen is supported.
9254 dlopen_support=$enable_dlopen
9256 # Whether dlopen of programs is supported.
9257 dlopen_self=$enable_dlopen_self
9259 # Whether dlopen of statically linked programs is supported.
9260 dlopen_self_static=$enable_dlopen_self_static
9262 # Compiler flag to prevent dynamic linking.
9263 link_static_flag=$lt_lt_prog_compiler_static
9265 # Compiler flag to turn off builtin functions.
9266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9268 # Compiler flag to allow reflexive dlopens.
9269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9271 # Compiler flag to generate shared objects directly from archives.
9272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9274 # Compiler flag to generate thread-safe objects.
9275 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9277 # Library versioning type.
9278 version_type=$version_type
9280 # Format of library name prefix.
9281 libname_spec=$lt_libname_spec
9283 # List of archive names. First name is the real one, the rest are links.
9284 # The last name is the one that the linker finds with -lNAME.
9285 library_names_spec=$lt_library_names_spec
9287 # The coded name of the library, if different from the real name.
9288 soname_spec=$lt_soname_spec
9290 # Commands used to build and install an old-style archive.
9292 old_archive_cmds=$lt_old_archive_cmds
9293 old_postinstall_cmds=$lt_old_postinstall_cmds
9294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9296 # Create an old-style archive from a shared archive.
9297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9299 # Create a temporary old-style archive to link instead of a shared archive.
9300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9302 # Commands used to build and install a shared archive.
9303 archive_cmds=$lt_archive_cmds
9304 archive_expsym_cmds=$lt_archive_expsym_cmds
9305 postinstall_cmds=$lt_postinstall_cmds
9306 postuninstall_cmds=$lt_postuninstall_cmds
9308 # Commands used to build a loadable module (assumed same as above if empty)
9309 module_cmds=$lt_module_cmds
9310 module_expsym_cmds=$lt_module_expsym_cmds
9312 # Commands to strip libraries.
9313 old_striplib=$lt_old_striplib
9314 striplib=$lt_striplib
9316 # Dependencies to place before the objects being linked to create a
9318 predep_objects=$lt_predep_objects
9320 # Dependencies to place after the objects being linked to create a
9322 postdep_objects=$lt_postdep_objects
9324 # Dependencies to place before the objects being linked to create a
9328 # Dependencies to place after the objects being linked to create a
9330 postdeps=$lt_postdeps
9332 # The library search path used internally by the compiler when linking
9334 compiler_lib_search_path=$lt_compiler_lib_search_path
9336 # Method to check whether dependent libraries are shared objects.
9337 deplibs_check_method=$lt_deplibs_check_method
9339 # Command to use when deplibs_check_method == file_magic.
9340 file_magic_cmd=$lt_file_magic_cmd
9342 # Flag that allows shared libraries with undefined symbols to be built.
9343 allow_undefined_flag=$lt_allow_undefined_flag
9345 # Flag that forces no undefined symbols.
9346 no_undefined_flag=$lt_no_undefined_flag
9348 # Commands used to finish a libtool library installation in a directory.
9349 finish_cmds=$lt_finish_cmds
9351 # Same as above, but a single script fragment to be evaled but not shown.
9352 finish_eval=$lt_finish_eval
9354 # Take the output of nm and produce a listing of raw symbols and C names.
9355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9357 # Transform the output of nm in a proper C declaration
9358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9360 # Transform the output of nm in a C name address pair
9361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9363 # This is the shared library runtime path variable.
9364 runpath_var=$runpath_var
9366 # This is the shared library path variable.
9367 shlibpath_var=$shlibpath_var
9369 # Is shlibpath searched before the hard-coded library search path?
9370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9372 # How to hardcode a shared library path into an executable.
9373 hardcode_action=$hardcode_action
9375 # Whether we should hardcode library paths into libraries.
9376 hardcode_into_libs=$hardcode_into_libs
9378 # Flag to hardcode \$libdir into a binary during linking.
9379 # This must work even if \$libdir does not exist.
9380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9382 # If ld is used when linking, flag to hardcode \$libdir into
9383 # a binary during linking. This must work even if \$libdir does
9385 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9387 # Whether we need a single -rpath flag with a separated argument.
9388 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9390 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9392 hardcode_direct=$hardcode_direct
9394 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9396 hardcode_minus_L=$hardcode_minus_L
9398 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9399 # the resulting binary.
9400 hardcode_shlibpath_var=$hardcode_shlibpath_var
9402 # Set to yes if building a shared library automatically hardcodes DIR into the library
9403 # and all subsequent libraries and executables linked against it.
9404 hardcode_automatic=$hardcode_automatic
9406 # Variables whose values should be saved in libtool wrapper scripts and
9407 # restored at relink time.
9408 variables_saved_for_relink="$variables_saved_for_relink"
9410 # Whether libtool must link a program against all its dependency libraries.
9411 link_all_deplibs=$link_all_deplibs
9413 # Compile-time system search path for libraries
9414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9416 # Run-time system search path for libraries
9417 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9419 # Fix the shell variable \$srcfile for the compiler.
9420 fix_srcfile_path="$fix_srcfile_path"
9422 # Set to yes if exported symbols are required.
9423 always_export_symbols=$always_export_symbols
9425 # The commands to list exported symbols.
9426 export_symbols_cmds=$lt_export_symbols_cmds
9428 # The commands to extract the exported symbol list from a shared archive.
9429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9431 # Symbols that should not be listed in the preloaded symbols.
9432 exclude_expsyms=$lt_exclude_expsyms
9434 # Symbols that must always be exported.
9435 include_expsyms=$lt_include_expsyms
9437 # ### END LIBTOOL CONFIG
9444 cat <<\EOF >> "$cfgfile"
9446 # AIX sometimes has problems with the GCC collect2 program. For some
9447 # reason, if we set the COLLECT_NAMES environment variable, the problems
9448 # vanish in a puff of smoke.
9449 if test "X${COLLECT_NAMES+set}" != Xset; then
9451 export COLLECT_NAMES
9457 # We use sed instead of cat because bash on DJGPP gets confused if
9458 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9459 # text mode, it properly converts lines to CR/LF. This bash problem
9460 # is reportedly fixed, but why not run on old versions too?
9461 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9463 mv -f "$cfgfile" "$ofile" || \
9464 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9468 # If there is no Makefile yet, we rely on a make rule to execute
9469 # `config.status --recheck' to rerun these tests and create the
9470 # libtool script then.
9471 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9472 if test -f "$ltmain_in"; then
9473 test -f Makefile && make "$ltmain"
9479 ac_cpp='$CPP $CPPFLAGS'
9480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9487 # Check whether --with-tags or --without-tags was given.
9488 if test "${with_tags+set}" = set; then
9489 withval="$with_tags"
9493 if test -f "$ltmain" && test -n "$tagnames"; then
9494 if test ! -f "${ofile}"; then
9495 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9496 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9499 if test -z "$LTCC"; then
9500 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9501 if test -z "$LTCC"; then
9502 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9503 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9505 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9506 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9510 # Extract list of available tagged configurations in $ofile.
9511 # Note that this assumes the entire list is on one line.
9512 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9515 for tagname in $tagnames; do
9517 # Check whether tagname contains only valid characters
9518 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9520 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9521 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9522 { (exit 1); exit 1; }; }
9526 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9528 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9529 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9530 { (exit 1); exit 1; }; }
9533 # Update the list of available tags.
9534 if test -n "$tagname"; then
9535 echo appending configuration tag \"$tagname\" to $ofile
9539 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9541 ac_cpp='$CXXCPP $CPPFLAGS'
9542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9549 archive_cmds_need_lc_CXX=no
9550 allow_undefined_flag_CXX=
9551 always_export_symbols_CXX=no
9552 archive_expsym_cmds_CXX=
9553 export_dynamic_flag_spec_CXX=
9554 hardcode_direct_CXX=no
9555 hardcode_libdir_flag_spec_CXX=
9556 hardcode_libdir_flag_spec_ld_CXX=
9557 hardcode_libdir_separator_CXX=
9558 hardcode_minus_L_CXX=no
9559 hardcode_automatic_CXX=no
9561 module_expsym_cmds_CXX=
9562 link_all_deplibs_CXX=unknown
9563 old_archive_cmds_CXX=$old_archive_cmds
9564 no_undefined_flag_CXX=
9565 whole_archive_flag_spec_CXX=
9566 enable_shared_with_static_runtimes_CXX=no
9568 # Dependencies to place before and after the object being linked:
9570 postdep_objects_CXX=
9573 compiler_lib_search_path_CXX=
9575 # Source file extension for C++ test sources.
9578 # Object file extension for compiled C++ test sources.
9582 # Code to be used in simple compile tests
9583 lt_simple_compile_test_code="int some_variable = 0;\n"
9585 # Code to be used in simple link tests
9586 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9590 # If no C compiler was specified, use CC.
9593 # Allow CC to be a program name with arguments.
9597 # Allow CC to be a program name with arguments.
9602 lt_save_with_gnu_ld=$with_gnu_ld
9603 lt_save_path_LD=$lt_cv_path_LD
9604 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9605 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9607 unset lt_cv_prog_gnu_ld
9609 if test -n "${lt_cv_path_LDCXX+set}"; then
9610 lt_cv_path_LD=$lt_cv_path_LDCXX
9614 test -z "${LDCXX+set}" || LD=$LDCXX
9618 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9620 # We don't want -fno-exception wen compiling C++ code, so set the
9621 # no_builtin_flag separately
9622 if test "$GXX" = yes; then
9623 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9625 lt_prog_compiler_no_builtin_flag_CXX=
9628 if test "$GXX" = yes; then
9629 # Set up default GNU C++ configuration
9632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9633 if test "${with_gnu_ld+set}" = set; then
9634 withval="$with_gnu_ld"
9635 test "$withval" = no || with_gnu_ld=yes
9640 if test "$GCC" = yes; then
9641 # Check if gcc -print-prog-name=ld gives a path.
9642 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9646 # gcc leaves a trailing carriage return which upsets mingw
9647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9652 # Accept absolute paths.
9654 re_direlt='/[^/][^/]*/\.\./'
9655 # Canonicalize the pathname of ld
9656 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9657 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9658 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9660 test -z "$LD" && LD="$ac_prog"
9663 # If it fails, then pretend we aren't using GCC.
9667 # If it is relative, then search for the first ld in PATH.
9671 elif test "$with_gnu_ld" = yes; then
9672 echo "$as_me:$LINENO: checking for GNU ld" >&5
9673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9675 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9678 if test "${lt_cv_path_LD+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 if test -z "$LD"; then
9682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9683 for ac_dir in $PATH; do
9685 test -z "$ac_dir" && ac_dir=.
9686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9687 lt_cv_path_LD="$ac_dir/$ac_prog"
9688 # Check to see if the program is GNU ld. I'd rather use --version,
9689 # but apparently some GNU ld's only accept -v.
9690 # Break only if it was the GNU/non-GNU ld that we prefer.
9691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9692 *GNU* | *'with BFD'*)
9693 test "$with_gnu_ld" != no && break
9696 test "$with_gnu_ld" != yes && break
9703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9708 if test -n "$LD"; then
9709 echo "$as_me:$LINENO: result: $LD" >&5
9710 echo "${ECHO_T}$LD" >&6
9712 echo "$as_me:$LINENO: result: no" >&5
9713 echo "${ECHO_T}no" >&6
9715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9717 { (exit 1); exit 1; }; }
9718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9724 case `$LD -v 2>&1 </dev/null` in
9725 *GNU* | *'with BFD'*)
9726 lt_cv_prog_gnu_ld=yes
9729 lt_cv_prog_gnu_ld=no
9733 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9735 with_gnu_ld=$lt_cv_prog_gnu_ld
9739 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9740 # archiving commands below assume that GNU ld is being used.
9741 if test "$with_gnu_ld" = yes; then
9742 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743 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'
9745 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9748 # If archive_cmds runs LD, not CC, wlarc should be empty
9749 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9750 # investigate it a little bit more. (MM)
9753 # ancient GNU ld didn't support --whole-archive et. al.
9754 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9755 grep 'no-whole-archive' > /dev/null; then
9756 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9758 whole_archive_flag_spec_CXX=
9764 # A generic and very simple default shared library creation
9765 # command for GNU C++ for the case where it uses the native
9766 # linker, instead of GNU ld. If possible, this setting should
9767 # overridden to take advantage of the native linker features on
9768 # the platform it is being used on.
9769 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9772 # Commands to make compiler produce verbose output that lists
9773 # what "hidden" libraries, object files and flags are used when
9774 # linking a shared library.
9775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9783 # PORTME: fill in a description of your system's C++ link characteristics
9784 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9789 # FIXME: insert proper C++ library support
9793 if test "$host_cpu" = ia64; then
9794 # On IA64, the linker does run time linking by default, so we don't
9795 # have to do anything special.
9796 aix_use_runtimelinking=no
9797 exp_sym_flag='-Bexport'
9800 aix_use_runtimelinking=no
9802 # Test if we are trying to use run time linking or normal
9803 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9804 # need to do runtime linking.
9805 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9806 for ld_flag in $LDFLAGS; do
9809 aix_use_runtimelinking=yes
9816 exp_sym_flag='-bexport'
9817 no_entry_flag='-bnoentry'
9820 # When large executables or shared objects are built, AIX ld can
9821 # have problems creating the table of contents. If linking a library
9822 # or program results in "error TOC overflow" add -mminimal-toc to
9823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9827 hardcode_direct_CXX=yes
9828 hardcode_libdir_separator_CXX=':'
9829 link_all_deplibs_CXX=yes
9831 if test "$GXX" = yes; then
9832 case $host_os in aix4.012|aix4.012.*)
9833 # We only want to do this on AIX 4.2 and lower, the check
9834 # below for broken collect2 doesn't work under 4.3+
9835 collect2name=`${CC} -print-prog-name=collect2`
9836 if test -f "$collect2name" && \
9837 strings "$collect2name" | grep resolve_lib_name >/dev/null
9839 # We have reworked collect2
9840 hardcode_direct_CXX=yes
9842 # We have old collect2
9843 hardcode_direct_CXX=unsupported
9844 # It fails to find uninstalled libraries when the uninstalled
9845 # path is not listed in the libpath. Setting hardcode_minus_L
9846 # to unsupported forces relinking
9847 hardcode_minus_L_CXX=yes
9848 hardcode_libdir_flag_spec_CXX='-L$libdir'
9849 hardcode_libdir_separator_CXX=
9852 shared_flag='-shared'
9855 if test "$host_cpu" = ia64; then
9856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9857 # chokes on -Wl,-G. The following line is correct:
9860 if test "$aix_use_runtimelinking" = yes; then
9861 shared_flag='${wl}-G'
9863 shared_flag='${wl}-bM:SRE'
9868 # It seems that -bexpall does not export symbols beginning with
9869 # underscore (_), so it is better to generate a list of symbols to export.
9870 always_export_symbols_CXX=yes
9871 if test "$aix_use_runtimelinking" = yes; then
9872 # Warning - without using the other runtime loading flags (-brtl),
9873 # -berok will link without error, but may produce a broken library.
9874 allow_undefined_flag_CXX='-berok'
9875 # Determine the default libpath from the value encoded in an empty executable.
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893 (eval $ac_link) 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9915 # Check for a 64-bit object if we didn't find anything.
9916 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; }
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9923 rm -f conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9927 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9929 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9931 if test "$host_cpu" = ia64; then
9932 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9933 allow_undefined_flag_CXX="-z nodefs"
9934 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9936 # Determine the default libpath from the value encoded in an empty executable.
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954 (eval $ac_link) 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest$ac_exeext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9976 # Check for a 64-bit object if we didn't find anything.
9977 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; }
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9984 rm -f conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9988 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9989 # Warning - without using the other run time loading flags,
9990 # -berok will link without error, but may produce a broken library.
9991 no_undefined_flag_CXX=' ${wl}-bernotok'
9992 allow_undefined_flag_CXX=' ${wl}-berok'
9993 # -bexpall does not export symbols beginning with underscore (_)
9994 always_export_symbols_CXX=yes
9995 # Exported symbols can be pulled into shared objects from archives
9996 whole_archive_flag_spec_CXX=' '
9997 archive_cmds_need_lc_CXX=yes
9998 # This is similar to how AIX traditionally builds it's shared libraries.
9999 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10004 case $cc_basename in
10006 # FIXME: insert proper C++ library support
10012 cygwin* | mingw* | pw32*)
10013 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10014 # as there is no search path for DLLs.
10015 hardcode_libdir_flag_spec_CXX='-L$libdir'
10016 allow_undefined_flag_CXX=unsupported
10017 always_export_symbols_CXX=no
10018 enable_shared_with_static_runtimes_CXX=yes
10020 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10021 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10022 # If the export-symbols file already is a .def file (1st line
10023 # is EXPORTS), use it as is; otherwise, prepend...
10024 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10025 cp $export_symbols $output_objdir/$soname.def;
10027 echo EXPORTS > $output_objdir/$soname.def;
10028 cat $export_symbols >> $output_objdir/$soname.def;
10030 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10036 darwin* | rhapsody*)
10037 if test "$GXX" = yes; then
10038 archive_cmds_need_lc_CXX=no
10040 rhapsody* | darwin1.[012])
10041 allow_undefined_flag_CXX='-undefined suppress'
10044 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10045 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10047 case ${MACOSX_DEPLOYMENT_TARGET} in
10049 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10052 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10058 lt_int_apple_cc_single_mod=no
10059 output_verbose_link_cmd='echo'
10060 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10061 lt_int_apple_cc_single_mod=yes
10063 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10064 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10066 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10068 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10071 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10072 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}'
10074 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10076 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}'
10077 hardcode_direct_CXX=no
10078 hardcode_automatic_CXX=yes
10079 hardcode_shlibpath_var_CXX=unsupported
10080 whole_archive_flag_spec_CXX='-all_load $convenience'
10081 link_all_deplibs_CXX=yes
10088 case $cc_basename in
10090 # FIXME: insert proper C++ library support
10094 # Green Hills C++ Compiler
10095 # FIXME: insert proper C++ library support
10099 # FIXME: insert proper C++ library support
10105 # C++ shared libraries reported to be fairly broken before switch to ELF
10109 archive_cmds_need_lc_CXX=no
10111 freebsd* | kfreebsd*-gnu)
10112 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10119 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10120 hardcode_libdir_separator_CXX=:
10121 export_dynamic_flag_spec_CXX='${wl}-E'
10122 hardcode_direct_CXX=yes
10123 hardcode_minus_L_CXX=yes # Not in the search PATH,
10124 # but as the default
10125 # location of the library.
10127 case $cc_basename in
10129 # FIXME: insert proper C++ library support
10133 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'
10134 # Commands to make compiler produce verbose output that lists
10135 # what "hidden" libraries, object files and flags are used when
10136 # linking a shared library.
10138 # There doesn't appear to be a way to prevent this compiler from
10139 # explicitly linking system object files so we need to strip them
10140 # from the output so that they don't get included in the library
10142 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10145 if test "$GXX" = yes; then
10146 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'
10148 # FIXME: insert proper C++ library support
10155 if test $with_gnu_ld = no; then
10156 case "$host_cpu" in
10158 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10159 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10160 hardcode_libdir_separator_CXX=:
10163 hardcode_libdir_flag_spec_CXX='-L$libdir'
10166 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10167 hardcode_libdir_separator_CXX=:
10168 export_dynamic_flag_spec_CXX='${wl}-E'
10172 case "$host_cpu" in
10174 hardcode_direct_CXX=no
10175 hardcode_shlibpath_var_CXX=no
10178 hardcode_direct_CXX=no
10179 hardcode_shlibpath_var_CXX=no
10180 hardcode_minus_L_CXX=yes # Not in the search PATH,
10181 # but as the default
10182 # location of the library.
10185 hardcode_direct_CXX=yes
10186 hardcode_minus_L_CXX=yes # Not in the search PATH,
10187 # but as the default
10188 # location of the library.
10192 case $cc_basename in
10194 # FIXME: insert proper C++ library support
10198 case "$host_cpu" in
10200 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10206 # Commands to make compiler produce verbose output that lists
10207 # what "hidden" libraries, object files and flags are used when
10208 # linking a shared library.
10210 # There doesn't appear to be a way to prevent this compiler from
10211 # explicitly linking system object files so we need to strip them
10212 # from the output so that they don't get included in the library
10214 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'
10217 if test "$GXX" = yes; then
10218 if test $with_gnu_ld = no; then
10219 case "$host_cpu" in
10221 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10224 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'
10229 # FIXME: insert proper C++ library support
10236 case $cc_basename in
10239 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10241 # Archives containing C++ object files must be created using
10242 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10243 # necessary to make sure instantiated templates are included
10245 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10248 if test "$GXX" = yes; then
10249 if test "$with_gnu_ld" = no; then
10250 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10252 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'
10255 link_all_deplibs_CXX=yes
10258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10259 hardcode_libdir_separator_CXX=:
10262 case $cc_basename in
10264 # Kuck and Associates, Inc. (KAI) C++ Compiler
10266 # KCC will only create a shared library if the output file
10267 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10268 # to its proper name (with version) after linking.
10269 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'
10270 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'
10271 # Commands to make compiler produce verbose output that lists
10272 # what "hidden" libraries, object files and flags are used when
10273 # linking a shared library.
10275 # There doesn't appear to be a way to prevent this compiler from
10276 # explicitly linking system object files so we need to strip them
10277 # from the output so that they don't get included in the library
10279 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'
10281 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10282 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10284 # Archives containing C++ object files must be created using
10285 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10286 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10291 archive_cmds_need_lc_CXX=no
10292 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10293 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'
10294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10296 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10300 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301 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'
10303 runpath_var=LD_RUN_PATH
10304 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10305 hardcode_libdir_separator_CXX=:
10307 # Commands to make compiler produce verbose output that lists
10308 # what "hidden" libraries, object files and flags are used when
10309 # linking a shared library.
10311 # There doesn't appear to be a way to prevent this compiler from
10312 # explicitly linking system object files so we need to strip them
10313 # from the output so that they don't get included in the library
10315 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'
10320 # FIXME: insert proper C++ library support
10324 # FIXME: insert proper C++ library support
10328 case $cc_basename in
10330 # FIXME: insert proper C++ library support
10334 # FIXME: insert proper C++ library support
10340 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10341 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10343 hardcode_libdir_flag_spec_CXX='-R$libdir'
10344 hardcode_direct_CXX=yes
10345 hardcode_shlibpath_var_CXX=no
10347 # Workaround some broken pre-1.5 toolchains
10348 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10351 case $cc_basename in
10353 # Kuck and Associates, Inc. (KAI) C++ Compiler
10355 # KCC will only create a shared library if the output file
10356 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10357 # to its proper name (with version) after linking.
10358 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'
10360 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10361 hardcode_libdir_separator_CXX=:
10363 # Archives containing C++ object files must be created using
10364 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10365 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10369 # Rational C++ 2.4.1
10370 # FIXME: insert proper C++ library support
10374 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10375 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10377 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10378 hardcode_libdir_separator_CXX=:
10380 # Commands to make compiler produce verbose output that lists
10381 # what "hidden" libraries, object files and flags are used when
10382 # linking a shared library.
10384 # There doesn't appear to be a way to prevent this compiler from
10385 # explicitly linking system object files so we need to strip them
10386 # from the output so that they don't get included in the library
10388 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'
10391 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10392 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10393 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10396 hardcode_libdir_separator_CXX=:
10398 # Commands to make compiler produce verbose output that lists
10399 # what "hidden" libraries, object files and flags are used when
10400 # linking a shared library.
10401 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10404 # FIXME: insert proper C++ library support
10411 case $cc_basename in
10413 # Kuck and Associates, Inc. (KAI) C++ Compiler
10415 # KCC will only create a shared library if the output file
10416 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10417 # to its proper name (with version) after linking.
10418 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'
10420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10421 hardcode_libdir_separator_CXX=:
10423 # Archives containing C++ object files must be created using
10424 # the KAI C++ compiler.
10425 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10428 # Rational C++ 2.4.1
10429 # FIXME: insert proper C++ library support
10433 allow_undefined_flag_CXX=' -expect_unresolved \*'
10434 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10435 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10436 echo "-hidden">> $lib.exp~
10437 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10440 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10441 hardcode_libdir_separator_CXX=:
10443 # Commands to make compiler produce verbose output that lists
10444 # what "hidden" libraries, object files and flags are used when
10445 # linking a shared library.
10447 # There doesn't appear to be a way to prevent this compiler from
10448 # explicitly linking system object files so we need to strip them
10449 # from the output so that they don't get included in the library
10451 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'
10454 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10455 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10456 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10459 hardcode_libdir_separator_CXX=:
10461 # Commands to make compiler produce verbose output that lists
10462 # what "hidden" libraries, object files and flags are used when
10463 # linking a shared library.
10464 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10467 # FIXME: insert proper C++ library support
10474 # FIXME: insert proper C++ library support
10478 archive_cmds_need_lc_CXX=no
10479 case $cc_basename in
10481 # FIXME: insert proper C++ library support
10485 # FIXME: insert proper C++ library support
10491 case $cc_basename in
10494 # FIXME: insert proper C++ library support
10499 # FIXME: insert proper C++ library support
10503 # FIXME: insert proper C++ library support
10509 case $cc_basename in
10511 # Sun C++ 4.2, 5.x and Centerline C++
10512 no_undefined_flag_CXX=' -zdefs'
10513 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10514 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10515 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10517 hardcode_libdir_flag_spec_CXX='-R$libdir'
10518 hardcode_shlibpath_var_CXX=no
10520 solaris2.0-5 | solaris2.0-5.*) ;;
10522 # The C++ compiler is used as linker so we must use $wl
10523 # flag to pass the commands to the underlying system
10525 # Supported since Solaris 2.6 (maybe 2.5.1?)
10526 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10529 link_all_deplibs_CXX=yes
10531 # Commands to make compiler produce verbose output that lists
10532 # what "hidden" libraries, object files and flags are used when
10533 # linking a shared library.
10535 # There doesn't appear to be a way to prevent this compiler from
10536 # explicitly linking system object files so we need to strip them
10537 # from the output so that they don't get included in the library
10539 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10541 # Archives containing C++ object files must be created using
10542 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10543 # necessary to make sure instantiated templates are included
10545 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10548 # Green Hills C++ Compiler
10549 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10551 # The C++ compiler must be used to create the archive.
10552 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10555 # GNU C++ compiler with Solaris linker
10556 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10557 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10558 if $CC --version | grep -v '^2\.7' > /dev/null; then
10559 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10560 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10561 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10563 # Commands to make compiler produce verbose output that lists
10564 # what "hidden" libraries, object files and flags are used when
10565 # linking a shared library.
10566 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10568 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10570 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10571 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10572 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10574 # Commands to make compiler produce verbose output that lists
10575 # what "hidden" libraries, object files and flags are used when
10576 # linking a shared library.
10577 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10580 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10585 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10586 archive_cmds_need_lc_CXX=no
10589 case $cc_basename in
10591 # NonStop-UX NCC 3.20
10592 # FIXME: insert proper C++ library support
10596 # FIXME: insert proper C++ library support
10602 # FIXME: insert proper C++ library support
10606 # FIXME: insert proper C++ library support
10610 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10611 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10612 test "$ld_shlibs_CXX" = no && can_build_shared=no
10618 cat > conftest.$ac_ext <<EOF
10622 Foo (void) { a = 0; }
10628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10629 (eval $ac_compile) 2>&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; then
10633 # Parse the compiler output and extract the necessary
10634 # objects, libraries and library flags.
10636 # Sentinel used to keep track of whether or not we are before
10637 # the conftest object file.
10638 pre_test_object_deps_done=no
10640 # The `*' in the case matches for architectures that use `case' in
10641 # $output_verbose_cmd can trigger glob expansion during the loop
10642 # eval without this substitution.
10643 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10645 for p in `eval $output_verbose_link_cmd`; do
10649 # Some compilers place space between "-{L,R}" and the path.
10650 # Remove the space.
10651 if test $p = "-L" \
10652 || test $p = "-R"; then
10659 if test "$pre_test_object_deps_done" = no; then
10662 # Internal compiler library paths should come after those
10663 # provided the user. The postdeps already come after the
10664 # user supplied libs so there is no need to process them.
10665 if test -z "$compiler_lib_search_path_CXX"; then
10666 compiler_lib_search_path_CXX="${prev}${p}"
10668 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10671 # The "-l" case would never come before the object being
10672 # linked, so don't bother handling this case.
10675 if test -z "$postdeps_CXX"; then
10676 postdeps_CXX="${prev}${p}"
10678 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10684 # This assumes that the test object file only shows up
10685 # once in the compiler output.
10686 if test "$p" = "conftest.$objext"; then
10687 pre_test_object_deps_done=yes
10691 if test "$pre_test_object_deps_done" = no; then
10692 if test -z "$predep_objects_CXX"; then
10693 predep_objects_CXX="$p"
10695 predep_objects_CXX="$predep_objects_CXX $p"
10698 if test -z "$postdep_objects_CXX"; then
10699 postdep_objects_CXX="$p"
10701 postdep_objects_CXX="$postdep_objects_CXX $p"
10706 *) ;; # Ignore the rest.
10714 echo "libtool.m4: error: problem compiling CXX test program"
10717 $rm -f confest.$objext
10719 case " $postdeps_CXX " in
10720 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10723 lt_prog_compiler_wl_CXX=
10724 lt_prog_compiler_pic_CXX=
10725 lt_prog_compiler_static_CXX=
10727 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10728 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10730 # C++ specific cases for pic, static, wl, etc.
10731 if test "$GXX" = yes; then
10732 lt_prog_compiler_wl_CXX='-Wl,'
10733 lt_prog_compiler_static_CXX='-static'
10737 # All AIX code is PIC.
10738 if test "$host_cpu" = ia64; then
10739 # AIX 5 now supports IA64 processor
10740 lt_prog_compiler_static_CXX='-Bstatic'
10744 # FIXME: we need at least 68020 code to build shared libraries, but
10745 # adding the `-m68020' flag to GCC prevents building anything better,
10747 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10749 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10750 # PIC is the default for these OSes.
10752 mingw* | os2* | pw32*)
10753 # This hack is so that the source file can tell whether it is being
10754 # built for inclusion in a dll (and should export symbols for example).
10755 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10757 darwin* | rhapsody*)
10758 # PIC is the default on this platform
10759 # Common symbols not allowed in MH_DYLIB files
10760 lt_prog_compiler_pic_CXX='-fno-common'
10763 # DJGPP does not support shared libraries at all
10764 lt_prog_compiler_pic_CXX=
10767 if test -d /usr/nec; then
10768 lt_prog_compiler_pic_CXX=-Kconform_pic
10772 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10773 # not for PA HP-UX.
10774 case "$host_cpu" in
10778 lt_prog_compiler_pic_CXX='-fPIC'
10783 lt_prog_compiler_pic_CXX='-fPIC'
10789 # All AIX code is PIC.
10790 if test "$host_cpu" = ia64; then
10791 # AIX 5 now supports IA64 processor
10792 lt_prog_compiler_static_CXX='-Bstatic'
10794 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10798 case $cc_basename in
10800 # Green Hills C++ Compiler
10801 # _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"
10806 case $cc_basename in
10808 lt_prog_compiler_pic_CXX='-KPIC'
10811 # Green Hills C++ Compiler
10812 lt_prog_compiler_pic_CXX='-pic'
10818 freebsd* | kfreebsd*-gnu)
10819 # FreeBSD uses GNU C++
10821 hpux9* | hpux10* | hpux11*)
10822 case $cc_basename in
10824 lt_prog_compiler_wl_CXX='-Wl,'
10825 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10826 if test "$host_cpu" != ia64; then
10827 lt_prog_compiler_pic_CXX='+Z'
10831 lt_prog_compiler_wl_CXX='-Wl,'
10832 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10833 case "$host_cpu" in
10838 lt_prog_compiler_pic_CXX='+Z'
10846 irix5* | irix6* | nonstopux*)
10847 case $cc_basename in
10849 lt_prog_compiler_wl_CXX='-Wl,'
10850 lt_prog_compiler_static_CXX='-non_shared'
10851 # CC pic flag -KPIC is the default.
10858 case $cc_basename in
10861 lt_prog_compiler_wl_CXX='--backend -Wl,'
10862 lt_prog_compiler_pic_CXX='-fPIC'
10866 lt_prog_compiler_wl_CXX='-Wl,'
10867 lt_prog_compiler_pic_CXX='-KPIC'
10868 lt_prog_compiler_static_CXX='-static'
10872 # Make sure the PIC flag is empty. It appears that all Alpha
10873 # Linux and Compaq Tru64 Unix objects are PIC.
10874 lt_prog_compiler_pic_CXX=
10875 lt_prog_compiler_static_CXX='-non_shared'
10886 case $cc_basename in
10888 lt_prog_compiler_pic_CXX='-W c,exportall'
10896 osf3* | osf4* | osf5*)
10897 case $cc_basename in
10899 lt_prog_compiler_wl_CXX='--backend -Wl,'
10902 # Rational C++ 2.4.1
10903 lt_prog_compiler_pic_CXX='-pic'
10906 # Digital/Compaq C++
10907 lt_prog_compiler_wl_CXX='-Wl,'
10908 # Make sure the PIC flag is empty. It appears that all Alpha
10909 # Linux and Compaq Tru64 Unix objects are PIC.
10910 lt_prog_compiler_pic_CXX=
10911 lt_prog_compiler_static_CXX='-non_shared'
10920 case $cc_basename in
10922 lt_prog_compiler_pic_CXX='-fPIC'
10929 case $cc_basename in
10931 # Sun C++ 4.2, 5.x and Centerline C++
10932 lt_prog_compiler_pic_CXX='-KPIC'
10933 lt_prog_compiler_static_CXX='-Bstatic'
10934 lt_prog_compiler_wl_CXX='-Qoption ld '
10937 # Green Hills C++ Compiler
10938 lt_prog_compiler_pic_CXX='-PIC'
10945 case $cc_basename in
10948 lt_prog_compiler_pic_CXX='-pic'
10949 lt_prog_compiler_static_CXX='-Bstatic'
10953 lt_prog_compiler_pic_CXX='-pic'
10960 case $cc_basename in
10962 # NonStop-UX NCC 3.20
10963 lt_prog_compiler_pic_CXX='-KPIC'
10974 lt_prog_compiler_can_build_shared_CXX=no
10979 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10980 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10983 # Check to make sure the PIC flag actually works.
10985 if test -n "$lt_prog_compiler_pic_CXX"; then
10987 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10989 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 lt_prog_compiler_pic_works_CXX=no
10993 ac_outfile=conftest.$ac_objext
10994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10995 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10996 # Insert the option either (1) after the last *FLAGS variable, or
10997 # (2) before a word containing "conftest.", or (3) at the end.
10998 # Note that $ac_compile itself does not contain backslashes and begins
10999 # with a dollar sign (not a hyphen), so the echo should work correctly.
11000 # The option is referenced via a variable to avoid confusing sed.
11001 lt_compile=`echo "$ac_compile" | $SED \
11002 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11004 -e 's:$: $lt_compiler_flag:'`
11005 (eval echo "\"\$as_me:11005: $lt_compile\"" >&5)
11006 (eval "$lt_compile" 2>conftest.err)
11008 cat conftest.err >&5
11009 echo "$as_me:11009: \$? = $ac_status" >&5
11010 if (exit $ac_status) && test -s "$ac_outfile"; then
11011 # The compiler can only warn and ignore the option if not recognized
11012 # So say no if there are warnings
11013 if test ! -s conftest.err; then
11014 lt_prog_compiler_pic_works_CXX=yes
11020 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11021 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11023 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11024 case $lt_prog_compiler_pic_CXX in
11026 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11029 lt_prog_compiler_pic_CXX=
11030 lt_prog_compiler_can_build_shared_CXX=no
11035 # For platforms which do not support PIC, -DPIC is meaningless:
11037 lt_prog_compiler_pic_CXX=
11040 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11044 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11045 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11046 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 lt_cv_prog_compiler_c_o_CXX=no
11050 $rm -r conftest 2>/dev/null
11054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11056 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11057 # that will create temporary files in the current directory regardless of
11058 # the output directory. Thus, making CWD read-only will cause this test
11059 # to fail, enabling locking or at least warning the user not to do parallel
11063 lt_compiler_flag="-o out/conftest2.$ac_objext"
11064 # Insert the option either (1) after the last *FLAGS variable, or
11065 # (2) before a word containing "conftest.", or (3) at the end.
11066 # Note that $ac_compile itself does not contain backslashes and begins
11067 # with a dollar sign (not a hyphen), so the echo should work correctly.
11068 lt_compile=`echo "$ac_compile" | $SED \
11069 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11071 -e 's:$: $lt_compiler_flag:'`
11072 (eval echo "\"\$as_me:11072: $lt_compile\"" >&5)
11073 (eval "$lt_compile" 2>out/conftest.err)
11075 cat out/conftest.err >&5
11076 echo "$as_me:11076: \$? = $ac_status" >&5
11077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11079 # The compiler can only warn and ignore the option if not recognized
11080 # So say no if there are warnings
11081 if test ! -s out/conftest.err; then
11082 lt_cv_prog_compiler_c_o_CXX=yes
11087 # SGI C++ compiler will create directory out/ii_files/ for
11088 # template instantiation
11089 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11090 $rm out/* && rmdir out
11096 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11100 hard_links="nottested"
11101 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11102 # do not overwrite the value of need_locks provided by the user
11103 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11109 ln conftest.a conftest.b 2>&5 || hard_links=no
11110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11111 echo "$as_me:$LINENO: result: $hard_links" >&5
11112 echo "${ECHO_T}$hard_links" >&6
11113 if test "$hard_links" = no; then
11114 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11122 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11125 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11128 # If we're using GNU nm, then we don't want the "-C" option.
11129 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11130 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11131 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'
11133 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'
11137 export_symbols_cmds_CXX="$ltdll_cmds"
11140 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11143 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11147 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11148 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11149 test "$ld_shlibs_CXX" = no && can_build_shared=no
11151 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11152 if test "$GCC" = yes; then
11153 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11157 # Do we need to explicitly link libc?
11159 case "x$archive_cmds_need_lc_CXX" in
11161 # Assume -lc should be added
11162 archive_cmds_need_lc_CXX=yes
11164 if test "$enable_shared" = yes && test "$GCC" = yes; then
11165 case $archive_cmds_CXX in
11167 # FIXME: we may have to deal with multi-command sequences.
11170 # Test whether the compiler implicitly links with -lc since on some
11171 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11172 # to ld, don't add -lc before -lgcc.
11173 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11174 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11176 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179 (eval $ac_compile) 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } 2>conftest.err; then
11185 libobjs=conftest.$ac_objext
11187 wl=$lt_prog_compiler_wl_CXX
11193 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11194 allow_undefined_flag_CXX=
11195 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11196 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }
11201 archive_cmds_need_lc_CXX=no
11203 archive_cmds_need_lc_CXX=yes
11205 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11207 cat conftest.err 1>&5
11210 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11211 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11218 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11219 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11220 library_names_spec=
11221 libname_spec='lib$name'
11225 postuninstall_cmds=
11229 shlibpath_overrides_runpath=unknown
11231 dynamic_linker="$host_os ld.so"
11232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11233 if test "$GCC" = yes; then
11234 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11235 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11236 # if the path contains ";" then we assume it to be the separator
11237 # otherwise default to the standard path separator (i.e. ":") - it is
11238 # assumed that no part of a normal pathname contains ";" but that should
11239 # okay in the real world where ";" in dirpaths is itself problematic.
11240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11245 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11247 need_lib_prefix=unknown
11248 hardcode_into_libs=no
11250 # when you set need_version to no, make sure it does not cause -set_version
11251 # flags to be left without arguments
11252 need_version=unknown
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11258 shlibpath_var=LIBPATH
11260 # AIX 3 has no versioning support, so we append a major version to the name.
11261 soname_spec='${libname}${release}${shared_ext}$major'
11268 hardcode_into_libs=yes
11269 if test "$host_cpu" = ia64; then
11270 # AIX 5 supports IA64
11271 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11272 shlibpath_var=LD_LIBRARY_PATH
11274 # With GCC up to 2.95.x, collect2 would create an import file
11275 # for dependence libraries. The import file would start with
11276 # the line `#! .'. This would cause the generated library to
11277 # depend on `.', always an invalid library. This was fixed in
11278 # development snapshots of GCC prior to 3.0.
11280 aix4 | aix4.[01] | aix4.[01].*)
11281 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11283 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11286 can_build_shared=no
11290 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11291 # soname into executable. Probably we can add versioning support to
11292 # collect2, so additional links can be useful in future.
11293 if test "$aix_use_runtimelinking" = yes; then
11294 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11295 # instead of lib<name>.a to let people know that these are not
11296 # typical AIX shared libraries.
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11299 # We preserve .a as extension for shared libraries through AIX4.2
11300 # and later when we are not doing run time linking.
11301 library_names_spec='${libname}${release}.a $libname.a'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11304 shlibpath_var=LIBPATH
11309 library_names_spec='$libname.ixlibrary $libname.a'
11310 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11311 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'
11315 library_names_spec='${libname}${shared_ext}'
11316 dynamic_linker="$host_os ld.so"
11317 shlibpath_var=LIBRARY_PATH
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11328 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11329 # the default ld.so.conf also contains /usr/contrib/lib and
11330 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11331 # libtool to hard-code these into programs
11334 cygwin* | mingw* | pw32*)
11335 version_type=windows
11340 case $GCC,$host_os in
11341 yes,cygwin* | yes,mingw* | yes,pw32*)
11342 library_names_spec='$libname.dll.a'
11343 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11344 postinstall_cmds='base_file=`basename \${file}`~
11345 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11346 dldir=$destdir/`dirname \$dlpath`~
11347 test -d \$dldir || mkdir -p \$dldir~
11348 $install_prog $dir/$dlname \$dldir/$dlname'
11349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11350 dlpath=$dir/\$dldll~
11352 shlibpath_overrides_runpath=yes
11356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11361 # MinGW DLLs use traditional 'lib' prefix
11362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11365 # It is most probably a Windows format PATH printed by
11366 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11367 # path with ; separators, and with drive letters. We can handle the
11368 # drive letters (cygwin fileutils understands them), so leave them,
11369 # especially as we might pass files found there to a mingw objdump,
11370 # which wouldn't understand a cygwinified path. Ahh.
11371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11377 # pw32 DLLs use 'pw' prefix rather than 'lib'
11378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11387 dynamic_linker='Win32 ld.exe'
11388 # FIXME: first we should search . and the directory the executable is in
11392 darwin* | rhapsody*)
11393 dynamic_linker="$host_os dyld"
11394 version_type=darwin
11397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11398 soname_spec='${libname}${release}${major}$shared_ext'
11399 shlibpath_overrides_runpath=yes
11400 shlibpath_var=DYLD_LIBRARY_PATH
11401 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11402 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11403 if test "$GCC" = yes; then
11404 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"`
11406 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11416 soname_spec='${libname}${release}${shared_ext}$major'
11417 shlibpath_var=LD_LIBRARY_PATH
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=no
11432 hardcode_into_libs=yes
11433 dynamic_linker='GNU ld.so'
11437 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11438 version_type=freebsd-$objformat
11439 case $version_type in
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11450 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=yes
11455 freebsd3.01* | freebsdelf3.01*)
11456 shlibpath_overrides_runpath=yes
11457 hardcode_into_libs=yes
11460 shlibpath_overrides_runpath=no
11461 hardcode_into_libs=yes
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 hardcode_into_libs=yes
11476 hpux9* | hpux10* | hpux11*)
11477 # Give a soname corresponding to the major version so that dld.sl refuses to
11478 # link against other versions.
11482 case "$host_cpu" in
11485 hardcode_into_libs=yes
11486 dynamic_linker="$host_os dld.so"
11487 shlibpath_var=LD_LIBRARY_PATH
11488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 if test "X$HPUX_IA64_MODE" = X32; then
11492 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11494 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11500 hardcode_into_libs=yes
11501 dynamic_linker="$host_os dld.sl"
11502 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11511 dynamic_linker="$host_os dld.sl"
11512 shlibpath_var=SHLIB_PATH
11513 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 soname_spec='${libname}${release}${shared_ext}$major'
11518 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11519 postinstall_cmds='chmod 555 $lib'
11522 irix5* | irix6* | nonstopux*)
11524 nonstopux*) version_type=nonstopux ;;
11526 if test "$lt_cv_prog_gnu_ld" = yes; then
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11537 irix5* | nonstopux*)
11538 libsuff= shlibsuff=
11541 case $LD in # libtool.m4 will add one of these switches to LD
11542 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11543 libsuff= shlibsuff= libmagic=32-bit;;
11544 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11545 libsuff=32 shlibsuff=N32 libmagic=N32;;
11546 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11547 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11548 *) libsuff= shlibsuff= libmagic=never-match;;
11552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11553 shlibpath_overrides_runpath=no
11554 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11555 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11556 hardcode_into_libs=yes
11559 # No shared lib support for Linux oldld, aout, or coff.
11560 linux*oldld* | linux*aout* | linux*coff*)
11564 # This must be Linux ELF.
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11572 shlibpath_var=LD_LIBRARY_PATH
11573 shlibpath_overrides_runpath=no
11574 # This implies no fast_install, which is unacceptable.
11575 # Some rework will be needed to allow for fast_install
11576 # before this can be enabled.
11577 hardcode_into_libs=yes
11579 # Append ld.so.conf contents to the search path
11580 if test -f /etc/ld.so.conf; then
11581 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11582 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11585 # We used to test for /lib/ld.so.1 and disable shared libraries on
11586 # powerpc, because MkLinux only supported shared libraries with the
11587 # GNU dynamic linker. Since this was broken with cross compilers,
11588 # most powerpc-linux boxes support dynamic linking these days and
11589 # people can always --disable-shared, the test was removed, and we
11590 # assume the GNU/Linux dynamic linker is in use.
11591 dynamic_linker='GNU/Linux ld.so'
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=no
11602 hardcode_into_libs=yes
11603 dynamic_linker='GNU ld.so'
11610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11613 dynamic_linker='NetBSD (a.out) ld.so'
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 dynamic_linker='NetBSD ld.elf_so'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 shlibpath_overrides_runpath=yes
11621 hardcode_into_libs=yes
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=yes
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 shlibpath_overrides_runpath=yes
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11650 openbsd2.[89] | openbsd2.[89].*)
11651 shlibpath_overrides_runpath=no
11654 shlibpath_overrides_runpath=yes
11658 shlibpath_overrides_runpath=yes
11663 libname_spec='$name'
11666 library_names_spec='$libname${shared_ext} $libname.a'
11667 dynamic_linker='OS/2 ld.exe'
11668 shlibpath_var=LIBPATH
11671 osf3* | osf4* | osf5*)
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677 shlibpath_var=LD_LIBRARY_PATH
11678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11679 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var=LD_LIBRARY_PATH
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 shlibpath_var=LD_LIBRARY_PATH
11696 shlibpath_overrides_runpath=yes
11697 hardcode_into_libs=yes
11698 # ldd complains unless libraries are executable
11699 postinstall_cmds='chmod +x $lib'
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11705 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=yes
11708 if test "$with_gnu_ld" = yes; then
11714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717 soname_spec='${libname}${release}${shared_ext}$major'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 case $host_vendor in
11721 shlibpath_overrides_runpath=no
11723 export_dynamic_flag_spec='${wl}-Blargedynsym'
11724 runpath_var=LD_RUN_PATH
11732 shlibpath_overrides_runpath=no
11733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11739 if test -d /usr/nec ;then
11741 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11742 soname_spec='$libname${shared_ext}.$major'
11743 shlibpath_var=LD_LIBRARY_PATH
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750 soname_spec='${libname}${release}${shared_ext}$major'
11751 shlibpath_var=LD_LIBRARY_PATH
11758 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11759 echo "${ECHO_T}$dynamic_linker" >&6
11760 test "$dynamic_linker" = no && can_build_shared=no
11762 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11763 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11764 hardcode_action_CXX=
11765 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11766 test -n "$runpath_var CXX" || \
11767 test "X$hardcode_automatic_CXX"="Xyes" ; then
11769 # We can hardcode non-existant directories.
11770 if test "$hardcode_direct_CXX" != no &&
11771 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11772 # have to relink, otherwise we might link with an installed library
11773 # when we should be linking with a yet-to-be-installed one
11774 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11775 test "$hardcode_minus_L_CXX" != no; then
11776 # Linking always hardcodes the temporary library directory.
11777 hardcode_action_CXX=relink
11779 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11780 hardcode_action_CXX=immediate
11783 # We cannot hardcode anything, or else we can only hardcode existing
11785 hardcode_action_CXX=unsupported
11787 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11788 echo "${ECHO_T}$hardcode_action_CXX" >&6
11790 if test "$hardcode_action_CXX" = relink; then
11791 # Fast installation is not supported
11792 enable_fast_install=no
11793 elif test "$shlibpath_overrides_runpath" = yes ||
11794 test "$enable_shared" = no; then
11795 # Fast installation is not necessary
11796 enable_fast_install=needless
11801 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11802 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11803 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11804 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11805 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11806 echo "$as_me:$LINENO: result: yes" >&5
11807 echo "${ECHO_T}yes" >&6
11809 # FIXME - insert some real tests, host_os isn't really good enough
11812 if test -n "$STRIP" ; then
11813 striplib="$STRIP -x"
11814 echo "$as_me:$LINENO: result: yes" >&5
11815 echo "${ECHO_T}yes" >&6
11817 echo "$as_me:$LINENO: result: no" >&5
11818 echo "${ECHO_T}no" >&6
11822 echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11828 if test "x$enable_dlopen" != xyes; then
11829 enable_dlopen=unknown
11830 enable_dlopen_self=unknown
11831 enable_dlopen_self_static=unknown
11838 lt_cv_dlopen="load_add_on"
11840 lt_cv_dlopen_self=yes
11844 lt_cv_dlopen="LoadLibrary"
11849 lt_cv_dlopen="dlopen"
11854 # if libdl is installed we need to link against it
11855 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11856 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11857 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 ac_check_lib_save_LIBS=$LIBS
11862 cat >conftest.$ac_ext <<_ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11869 /* Override any gcc2 internal prototype to avoid an error. */
11873 /* We use char because int might match the return type of a gcc2
11874 builtin and then its argument prototype would still apply. */
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886 (eval $ac_link) 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest$ac_exeext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 ac_cv_lib_dl_dlopen=yes
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11910 ac_cv_lib_dl_dlopen=no
11912 rm -f conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11916 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11917 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11918 if test $ac_cv_lib_dl_dlopen = yes; then
11919 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11922 lt_cv_dlopen="dyld"
11924 lt_cv_dlopen_self=yes
11931 echo "$as_me:$LINENO: checking for shl_load" >&5
11932 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11933 if test "${ac_cv_func_shl_load+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 cat >conftest.$ac_ext <<_ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11942 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11944 #define shl_load innocuous_shl_load
11946 /* System header to define __stub macros and hopefully few prototypes,
11947 which can conflict with char shl_load (); below.
11948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11949 <limits.h> exists even on freestanding compilers. */
11952 # include <limits.h>
11954 # include <assert.h>
11959 /* Override any gcc2 internal prototype to avoid an error. */
11964 /* We use char because int might match the return type of a gcc2
11965 builtin and then its argument prototype would still apply. */
11967 /* The GNU C library defines this for functions which it implements
11968 to always fail with ENOSYS. Some functions are actually named
11969 something starting with __ and the normal name is an alias. */
11970 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11973 char (*f) () = shl_load;
11982 return f != shl_load;
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989 (eval $ac_link) 2>conftest.er1
11991 grep -v '^ *+' conftest.er1 >conftest.err
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 ac_cv_func_shl_load=yes
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ac_cv_func_shl_load=no
12015 rm -f conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12018 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12019 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12020 if test $ac_cv_func_shl_load = yes; then
12021 lt_cv_dlopen="shl_load"
12023 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12024 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12025 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 ac_check_lib_save_LIBS=$LIBS
12030 cat >conftest.$ac_ext <<_ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12037 /* Override any gcc2 internal prototype to avoid an error. */
12041 /* We use char because int might match the return type of a gcc2
12042 builtin and then its argument prototype would still apply. */
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054 (eval $ac_link) 2>conftest.er1
12056 grep -v '^ *+' conftest.er1 >conftest.err
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest$ac_exeext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_cv_lib_dld_shl_load=yes
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ac_cv_lib_dld_shl_load=no
12080 rm -f conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12084 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12085 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12086 if test $ac_cv_lib_dld_shl_load = yes; then
12087 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12089 echo "$as_me:$LINENO: checking for dlopen" >&5
12090 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12091 if test "${ac_cv_func_dlopen+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 cat >conftest.$ac_ext <<_ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12102 #define dlopen innocuous_dlopen
12104 /* System header to define __stub macros and hopefully few prototypes,
12105 which can conflict with char dlopen (); below.
12106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12107 <limits.h> exists even on freestanding compilers. */
12110 # include <limits.h>
12112 # include <assert.h>
12117 /* Override any gcc2 internal prototype to avoid an error. */
12122 /* We use char because int might match the return type of a gcc2
12123 builtin and then its argument prototype would still apply. */
12125 /* The GNU C library defines this for functions which it implements
12126 to always fail with ENOSYS. Some functions are actually named
12127 something starting with __ and the normal name is an alias. */
12128 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12131 char (*f) () = dlopen;
12140 return f != dlopen;
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147 (eval $ac_link) 2>conftest.er1
12149 grep -v '^ *+' conftest.er1 >conftest.err
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_func_dlopen=yes
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_func_dlopen=no
12173 rm -f conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12176 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12177 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12178 if test $ac_cv_func_dlopen = yes; then
12179 lt_cv_dlopen="dlopen"
12181 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12182 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12183 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 ac_check_lib_save_LIBS=$LIBS
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12195 /* Override any gcc2 internal prototype to avoid an error. */
12199 /* We use char because int might match the return type of a gcc2
12200 builtin and then its argument prototype would still apply. */
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212 (eval $ac_link) 2>conftest.er1
12214 grep -v '^ *+' conftest.er1 >conftest.err
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest$ac_exeext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_cv_lib_dl_dlopen=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_cv_lib_dl_dlopen=no
12238 rm -f conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12242 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12243 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12244 if test $ac_cv_lib_dl_dlopen = yes; then
12245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12247 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12248 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12249 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-lsvld $LIBS"
12254 cat >conftest.$ac_ext <<_ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12261 /* Override any gcc2 internal prototype to avoid an error. */
12265 /* We use char because int might match the return type of a gcc2
12266 builtin and then its argument prototype would still apply. */
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278 (eval $ac_link) 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest$ac_exeext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_cv_lib_svld_dlopen=yes
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 ac_cv_lib_svld_dlopen=no
12304 rm -f conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12308 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12309 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12310 if test $ac_cv_lib_svld_dlopen = yes; then
12311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12313 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12314 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12315 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 ac_check_lib_save_LIBS=$LIBS
12320 cat >conftest.$ac_ext <<_ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12327 /* Override any gcc2 internal prototype to avoid an error. */
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>conftest.er1
12346 grep -v '^ *+' conftest.er1 >conftest.err
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest$ac_exeext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 ac_cv_lib_dld_dld_link=yes
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 ac_cv_lib_dld_dld_link=no
12370 rm -f conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12372 LIBS=$ac_check_lib_save_LIBS
12374 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12375 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12376 if test $ac_cv_lib_dld_dld_link = yes; then
12377 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12398 if test "x$lt_cv_dlopen" != xno; then
12404 case $lt_cv_dlopen in
12406 save_CPPFLAGS="$CPPFLAGS"
12407 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12409 save_LDFLAGS="$LDFLAGS"
12410 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12413 LIBS="$lt_cv_dlopen_libs $LIBS"
12415 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12416 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12417 if test "${lt_cv_dlopen_self+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 if test "$cross_compiling" = yes; then :
12421 lt_cv_dlopen_self=cross
12423 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12424 lt_status=$lt_dlunknown
12425 cat > conftest.$ac_ext <<EOF
12426 #line 12426 "configure"
12427 #include "confdefs.h"
12436 # define LT_DLGLOBAL RTLD_GLOBAL
12439 # define LT_DLGLOBAL DL_GLOBAL
12441 # define LT_DLGLOBAL 0
12445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12446 find out it does not work in some platform. */
12447 #ifndef LT_DLLAZY_OR_NOW
12449 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12452 # define LT_DLLAZY_OR_NOW DL_LAZY
12455 # define LT_DLLAZY_OR_NOW RTLD_NOW
12458 # define LT_DLLAZY_OR_NOW DL_NOW
12460 # define LT_DLLAZY_OR_NOW 0
12468 extern "C" void exit (int);
12471 void fnord() { int i=42;}
12474 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12475 int status = $lt_dlunknown;
12479 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12480 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12481 /* dlclose (self); */
12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488 (eval $ac_link) 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12492 (./conftest; exit; ) 2>/dev/null
12494 case x$lt_status in
12495 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12496 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12497 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12500 # compilation failed
12501 lt_cv_dlopen_self=no
12508 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12509 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12511 if test "x$lt_cv_dlopen_self" = xyes; then
12512 LDFLAGS="$LDFLAGS $link_static_flag"
12513 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12514 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12515 if test "${lt_cv_dlopen_self_static+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 if test "$cross_compiling" = yes; then :
12519 lt_cv_dlopen_self_static=cross
12521 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12522 lt_status=$lt_dlunknown
12523 cat > conftest.$ac_ext <<EOF
12524 #line 12524 "configure"
12525 #include "confdefs.h"
12534 # define LT_DLGLOBAL RTLD_GLOBAL
12537 # define LT_DLGLOBAL DL_GLOBAL
12539 # define LT_DLGLOBAL 0
12543 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12544 find out it does not work in some platform. */
12545 #ifndef LT_DLLAZY_OR_NOW
12547 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12550 # define LT_DLLAZY_OR_NOW DL_LAZY
12553 # define LT_DLLAZY_OR_NOW RTLD_NOW
12556 # define LT_DLLAZY_OR_NOW DL_NOW
12558 # define LT_DLLAZY_OR_NOW 0
12566 extern "C" void exit (int);
12569 void fnord() { int i=42;}
12572 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12573 int status = $lt_dlunknown;
12577 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12578 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12579 /* dlclose (self); */
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586 (eval $ac_link) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12590 (./conftest; exit; ) 2>/dev/null
12592 case x$lt_status in
12593 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12594 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12595 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12598 # compilation failed
12599 lt_cv_dlopen_self_static=no
12606 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12607 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12610 CPPFLAGS="$save_CPPFLAGS"
12611 LDFLAGS="$save_LDFLAGS"
12616 case $lt_cv_dlopen_self in
12617 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12618 *) enable_dlopen_self=unknown ;;
12621 case $lt_cv_dlopen_self_static in
12622 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12623 *) enable_dlopen_self_static=unknown ;;
12628 # The else clause should only fire when bootstrapping the
12629 # libtool distribution, otherwise you forgot to ship ltmain.sh
12630 # with your package, and you will get complaints that there are
12631 # no rules to generate ltmain.sh.
12632 if test -f "$ltmain"; then
12633 # See if we are running on zsh, and set the options which allow our commands through
12634 # without removal of \ escapes.
12635 if test -n "${ZSH_VERSION+set}" ; then
12636 setopt NO_GLOB_SUBST
12638 # Now quote all the things that may contain metacharacters while being
12639 # careful not to overquote the AC_SUBSTed values. We take copies of the
12640 # variables and quote the copies for generation of the libtool script.
12641 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12645 deplibs_check_method reload_flag reload_cmds need_locks \
12646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12647 lt_cv_sys_global_symbol_to_c_name_address \
12648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12649 old_postinstall_cmds old_postuninstall_cmds \
12653 lt_prog_compiler_wl_CXX \
12654 lt_prog_compiler_pic_CXX \
12655 lt_prog_compiler_static_CXX \
12656 lt_prog_compiler_no_builtin_flag_CXX \
12657 export_dynamic_flag_spec_CXX \
12658 thread_safe_flag_spec_CXX \
12659 whole_archive_flag_spec_CXX \
12660 enable_shared_with_static_runtimes_CXX \
12661 old_archive_cmds_CXX \
12662 old_archive_from_new_cmds_CXX \
12663 predep_objects_CXX \
12664 postdep_objects_CXX \
12667 compiler_lib_search_path_CXX \
12669 archive_expsym_cmds_CXX \
12670 postinstall_cmds_CXX \
12671 postuninstall_cmds_CXX \
12672 old_archive_from_expsyms_cmds_CXX \
12673 allow_undefined_flag_CXX \
12674 no_undefined_flag_CXX \
12675 export_symbols_cmds_CXX \
12676 hardcode_libdir_flag_spec_CXX \
12677 hardcode_libdir_flag_spec_ld_CXX \
12678 hardcode_libdir_separator_CXX \
12679 hardcode_automatic_CXX \
12681 module_expsym_cmds_CXX \
12682 lt_cv_prog_compiler_c_o_CXX \
12683 exclude_expsyms_CXX \
12684 include_expsyms_CXX; do
12687 old_archive_cmds_CXX | \
12688 old_archive_from_new_cmds_CXX | \
12689 archive_cmds_CXX | \
12690 archive_expsym_cmds_CXX | \
12691 module_cmds_CXX | \
12692 module_expsym_cmds_CXX | \
12693 old_archive_from_expsyms_cmds_CXX | \
12694 export_symbols_cmds_CXX | \
12695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12696 postinstall_cmds | postuninstall_cmds | \
12697 old_postinstall_cmds | old_postuninstall_cmds | \
12698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12699 # Double-quote double-evaled strings.
12700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12709 *'\$0 --fallback-echo"')
12710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12716 cat <<__EOF__ >> "$cfgfile"
12717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12721 # Shell to use when invoking shell scripts.
12724 # Whether or not to build shared libraries.
12725 build_libtool_libs=$enable_shared
12727 # Whether or not to build static libraries.
12728 build_old_libs=$enable_static
12730 # Whether or not to add -lc for building shared libraries.
12731 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12733 # Whether or not to disallow shared libs when runtime libs are static
12734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12736 # Whether or not to optimize for fast installation.
12737 fast_install=$enable_fast_install
12740 host_alias=$host_alias
12743 # An echo program that does not interpret backslashes.
12748 AR_FLAGS=$lt_AR_FLAGS
12753 # A language-specific compiler.
12754 CC=$lt_compiler_CXX
12756 # Is the compiler the GNU C compiler?
12762 # The linker used to build libraries.
12765 # Whether we need hard or soft links.
12768 # A BSD-compatible nm program.
12771 # A symbol stripping program
12774 # Used to examine libraries when file_magic_cmd begins "file"
12775 MAGIC_CMD=$MAGIC_CMD
12777 # Used on cygwin: DLL creation program.
12780 # Used on cygwin: object dumper.
12783 # Used on cygwin: assembler.
12786 # The name of the directory that contains temporary libtool files.
12789 # How to create reloadable object files.
12790 reload_flag=$lt_reload_flag
12791 reload_cmds=$lt_reload_cmds
12793 # How to pass a linker flag through the compiler.
12794 wl=$lt_lt_prog_compiler_wl_CXX
12796 # Object file suffix (normally "o").
12797 objext="$ac_objext"
12799 # Old archive suffix (normally "a").
12802 # Shared library suffix (normally ".so").
12805 # Executable file suffix (normally "").
12808 # Additional compiler flags for building library objects.
12809 pic_flag=$lt_lt_prog_compiler_pic_CXX
12812 # What is the maximum length of a command?
12813 max_cmd_len=$lt_cv_sys_max_cmd_len
12815 # Does compiler simultaneously support -c and -o options?
12816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12818 # Must we lock files when doing compilation ?
12819 need_locks=$lt_need_locks
12821 # Do we need the lib prefix for modules?
12822 need_lib_prefix=$need_lib_prefix
12824 # Do we need a version for libraries?
12825 need_version=$need_version
12827 # Whether dlopen is supported.
12828 dlopen_support=$enable_dlopen
12830 # Whether dlopen of programs is supported.
12831 dlopen_self=$enable_dlopen_self
12833 # Whether dlopen of statically linked programs is supported.
12834 dlopen_self_static=$enable_dlopen_self_static
12836 # Compiler flag to prevent dynamic linking.
12837 link_static_flag=$lt_lt_prog_compiler_static_CXX
12839 # Compiler flag to turn off builtin functions.
12840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12842 # Compiler flag to allow reflexive dlopens.
12843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12845 # Compiler flag to generate shared objects directly from archives.
12846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12848 # Compiler flag to generate thread-safe objects.
12849 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12851 # Library versioning type.
12852 version_type=$version_type
12854 # Format of library name prefix.
12855 libname_spec=$lt_libname_spec
12857 # List of archive names. First name is the real one, the rest are links.
12858 # The last name is the one that the linker finds with -lNAME.
12859 library_names_spec=$lt_library_names_spec
12861 # The coded name of the library, if different from the real name.
12862 soname_spec=$lt_soname_spec
12864 # Commands used to build and install an old-style archive.
12866 old_archive_cmds=$lt_old_archive_cmds_CXX
12867 old_postinstall_cmds=$lt_old_postinstall_cmds
12868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12870 # Create an old-style archive from a shared archive.
12871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12873 # Create a temporary old-style archive to link instead of a shared archive.
12874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12876 # Commands used to build and install a shared archive.
12877 archive_cmds=$lt_archive_cmds_CXX
12878 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12879 postinstall_cmds=$lt_postinstall_cmds
12880 postuninstall_cmds=$lt_postuninstall_cmds
12882 # Commands used to build a loadable module (assumed same as above if empty)
12883 module_cmds=$lt_module_cmds_CXX
12884 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12886 # Commands to strip libraries.
12887 old_striplib=$lt_old_striplib
12888 striplib=$lt_striplib
12890 # Dependencies to place before the objects being linked to create a
12892 predep_objects=$lt_predep_objects_CXX
12894 # Dependencies to place after the objects being linked to create a
12896 postdep_objects=$lt_postdep_objects_CXX
12898 # Dependencies to place before the objects being linked to create a
12900 predeps=$lt_predeps_CXX
12902 # Dependencies to place after the objects being linked to create a
12904 postdeps=$lt_postdeps_CXX
12906 # The library search path used internally by the compiler when linking
12907 # a shared library.
12908 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12910 # Method to check whether dependent libraries are shared objects.
12911 deplibs_check_method=$lt_deplibs_check_method
12913 # Command to use when deplibs_check_method == file_magic.
12914 file_magic_cmd=$lt_file_magic_cmd
12916 # Flag that allows shared libraries with undefined symbols to be built.
12917 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12919 # Flag that forces no undefined symbols.
12920 no_undefined_flag=$lt_no_undefined_flag_CXX
12922 # Commands used to finish a libtool library installation in a directory.
12923 finish_cmds=$lt_finish_cmds
12925 # Same as above, but a single script fragment to be evaled but not shown.
12926 finish_eval=$lt_finish_eval
12928 # Take the output of nm and produce a listing of raw symbols and C names.
12929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12931 # Transform the output of nm in a proper C declaration
12932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12934 # Transform the output of nm in a C name address pair
12935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12937 # This is the shared library runtime path variable.
12938 runpath_var=$runpath_var
12940 # This is the shared library path variable.
12941 shlibpath_var=$shlibpath_var
12943 # Is shlibpath searched before the hard-coded library search path?
12944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12946 # How to hardcode a shared library path into an executable.
12947 hardcode_action=$hardcode_action_CXX
12949 # Whether we should hardcode library paths into libraries.
12950 hardcode_into_libs=$hardcode_into_libs
12952 # Flag to hardcode \$libdir into a binary during linking.
12953 # This must work even if \$libdir does not exist.
12954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12956 # If ld is used when linking, flag to hardcode \$libdir into
12957 # a binary during linking. This must work even if \$libdir does
12959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12961 # Whether we need a single -rpath flag with a separated argument.
12962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12965 # resulting binary.
12966 hardcode_direct=$hardcode_direct_CXX
12968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12969 # resulting binary.
12970 hardcode_minus_L=$hardcode_minus_L_CXX
12972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12973 # the resulting binary.
12974 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12976 # Set to yes if building a shared library automatically hardcodes DIR into the library
12977 # and all subsequent libraries and executables linked against it.
12978 hardcode_automatic=$hardcode_automatic_CXX
12980 # Variables whose values should be saved in libtool wrapper scripts and
12981 # restored at relink time.
12982 variables_saved_for_relink="$variables_saved_for_relink"
12984 # Whether libtool must link a program against all its dependency libraries.
12985 link_all_deplibs=$link_all_deplibs_CXX
12987 # Compile-time system search path for libraries
12988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12990 # Run-time system search path for libraries
12991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12993 # Fix the shell variable \$srcfile for the compiler.
12994 fix_srcfile_path="$fix_srcfile_path_CXX"
12996 # Set to yes if exported symbols are required.
12997 always_export_symbols=$always_export_symbols_CXX
12999 # The commands to list exported symbols.
13000 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13002 # The commands to extract the exported symbol list from a shared archive.
13003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13005 # Symbols that should not be listed in the preloaded symbols.
13006 exclude_expsyms=$lt_exclude_expsyms_CXX
13008 # Symbols that must always be exported.
13009 include_expsyms=$lt_include_expsyms_CXX
13011 # ### END LIBTOOL TAG CONFIG: $tagname
13017 # If there is no Makefile yet, we rely on a make rule to execute
13018 # `config.status --recheck' to rerun these tests and create the
13019 # libtool script then.
13020 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13021 if test -f "$ltmain_in"; then
13022 test -f Makefile && make "$ltmain"
13028 ac_cpp='$CPP $CPPFLAGS'
13029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13037 with_gnu_ldcxx=$with_gnu_ld
13038 with_gnu_ld=$lt_save_with_gnu_ld
13039 lt_cv_path_LDCXX=$lt_cv_path_LD
13040 lt_cv_path_LD=$lt_save_path_LD
13041 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13042 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13050 if test -n "$F77" && test "X$F77" != "Xno"; then
13053 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13054 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13055 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13058 archive_cmds_need_lc_F77=no
13059 allow_undefined_flag_F77=
13060 always_export_symbols_F77=no
13061 archive_expsym_cmds_F77=
13062 export_dynamic_flag_spec_F77=
13063 hardcode_direct_F77=no
13064 hardcode_libdir_flag_spec_F77=
13065 hardcode_libdir_flag_spec_ld_F77=
13066 hardcode_libdir_separator_F77=
13067 hardcode_minus_L_F77=no
13068 hardcode_automatic_F77=no
13070 module_expsym_cmds_F77=
13071 link_all_deplibs_F77=unknown
13072 old_archive_cmds_F77=$old_archive_cmds
13073 no_undefined_flag_F77=
13074 whole_archive_flag_spec_F77=
13075 enable_shared_with_static_runtimes_F77=no
13077 # Source file extension for f77 test sources.
13080 # Object file extension for compiled f77 test sources.
13084 # Code to be used in simple compile tests
13085 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13087 # Code to be used in simple link tests
13088 lt_simple_link_test_code=" program t\n end\n"
13090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13092 # If no C compiler was specified, use CC.
13095 # Allow CC to be a program name with arguments.
13099 # Allow CC to be a program name with arguments.
13104 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13106 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13107 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13108 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13109 echo "${ECHO_T}$can_build_shared" >&6
13111 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13112 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13113 test "$can_build_shared" = "no" && enable_shared=no
13115 # On AIX, shared libraries and static libraries use the same namespace, and
13116 # are all built from PIC.
13119 test "$enable_shared" = yes && enable_static=no
13120 if test -n "$RANLIB"; then
13121 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13122 postinstall_cmds='$RANLIB $lib'
13126 test "$enable_shared" = yes && enable_static=no
13129 echo "$as_me:$LINENO: result: $enable_shared" >&5
13130 echo "${ECHO_T}$enable_shared" >&6
13132 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13133 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13134 # Make sure either enable_shared or enable_static is yes.
13135 test "$enable_shared" = yes || enable_static=yes
13136 echo "$as_me:$LINENO: result: $enable_static" >&5
13137 echo "${ECHO_T}$enable_static" >&6
13139 test "$ld_shlibs_F77" = no && can_build_shared=no
13144 lt_prog_compiler_wl_F77=
13145 lt_prog_compiler_pic_F77=
13146 lt_prog_compiler_static_F77=
13148 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13151 if test "$GCC" = yes; then
13152 lt_prog_compiler_wl_F77='-Wl,'
13153 lt_prog_compiler_static_F77='-static'
13157 # All AIX code is PIC.
13158 if test "$host_cpu" = ia64; then
13159 # AIX 5 now supports IA64 processor
13160 lt_prog_compiler_static_F77='-Bstatic'
13165 # FIXME: we need at least 68020 code to build shared libraries, but
13166 # adding the `-m68020' flag to GCC prevents building anything better,
13168 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13171 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13172 # PIC is the default for these OSes.
13175 mingw* | pw32* | os2*)
13176 # This hack is so that the source file can tell whether it is being
13177 # built for inclusion in a dll (and should export symbols for example).
13178 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13181 darwin* | rhapsody*)
13182 # PIC is the default on this platform
13183 # Common symbols not allowed in MH_DYLIB files
13184 lt_prog_compiler_pic_F77='-fno-common'
13188 # Just because we use GCC doesn't mean we suddenly get shared libraries
13189 # on systems that don't support them.
13190 lt_prog_compiler_can_build_shared_F77=no
13195 if test -d /usr/nec; then
13196 lt_prog_compiler_pic_F77=-Kconform_pic
13201 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13202 # not for PA HP-UX.
13203 case "$host_cpu" in
13208 lt_prog_compiler_pic_F77='-fPIC'
13214 lt_prog_compiler_pic_F77='-fPIC'
13218 # PORTME Check for flag to pass linker flags through the system compiler.
13221 lt_prog_compiler_wl_F77='-Wl,'
13222 if test "$host_cpu" = ia64; then
13223 # AIX 5 now supports IA64 processor
13224 lt_prog_compiler_static_F77='-Bstatic'
13226 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13230 mingw* | pw32* | os2*)
13231 # This hack is so that the source file can tell whether it is being
13232 # built for inclusion in a dll (and should export symbols for example).
13233 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13236 hpux9* | hpux10* | hpux11*)
13237 lt_prog_compiler_wl_F77='-Wl,'
13238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13239 # not for PA HP-UX.
13240 case "$host_cpu" in
13245 lt_prog_compiler_pic_F77='+Z'
13248 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13249 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13252 irix5* | irix6* | nonstopux*)
13253 lt_prog_compiler_wl_F77='-Wl,'
13254 # PIC (with -KPIC) is the default.
13255 lt_prog_compiler_static_F77='-non_shared'
13259 lt_prog_compiler_pic_F77='-KPIC'
13260 lt_prog_compiler_static_F77='-Bstatic'
13266 lt_prog_compiler_wl_F77='-Wl,'
13267 lt_prog_compiler_pic_F77='-KPIC'
13268 lt_prog_compiler_static_F77='-static'
13271 lt_prog_compiler_wl_F77='-Wl,'
13272 # All Alpha code is PIC.
13273 lt_prog_compiler_static_F77='-non_shared'
13278 osf3* | osf4* | osf5*)
13279 lt_prog_compiler_wl_F77='-Wl,'
13280 # All OSF/1 code is PIC.
13281 lt_prog_compiler_static_F77='-non_shared'
13285 lt_prog_compiler_pic_F77='-Kpic'
13286 lt_prog_compiler_static_F77='-dn'
13290 lt_prog_compiler_wl_F77='-Wl,'
13291 lt_prog_compiler_pic_F77='-KPIC'
13292 lt_prog_compiler_static_F77='-Bstatic'
13296 lt_prog_compiler_wl_F77='-Qoption ld '
13297 lt_prog_compiler_pic_F77='-PIC'
13298 lt_prog_compiler_static_F77='-Bstatic'
13301 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13302 lt_prog_compiler_wl_F77='-Wl,'
13303 lt_prog_compiler_pic_F77='-KPIC'
13304 lt_prog_compiler_static_F77='-Bstatic'
13308 if test -d /usr/nec ;then
13309 lt_prog_compiler_pic_F77='-Kconform_pic'
13310 lt_prog_compiler_static_F77='-Bstatic'
13315 lt_prog_compiler_pic_F77='-pic'
13316 lt_prog_compiler_static_F77='-Bstatic'
13320 lt_prog_compiler_can_build_shared_F77=no
13325 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13326 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13329 # Check to make sure the PIC flag actually works.
13331 if test -n "$lt_prog_compiler_pic_F77"; then
13333 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13335 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 lt_prog_compiler_pic_works_F77=no
13339 ac_outfile=conftest.$ac_objext
13340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13341 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13342 # Insert the option either (1) after the last *FLAGS variable, or
13343 # (2) before a word containing "conftest.", or (3) at the end.
13344 # Note that $ac_compile itself does not contain backslashes and begins
13345 # with a dollar sign (not a hyphen), so the echo should work correctly.
13346 # The option is referenced via a variable to avoid confusing sed.
13347 lt_compile=`echo "$ac_compile" | $SED \
13348 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13350 -e 's:$: $lt_compiler_flag:'`
13351 (eval echo "\"\$as_me:13351: $lt_compile\"" >&5)
13352 (eval "$lt_compile" 2>conftest.err)
13354 cat conftest.err >&5
13355 echo "$as_me:13355: \$? = $ac_status" >&5
13356 if (exit $ac_status) && test -s "$ac_outfile"; then
13357 # The compiler can only warn and ignore the option if not recognized
13358 # So say no if there are warnings
13359 if test ! -s conftest.err; then
13360 lt_prog_compiler_pic_works_F77=yes
13366 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13367 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13369 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13370 case $lt_prog_compiler_pic_F77 in
13372 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13375 lt_prog_compiler_pic_F77=
13376 lt_prog_compiler_can_build_shared_F77=no
13381 # For platforms which do not support PIC, -DPIC is meaningless:
13383 lt_prog_compiler_pic_F77=
13386 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13390 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13391 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13392 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 lt_cv_prog_compiler_c_o_F77=no
13396 $rm -r conftest 2>/dev/null
13400 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13402 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13403 # that will create temporary files in the current directory regardless of
13404 # the output directory. Thus, making CWD read-only will cause this test
13405 # to fail, enabling locking or at least warning the user not to do parallel
13409 lt_compiler_flag="-o out/conftest2.$ac_objext"
13410 # Insert the option either (1) after the last *FLAGS variable, or
13411 # (2) before a word containing "conftest.", or (3) at the end.
13412 # Note that $ac_compile itself does not contain backslashes and begins
13413 # with a dollar sign (not a hyphen), so the echo should work correctly.
13414 lt_compile=`echo "$ac_compile" | $SED \
13415 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13417 -e 's:$: $lt_compiler_flag:'`
13418 (eval echo "\"\$as_me:13418: $lt_compile\"" >&5)
13419 (eval "$lt_compile" 2>out/conftest.err)
13421 cat out/conftest.err >&5
13422 echo "$as_me:13422: \$? = $ac_status" >&5
13423 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13425 # The compiler can only warn and ignore the option if not recognized
13426 # So say no if there are warnings
13427 if test ! -s out/conftest.err; then
13428 lt_cv_prog_compiler_c_o_F77=yes
13433 # SGI C++ compiler will create directory out/ii_files/ for
13434 # template instantiation
13435 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13436 $rm out/* && rmdir out
13442 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13443 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13446 hard_links="nottested"
13447 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13448 # do not overwrite the value of need_locks provided by the user
13449 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13450 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13455 ln conftest.a conftest.b 2>&5 || hard_links=no
13456 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13457 echo "$as_me:$LINENO: result: $hard_links" >&5
13458 echo "${ECHO_T}$hard_links" >&6
13459 if test "$hard_links" = no; then
13460 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13461 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13468 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13469 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13472 allow_undefined_flag_F77=
13473 enable_shared_with_static_runtimes_F77=no
13475 archive_expsym_cmds_F77=
13476 old_archive_From_new_cmds_F77=
13477 old_archive_from_expsyms_cmds_F77=
13478 export_dynamic_flag_spec_F77=
13479 whole_archive_flag_spec_F77=
13480 thread_safe_flag_spec_F77=
13481 hardcode_libdir_flag_spec_F77=
13482 hardcode_libdir_flag_spec_ld_F77=
13483 hardcode_libdir_separator_F77=
13484 hardcode_direct_F77=no
13485 hardcode_minus_L_F77=no
13486 hardcode_shlibpath_var_F77=unsupported
13487 link_all_deplibs_F77=unknown
13488 hardcode_automatic_F77=no
13490 module_expsym_cmds_F77=
13491 always_export_symbols_F77=no
13492 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13493 # include_expsyms should be a list of space-separated symbols to be *always*
13494 # included in the symbol list
13495 include_expsyms_F77=
13496 # exclude_expsyms can be an extended regexp of symbols to exclude
13497 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13498 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13499 # as well as any symbol that contains `d'.
13500 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13501 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13502 # platforms (ab)use it in PIC code, but their linkers get confused if
13503 # the symbol is explicitly referenced. Since portable code cannot
13504 # rely on this symbol name, it's probably fine to never include it in
13505 # preloaded symbol tables.
13506 extract_expsyms_cmds=
13509 cygwin* | mingw* | pw32*)
13510 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13511 # When not using gcc, we currently assume that we are using
13512 # Microsoft Visual C++.
13513 if test "$GCC" != yes; then
13523 if test "$with_gnu_ld" = yes; then
13524 # If archive_cmds runs LD, not CC, wlarc should be empty
13527 # See if GNU ld supports shared libraries.
13529 aix3* | aix4* | aix5*)
13530 # On AIX/PPC, the GNU linker is very broken
13531 if test "$host_cpu" != ia64; then
13535 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13536 *** to be unable to reliably create shared libraries on AIX.
13537 *** Therefore, libtool is disabling shared libraries support. If you
13538 *** really care for shared libraries, you may want to modify your PATH
13539 *** so that a non-GNU linker is found, and then restart.
13546 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)'
13547 hardcode_libdir_flag_spec_F77='-L$libdir'
13548 hardcode_minus_L_F77=yes
13550 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13551 # that the semantics of dynamic libraries on AmigaOS, at least up
13552 # to version 4, is to share data among multiple programs linked
13553 # with the same dynamic library. Since this doesn't match the
13554 # behavior of shared libraries on other platforms, we can't use
13560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13561 allow_undefined_flag_F77=unsupported
13562 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13563 # support --undefined. This deserves some investigation. FIXME
13564 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13570 cygwin* | mingw* | pw32*)
13571 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13572 # as there is no search path for DLLs.
13573 hardcode_libdir_flag_spec_F77='-L$libdir'
13574 allow_undefined_flag_F77=unsupported
13575 always_export_symbols_F77=no
13576 enable_shared_with_static_runtimes_F77=yes
13577 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13579 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13580 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13581 # If the export-symbols file already is a .def file (1st line
13582 # is EXPORTS), use it as is; otherwise, prepend...
13583 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13584 cp $export_symbols $output_objdir/$soname.def;
13586 echo EXPORTS > $output_objdir/$soname.def;
13587 cat $export_symbols >> $output_objdir/$soname.def;
13589 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13597 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13600 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13601 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13606 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13610 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13611 *** create shared libraries on Solaris systems. Therefore, libtool
13612 *** is disabling shared libraries support. We urge you to upgrade GNU
13613 *** binutils to release 2.9.1 or newer. Another option is to modify
13614 *** your PATH or compiler configuration so that the native linker is
13615 *** used, and then restart.
13618 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13619 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13620 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13627 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13629 hardcode_direct_F77=yes
13630 hardcode_shlibpath_var_F77=no
13634 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13635 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636 archive_cmds_F77="$tmp_archive_cmds"
13637 supports_anon_versioning=no
13638 case `$LD -v 2>/dev/null` in
13639 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13640 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13641 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13642 *\ 2.11.*) ;; # other 2.11 versions
13643 *) supports_anon_versioning=yes ;;
13645 if test $supports_anon_versioning = yes; then
13646 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13647 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13648 $echo "local: *; };" >> $output_objdir/$libname.ver~
13649 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13651 archive_expsym_cmds_F77="$tmp_archive_cmds"
13659 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13660 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13661 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13668 if test "$ld_shlibs_F77" = yes; then
13669 runpath_var=LD_RUN_PATH
13670 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13671 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13672 # ancient GNU ld didn't support --whole-archive et. al.
13673 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13674 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13676 whole_archive_flag_spec_F77=
13680 # PORTME fill in a description of your system's linker (not GNU ld)
13683 allow_undefined_flag_F77=unsupported
13684 always_export_symbols_F77=yes
13685 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'
13686 # Note: this linker hardcodes the directories in LIBPATH if there
13687 # are no directories specified by -L.
13688 hardcode_minus_L_F77=yes
13689 if test "$GCC" = yes && test -z "$link_static_flag"; then
13690 # Neither direct hardcoding nor static linking is supported with a
13692 hardcode_direct_F77=unsupported
13697 if test "$host_cpu" = ia64; then
13698 # On IA64, the linker does run time linking by default, so we don't
13699 # have to do anything special.
13700 aix_use_runtimelinking=no
13701 exp_sym_flag='-Bexport'
13704 # If we're using GNU nm, then we don't want the "-C" option.
13705 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13706 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13707 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'
13709 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'
13711 aix_use_runtimelinking=no
13713 # Test if we are trying to use run time linking or normal
13714 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13715 # need to do runtime linking.
13716 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13717 for ld_flag in $LDFLAGS; do
13718 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13719 aix_use_runtimelinking=yes
13725 exp_sym_flag='-bexport'
13726 no_entry_flag='-bnoentry'
13729 # When large executables or shared objects are built, AIX ld can
13730 # have problems creating the table of contents. If linking a library
13731 # or program results in "error TOC overflow" add -mminimal-toc to
13732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13735 archive_cmds_F77=''
13736 hardcode_direct_F77=yes
13737 hardcode_libdir_separator_F77=':'
13738 link_all_deplibs_F77=yes
13740 if test "$GCC" = yes; then
13741 case $host_os in aix4.012|aix4.012.*)
13742 # We only want to do this on AIX 4.2 and lower, the check
13743 # below for broken collect2 doesn't work under 4.3+
13744 collect2name=`${CC} -print-prog-name=collect2`
13745 if test -f "$collect2name" && \
13746 strings "$collect2name" | grep resolve_lib_name >/dev/null
13748 # We have reworked collect2
13749 hardcode_direct_F77=yes
13751 # We have old collect2
13752 hardcode_direct_F77=unsupported
13753 # It fails to find uninstalled libraries when the uninstalled
13754 # path is not listed in the libpath. Setting hardcode_minus_L
13755 # to unsupported forces relinking
13756 hardcode_minus_L_F77=yes
13757 hardcode_libdir_flag_spec_F77='-L$libdir'
13758 hardcode_libdir_separator_F77=
13761 shared_flag='-shared'
13764 if test "$host_cpu" = ia64; then
13765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13766 # chokes on -Wl,-G. The following line is correct:
13769 if test "$aix_use_runtimelinking" = yes; then
13770 shared_flag='${wl}-G'
13772 shared_flag='${wl}-bM:SRE'
13777 # It seems that -bexpall does not export symbols beginning with
13778 # underscore (_), so it is better to generate a list of symbols to export.
13779 always_export_symbols_F77=yes
13780 if test "$aix_use_runtimelinking" = yes; then
13781 # Warning - without using the other runtime loading flags (-brtl),
13782 # -berok will link without error, but may produce a broken library.
13783 allow_undefined_flag_F77='-berok'
13784 # Determine the default libpath from the value encoded in an empty executable.
13785 cat >conftest.$ac_ext <<_ACEOF
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13792 (eval $ac_link) 2>conftest.er1
13794 grep -v '^ *+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest$ac_exeext'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13814 # Check for a 64-bit object if we didn't find anything.
13815 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; }
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13822 rm -f conftest.err conftest.$ac_objext \
13823 conftest$ac_exeext conftest.$ac_ext
13824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13826 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13827 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13829 if test "$host_cpu" = ia64; then
13830 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13831 allow_undefined_flag_F77="-z nodefs"
13832 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13834 # Determine the default libpath from the value encoded in an empty executable.
13835 cat >conftest.$ac_ext <<_ACEOF
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13842 (eval $ac_link) 2>conftest.er1
13844 grep -v '^ *+' conftest.er1 >conftest.err
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13862 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13864 # Check for a 64-bit object if we didn't find anything.
13865 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; }
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13872 rm -f conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
13874 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13876 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13877 # Warning - without using the other run time loading flags,
13878 # -berok will link without error, but may produce a broken library.
13879 no_undefined_flag_F77=' ${wl}-bernotok'
13880 allow_undefined_flag_F77=' ${wl}-berok'
13881 # -bexpall does not export symbols beginning with underscore (_)
13882 always_export_symbols_F77=yes
13883 # Exported symbols can be pulled into shared objects from archives
13884 whole_archive_flag_spec_F77=' '
13885 archive_cmds_need_lc_F77=yes
13886 # This is similar to how AIX traditionally builds it's shared libraries.
13887 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13893 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)'
13894 hardcode_libdir_flag_spec_F77='-L$libdir'
13895 hardcode_minus_L_F77=yes
13896 # see comment about different semantics on the GNU ld section
13901 export_dynamic_flag_spec_F77=-rdynamic
13904 cygwin* | mingw* | pw32*)
13905 # When not using gcc, we currently assume that we are using
13906 # Microsoft Visual C++.
13907 # hardcode_libdir_flag_spec is actually meaningless, as there is
13908 # no search path for DLLs.
13909 hardcode_libdir_flag_spec_F77=' '
13910 allow_undefined_flag_F77=unsupported
13911 # Tell ltmain to make .lib files, not .a files.
13913 # Tell ltmain to make .dll files, not .so files.
13915 # FIXME: Setting linknames here is a bad hack.
13916 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13917 # The linker will automatically build a .lib file if we build a DLL.
13918 old_archive_From_new_cmds_F77='true'
13919 # FIXME: Should let the user specify the lib program.
13920 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13921 fix_srcfile_path='`cygpath -w "$srcfile"`'
13922 enable_shared_with_static_runtimes_F77=yes
13925 darwin* | rhapsody*)
13926 if test "$GXX" = yes ; then
13927 archive_cmds_need_lc_F77=no
13929 rhapsody* | darwin1.[012])
13930 allow_undefined_flag_F77='-undefined suppress'
13933 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13934 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13936 case ${MACOSX_DEPLOYMENT_TARGET} in
13938 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13941 allow_undefined_flag_F77='-undefined dynamic_lookup'
13947 lt_int_apple_cc_single_mod=no
13948 output_verbose_link_cmd='echo'
13949 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13950 lt_int_apple_cc_single_mod=yes
13952 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13953 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13955 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13957 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13958 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13959 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13960 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13962 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13964 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}'
13965 hardcode_direct_F77=no
13966 hardcode_automatic_F77=yes
13967 hardcode_shlibpath_var_F77=unsupported
13968 whole_archive_flag_spec_F77='-all_load $convenience'
13969 link_all_deplibs_F77=yes
13976 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13977 hardcode_libdir_flag_spec_F77='-L$libdir'
13978 hardcode_shlibpath_var_F77=no
13985 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13986 # support. Future versions do this automatically, but an explicit c++rt0.o
13987 # does not break anything, and helps significantly (at the cost of a little
13990 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13991 hardcode_libdir_flag_spec_F77='-R$libdir'
13992 hardcode_direct_F77=yes
13993 hardcode_shlibpath_var_F77=no
13996 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13998 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13999 hardcode_direct_F77=yes
14000 hardcode_minus_L_F77=yes
14001 hardcode_shlibpath_var_F77=no
14004 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14005 freebsd* | kfreebsd*-gnu)
14006 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14007 hardcode_libdir_flag_spec_F77='-R$libdir'
14008 hardcode_direct_F77=yes
14009 hardcode_shlibpath_var_F77=no
14013 if test "$GCC" = yes; then
14014 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'
14016 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'
14018 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14019 hardcode_libdir_separator_F77=:
14020 hardcode_direct_F77=yes
14022 # hardcode_minus_L: Not really in the search PATH,
14023 # but as the default location of the library.
14024 hardcode_minus_L_F77=yes
14025 export_dynamic_flag_spec_F77='${wl}-E'
14029 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14030 case "$host_cpu" in
14032 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14035 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14039 case "$host_cpu" in
14041 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14044 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14048 if test "$with_gnu_ld" = no; then
14049 case "$host_cpu" in
14051 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14052 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14053 hardcode_libdir_separator_F77=:
14054 hardcode_direct_F77=no
14055 hardcode_shlibpath_var_F77=no
14058 hardcode_libdir_flag_spec_F77='-L$libdir'
14059 hardcode_direct_F77=no
14060 hardcode_shlibpath_var_F77=no
14062 # hardcode_minus_L: Not really in the search PATH,
14063 # but as the default location of the library.
14064 hardcode_minus_L_F77=yes
14067 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14068 hardcode_libdir_separator_F77=:
14069 hardcode_direct_F77=yes
14070 export_dynamic_flag_spec_F77='${wl}-E'
14072 # hardcode_minus_L: Not really in the search PATH,
14073 # but as the default location of the library.
14074 hardcode_minus_L_F77=yes
14080 irix5* | irix6* | nonstopux*)
14081 if test "$GCC" = yes; then
14082 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'
14084 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'
14085 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14087 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14088 hardcode_libdir_separator_F77=:
14089 link_all_deplibs_F77=yes
14093 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14094 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14096 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14098 hardcode_libdir_flag_spec_F77='-R$libdir'
14099 hardcode_direct_F77=yes
14100 hardcode_shlibpath_var_F77=no
14104 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14105 hardcode_direct_F77=yes
14106 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14107 hardcode_libdir_separator_F77=:
14108 hardcode_shlibpath_var_F77=no
14112 hardcode_direct_F77=yes
14113 hardcode_shlibpath_var_F77=no
14114 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14115 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14116 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14117 export_dynamic_flag_spec_F77='${wl}-E'
14120 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14121 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14122 hardcode_libdir_flag_spec_F77='-R$libdir'
14125 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14126 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14133 hardcode_libdir_flag_spec_F77='-L$libdir'
14134 hardcode_minus_L_F77=yes
14135 allow_undefined_flag_F77=unsupported
14136 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'
14137 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14141 if test "$GCC" = yes; then
14142 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14143 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'
14145 allow_undefined_flag_F77=' -expect_unresolved \*'
14146 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'
14148 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14149 hardcode_libdir_separator_F77=:
14152 osf4* | osf5*) # as osf3* with the addition of -msym flag
14153 if test "$GCC" = yes; then
14154 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14155 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'
14156 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14158 allow_undefined_flag_F77=' -expect_unresolved \*'
14159 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'
14160 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~
14161 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14163 # Both c and cxx compiler support -rpath directly
14164 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14166 hardcode_libdir_separator_F77=:
14170 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14171 hardcode_shlibpath_var_F77=no
14172 export_dynamic_flag_spec_F77='${wl}-Bexport'
14173 runpath_var=LD_RUN_PATH
14174 hardcode_runpath_var=yes
14178 no_undefined_flag_F77=' -z text'
14179 if test "$GCC" = yes; then
14180 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14181 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14182 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14184 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14185 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14186 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14188 hardcode_libdir_flag_spec_F77='-R$libdir'
14189 hardcode_shlibpath_var_F77=no
14191 solaris2.[0-5] | solaris2.[0-5].*) ;;
14192 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14193 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14195 link_all_deplibs_F77=yes
14199 if test "x$host_vendor" = xsequent; then
14200 # Use $CC to link under sequent, because it throws in some extra .o
14201 # files that make .init and .fini sections work.
14202 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14204 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14206 hardcode_libdir_flag_spec_F77='-L$libdir'
14207 hardcode_direct_F77=yes
14208 hardcode_minus_L_F77=yes
14209 hardcode_shlibpath_var_F77=no
14213 case $host_vendor in
14215 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14216 hardcode_direct_F77=yes # is this really true???
14219 ## LD is ld it makes a PLAMLIB
14220 ## CC just makes a GrossModule.
14221 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14222 reload_cmds_F77='$CC -r -o $output$reload_objs'
14223 hardcode_direct_F77=no
14226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14230 runpath_var='LD_RUN_PATH'
14231 hardcode_shlibpath_var_F77=no
14235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14236 hardcode_shlibpath_var_F77=no
14237 export_dynamic_flag_spec_F77='-Bexport'
14241 if test -d /usr/nec; then
14242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14243 hardcode_shlibpath_var_F77=no
14244 runpath_var=LD_RUN_PATH
14245 hardcode_runpath_var=yes
14251 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14252 hardcode_direct_F77=yes
14253 hardcode_minus_L_F77=no
14254 hardcode_shlibpath_var_F77=no
14255 hardcode_runpath_var=yes
14256 runpath_var=LD_RUN_PATH
14259 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14260 no_undefined_flag_F77='${wl}-z ${wl}text'
14261 if test "$GCC" = yes; then
14262 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14264 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14266 runpath_var='LD_RUN_PATH'
14267 hardcode_shlibpath_var_F77=no
14271 no_undefined_flag_F77=' -z text'
14272 # $CC -shared without GNU ld will not create a library from C++
14273 # object files and a static libstdc++, better avoid it by now
14274 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14277 hardcode_libdir_flag_spec_F77=
14278 hardcode_shlibpath_var_F77=no
14279 runpath_var='LD_RUN_PATH'
14283 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284 hardcode_libdir_flag_spec_F77='-L$libdir'
14285 hardcode_shlibpath_var_F77=no
14294 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14295 echo "${ECHO_T}$ld_shlibs_F77" >&6
14296 test "$ld_shlibs_F77" = no && can_build_shared=no
14298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14299 if test "$GCC" = yes; then
14300 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14304 # Do we need to explicitly link libc?
14306 case "x$archive_cmds_need_lc_F77" in
14308 # Assume -lc should be added
14309 archive_cmds_need_lc_F77=yes
14311 if test "$enable_shared" = yes && test "$GCC" = yes; then
14312 case $archive_cmds_F77 in
14314 # FIXME: we may have to deal with multi-command sequences.
14317 # Test whether the compiler implicitly links with -lc since on some
14318 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14319 # to ld, don't add -lc before -lgcc.
14320 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14321 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14326 (eval $ac_compile) 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } 2>conftest.err; then
14332 libobjs=conftest.$ac_objext
14334 wl=$lt_prog_compiler_wl_F77
14340 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14341 allow_undefined_flag_F77=
14342 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14343 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }
14348 archive_cmds_need_lc_F77=no
14350 archive_cmds_need_lc_F77=yes
14352 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14354 cat conftest.err 1>&5
14357 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14358 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14365 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14366 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14367 library_names_spec=
14368 libname_spec='lib$name'
14372 postuninstall_cmds=
14376 shlibpath_overrides_runpath=unknown
14378 dynamic_linker="$host_os ld.so"
14379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14380 if test "$GCC" = yes; then
14381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14382 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14383 # if the path contains ";" then we assume it to be the separator
14384 # otherwise default to the standard path separator (i.e. ":") - it is
14385 # assumed that no part of a normal pathname contains ";" but that should
14386 # okay in the real world where ";" in dirpaths is itself problematic.
14387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14394 need_lib_prefix=unknown
14395 hardcode_into_libs=no
14397 # when you set need_version to no, make sure it does not cause -set_version
14398 # flags to be left without arguments
14399 need_version=unknown
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14405 shlibpath_var=LIBPATH
14407 # AIX 3 has no versioning support, so we append a major version to the name.
14408 soname_spec='${libname}${release}${shared_ext}$major'
14415 hardcode_into_libs=yes
14416 if test "$host_cpu" = ia64; then
14417 # AIX 5 supports IA64
14418 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14419 shlibpath_var=LD_LIBRARY_PATH
14421 # With GCC up to 2.95.x, collect2 would create an import file
14422 # for dependence libraries. The import file would start with
14423 # the line `#! .'. This would cause the generated library to
14424 # depend on `.', always an invalid library. This was fixed in
14425 # development snapshots of GCC prior to 3.0.
14427 aix4 | aix4.[01] | aix4.[01].*)
14428 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14430 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14433 can_build_shared=no
14437 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14438 # soname into executable. Probably we can add versioning support to
14439 # collect2, so additional links can be useful in future.
14440 if test "$aix_use_runtimelinking" = yes; then
14441 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14442 # instead of lib<name>.a to let people know that these are not
14443 # typical AIX shared libraries.
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14446 # We preserve .a as extension for shared libraries through AIX4.2
14447 # and later when we are not doing run time linking.
14448 library_names_spec='${libname}${release}.a $libname.a'
14449 soname_spec='${libname}${release}${shared_ext}$major'
14451 shlibpath_var=LIBPATH
14456 library_names_spec='$libname.ixlibrary $libname.a'
14457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14458 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'
14462 library_names_spec='${libname}${shared_ext}'
14463 dynamic_linker="$host_os ld.so"
14464 shlibpath_var=LIBRARY_PATH
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471 soname_spec='${libname}${release}${shared_ext}$major'
14472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14476 # the default ld.so.conf also contains /usr/contrib/lib and
14477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14478 # libtool to hard-code these into programs
14481 cygwin* | mingw* | pw32*)
14482 version_type=windows
14487 case $GCC,$host_os in
14488 yes,cygwin* | yes,mingw* | yes,pw32*)
14489 library_names_spec='$libname.dll.a'
14490 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14491 postinstall_cmds='base_file=`basename \${file}`~
14492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14493 dldir=$destdir/`dirname \$dlpath`~
14494 test -d \$dldir || mkdir -p \$dldir~
14495 $install_prog $dir/$dlname \$dldir/$dlname'
14496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14497 dlpath=$dir/\$dldll~
14499 shlibpath_overrides_runpath=yes
14503 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14504 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14505 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14508 # MinGW DLLs use traditional 'lib' prefix
14509 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14510 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14511 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14512 # It is most probably a Windows format PATH printed by
14513 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14514 # path with ; separators, and with drive letters. We can handle the
14515 # drive letters (cygwin fileutils understands them), so leave them,
14516 # especially as we might pass files found there to a mingw objdump,
14517 # which wouldn't understand a cygwinified path. Ahh.
14518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14524 # pw32 DLLs use 'pw' prefix rather than 'lib'
14525 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14531 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14534 dynamic_linker='Win32 ld.exe'
14535 # FIXME: first we should search . and the directory the executable is in
14539 darwin* | rhapsody*)
14540 dynamic_linker="$host_os dyld"
14541 version_type=darwin
14544 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14545 soname_spec='${libname}${release}${major}$shared_ext'
14546 shlibpath_overrides_runpath=yes
14547 shlibpath_var=DYLD_LIBRARY_PATH
14548 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14549 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14550 if test "$GCC" = yes; then
14551 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"`
14553 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14555 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14563 soname_spec='${libname}${release}${shared_ext}$major'
14564 shlibpath_var=LD_LIBRARY_PATH
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 shlibpath_overrides_runpath=no
14579 hardcode_into_libs=yes
14580 dynamic_linker='GNU ld.so'
14584 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14585 version_type=freebsd-$objformat
14586 case $version_type in
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14597 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=yes
14602 freebsd3.01* | freebsdelf3.01*)
14603 shlibpath_overrides_runpath=yes
14604 hardcode_into_libs=yes
14607 shlibpath_overrides_runpath=no
14608 hardcode_into_libs=yes
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14618 soname_spec='${libname}${release}${shared_ext}$major'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 hardcode_into_libs=yes
14623 hpux9* | hpux10* | hpux11*)
14624 # Give a soname corresponding to the major version so that dld.sl refuses to
14625 # link against other versions.
14629 case "$host_cpu" in
14632 hardcode_into_libs=yes
14633 dynamic_linker="$host_os dld.so"
14634 shlibpath_var=LD_LIBRARY_PATH
14635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 if test "X$HPUX_IA64_MODE" = X32; then
14639 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14641 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14647 hardcode_into_libs=yes
14648 dynamic_linker="$host_os dld.sl"
14649 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652 soname_spec='${libname}${release}${shared_ext}$major'
14653 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14658 dynamic_linker="$host_os dld.sl"
14659 shlibpath_var=SHLIB_PATH
14660 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 soname_spec='${libname}${release}${shared_ext}$major'
14665 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14666 postinstall_cmds='chmod 555 $lib'
14669 irix5* | irix6* | nonstopux*)
14671 nonstopux*) version_type=nonstopux ;;
14673 if test "$lt_cv_prog_gnu_ld" = yes; then
14681 soname_spec='${libname}${release}${shared_ext}$major'
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14684 irix5* | nonstopux*)
14685 libsuff= shlibsuff=
14688 case $LD in # libtool.m4 will add one of these switches to LD
14689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14690 libsuff= shlibsuff= libmagic=32-bit;;
14691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14692 libsuff=32 shlibsuff=N32 libmagic=N32;;
14693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14695 *) libsuff= shlibsuff= libmagic=never-match;;
14699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14700 shlibpath_overrides_runpath=no
14701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14703 hardcode_into_libs=yes
14706 # No shared lib support for Linux oldld, aout, or coff.
14707 linux*oldld* | linux*aout* | linux*coff*)
14711 # This must be Linux ELF.
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=no
14721 # This implies no fast_install, which is unacceptable.
14722 # Some rework will be needed to allow for fast_install
14723 # before this can be enabled.
14724 hardcode_into_libs=yes
14726 # Append ld.so.conf contents to the search path
14727 if test -f /etc/ld.so.conf; then
14728 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14729 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14732 # We used to test for /lib/ld.so.1 and disable shared libraries on
14733 # powerpc, because MkLinux only supported shared libraries with the
14734 # GNU dynamic linker. Since this was broken with cross compilers,
14735 # most powerpc-linux boxes support dynamic linking these days and
14736 # people can always --disable-shared, the test was removed, and we
14737 # assume the GNU/Linux dynamic linker is in use.
14738 dynamic_linker='GNU/Linux ld.so'
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 shlibpath_overrides_runpath=no
14749 hardcode_into_libs=yes
14750 dynamic_linker='GNU ld.so'
14757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14760 dynamic_linker='NetBSD (a.out) ld.so'
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 dynamic_linker='NetBSD ld.elf_so'
14766 shlibpath_var=LD_LIBRARY_PATH
14767 shlibpath_overrides_runpath=yes
14768 hardcode_into_libs=yes
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=yes
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 shlibpath_overrides_runpath=yes
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14794 shlibpath_var=LD_LIBRARY_PATH
14795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14797 openbsd2.[89] | openbsd2.[89].*)
14798 shlibpath_overrides_runpath=no
14801 shlibpath_overrides_runpath=yes
14805 shlibpath_overrides_runpath=yes
14810 libname_spec='$name'
14813 library_names_spec='$libname${shared_ext} $libname.a'
14814 dynamic_linker='OS/2 ld.exe'
14815 shlibpath_var=LIBPATH
14818 osf3* | osf4* | osf5*)
14822 soname_spec='${libname}${release}${shared_ext}$major'
14823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824 shlibpath_var=LD_LIBRARY_PATH
14825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14831 soname_spec='${libname}${release}${shared_ext}$major'
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 shlibpath_var=LD_LIBRARY_PATH
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841 soname_spec='${libname}${release}${shared_ext}$major'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 shlibpath_overrides_runpath=yes
14844 hardcode_into_libs=yes
14845 # ldd complains unless libraries are executable
14846 postinstall_cmds='chmod +x $lib'
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14852 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 shlibpath_overrides_runpath=yes
14855 if test "$with_gnu_ld" = yes; then
14861 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 case $host_vendor in
14868 shlibpath_overrides_runpath=no
14870 export_dynamic_flag_spec='${wl}-Blargedynsym'
14871 runpath_var=LD_RUN_PATH
14879 shlibpath_overrides_runpath=no
14880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14886 if test -d /usr/nec ;then
14888 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14889 soname_spec='$libname${shared_ext}.$major'
14890 shlibpath_var=LD_LIBRARY_PATH
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897 soname_spec='${libname}${release}${shared_ext}$major'
14898 shlibpath_var=LD_LIBRARY_PATH
14905 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14906 echo "${ECHO_T}$dynamic_linker" >&6
14907 test "$dynamic_linker" = no && can_build_shared=no
14909 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14910 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14911 hardcode_action_F77=
14912 if test -n "$hardcode_libdir_flag_spec_F77" || \
14913 test -n "$runpath_var F77" || \
14914 test "X$hardcode_automatic_F77"="Xyes" ; then
14916 # We can hardcode non-existant directories.
14917 if test "$hardcode_direct_F77" != no &&
14918 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14919 # have to relink, otherwise we might link with an installed library
14920 # when we should be linking with a yet-to-be-installed one
14921 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14922 test "$hardcode_minus_L_F77" != no; then
14923 # Linking always hardcodes the temporary library directory.
14924 hardcode_action_F77=relink
14926 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14927 hardcode_action_F77=immediate
14930 # We cannot hardcode anything, or else we can only hardcode existing
14932 hardcode_action_F77=unsupported
14934 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14935 echo "${ECHO_T}$hardcode_action_F77" >&6
14937 if test "$hardcode_action_F77" = relink; then
14938 # Fast installation is not supported
14939 enable_fast_install=no
14940 elif test "$shlibpath_overrides_runpath" = yes ||
14941 test "$enable_shared" = no; then
14942 # Fast installation is not necessary
14943 enable_fast_install=needless
14948 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14949 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14950 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14951 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14952 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14953 echo "$as_me:$LINENO: result: yes" >&5
14954 echo "${ECHO_T}yes" >&6
14956 # FIXME - insert some real tests, host_os isn't really good enough
14959 if test -n "$STRIP" ; then
14960 striplib="$STRIP -x"
14961 echo "$as_me:$LINENO: result: yes" >&5
14962 echo "${ECHO_T}yes" >&6
14964 echo "$as_me:$LINENO: result: no" >&5
14965 echo "${ECHO_T}no" >&6
14969 echo "$as_me:$LINENO: result: no" >&5
14970 echo "${ECHO_T}no" >&6
14977 # The else clause should only fire when bootstrapping the
14978 # libtool distribution, otherwise you forgot to ship ltmain.sh
14979 # with your package, and you will get complaints that there are
14980 # no rules to generate ltmain.sh.
14981 if test -f "$ltmain"; then
14982 # See if we are running on zsh, and set the options which allow our commands through
14983 # without removal of \ escapes.
14984 if test -n "${ZSH_VERSION+set}" ; then
14985 setopt NO_GLOB_SUBST
14987 # Now quote all the things that may contain metacharacters while being
14988 # careful not to overquote the AC_SUBSTed values. We take copies of the
14989 # variables and quote the copies for generation of the libtool script.
14990 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14992 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14993 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14994 deplibs_check_method reload_flag reload_cmds need_locks \
14995 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14996 lt_cv_sys_global_symbol_to_c_name_address \
14997 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14998 old_postinstall_cmds old_postuninstall_cmds \
15002 lt_prog_compiler_wl_F77 \
15003 lt_prog_compiler_pic_F77 \
15004 lt_prog_compiler_static_F77 \
15005 lt_prog_compiler_no_builtin_flag_F77 \
15006 export_dynamic_flag_spec_F77 \
15007 thread_safe_flag_spec_F77 \
15008 whole_archive_flag_spec_F77 \
15009 enable_shared_with_static_runtimes_F77 \
15010 old_archive_cmds_F77 \
15011 old_archive_from_new_cmds_F77 \
15012 predep_objects_F77 \
15013 postdep_objects_F77 \
15016 compiler_lib_search_path_F77 \
15018 archive_expsym_cmds_F77 \
15019 postinstall_cmds_F77 \
15020 postuninstall_cmds_F77 \
15021 old_archive_from_expsyms_cmds_F77 \
15022 allow_undefined_flag_F77 \
15023 no_undefined_flag_F77 \
15024 export_symbols_cmds_F77 \
15025 hardcode_libdir_flag_spec_F77 \
15026 hardcode_libdir_flag_spec_ld_F77 \
15027 hardcode_libdir_separator_F77 \
15028 hardcode_automatic_F77 \
15030 module_expsym_cmds_F77 \
15031 lt_cv_prog_compiler_c_o_F77 \
15032 exclude_expsyms_F77 \
15033 include_expsyms_F77; do
15036 old_archive_cmds_F77 | \
15037 old_archive_from_new_cmds_F77 | \
15038 archive_cmds_F77 | \
15039 archive_expsym_cmds_F77 | \
15040 module_cmds_F77 | \
15041 module_expsym_cmds_F77 | \
15042 old_archive_from_expsyms_cmds_F77 | \
15043 export_symbols_cmds_F77 | \
15044 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15045 postinstall_cmds | postuninstall_cmds | \
15046 old_postinstall_cmds | old_postuninstall_cmds | \
15047 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15048 # Double-quote double-evaled strings.
15049 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15052 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15058 *'\$0 --fallback-echo"')
15059 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15065 cat <<__EOF__ >> "$cfgfile"
15066 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15068 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15070 # Shell to use when invoking shell scripts.
15073 # Whether or not to build shared libraries.
15074 build_libtool_libs=$enable_shared
15076 # Whether or not to build static libraries.
15077 build_old_libs=$enable_static
15079 # Whether or not to add -lc for building shared libraries.
15080 build_libtool_need_lc=$archive_cmds_need_lc_F77
15082 # Whether or not to disallow shared libs when runtime libs are static
15083 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15085 # Whether or not to optimize for fast installation.
15086 fast_install=$enable_fast_install
15089 host_alias=$host_alias
15092 # An echo program that does not interpret backslashes.
15097 AR_FLAGS=$lt_AR_FLAGS
15102 # A language-specific compiler.
15103 CC=$lt_compiler_F77
15105 # Is the compiler the GNU C compiler?
15111 # The linker used to build libraries.
15114 # Whether we need hard or soft links.
15117 # A BSD-compatible nm program.
15120 # A symbol stripping program
15123 # Used to examine libraries when file_magic_cmd begins "file"
15124 MAGIC_CMD=$MAGIC_CMD
15126 # Used on cygwin: DLL creation program.
15129 # Used on cygwin: object dumper.
15132 # Used on cygwin: assembler.
15135 # The name of the directory that contains temporary libtool files.
15138 # How to create reloadable object files.
15139 reload_flag=$lt_reload_flag
15140 reload_cmds=$lt_reload_cmds
15142 # How to pass a linker flag through the compiler.
15143 wl=$lt_lt_prog_compiler_wl_F77
15145 # Object file suffix (normally "o").
15146 objext="$ac_objext"
15148 # Old archive suffix (normally "a").
15151 # Shared library suffix (normally ".so").
15154 # Executable file suffix (normally "").
15157 # Additional compiler flags for building library objects.
15158 pic_flag=$lt_lt_prog_compiler_pic_F77
15161 # What is the maximum length of a command?
15162 max_cmd_len=$lt_cv_sys_max_cmd_len
15164 # Does compiler simultaneously support -c and -o options?
15165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15167 # Must we lock files when doing compilation ?
15168 need_locks=$lt_need_locks
15170 # Do we need the lib prefix for modules?
15171 need_lib_prefix=$need_lib_prefix
15173 # Do we need a version for libraries?
15174 need_version=$need_version
15176 # Whether dlopen is supported.
15177 dlopen_support=$enable_dlopen
15179 # Whether dlopen of programs is supported.
15180 dlopen_self=$enable_dlopen_self
15182 # Whether dlopen of statically linked programs is supported.
15183 dlopen_self_static=$enable_dlopen_self_static
15185 # Compiler flag to prevent dynamic linking.
15186 link_static_flag=$lt_lt_prog_compiler_static_F77
15188 # Compiler flag to turn off builtin functions.
15189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15191 # Compiler flag to allow reflexive dlopens.
15192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15194 # Compiler flag to generate shared objects directly from archives.
15195 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15197 # Compiler flag to generate thread-safe objects.
15198 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15200 # Library versioning type.
15201 version_type=$version_type
15203 # Format of library name prefix.
15204 libname_spec=$lt_libname_spec
15206 # List of archive names. First name is the real one, the rest are links.
15207 # The last name is the one that the linker finds with -lNAME.
15208 library_names_spec=$lt_library_names_spec
15210 # The coded name of the library, if different from the real name.
15211 soname_spec=$lt_soname_spec
15213 # Commands used to build and install an old-style archive.
15215 old_archive_cmds=$lt_old_archive_cmds_F77
15216 old_postinstall_cmds=$lt_old_postinstall_cmds
15217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15219 # Create an old-style archive from a shared archive.
15220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15222 # Create a temporary old-style archive to link instead of a shared archive.
15223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15225 # Commands used to build and install a shared archive.
15226 archive_cmds=$lt_archive_cmds_F77
15227 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15228 postinstall_cmds=$lt_postinstall_cmds
15229 postuninstall_cmds=$lt_postuninstall_cmds
15231 # Commands used to build a loadable module (assumed same as above if empty)
15232 module_cmds=$lt_module_cmds_F77
15233 module_expsym_cmds=$lt_module_expsym_cmds_F77
15235 # Commands to strip libraries.
15236 old_striplib=$lt_old_striplib
15237 striplib=$lt_striplib
15239 # Dependencies to place before the objects being linked to create a
15241 predep_objects=$lt_predep_objects_F77
15243 # Dependencies to place after the objects being linked to create a
15245 postdep_objects=$lt_postdep_objects_F77
15247 # Dependencies to place before the objects being linked to create a
15249 predeps=$lt_predeps_F77
15251 # Dependencies to place after the objects being linked to create a
15253 postdeps=$lt_postdeps_F77
15255 # The library search path used internally by the compiler when linking
15256 # a shared library.
15257 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15259 # Method to check whether dependent libraries are shared objects.
15260 deplibs_check_method=$lt_deplibs_check_method
15262 # Command to use when deplibs_check_method == file_magic.
15263 file_magic_cmd=$lt_file_magic_cmd
15265 # Flag that allows shared libraries with undefined symbols to be built.
15266 allow_undefined_flag=$lt_allow_undefined_flag_F77
15268 # Flag that forces no undefined symbols.
15269 no_undefined_flag=$lt_no_undefined_flag_F77
15271 # Commands used to finish a libtool library installation in a directory.
15272 finish_cmds=$lt_finish_cmds
15274 # Same as above, but a single script fragment to be evaled but not shown.
15275 finish_eval=$lt_finish_eval
15277 # Take the output of nm and produce a listing of raw symbols and C names.
15278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15280 # Transform the output of nm in a proper C declaration
15281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15283 # Transform the output of nm in a C name address pair
15284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15286 # This is the shared library runtime path variable.
15287 runpath_var=$runpath_var
15289 # This is the shared library path variable.
15290 shlibpath_var=$shlibpath_var
15292 # Is shlibpath searched before the hard-coded library search path?
15293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15295 # How to hardcode a shared library path into an executable.
15296 hardcode_action=$hardcode_action_F77
15298 # Whether we should hardcode library paths into libraries.
15299 hardcode_into_libs=$hardcode_into_libs
15301 # Flag to hardcode \$libdir into a binary during linking.
15302 # This must work even if \$libdir does not exist.
15303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15305 # If ld is used when linking, flag to hardcode \$libdir into
15306 # a binary during linking. This must work even if \$libdir does
15308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15310 # Whether we need a single -rpath flag with a separated argument.
15311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15314 # resulting binary.
15315 hardcode_direct=$hardcode_direct_F77
15317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15318 # resulting binary.
15319 hardcode_minus_L=$hardcode_minus_L_F77
15321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15322 # the resulting binary.
15323 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15325 # Set to yes if building a shared library automatically hardcodes DIR into the library
15326 # and all subsequent libraries and executables linked against it.
15327 hardcode_automatic=$hardcode_automatic_F77
15329 # Variables whose values should be saved in libtool wrapper scripts and
15330 # restored at relink time.
15331 variables_saved_for_relink="$variables_saved_for_relink"
15333 # Whether libtool must link a program against all its dependency libraries.
15334 link_all_deplibs=$link_all_deplibs_F77
15336 # Compile-time system search path for libraries
15337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15339 # Run-time system search path for libraries
15340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15342 # Fix the shell variable \$srcfile for the compiler.
15343 fix_srcfile_path="$fix_srcfile_path_F77"
15345 # Set to yes if exported symbols are required.
15346 always_export_symbols=$always_export_symbols_F77
15348 # The commands to list exported symbols.
15349 export_symbols_cmds=$lt_export_symbols_cmds_F77
15351 # The commands to extract the exported symbol list from a shared archive.
15352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15354 # Symbols that should not be listed in the preloaded symbols.
15355 exclude_expsyms=$lt_exclude_expsyms_F77
15357 # Symbols that must always be exported.
15358 include_expsyms=$lt_include_expsyms_F77
15360 # ### END LIBTOOL TAG CONFIG: $tagname
15366 # If there is no Makefile yet, we rely on a make rule to execute
15367 # `config.status --recheck' to rerun these tests and create the
15368 # libtool script then.
15369 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15370 if test -f "$ltmain_in"; then
15371 test -f Makefile && make "$ltmain"
15377 ac_cpp='$CPP $CPPFLAGS'
15378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15390 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15394 # Source file extension for Java test sources.
15397 # Object file extension for compiled Java test sources.
15401 # Code to be used in simple compile tests
15402 lt_simple_compile_test_code="class foo {}\n"
15404 # Code to be used in simple link tests
15405 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15409 # If no C compiler was specified, use CC.
15412 # Allow CC to be a program name with arguments.
15416 # Allow CC to be a program name with arguments.
15422 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15423 archive_cmds_need_lc_GCJ=no
15426 lt_prog_compiler_no_builtin_flag_GCJ=
15428 if test "$GCC" = yes; then
15429 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15432 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15433 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15434 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 lt_cv_prog_compiler_rtti_exceptions=no
15438 ac_outfile=conftest.$ac_objext
15439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15440 lt_compiler_flag="-fno-rtti -fno-exceptions"
15441 # Insert the option either (1) after the last *FLAGS variable, or
15442 # (2) before a word containing "conftest.", or (3) at the end.
15443 # Note that $ac_compile itself does not contain backslashes and begins
15444 # with a dollar sign (not a hyphen), so the echo should work correctly.
15445 # The option is referenced via a variable to avoid confusing sed.
15446 lt_compile=`echo "$ac_compile" | $SED \
15447 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15449 -e 's:$: $lt_compiler_flag:'`
15450 (eval echo "\"\$as_me:15450: $lt_compile\"" >&5)
15451 (eval "$lt_compile" 2>conftest.err)
15453 cat conftest.err >&5
15454 echo "$as_me:15454: \$? = $ac_status" >&5
15455 if (exit $ac_status) && test -s "$ac_outfile"; then
15456 # The compiler can only warn and ignore the option if not recognized
15457 # So say no if there are warnings
15458 if test ! -s conftest.err; then
15459 lt_cv_prog_compiler_rtti_exceptions=yes
15465 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15466 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15468 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15469 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15476 lt_prog_compiler_wl_GCJ=
15477 lt_prog_compiler_pic_GCJ=
15478 lt_prog_compiler_static_GCJ=
15480 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15481 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15483 if test "$GCC" = yes; then
15484 lt_prog_compiler_wl_GCJ='-Wl,'
15485 lt_prog_compiler_static_GCJ='-static'
15489 # All AIX code is PIC.
15490 if test "$host_cpu" = ia64; then
15491 # AIX 5 now supports IA64 processor
15492 lt_prog_compiler_static_GCJ='-Bstatic'
15497 # FIXME: we need at least 68020 code to build shared libraries, but
15498 # adding the `-m68020' flag to GCC prevents building anything better,
15500 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15503 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15504 # PIC is the default for these OSes.
15507 mingw* | pw32* | os2*)
15508 # This hack is so that the source file can tell whether it is being
15509 # built for inclusion in a dll (and should export symbols for example).
15510 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15513 darwin* | rhapsody*)
15514 # PIC is the default on this platform
15515 # Common symbols not allowed in MH_DYLIB files
15516 lt_prog_compiler_pic_GCJ='-fno-common'
15520 # Just because we use GCC doesn't mean we suddenly get shared libraries
15521 # on systems that don't support them.
15522 lt_prog_compiler_can_build_shared_GCJ=no
15527 if test -d /usr/nec; then
15528 lt_prog_compiler_pic_GCJ=-Kconform_pic
15533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15534 # not for PA HP-UX.
15535 case "$host_cpu" in
15540 lt_prog_compiler_pic_GCJ='-fPIC'
15546 lt_prog_compiler_pic_GCJ='-fPIC'
15550 # PORTME Check for flag to pass linker flags through the system compiler.
15553 lt_prog_compiler_wl_GCJ='-Wl,'
15554 if test "$host_cpu" = ia64; then
15555 # AIX 5 now supports IA64 processor
15556 lt_prog_compiler_static_GCJ='-Bstatic'
15558 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15562 mingw* | pw32* | os2*)
15563 # This hack is so that the source file can tell whether it is being
15564 # built for inclusion in a dll (and should export symbols for example).
15565 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15568 hpux9* | hpux10* | hpux11*)
15569 lt_prog_compiler_wl_GCJ='-Wl,'
15570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15571 # not for PA HP-UX.
15572 case "$host_cpu" in
15577 lt_prog_compiler_pic_GCJ='+Z'
15580 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15581 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15584 irix5* | irix6* | nonstopux*)
15585 lt_prog_compiler_wl_GCJ='-Wl,'
15586 # PIC (with -KPIC) is the default.
15587 lt_prog_compiler_static_GCJ='-non_shared'
15591 lt_prog_compiler_pic_GCJ='-KPIC'
15592 lt_prog_compiler_static_GCJ='-Bstatic'
15598 lt_prog_compiler_wl_GCJ='-Wl,'
15599 lt_prog_compiler_pic_GCJ='-KPIC'
15600 lt_prog_compiler_static_GCJ='-static'
15603 lt_prog_compiler_wl_GCJ='-Wl,'
15604 # All Alpha code is PIC.
15605 lt_prog_compiler_static_GCJ='-non_shared'
15610 osf3* | osf4* | osf5*)
15611 lt_prog_compiler_wl_GCJ='-Wl,'
15612 # All OSF/1 code is PIC.
15613 lt_prog_compiler_static_GCJ='-non_shared'
15617 lt_prog_compiler_pic_GCJ='-Kpic'
15618 lt_prog_compiler_static_GCJ='-dn'
15622 lt_prog_compiler_wl_GCJ='-Wl,'
15623 lt_prog_compiler_pic_GCJ='-KPIC'
15624 lt_prog_compiler_static_GCJ='-Bstatic'
15628 lt_prog_compiler_wl_GCJ='-Qoption ld '
15629 lt_prog_compiler_pic_GCJ='-PIC'
15630 lt_prog_compiler_static_GCJ='-Bstatic'
15633 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15634 lt_prog_compiler_wl_GCJ='-Wl,'
15635 lt_prog_compiler_pic_GCJ='-KPIC'
15636 lt_prog_compiler_static_GCJ='-Bstatic'
15640 if test -d /usr/nec ;then
15641 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15642 lt_prog_compiler_static_GCJ='-Bstatic'
15647 lt_prog_compiler_pic_GCJ='-pic'
15648 lt_prog_compiler_static_GCJ='-Bstatic'
15652 lt_prog_compiler_can_build_shared_GCJ=no
15657 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15658 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15661 # Check to make sure the PIC flag actually works.
15663 if test -n "$lt_prog_compiler_pic_GCJ"; then
15665 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15666 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15667 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 lt_prog_compiler_pic_works_GCJ=no
15671 ac_outfile=conftest.$ac_objext
15672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15673 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15674 # Insert the option either (1) after the last *FLAGS variable, or
15675 # (2) before a word containing "conftest.", or (3) at the end.
15676 # Note that $ac_compile itself does not contain backslashes and begins
15677 # with a dollar sign (not a hyphen), so the echo should work correctly.
15678 # The option is referenced via a variable to avoid confusing sed.
15679 lt_compile=`echo "$ac_compile" | $SED \
15680 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15682 -e 's:$: $lt_compiler_flag:'`
15683 (eval echo "\"\$as_me:15683: $lt_compile\"" >&5)
15684 (eval "$lt_compile" 2>conftest.err)
15686 cat conftest.err >&5
15687 echo "$as_me:15687: \$? = $ac_status" >&5
15688 if (exit $ac_status) && test -s "$ac_outfile"; then
15689 # The compiler can only warn and ignore the option if not recognized
15690 # So say no if there are warnings
15691 if test ! -s conftest.err; then
15692 lt_prog_compiler_pic_works_GCJ=yes
15698 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15699 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15701 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15702 case $lt_prog_compiler_pic_GCJ in
15704 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15707 lt_prog_compiler_pic_GCJ=
15708 lt_prog_compiler_can_build_shared_GCJ=no
15713 # For platforms which do not support PIC, -DPIC is meaningless:
15715 lt_prog_compiler_pic_GCJ=
15718 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15722 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15723 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15724 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 lt_cv_prog_compiler_c_o_GCJ=no
15728 $rm -r conftest 2>/dev/null
15732 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15734 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15735 # that will create temporary files in the current directory regardless of
15736 # the output directory. Thus, making CWD read-only will cause this test
15737 # to fail, enabling locking or at least warning the user not to do parallel
15741 lt_compiler_flag="-o out/conftest2.$ac_objext"
15742 # Insert the option either (1) after the last *FLAGS variable, or
15743 # (2) before a word containing "conftest.", or (3) at the end.
15744 # Note that $ac_compile itself does not contain backslashes and begins
15745 # with a dollar sign (not a hyphen), so the echo should work correctly.
15746 lt_compile=`echo "$ac_compile" | $SED \
15747 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15749 -e 's:$: $lt_compiler_flag:'`
15750 (eval echo "\"\$as_me:15750: $lt_compile\"" >&5)
15751 (eval "$lt_compile" 2>out/conftest.err)
15753 cat out/conftest.err >&5
15754 echo "$as_me:15754: \$? = $ac_status" >&5
15755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15757 # The compiler can only warn and ignore the option if not recognized
15758 # So say no if there are warnings
15759 if test ! -s out/conftest.err; then
15760 lt_cv_prog_compiler_c_o_GCJ=yes
15765 # SGI C++ compiler will create directory out/ii_files/ for
15766 # template instantiation
15767 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15768 $rm out/* && rmdir out
15774 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15775 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15778 hard_links="nottested"
15779 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15780 # do not overwrite the value of need_locks provided by the user
15781 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15782 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15787 ln conftest.a conftest.b 2>&5 || hard_links=no
15788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15789 echo "$as_me:$LINENO: result: $hard_links" >&5
15790 echo "${ECHO_T}$hard_links" >&6
15791 if test "$hard_links" = no; then
15792 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15793 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15800 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15801 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15804 allow_undefined_flag_GCJ=
15805 enable_shared_with_static_runtimes_GCJ=no
15807 archive_expsym_cmds_GCJ=
15808 old_archive_From_new_cmds_GCJ=
15809 old_archive_from_expsyms_cmds_GCJ=
15810 export_dynamic_flag_spec_GCJ=
15811 whole_archive_flag_spec_GCJ=
15812 thread_safe_flag_spec_GCJ=
15813 hardcode_libdir_flag_spec_GCJ=
15814 hardcode_libdir_flag_spec_ld_GCJ=
15815 hardcode_libdir_separator_GCJ=
15816 hardcode_direct_GCJ=no
15817 hardcode_minus_L_GCJ=no
15818 hardcode_shlibpath_var_GCJ=unsupported
15819 link_all_deplibs_GCJ=unknown
15820 hardcode_automatic_GCJ=no
15822 module_expsym_cmds_GCJ=
15823 always_export_symbols_GCJ=no
15824 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15825 # include_expsyms should be a list of space-separated symbols to be *always*
15826 # included in the symbol list
15827 include_expsyms_GCJ=
15828 # exclude_expsyms can be an extended regexp of symbols to exclude
15829 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15830 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15831 # as well as any symbol that contains `d'.
15832 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15833 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15834 # platforms (ab)use it in PIC code, but their linkers get confused if
15835 # the symbol is explicitly referenced. Since portable code cannot
15836 # rely on this symbol name, it's probably fine to never include it in
15837 # preloaded symbol tables.
15838 extract_expsyms_cmds=
15841 cygwin* | mingw* | pw32*)
15842 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15843 # When not using gcc, we currently assume that we are using
15844 # Microsoft Visual C++.
15845 if test "$GCC" != yes; then
15855 if test "$with_gnu_ld" = yes; then
15856 # If archive_cmds runs LD, not CC, wlarc should be empty
15859 # See if GNU ld supports shared libraries.
15861 aix3* | aix4* | aix5*)
15862 # On AIX/PPC, the GNU linker is very broken
15863 if test "$host_cpu" != ia64; then
15867 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15868 *** to be unable to reliably create shared libraries on AIX.
15869 *** Therefore, libtool is disabling shared libraries support. If you
15870 *** really care for shared libraries, you may want to modify your PATH
15871 *** so that a non-GNU linker is found, and then restart.
15878 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)'
15879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15880 hardcode_minus_L_GCJ=yes
15882 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15883 # that the semantics of dynamic libraries on AmigaOS, at least up
15884 # to version 4, is to share data among multiple programs linked
15885 # with the same dynamic library. Since this doesn't match the
15886 # behavior of shared libraries on other platforms, we can't use
15892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15893 allow_undefined_flag_GCJ=unsupported
15894 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15895 # support --undefined. This deserves some investigation. FIXME
15896 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15902 cygwin* | mingw* | pw32*)
15903 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15904 # as there is no search path for DLLs.
15905 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15906 allow_undefined_flag_GCJ=unsupported
15907 always_export_symbols_GCJ=no
15908 enable_shared_with_static_runtimes_GCJ=yes
15909 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15911 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15912 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15913 # If the export-symbols file already is a .def file (1st line
15914 # is EXPORTS), use it as is; otherwise, prepend...
15915 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15916 cp $export_symbols $output_objdir/$soname.def;
15918 echo EXPORTS > $output_objdir/$soname.def;
15919 cat $export_symbols >> $output_objdir/$soname.def;
15921 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15929 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15932 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15933 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15938 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15943 *** create shared libraries on Solaris systems. Therefore, libtool
15944 *** is disabling shared libraries support. We urge you to upgrade GNU
15945 *** binutils to release 2.9.1 or newer. Another option is to modify
15946 *** your PATH or compiler configuration so that the native linker is
15947 *** used, and then restart.
15950 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15951 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15952 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15959 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15961 hardcode_direct_GCJ=yes
15962 hardcode_shlibpath_var_GCJ=no
15966 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15967 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15968 archive_cmds_GCJ="$tmp_archive_cmds"
15969 supports_anon_versioning=no
15970 case `$LD -v 2>/dev/null` in
15971 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15974 *\ 2.11.*) ;; # other 2.11 versions
15975 *) supports_anon_versioning=yes ;;
15977 if test $supports_anon_versioning = yes; then
15978 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15980 $echo "local: *; };" >> $output_objdir/$libname.ver~
15981 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15983 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15992 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15993 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16000 if test "$ld_shlibs_GCJ" = yes; then
16001 runpath_var=LD_RUN_PATH
16002 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16003 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16004 # ancient GNU ld didn't support --whole-archive et. al.
16005 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16006 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16008 whole_archive_flag_spec_GCJ=
16012 # PORTME fill in a description of your system's linker (not GNU ld)
16015 allow_undefined_flag_GCJ=unsupported
16016 always_export_symbols_GCJ=yes
16017 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'
16018 # Note: this linker hardcodes the directories in LIBPATH if there
16019 # are no directories specified by -L.
16020 hardcode_minus_L_GCJ=yes
16021 if test "$GCC" = yes && test -z "$link_static_flag"; then
16022 # Neither direct hardcoding nor static linking is supported with a
16024 hardcode_direct_GCJ=unsupported
16029 if test "$host_cpu" = ia64; then
16030 # On IA64, the linker does run time linking by default, so we don't
16031 # have to do anything special.
16032 aix_use_runtimelinking=no
16033 exp_sym_flag='-Bexport'
16036 # If we're using GNU nm, then we don't want the "-C" option.
16037 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16038 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16039 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'
16041 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'
16043 aix_use_runtimelinking=no
16045 # Test if we are trying to use run time linking or normal
16046 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16047 # need to do runtime linking.
16048 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16049 for ld_flag in $LDFLAGS; do
16050 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16051 aix_use_runtimelinking=yes
16057 exp_sym_flag='-bexport'
16058 no_entry_flag='-bnoentry'
16061 # When large executables or shared objects are built, AIX ld can
16062 # have problems creating the table of contents. If linking a library
16063 # or program results in "error TOC overflow" add -mminimal-toc to
16064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16067 archive_cmds_GCJ=''
16068 hardcode_direct_GCJ=yes
16069 hardcode_libdir_separator_GCJ=':'
16070 link_all_deplibs_GCJ=yes
16072 if test "$GCC" = yes; then
16073 case $host_os in aix4.012|aix4.012.*)
16074 # We only want to do this on AIX 4.2 and lower, the check
16075 # below for broken collect2 doesn't work under 4.3+
16076 collect2name=`${CC} -print-prog-name=collect2`
16077 if test -f "$collect2name" && \
16078 strings "$collect2name" | grep resolve_lib_name >/dev/null
16080 # We have reworked collect2
16081 hardcode_direct_GCJ=yes
16083 # We have old collect2
16084 hardcode_direct_GCJ=unsupported
16085 # It fails to find uninstalled libraries when the uninstalled
16086 # path is not listed in the libpath. Setting hardcode_minus_L
16087 # to unsupported forces relinking
16088 hardcode_minus_L_GCJ=yes
16089 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16090 hardcode_libdir_separator_GCJ=
16093 shared_flag='-shared'
16096 if test "$host_cpu" = ia64; then
16097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16098 # chokes on -Wl,-G. The following line is correct:
16101 if test "$aix_use_runtimelinking" = yes; then
16102 shared_flag='${wl}-G'
16104 shared_flag='${wl}-bM:SRE'
16109 # It seems that -bexpall does not export symbols beginning with
16110 # underscore (_), so it is better to generate a list of symbols to export.
16111 always_export_symbols_GCJ=yes
16112 if test "$aix_use_runtimelinking" = yes; then
16113 # Warning - without using the other runtime loading flags (-brtl),
16114 # -berok will link without error, but may produce a broken library.
16115 allow_undefined_flag_GCJ='-berok'
16116 # Determine the default libpath from the value encoded in an empty executable.
16117 cat >conftest.$ac_ext <<_ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134 (eval $ac_link) 2>conftest.er1
16136 grep -v '^ *+' conftest.er1 >conftest.err
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest$ac_exeext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16156 # Check for a 64-bit object if we didn't find anything.
16157 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; }
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16164 rm -f conftest.err conftest.$ac_objext \
16165 conftest$ac_exeext conftest.$ac_ext
16166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16168 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16169 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16171 if test "$host_cpu" = ia64; then
16172 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16173 allow_undefined_flag_GCJ="-z nodefs"
16174 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16176 # Determine the default libpath from the value encoded in an empty executable.
16177 cat >conftest.$ac_ext <<_ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h. */
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>conftest.er1
16196 grep -v '^ *+' conftest.er1 >conftest.err
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest$ac_exeext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16216 # Check for a 64-bit object if we didn't find anything.
16217 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; }
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16224 rm -f conftest.err conftest.$ac_objext \
16225 conftest$ac_exeext conftest.$ac_ext
16226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16228 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16229 # Warning - without using the other run time loading flags,
16230 # -berok will link without error, but may produce a broken library.
16231 no_undefined_flag_GCJ=' ${wl}-bernotok'
16232 allow_undefined_flag_GCJ=' ${wl}-berok'
16233 # -bexpall does not export symbols beginning with underscore (_)
16234 always_export_symbols_GCJ=yes
16235 # Exported symbols can be pulled into shared objects from archives
16236 whole_archive_flag_spec_GCJ=' '
16237 archive_cmds_need_lc_GCJ=yes
16238 # This is similar to how AIX traditionally builds it's shared libraries.
16239 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16245 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)'
16246 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16247 hardcode_minus_L_GCJ=yes
16248 # see comment about different semantics on the GNU ld section
16253 export_dynamic_flag_spec_GCJ=-rdynamic
16256 cygwin* | mingw* | pw32*)
16257 # When not using gcc, we currently assume that we are using
16258 # Microsoft Visual C++.
16259 # hardcode_libdir_flag_spec is actually meaningless, as there is
16260 # no search path for DLLs.
16261 hardcode_libdir_flag_spec_GCJ=' '
16262 allow_undefined_flag_GCJ=unsupported
16263 # Tell ltmain to make .lib files, not .a files.
16265 # Tell ltmain to make .dll files, not .so files.
16267 # FIXME: Setting linknames here is a bad hack.
16268 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16269 # The linker will automatically build a .lib file if we build a DLL.
16270 old_archive_From_new_cmds_GCJ='true'
16271 # FIXME: Should let the user specify the lib program.
16272 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16273 fix_srcfile_path='`cygpath -w "$srcfile"`'
16274 enable_shared_with_static_runtimes_GCJ=yes
16277 darwin* | rhapsody*)
16278 if test "$GXX" = yes ; then
16279 archive_cmds_need_lc_GCJ=no
16281 rhapsody* | darwin1.[012])
16282 allow_undefined_flag_GCJ='-undefined suppress'
16285 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16286 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16288 case ${MACOSX_DEPLOYMENT_TARGET} in
16290 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16293 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16299 lt_int_apple_cc_single_mod=no
16300 output_verbose_link_cmd='echo'
16301 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16302 lt_int_apple_cc_single_mod=yes
16304 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16305 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16307 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16309 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16310 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16311 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16312 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16314 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16316 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}'
16317 hardcode_direct_GCJ=no
16318 hardcode_automatic_GCJ=yes
16319 hardcode_shlibpath_var_GCJ=unsupported
16320 whole_archive_flag_spec_GCJ='-all_load $convenience'
16321 link_all_deplibs_GCJ=yes
16328 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16330 hardcode_shlibpath_var_GCJ=no
16337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16338 # support. Future versions do this automatically, but an explicit c++rt0.o
16339 # does not break anything, and helps significantly (at the cost of a little
16342 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16343 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16344 hardcode_direct_GCJ=yes
16345 hardcode_shlibpath_var_GCJ=no
16348 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16350 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16351 hardcode_direct_GCJ=yes
16352 hardcode_minus_L_GCJ=yes
16353 hardcode_shlibpath_var_GCJ=no
16356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16357 freebsd* | kfreebsd*-gnu)
16358 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16359 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16360 hardcode_direct_GCJ=yes
16361 hardcode_shlibpath_var_GCJ=no
16365 if test "$GCC" = yes; then
16366 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'
16368 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'
16370 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16371 hardcode_libdir_separator_GCJ=:
16372 hardcode_direct_GCJ=yes
16374 # hardcode_minus_L: Not really in the search PATH,
16375 # but as the default location of the library.
16376 hardcode_minus_L_GCJ=yes
16377 export_dynamic_flag_spec_GCJ='${wl}-E'
16381 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16382 case "$host_cpu" in
16384 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16387 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16391 case "$host_cpu" in
16393 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16396 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16400 if test "$with_gnu_ld" = no; then
16401 case "$host_cpu" in
16403 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16404 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16405 hardcode_libdir_separator_GCJ=:
16406 hardcode_direct_GCJ=no
16407 hardcode_shlibpath_var_GCJ=no
16410 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16411 hardcode_direct_GCJ=no
16412 hardcode_shlibpath_var_GCJ=no
16414 # hardcode_minus_L: Not really in the search PATH,
16415 # but as the default location of the library.
16416 hardcode_minus_L_GCJ=yes
16419 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16420 hardcode_libdir_separator_GCJ=:
16421 hardcode_direct_GCJ=yes
16422 export_dynamic_flag_spec_GCJ='${wl}-E'
16424 # hardcode_minus_L: Not really in the search PATH,
16425 # but as the default location of the library.
16426 hardcode_minus_L_GCJ=yes
16432 irix5* | irix6* | nonstopux*)
16433 if test "$GCC" = yes; then
16434 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'
16436 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'
16437 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16439 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16440 hardcode_libdir_separator_GCJ=:
16441 link_all_deplibs_GCJ=yes
16445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16446 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16448 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16450 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16451 hardcode_direct_GCJ=yes
16452 hardcode_shlibpath_var_GCJ=no
16456 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16457 hardcode_direct_GCJ=yes
16458 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16459 hardcode_libdir_separator_GCJ=:
16460 hardcode_shlibpath_var_GCJ=no
16464 hardcode_direct_GCJ=yes
16465 hardcode_shlibpath_var_GCJ=no
16466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16467 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16468 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16469 export_dynamic_flag_spec_GCJ='${wl}-E'
16472 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16473 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16474 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16477 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16478 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16486 hardcode_minus_L_GCJ=yes
16487 allow_undefined_flag_GCJ=unsupported
16488 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'
16489 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16493 if test "$GCC" = yes; then
16494 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16495 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'
16497 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16498 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'
16500 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16501 hardcode_libdir_separator_GCJ=:
16504 osf4* | osf5*) # as osf3* with the addition of -msym flag
16505 if test "$GCC" = yes; then
16506 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16507 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'
16508 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16510 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16511 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'
16512 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~
16513 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16515 # Both c and cxx compiler support -rpath directly
16516 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16518 hardcode_libdir_separator_GCJ=:
16522 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523 hardcode_shlibpath_var_GCJ=no
16524 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16525 runpath_var=LD_RUN_PATH
16526 hardcode_runpath_var=yes
16530 no_undefined_flag_GCJ=' -z text'
16531 if test "$GCC" = yes; then
16532 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16533 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16534 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16536 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16537 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16538 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16540 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16541 hardcode_shlibpath_var_GCJ=no
16543 solaris2.[0-5] | solaris2.[0-5].*) ;;
16544 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16545 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16547 link_all_deplibs_GCJ=yes
16551 if test "x$host_vendor" = xsequent; then
16552 # Use $CC to link under sequent, because it throws in some extra .o
16553 # files that make .init and .fini sections work.
16554 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16556 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16558 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16559 hardcode_direct_GCJ=yes
16560 hardcode_minus_L_GCJ=yes
16561 hardcode_shlibpath_var_GCJ=no
16565 case $host_vendor in
16567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16568 hardcode_direct_GCJ=yes # is this really true???
16571 ## LD is ld it makes a PLAMLIB
16572 ## CC just makes a GrossModule.
16573 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16574 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16575 hardcode_direct_GCJ=no
16578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16579 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16582 runpath_var='LD_RUN_PATH'
16583 hardcode_shlibpath_var_GCJ=no
16587 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16588 hardcode_shlibpath_var_GCJ=no
16589 export_dynamic_flag_spec_GCJ='-Bexport'
16593 if test -d /usr/nec; then
16594 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16595 hardcode_shlibpath_var_GCJ=no
16596 runpath_var=LD_RUN_PATH
16597 hardcode_runpath_var=yes
16603 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16604 hardcode_direct_GCJ=yes
16605 hardcode_minus_L_GCJ=no
16606 hardcode_shlibpath_var_GCJ=no
16607 hardcode_runpath_var=yes
16608 runpath_var=LD_RUN_PATH
16611 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16612 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16613 if test "$GCC" = yes; then
16614 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16616 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16618 runpath_var='LD_RUN_PATH'
16619 hardcode_shlibpath_var_GCJ=no
16623 no_undefined_flag_GCJ=' -z text'
16624 # $CC -shared without GNU ld will not create a library from C++
16625 # object files and a static libstdc++, better avoid it by now
16626 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16627 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16629 hardcode_libdir_flag_spec_GCJ=
16630 hardcode_shlibpath_var_GCJ=no
16631 runpath_var='LD_RUN_PATH'
16635 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16637 hardcode_shlibpath_var_GCJ=no
16646 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16647 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16648 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16650 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16651 if test "$GCC" = yes; then
16652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16656 # Do we need to explicitly link libc?
16658 case "x$archive_cmds_need_lc_GCJ" in
16660 # Assume -lc should be added
16661 archive_cmds_need_lc_GCJ=yes
16663 if test "$enable_shared" = yes && test "$GCC" = yes; then
16664 case $archive_cmds_GCJ in
16666 # FIXME: we may have to deal with multi-command sequences.
16669 # Test whether the compiler implicitly links with -lc since on some
16670 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16671 # to ld, don't add -lc before -lgcc.
16672 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16673 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16675 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678 (eval $ac_compile) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } 2>conftest.err; then
16684 libobjs=conftest.$ac_objext
16686 wl=$lt_prog_compiler_wl_GCJ
16692 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16693 allow_undefined_flag_GCJ=
16694 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16695 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }
16700 archive_cmds_need_lc_GCJ=no
16702 archive_cmds_need_lc_GCJ=yes
16704 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16706 cat conftest.err 1>&5
16709 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16710 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16717 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16718 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16719 library_names_spec=
16720 libname_spec='lib$name'
16724 postuninstall_cmds=
16728 shlibpath_overrides_runpath=unknown
16730 dynamic_linker="$host_os ld.so"
16731 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16732 if test "$GCC" = yes; then
16733 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16734 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16735 # if the path contains ";" then we assume it to be the separator
16736 # otherwise default to the standard path separator (i.e. ":") - it is
16737 # assumed that no part of a normal pathname contains ";" but that should
16738 # okay in the real world where ";" in dirpaths is itself problematic.
16739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16744 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16746 need_lib_prefix=unknown
16747 hardcode_into_libs=no
16749 # when you set need_version to no, make sure it does not cause -set_version
16750 # flags to be left without arguments
16751 need_version=unknown
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16757 shlibpath_var=LIBPATH
16759 # AIX 3 has no versioning support, so we append a major version to the name.
16760 soname_spec='${libname}${release}${shared_ext}$major'
16767 hardcode_into_libs=yes
16768 if test "$host_cpu" = ia64; then
16769 # AIX 5 supports IA64
16770 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16771 shlibpath_var=LD_LIBRARY_PATH
16773 # With GCC up to 2.95.x, collect2 would create an import file
16774 # for dependence libraries. The import file would start with
16775 # the line `#! .'. This would cause the generated library to
16776 # depend on `.', always an invalid library. This was fixed in
16777 # development snapshots of GCC prior to 3.0.
16779 aix4 | aix4.[01] | aix4.[01].*)
16780 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16782 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16785 can_build_shared=no
16789 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16790 # soname into executable. Probably we can add versioning support to
16791 # collect2, so additional links can be useful in future.
16792 if test "$aix_use_runtimelinking" = yes; then
16793 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16794 # instead of lib<name>.a to let people know that these are not
16795 # typical AIX shared libraries.
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16798 # We preserve .a as extension for shared libraries through AIX4.2
16799 # and later when we are not doing run time linking.
16800 library_names_spec='${libname}${release}.a $libname.a'
16801 soname_spec='${libname}${release}${shared_ext}$major'
16803 shlibpath_var=LIBPATH
16808 library_names_spec='$libname.ixlibrary $libname.a'
16809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16810 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'
16814 library_names_spec='${libname}${shared_ext}'
16815 dynamic_linker="$host_os ld.so"
16816 shlibpath_var=LIBRARY_PATH
16822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823 soname_spec='${libname}${release}${shared_ext}$major'
16824 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16825 shlibpath_var=LD_LIBRARY_PATH
16826 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16827 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16828 # the default ld.so.conf also contains /usr/contrib/lib and
16829 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16830 # libtool to hard-code these into programs
16833 cygwin* | mingw* | pw32*)
16834 version_type=windows
16839 case $GCC,$host_os in
16840 yes,cygwin* | yes,mingw* | yes,pw32*)
16841 library_names_spec='$libname.dll.a'
16842 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16843 postinstall_cmds='base_file=`basename \${file}`~
16844 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16845 dldir=$destdir/`dirname \$dlpath`~
16846 test -d \$dldir || mkdir -p \$dldir~
16847 $install_prog $dir/$dlname \$dldir/$dlname'
16848 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16849 dlpath=$dir/\$dldll~
16851 shlibpath_overrides_runpath=yes
16855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16856 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16857 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16860 # MinGW DLLs use traditional 'lib' prefix
16861 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16862 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16863 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16864 # It is most probably a Windows format PATH printed by
16865 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16866 # path with ; separators, and with drive letters. We can handle the
16867 # drive letters (cygwin fileutils understands them), so leave them,
16868 # especially as we might pass files found there to a mingw objdump,
16869 # which wouldn't understand a cygwinified path. Ahh.
16870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16876 # pw32 DLLs use 'pw' prefix rather than 'lib'
16877 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16883 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16886 dynamic_linker='Win32 ld.exe'
16887 # FIXME: first we should search . and the directory the executable is in
16891 darwin* | rhapsody*)
16892 dynamic_linker="$host_os dyld"
16893 version_type=darwin
16896 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16897 soname_spec='${libname}${release}${major}$shared_ext'
16898 shlibpath_overrides_runpath=yes
16899 shlibpath_var=DYLD_LIBRARY_PATH
16900 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16901 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16902 if test "$GCC" = yes; then
16903 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"`
16905 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16915 soname_spec='${libname}${release}${shared_ext}$major'
16916 shlibpath_var=LD_LIBRARY_PATH
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 shlibpath_var=LD_LIBRARY_PATH
16930 shlibpath_overrides_runpath=no
16931 hardcode_into_libs=yes
16932 dynamic_linker='GNU ld.so'
16936 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16937 version_type=freebsd-$objformat
16938 case $version_type in
16940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16949 shlibpath_var=LD_LIBRARY_PATH
16952 shlibpath_overrides_runpath=yes
16954 freebsd3.01* | freebsdelf3.01*)
16955 shlibpath_overrides_runpath=yes
16956 hardcode_into_libs=yes
16959 shlibpath_overrides_runpath=no
16960 hardcode_into_libs=yes
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16970 soname_spec='${libname}${release}${shared_ext}$major'
16971 shlibpath_var=LD_LIBRARY_PATH
16972 hardcode_into_libs=yes
16975 hpux9* | hpux10* | hpux11*)
16976 # Give a soname corresponding to the major version so that dld.sl refuses to
16977 # link against other versions.
16981 case "$host_cpu" in
16984 hardcode_into_libs=yes
16985 dynamic_linker="$host_os dld.so"
16986 shlibpath_var=LD_LIBRARY_PATH
16987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16989 soname_spec='${libname}${release}${shared_ext}$major'
16990 if test "X$HPUX_IA64_MODE" = X32; then
16991 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16993 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16999 hardcode_into_libs=yes
17000 dynamic_linker="$host_os dld.sl"
17001 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17010 dynamic_linker="$host_os dld.sl"
17011 shlibpath_var=SHLIB_PATH
17012 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17014 soname_spec='${libname}${release}${shared_ext}$major'
17017 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17018 postinstall_cmds='chmod 555 $lib'
17021 irix5* | irix6* | nonstopux*)
17023 nonstopux*) version_type=nonstopux ;;
17025 if test "$lt_cv_prog_gnu_ld" = yes; then
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17036 irix5* | nonstopux*)
17037 libsuff= shlibsuff=
17040 case $LD in # libtool.m4 will add one of these switches to LD
17041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17042 libsuff= shlibsuff= libmagic=32-bit;;
17043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17044 libsuff=32 shlibsuff=N32 libmagic=N32;;
17045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17047 *) libsuff= shlibsuff= libmagic=never-match;;
17051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17052 shlibpath_overrides_runpath=no
17053 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17054 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17055 hardcode_into_libs=yes
17058 # No shared lib support for Linux oldld, aout, or coff.
17059 linux*oldld* | linux*aout* | linux*coff*)
17063 # This must be Linux ELF.
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17071 shlibpath_var=LD_LIBRARY_PATH
17072 shlibpath_overrides_runpath=no
17073 # This implies no fast_install, which is unacceptable.
17074 # Some rework will be needed to allow for fast_install
17075 # before this can be enabled.
17076 hardcode_into_libs=yes
17078 # Append ld.so.conf contents to the search path
17079 if test -f /etc/ld.so.conf; then
17080 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17081 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17084 # We used to test for /lib/ld.so.1 and disable shared libraries on
17085 # powerpc, because MkLinux only supported shared libraries with the
17086 # GNU dynamic linker. Since this was broken with cross compilers,
17087 # most powerpc-linux boxes support dynamic linking these days and
17088 # people can always --disable-shared, the test was removed, and we
17089 # assume the GNU/Linux dynamic linker is in use.
17090 dynamic_linker='GNU/Linux ld.so'
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 shlibpath_var=LD_LIBRARY_PATH
17100 shlibpath_overrides_runpath=no
17101 hardcode_into_libs=yes
17102 dynamic_linker='GNU ld.so'
17109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17112 dynamic_linker='NetBSD (a.out) ld.so'
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 dynamic_linker='NetBSD ld.elf_so'
17118 shlibpath_var=LD_LIBRARY_PATH
17119 shlibpath_overrides_runpath=yes
17120 hardcode_into_libs=yes
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 shlibpath_overrides_runpath=yes
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 shlibpath_overrides_runpath=yes
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17146 shlibpath_var=LD_LIBRARY_PATH
17147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17149 openbsd2.[89] | openbsd2.[89].*)
17150 shlibpath_overrides_runpath=no
17153 shlibpath_overrides_runpath=yes
17157 shlibpath_overrides_runpath=yes
17162 libname_spec='$name'
17165 library_names_spec='$libname${shared_ext} $libname.a'
17166 dynamic_linker='OS/2 ld.exe'
17167 shlibpath_var=LIBPATH
17170 osf3* | osf4* | osf5*)
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176 shlibpath_var=LD_LIBRARY_PATH
17177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 shlibpath_var=LD_LIBRARY_PATH
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193 soname_spec='${libname}${release}${shared_ext}$major'
17194 shlibpath_var=LD_LIBRARY_PATH
17195 shlibpath_overrides_runpath=yes
17196 hardcode_into_libs=yes
17197 # ldd complains unless libraries are executable
17198 postinstall_cmds='chmod +x $lib'
17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17204 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17205 shlibpath_var=LD_LIBRARY_PATH
17206 shlibpath_overrides_runpath=yes
17207 if test "$with_gnu_ld" = yes; then
17213 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17216 soname_spec='${libname}${release}${shared_ext}$major'
17217 shlibpath_var=LD_LIBRARY_PATH
17218 case $host_vendor in
17220 shlibpath_overrides_runpath=no
17222 export_dynamic_flag_spec='${wl}-Blargedynsym'
17223 runpath_var=LD_RUN_PATH
17231 shlibpath_overrides_runpath=no
17232 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17238 if test -d /usr/nec ;then
17240 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17241 soname_spec='$libname${shared_ext}.$major'
17242 shlibpath_var=LD_LIBRARY_PATH
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 shlibpath_var=LD_LIBRARY_PATH
17257 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17258 echo "${ECHO_T}$dynamic_linker" >&6
17259 test "$dynamic_linker" = no && can_build_shared=no
17261 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17263 hardcode_action_GCJ=
17264 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17265 test -n "$runpath_var GCJ" || \
17266 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17268 # We can hardcode non-existant directories.
17269 if test "$hardcode_direct_GCJ" != no &&
17270 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17271 # have to relink, otherwise we might link with an installed library
17272 # when we should be linking with a yet-to-be-installed one
17273 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17274 test "$hardcode_minus_L_GCJ" != no; then
17275 # Linking always hardcodes the temporary library directory.
17276 hardcode_action_GCJ=relink
17278 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17279 hardcode_action_GCJ=immediate
17282 # We cannot hardcode anything, or else we can only hardcode existing
17284 hardcode_action_GCJ=unsupported
17286 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17287 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17289 if test "$hardcode_action_GCJ" = relink; then
17290 # Fast installation is not supported
17291 enable_fast_install=no
17292 elif test "$shlibpath_overrides_runpath" = yes ||
17293 test "$enable_shared" = no; then
17294 # Fast installation is not necessary
17295 enable_fast_install=needless
17300 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17301 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17302 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17303 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17304 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17305 echo "$as_me:$LINENO: result: yes" >&5
17306 echo "${ECHO_T}yes" >&6
17308 # FIXME - insert some real tests, host_os isn't really good enough
17311 if test -n "$STRIP" ; then
17312 striplib="$STRIP -x"
17313 echo "$as_me:$LINENO: result: yes" >&5
17314 echo "${ECHO_T}yes" >&6
17316 echo "$as_me:$LINENO: result: no" >&5
17317 echo "${ECHO_T}no" >&6
17321 echo "$as_me:$LINENO: result: no" >&5
17322 echo "${ECHO_T}no" >&6
17327 if test "x$enable_dlopen" != xyes; then
17328 enable_dlopen=unknown
17329 enable_dlopen_self=unknown
17330 enable_dlopen_self_static=unknown
17337 lt_cv_dlopen="load_add_on"
17339 lt_cv_dlopen_self=yes
17343 lt_cv_dlopen="LoadLibrary"
17348 lt_cv_dlopen="dlopen"
17353 # if libdl is installed we need to link against it
17354 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17355 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 ac_check_lib_save_LIBS=$LIBS
17361 cat >conftest.$ac_ext <<_ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17368 /* Override any gcc2 internal prototype to avoid an error. */
17372 /* We use char because int might match the return type of a gcc2
17373 builtin and then its argument prototype would still apply. */
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>conftest.er1
17387 grep -v '^ *+' conftest.er1 >conftest.err
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; } &&
17398 { ac_try='test -s conftest$ac_exeext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_cv_lib_dl_dlopen=yes
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 ac_cv_lib_dl_dlopen=no
17411 rm -f conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 LIBS=$ac_check_lib_save_LIBS
17415 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17416 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17417 if test $ac_cv_lib_dl_dlopen = yes; then
17418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17421 lt_cv_dlopen="dyld"
17423 lt_cv_dlopen_self=yes
17430 echo "$as_me:$LINENO: checking for shl_load" >&5
17431 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17432 if test "${ac_cv_func_shl_load+set}" = set; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17435 cat >conftest.$ac_ext <<_ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17441 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17443 #define shl_load innocuous_shl_load
17445 /* System header to define __stub macros and hopefully few prototypes,
17446 which can conflict with char shl_load (); below.
17447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448 <limits.h> exists even on freestanding compilers. */
17451 # include <limits.h>
17453 # include <assert.h>
17458 /* Override any gcc2 internal prototype to avoid an error. */
17463 /* We use char because int might match the return type of a gcc2
17464 builtin and then its argument prototype would still apply. */
17466 /* The GNU C library defines this for functions which it implements
17467 to always fail with ENOSYS. Some functions are actually named
17468 something starting with __ and the normal name is an alias. */
17469 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17472 char (*f) () = shl_load;
17481 return f != shl_load;
17486 rm -f conftest.$ac_objext conftest$ac_exeext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17488 (eval $ac_link) 2>conftest.er1
17490 grep -v '^ *+' conftest.er1 >conftest.err
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
17495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try='test -s conftest$ac_exeext'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; }; then
17507 ac_cv_func_shl_load=yes
17509 echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17512 ac_cv_func_shl_load=no
17514 rm -f conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17517 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17518 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17519 if test $ac_cv_func_shl_load = yes; then
17520 lt_cv_dlopen="shl_load"
17522 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17523 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17524 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 ac_check_lib_save_LIBS=$LIBS
17529 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17536 /* Override any gcc2 internal prototype to avoid an error. */
17540 /* We use char because int might match the return type of a gcc2
17541 builtin and then its argument prototype would still apply. */
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553 (eval $ac_link) 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try='test -s conftest$ac_exeext'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 ac_cv_lib_dld_shl_load=yes
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 ac_cv_lib_dld_shl_load=no
17579 rm -f conftest.err conftest.$ac_objext \
17580 conftest$ac_exeext conftest.$ac_ext
17581 LIBS=$ac_check_lib_save_LIBS
17583 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17584 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17585 if test $ac_cv_lib_dld_shl_load = yes; then
17586 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17588 echo "$as_me:$LINENO: checking for dlopen" >&5
17589 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17590 if test "${ac_cv_func_dlopen+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 cat >conftest.$ac_ext <<_ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17601 #define dlopen innocuous_dlopen
17603 /* System header to define __stub macros and hopefully few prototypes,
17604 which can conflict with char dlopen (); below.
17605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17606 <limits.h> exists even on freestanding compilers. */
17609 # include <limits.h>
17611 # include <assert.h>
17616 /* Override any gcc2 internal prototype to avoid an error. */
17621 /* We use char because int might match the return type of a gcc2
17622 builtin and then its argument prototype would still apply. */
17624 /* The GNU C library defines this for functions which it implements
17625 to always fail with ENOSYS. Some functions are actually named
17626 something starting with __ and the normal name is an alias. */
17627 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17630 char (*f) () = dlopen;
17639 return f != dlopen;
17644 rm -f conftest.$ac_objext conftest$ac_exeext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646 (eval $ac_link) 2>conftest.er1
17648 grep -v '^ *+' conftest.er1 >conftest.err
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest$ac_exeext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_func_dlopen=yes
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_cv_func_dlopen=no
17672 rm -f conftest.err conftest.$ac_objext \
17673 conftest$ac_exeext conftest.$ac_ext
17675 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17676 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17677 if test $ac_cv_func_dlopen = yes; then
17678 lt_cv_dlopen="dlopen"
17680 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17681 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 ac_check_lib_save_LIBS=$LIBS
17687 cat >conftest.$ac_ext <<_ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17694 /* Override any gcc2 internal prototype to avoid an error. */
17698 /* We use char because int might match the return type of a gcc2
17699 builtin and then its argument prototype would still apply. */
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17711 (eval $ac_link) 2>conftest.er1
17713 grep -v '^ *+' conftest.er1 >conftest.err
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } &&
17718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; } &&
17724 { ac_try='test -s conftest$ac_exeext'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 ac_cv_lib_dl_dlopen=yes
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_cv_lib_dl_dlopen=no
17737 rm -f conftest.err conftest.$ac_objext \
17738 conftest$ac_exeext conftest.$ac_ext
17739 LIBS=$ac_check_lib_save_LIBS
17741 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17743 if test $ac_cv_lib_dl_dlopen = yes; then
17744 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17746 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17747 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17748 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 ac_check_lib_save_LIBS=$LIBS
17752 LIBS="-lsvld $LIBS"
17753 cat >conftest.$ac_ext <<_ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17760 /* Override any gcc2 internal prototype to avoid an error. */
17764 /* We use char because int might match the return type of a gcc2
17765 builtin and then its argument prototype would still apply. */
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777 (eval $ac_link) 2>conftest.er1
17779 grep -v '^ *+' conftest.er1 >conftest.err
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; } &&
17790 { ac_try='test -s conftest$ac_exeext'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; }; then
17796 ac_cv_lib_svld_dlopen=yes
17798 echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17801 ac_cv_lib_svld_dlopen=no
17803 rm -f conftest.err conftest.$ac_objext \
17804 conftest$ac_exeext conftest.$ac_ext
17805 LIBS=$ac_check_lib_save_LIBS
17807 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17808 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17809 if test $ac_cv_lib_svld_dlopen = yes; then
17810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17812 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17813 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17814 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 ac_check_lib_save_LIBS=$LIBS
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17826 /* Override any gcc2 internal prototype to avoid an error. */
17830 /* We use char because int might match the return type of a gcc2
17831 builtin and then its argument prototype would still apply. */
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843 (eval $ac_link) 2>conftest.er1
17845 grep -v '^ *+' conftest.er1 >conftest.err
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest$ac_exeext'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 ac_cv_lib_dld_dld_link=yes
17864 echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17867 ac_cv_lib_dld_dld_link=no
17869 rm -f conftest.err conftest.$ac_objext \
17870 conftest$ac_exeext conftest.$ac_ext
17871 LIBS=$ac_check_lib_save_LIBS
17873 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17874 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17875 if test $ac_cv_lib_dld_dld_link = yes; then
17876 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17897 if test "x$lt_cv_dlopen" != xno; then
17903 case $lt_cv_dlopen in
17905 save_CPPFLAGS="$CPPFLAGS"
17906 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17908 save_LDFLAGS="$LDFLAGS"
17909 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17912 LIBS="$lt_cv_dlopen_libs $LIBS"
17914 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17915 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17916 if test "${lt_cv_dlopen_self+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 if test "$cross_compiling" = yes; then :
17920 lt_cv_dlopen_self=cross
17922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17923 lt_status=$lt_dlunknown
17924 cat > conftest.$ac_ext <<EOF
17925 #line 17925 "configure"
17926 #include "confdefs.h"
17935 # define LT_DLGLOBAL RTLD_GLOBAL
17938 # define LT_DLGLOBAL DL_GLOBAL
17940 # define LT_DLGLOBAL 0
17944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17945 find out it does not work in some platform. */
17946 #ifndef LT_DLLAZY_OR_NOW
17948 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17951 # define LT_DLLAZY_OR_NOW DL_LAZY
17954 # define LT_DLLAZY_OR_NOW RTLD_NOW
17957 # define LT_DLLAZY_OR_NOW DL_NOW
17959 # define LT_DLLAZY_OR_NOW 0
17967 extern "C" void exit (int);
17970 void fnord() { int i=42;}
17973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17974 int status = $lt_dlunknown;
17978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17979 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17980 /* dlclose (self); */
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987 (eval $ac_link) 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17991 (./conftest; exit; ) 2>/dev/null
17993 case x$lt_status in
17994 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17995 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17996 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17999 # compilation failed
18000 lt_cv_dlopen_self=no
18007 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18008 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18010 if test "x$lt_cv_dlopen_self" = xyes; then
18011 LDFLAGS="$LDFLAGS $link_static_flag"
18012 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18013 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18014 if test "${lt_cv_dlopen_self_static+set}" = set; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 if test "$cross_compiling" = yes; then :
18018 lt_cv_dlopen_self_static=cross
18020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18021 lt_status=$lt_dlunknown
18022 cat > conftest.$ac_ext <<EOF
18023 #line 18023 "configure"
18024 #include "confdefs.h"
18033 # define LT_DLGLOBAL RTLD_GLOBAL
18036 # define LT_DLGLOBAL DL_GLOBAL
18038 # define LT_DLGLOBAL 0
18042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18043 find out it does not work in some platform. */
18044 #ifndef LT_DLLAZY_OR_NOW
18046 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18049 # define LT_DLLAZY_OR_NOW DL_LAZY
18052 # define LT_DLLAZY_OR_NOW RTLD_NOW
18055 # define LT_DLLAZY_OR_NOW DL_NOW
18057 # define LT_DLLAZY_OR_NOW 0
18065 extern "C" void exit (int);
18068 void fnord() { int i=42;}
18071 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18072 int status = $lt_dlunknown;
18076 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18077 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18078 /* dlclose (self); */
18084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085 (eval $ac_link) 2>&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18089 (./conftest; exit; ) 2>/dev/null
18091 case x$lt_status in
18092 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18093 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18094 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18097 # compilation failed
18098 lt_cv_dlopen_self_static=no
18105 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18106 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18109 CPPFLAGS="$save_CPPFLAGS"
18110 LDFLAGS="$save_LDFLAGS"
18115 case $lt_cv_dlopen_self in
18116 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18117 *) enable_dlopen_self=unknown ;;
18120 case $lt_cv_dlopen_self_static in
18121 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18122 *) enable_dlopen_self_static=unknown ;;
18127 # The else clause should only fire when bootstrapping the
18128 # libtool distribution, otherwise you forgot to ship ltmain.sh
18129 # with your package, and you will get complaints that there are
18130 # no rules to generate ltmain.sh.
18131 if test -f "$ltmain"; then
18132 # See if we are running on zsh, and set the options which allow our commands through
18133 # without removal of \ escapes.
18134 if test -n "${ZSH_VERSION+set}" ; then
18135 setopt NO_GLOB_SUBST
18137 # Now quote all the things that may contain metacharacters while being
18138 # careful not to overquote the AC_SUBSTed values. We take copies of the
18139 # variables and quote the copies for generation of the libtool script.
18140 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18142 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18143 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18144 deplibs_check_method reload_flag reload_cmds need_locks \
18145 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18146 lt_cv_sys_global_symbol_to_c_name_address \
18147 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18148 old_postinstall_cmds old_postuninstall_cmds \
18152 lt_prog_compiler_wl_GCJ \
18153 lt_prog_compiler_pic_GCJ \
18154 lt_prog_compiler_static_GCJ \
18155 lt_prog_compiler_no_builtin_flag_GCJ \
18156 export_dynamic_flag_spec_GCJ \
18157 thread_safe_flag_spec_GCJ \
18158 whole_archive_flag_spec_GCJ \
18159 enable_shared_with_static_runtimes_GCJ \
18160 old_archive_cmds_GCJ \
18161 old_archive_from_new_cmds_GCJ \
18162 predep_objects_GCJ \
18163 postdep_objects_GCJ \
18166 compiler_lib_search_path_GCJ \
18168 archive_expsym_cmds_GCJ \
18169 postinstall_cmds_GCJ \
18170 postuninstall_cmds_GCJ \
18171 old_archive_from_expsyms_cmds_GCJ \
18172 allow_undefined_flag_GCJ \
18173 no_undefined_flag_GCJ \
18174 export_symbols_cmds_GCJ \
18175 hardcode_libdir_flag_spec_GCJ \
18176 hardcode_libdir_flag_spec_ld_GCJ \
18177 hardcode_libdir_separator_GCJ \
18178 hardcode_automatic_GCJ \
18180 module_expsym_cmds_GCJ \
18181 lt_cv_prog_compiler_c_o_GCJ \
18182 exclude_expsyms_GCJ \
18183 include_expsyms_GCJ; do
18186 old_archive_cmds_GCJ | \
18187 old_archive_from_new_cmds_GCJ | \
18188 archive_cmds_GCJ | \
18189 archive_expsym_cmds_GCJ | \
18190 module_cmds_GCJ | \
18191 module_expsym_cmds_GCJ | \
18192 old_archive_from_expsyms_cmds_GCJ | \
18193 export_symbols_cmds_GCJ | \
18194 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18195 postinstall_cmds | postuninstall_cmds | \
18196 old_postinstall_cmds | old_postuninstall_cmds | \
18197 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18198 # Double-quote double-evaled strings.
18199 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18208 *'\$0 --fallback-echo"')
18209 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18215 cat <<__EOF__ >> "$cfgfile"
18216 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18218 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18220 # Shell to use when invoking shell scripts.
18223 # Whether or not to build shared libraries.
18224 build_libtool_libs=$enable_shared
18226 # Whether or not to build static libraries.
18227 build_old_libs=$enable_static
18229 # Whether or not to add -lc for building shared libraries.
18230 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18232 # Whether or not to disallow shared libs when runtime libs are static
18233 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18235 # Whether or not to optimize for fast installation.
18236 fast_install=$enable_fast_install
18239 host_alias=$host_alias
18242 # An echo program that does not interpret backslashes.
18247 AR_FLAGS=$lt_AR_FLAGS
18252 # A language-specific compiler.
18253 CC=$lt_compiler_GCJ
18255 # Is the compiler the GNU C compiler?
18261 # The linker used to build libraries.
18264 # Whether we need hard or soft links.
18267 # A BSD-compatible nm program.
18270 # A symbol stripping program
18273 # Used to examine libraries when file_magic_cmd begins "file"
18274 MAGIC_CMD=$MAGIC_CMD
18276 # Used on cygwin: DLL creation program.
18279 # Used on cygwin: object dumper.
18282 # Used on cygwin: assembler.
18285 # The name of the directory that contains temporary libtool files.
18288 # How to create reloadable object files.
18289 reload_flag=$lt_reload_flag
18290 reload_cmds=$lt_reload_cmds
18292 # How to pass a linker flag through the compiler.
18293 wl=$lt_lt_prog_compiler_wl_GCJ
18295 # Object file suffix (normally "o").
18296 objext="$ac_objext"
18298 # Old archive suffix (normally "a").
18301 # Shared library suffix (normally ".so").
18304 # Executable file suffix (normally "").
18307 # Additional compiler flags for building library objects.
18308 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18311 # What is the maximum length of a command?
18312 max_cmd_len=$lt_cv_sys_max_cmd_len
18314 # Does compiler simultaneously support -c and -o options?
18315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18317 # Must we lock files when doing compilation ?
18318 need_locks=$lt_need_locks
18320 # Do we need the lib prefix for modules?
18321 need_lib_prefix=$need_lib_prefix
18323 # Do we need a version for libraries?
18324 need_version=$need_version
18326 # Whether dlopen is supported.
18327 dlopen_support=$enable_dlopen
18329 # Whether dlopen of programs is supported.
18330 dlopen_self=$enable_dlopen_self
18332 # Whether dlopen of statically linked programs is supported.
18333 dlopen_self_static=$enable_dlopen_self_static
18335 # Compiler flag to prevent dynamic linking.
18336 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18338 # Compiler flag to turn off builtin functions.
18339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18341 # Compiler flag to allow reflexive dlopens.
18342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18344 # Compiler flag to generate shared objects directly from archives.
18345 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18347 # Compiler flag to generate thread-safe objects.
18348 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18350 # Library versioning type.
18351 version_type=$version_type
18353 # Format of library name prefix.
18354 libname_spec=$lt_libname_spec
18356 # List of archive names. First name is the real one, the rest are links.
18357 # The last name is the one that the linker finds with -lNAME.
18358 library_names_spec=$lt_library_names_spec
18360 # The coded name of the library, if different from the real name.
18361 soname_spec=$lt_soname_spec
18363 # Commands used to build and install an old-style archive.
18365 old_archive_cmds=$lt_old_archive_cmds_GCJ
18366 old_postinstall_cmds=$lt_old_postinstall_cmds
18367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18369 # Create an old-style archive from a shared archive.
18370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18372 # Create a temporary old-style archive to link instead of a shared archive.
18373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18375 # Commands used to build and install a shared archive.
18376 archive_cmds=$lt_archive_cmds_GCJ
18377 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18378 postinstall_cmds=$lt_postinstall_cmds
18379 postuninstall_cmds=$lt_postuninstall_cmds
18381 # Commands used to build a loadable module (assumed same as above if empty)
18382 module_cmds=$lt_module_cmds_GCJ
18383 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18385 # Commands to strip libraries.
18386 old_striplib=$lt_old_striplib
18387 striplib=$lt_striplib
18389 # Dependencies to place before the objects being linked to create a
18391 predep_objects=$lt_predep_objects_GCJ
18393 # Dependencies to place after the objects being linked to create a
18395 postdep_objects=$lt_postdep_objects_GCJ
18397 # Dependencies to place before the objects being linked to create a
18399 predeps=$lt_predeps_GCJ
18401 # Dependencies to place after the objects being linked to create a
18403 postdeps=$lt_postdeps_GCJ
18405 # The library search path used internally by the compiler when linking
18406 # a shared library.
18407 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18409 # Method to check whether dependent libraries are shared objects.
18410 deplibs_check_method=$lt_deplibs_check_method
18412 # Command to use when deplibs_check_method == file_magic.
18413 file_magic_cmd=$lt_file_magic_cmd
18415 # Flag that allows shared libraries with undefined symbols to be built.
18416 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18418 # Flag that forces no undefined symbols.
18419 no_undefined_flag=$lt_no_undefined_flag_GCJ
18421 # Commands used to finish a libtool library installation in a directory.
18422 finish_cmds=$lt_finish_cmds
18424 # Same as above, but a single script fragment to be evaled but not shown.
18425 finish_eval=$lt_finish_eval
18427 # Take the output of nm and produce a listing of raw symbols and C names.
18428 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18430 # Transform the output of nm in a proper C declaration
18431 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18433 # Transform the output of nm in a C name address pair
18434 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18436 # This is the shared library runtime path variable.
18437 runpath_var=$runpath_var
18439 # This is the shared library path variable.
18440 shlibpath_var=$shlibpath_var
18442 # Is shlibpath searched before the hard-coded library search path?
18443 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18445 # How to hardcode a shared library path into an executable.
18446 hardcode_action=$hardcode_action_GCJ
18448 # Whether we should hardcode library paths into libraries.
18449 hardcode_into_libs=$hardcode_into_libs
18451 # Flag to hardcode \$libdir into a binary during linking.
18452 # This must work even if \$libdir does not exist.
18453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18455 # If ld is used when linking, flag to hardcode \$libdir into
18456 # a binary during linking. This must work even if \$libdir does
18458 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18460 # Whether we need a single -rpath flag with a separated argument.
18461 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18463 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18464 # resulting binary.
18465 hardcode_direct=$hardcode_direct_GCJ
18467 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18468 # resulting binary.
18469 hardcode_minus_L=$hardcode_minus_L_GCJ
18471 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18472 # the resulting binary.
18473 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18475 # Set to yes if building a shared library automatically hardcodes DIR into the library
18476 # and all subsequent libraries and executables linked against it.
18477 hardcode_automatic=$hardcode_automatic_GCJ
18479 # Variables whose values should be saved in libtool wrapper scripts and
18480 # restored at relink time.
18481 variables_saved_for_relink="$variables_saved_for_relink"
18483 # Whether libtool must link a program against all its dependency libraries.
18484 link_all_deplibs=$link_all_deplibs_GCJ
18486 # Compile-time system search path for libraries
18487 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18489 # Run-time system search path for libraries
18490 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18492 # Fix the shell variable \$srcfile for the compiler.
18493 fix_srcfile_path="$fix_srcfile_path_GCJ"
18495 # Set to yes if exported symbols are required.
18496 always_export_symbols=$always_export_symbols_GCJ
18498 # The commands to list exported symbols.
18499 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18501 # The commands to extract the exported symbol list from a shared archive.
18502 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18504 # Symbols that should not be listed in the preloaded symbols.
18505 exclude_expsyms=$lt_exclude_expsyms_GCJ
18507 # Symbols that must always be exported.
18508 include_expsyms=$lt_include_expsyms_GCJ
18510 # ### END LIBTOOL TAG CONFIG: $tagname
18516 # If there is no Makefile yet, we rely on a make rule to execute
18517 # `config.status --recheck' to rerun these tests and create the
18518 # libtool script then.
18519 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18520 if test -f "$ltmain_in"; then
18521 test -f Makefile && make "$ltmain"
18527 ac_cpp='$CPP $CPPFLAGS'
18528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18543 # Source file extension for RC test sources.
18546 # Object file extension for compiled RC test sources.
18550 # Code to be used in simple compile tests
18551 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18553 # Code to be used in simple link tests
18554 lt_simple_link_test_code="$lt_simple_compile_test_code"
18556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18558 # If no C compiler was specified, use CC.
18561 # Allow CC to be a program name with arguments.
18565 # Allow CC to be a program name with arguments.
18570 lt_cv_prog_compiler_c_o_RC=yes
18572 # The else clause should only fire when bootstrapping the
18573 # libtool distribution, otherwise you forgot to ship ltmain.sh
18574 # with your package, and you will get complaints that there are
18575 # no rules to generate ltmain.sh.
18576 if test -f "$ltmain"; then
18577 # See if we are running on zsh, and set the options which allow our commands through
18578 # without removal of \ escapes.
18579 if test -n "${ZSH_VERSION+set}" ; then
18580 setopt NO_GLOB_SUBST
18582 # Now quote all the things that may contain metacharacters while being
18583 # careful not to overquote the AC_SUBSTed values. We take copies of the
18584 # variables and quote the copies for generation of the libtool script.
18585 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18587 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18588 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18589 deplibs_check_method reload_flag reload_cmds need_locks \
18590 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18591 lt_cv_sys_global_symbol_to_c_name_address \
18592 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18593 old_postinstall_cmds old_postuninstall_cmds \
18597 lt_prog_compiler_wl_RC \
18598 lt_prog_compiler_pic_RC \
18599 lt_prog_compiler_static_RC \
18600 lt_prog_compiler_no_builtin_flag_RC \
18601 export_dynamic_flag_spec_RC \
18602 thread_safe_flag_spec_RC \
18603 whole_archive_flag_spec_RC \
18604 enable_shared_with_static_runtimes_RC \
18605 old_archive_cmds_RC \
18606 old_archive_from_new_cmds_RC \
18607 predep_objects_RC \
18608 postdep_objects_RC \
18611 compiler_lib_search_path_RC \
18613 archive_expsym_cmds_RC \
18614 postinstall_cmds_RC \
18615 postuninstall_cmds_RC \
18616 old_archive_from_expsyms_cmds_RC \
18617 allow_undefined_flag_RC \
18618 no_undefined_flag_RC \
18619 export_symbols_cmds_RC \
18620 hardcode_libdir_flag_spec_RC \
18621 hardcode_libdir_flag_spec_ld_RC \
18622 hardcode_libdir_separator_RC \
18623 hardcode_automatic_RC \
18625 module_expsym_cmds_RC \
18626 lt_cv_prog_compiler_c_o_RC \
18627 exclude_expsyms_RC \
18628 include_expsyms_RC; do
18631 old_archive_cmds_RC | \
18632 old_archive_from_new_cmds_RC | \
18633 archive_cmds_RC | \
18634 archive_expsym_cmds_RC | \
18636 module_expsym_cmds_RC | \
18637 old_archive_from_expsyms_cmds_RC | \
18638 export_symbols_cmds_RC | \
18639 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18640 postinstall_cmds | postuninstall_cmds | \
18641 old_postinstall_cmds | old_postuninstall_cmds | \
18642 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18643 # Double-quote double-evaled strings.
18644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18653 *'\$0 --fallback-echo"')
18654 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18660 cat <<__EOF__ >> "$cfgfile"
18661 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18663 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18665 # Shell to use when invoking shell scripts.
18668 # Whether or not to build shared libraries.
18669 build_libtool_libs=$enable_shared
18671 # Whether or not to build static libraries.
18672 build_old_libs=$enable_static
18674 # Whether or not to add -lc for building shared libraries.
18675 build_libtool_need_lc=$archive_cmds_need_lc_RC
18677 # Whether or not to disallow shared libs when runtime libs are static
18678 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18680 # Whether or not to optimize for fast installation.
18681 fast_install=$enable_fast_install
18684 host_alias=$host_alias
18687 # An echo program that does not interpret backslashes.
18692 AR_FLAGS=$lt_AR_FLAGS
18697 # A language-specific compiler.
18700 # Is the compiler the GNU C compiler?
18706 # The linker used to build libraries.
18709 # Whether we need hard or soft links.
18712 # A BSD-compatible nm program.
18715 # A symbol stripping program
18718 # Used to examine libraries when file_magic_cmd begins "file"
18719 MAGIC_CMD=$MAGIC_CMD
18721 # Used on cygwin: DLL creation program.
18724 # Used on cygwin: object dumper.
18727 # Used on cygwin: assembler.
18730 # The name of the directory that contains temporary libtool files.
18733 # How to create reloadable object files.
18734 reload_flag=$lt_reload_flag
18735 reload_cmds=$lt_reload_cmds
18737 # How to pass a linker flag through the compiler.
18738 wl=$lt_lt_prog_compiler_wl_RC
18740 # Object file suffix (normally "o").
18741 objext="$ac_objext"
18743 # Old archive suffix (normally "a").
18746 # Shared library suffix (normally ".so").
18749 # Executable file suffix (normally "").
18752 # Additional compiler flags for building library objects.
18753 pic_flag=$lt_lt_prog_compiler_pic_RC
18756 # What is the maximum length of a command?
18757 max_cmd_len=$lt_cv_sys_max_cmd_len
18759 # Does compiler simultaneously support -c and -o options?
18760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18762 # Must we lock files when doing compilation ?
18763 need_locks=$lt_need_locks
18765 # Do we need the lib prefix for modules?
18766 need_lib_prefix=$need_lib_prefix
18768 # Do we need a version for libraries?
18769 need_version=$need_version
18771 # Whether dlopen is supported.
18772 dlopen_support=$enable_dlopen
18774 # Whether dlopen of programs is supported.
18775 dlopen_self=$enable_dlopen_self
18777 # Whether dlopen of statically linked programs is supported.
18778 dlopen_self_static=$enable_dlopen_self_static
18780 # Compiler flag to prevent dynamic linking.
18781 link_static_flag=$lt_lt_prog_compiler_static_RC
18783 # Compiler flag to turn off builtin functions.
18784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18786 # Compiler flag to allow reflexive dlopens.
18787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18789 # Compiler flag to generate shared objects directly from archives.
18790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18792 # Compiler flag to generate thread-safe objects.
18793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18795 # Library versioning type.
18796 version_type=$version_type
18798 # Format of library name prefix.
18799 libname_spec=$lt_libname_spec
18801 # List of archive names. First name is the real one, the rest are links.
18802 # The last name is the one that the linker finds with -lNAME.
18803 library_names_spec=$lt_library_names_spec
18805 # The coded name of the library, if different from the real name.
18806 soname_spec=$lt_soname_spec
18808 # Commands used to build and install an old-style archive.
18810 old_archive_cmds=$lt_old_archive_cmds_RC
18811 old_postinstall_cmds=$lt_old_postinstall_cmds
18812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18814 # Create an old-style archive from a shared archive.
18815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18817 # Create a temporary old-style archive to link instead of a shared archive.
18818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18820 # Commands used to build and install a shared archive.
18821 archive_cmds=$lt_archive_cmds_RC
18822 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18823 postinstall_cmds=$lt_postinstall_cmds
18824 postuninstall_cmds=$lt_postuninstall_cmds
18826 # Commands used to build a loadable module (assumed same as above if empty)
18827 module_cmds=$lt_module_cmds_RC
18828 module_expsym_cmds=$lt_module_expsym_cmds_RC
18830 # Commands to strip libraries.
18831 old_striplib=$lt_old_striplib
18832 striplib=$lt_striplib
18834 # Dependencies to place before the objects being linked to create a
18836 predep_objects=$lt_predep_objects_RC
18838 # Dependencies to place after the objects being linked to create a
18840 postdep_objects=$lt_postdep_objects_RC
18842 # Dependencies to place before the objects being linked to create a
18844 predeps=$lt_predeps_RC
18846 # Dependencies to place after the objects being linked to create a
18848 postdeps=$lt_postdeps_RC
18850 # The library search path used internally by the compiler when linking
18851 # a shared library.
18852 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18854 # Method to check whether dependent libraries are shared objects.
18855 deplibs_check_method=$lt_deplibs_check_method
18857 # Command to use when deplibs_check_method == file_magic.
18858 file_magic_cmd=$lt_file_magic_cmd
18860 # Flag that allows shared libraries with undefined symbols to be built.
18861 allow_undefined_flag=$lt_allow_undefined_flag_RC
18863 # Flag that forces no undefined symbols.
18864 no_undefined_flag=$lt_no_undefined_flag_RC
18866 # Commands used to finish a libtool library installation in a directory.
18867 finish_cmds=$lt_finish_cmds
18869 # Same as above, but a single script fragment to be evaled but not shown.
18870 finish_eval=$lt_finish_eval
18872 # Take the output of nm and produce a listing of raw symbols and C names.
18873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18875 # Transform the output of nm in a proper C declaration
18876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18878 # Transform the output of nm in a C name address pair
18879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18881 # This is the shared library runtime path variable.
18882 runpath_var=$runpath_var
18884 # This is the shared library path variable.
18885 shlibpath_var=$shlibpath_var
18887 # Is shlibpath searched before the hard-coded library search path?
18888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18890 # How to hardcode a shared library path into an executable.
18891 hardcode_action=$hardcode_action_RC
18893 # Whether we should hardcode library paths into libraries.
18894 hardcode_into_libs=$hardcode_into_libs
18896 # Flag to hardcode \$libdir into a binary during linking.
18897 # This must work even if \$libdir does not exist.
18898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18900 # If ld is used when linking, flag to hardcode \$libdir into
18901 # a binary during linking. This must work even if \$libdir does
18903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18905 # Whether we need a single -rpath flag with a separated argument.
18906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18909 # resulting binary.
18910 hardcode_direct=$hardcode_direct_RC
18912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18913 # resulting binary.
18914 hardcode_minus_L=$hardcode_minus_L_RC
18916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18917 # the resulting binary.
18918 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18920 # Set to yes if building a shared library automatically hardcodes DIR into the library
18921 # and all subsequent libraries and executables linked against it.
18922 hardcode_automatic=$hardcode_automatic_RC
18924 # Variables whose values should be saved in libtool wrapper scripts and
18925 # restored at relink time.
18926 variables_saved_for_relink="$variables_saved_for_relink"
18928 # Whether libtool must link a program against all its dependency libraries.
18929 link_all_deplibs=$link_all_deplibs_RC
18931 # Compile-time system search path for libraries
18932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18934 # Run-time system search path for libraries
18935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18937 # Fix the shell variable \$srcfile for the compiler.
18938 fix_srcfile_path="$fix_srcfile_path_RC"
18940 # Set to yes if exported symbols are required.
18941 always_export_symbols=$always_export_symbols_RC
18943 # The commands to list exported symbols.
18944 export_symbols_cmds=$lt_export_symbols_cmds_RC
18946 # The commands to extract the exported symbol list from a shared archive.
18947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18949 # Symbols that should not be listed in the preloaded symbols.
18950 exclude_expsyms=$lt_exclude_expsyms_RC
18952 # Symbols that must always be exported.
18953 include_expsyms=$lt_include_expsyms_RC
18955 # ### END LIBTOOL TAG CONFIG: $tagname
18961 # If there is no Makefile yet, we rely on a make rule to execute
18962 # `config.status --recheck' to rerun these tests and create the
18963 # libtool script then.
18964 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18965 if test -f "$ltmain_in"; then
18966 test -f Makefile && make "$ltmain"
18972 ac_cpp='$CPP $CPPFLAGS'
18973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18982 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18983 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18984 { (exit 1); exit 1; }; }
18988 # Append the new tag name to the list of available tags.
18989 if test -n "$tagname" ; then
18990 available_tags="$available_tags $tagname"
18996 # Now substitute the updated list of available tags.
18997 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18998 mv "${ofile}T" "$ofile"
19002 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19003 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19004 { (exit 1); exit 1; }; }
19010 # This can be used to rebuild libtool when needed
19011 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19013 # Always use our own libtool.
19014 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19016 # Prevent multiple expansion
19039 # Check whether --with-html-dir or --without-html-dir was given.
19040 if test "${with_html_dir+set}" = set; then
19041 withval="$with_html_dir"
19044 with_html_dir='${datadir}/gtk-doc/html'
19046 HTML_DIR="$with_html_dir"
19049 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
19050 if test "${enable_gtk_doc+set}" = set; then
19051 enableval="$enable_gtk_doc"
19058 if test -z "$PKG_CONFIG"; then
19059 # Extract the first word of "pkg-config", so it can be a program name with args.
19060 set dummy pkg-config; ac_word=$2
19061 echo "$as_me:$LINENO: checking for $ac_word" >&5
19062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19063 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
19066 case $PKG_CONFIG in
19068 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19072 for as_dir in $PATH
19075 test -z "$as_dir" && as_dir=.
19076 for ac_exec_ext in '' $ac_executable_extensions; do
19077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19078 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19089 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19091 if test -n "$PKG_CONFIG"; then
19092 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19093 echo "${ECHO_T}$PKG_CONFIG" >&6
19095 echo "$as_me:$LINENO: result: no" >&5
19096 echo "${ECHO_T}no" >&6
19100 if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
19105 if test x$enable_gtk_doc = xyes; then
19106 if test "$have_gtk_doc" != yes; then
19113 if test x$enable_gtk_doc = xyes; then
19114 ENABLE_GTK_DOC_TRUE=
19115 ENABLE_GTK_DOC_FALSE='#'
19117 ENABLE_GTK_DOC_TRUE='#'
19118 ENABLE_GTK_DOC_FALSE=
19123 if test -n "$LIBTOOL"; then
19124 GTK_DOC_USE_LIBTOOL_TRUE=
19125 GTK_DOC_USE_LIBTOOL_FALSE='#'
19127 GTK_DOC_USE_LIBTOOL_TRUE='#'
19128 GTK_DOC_USE_LIBTOOL_FALSE=
19133 # declare the modules (no optional module)
19135 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19136 ACLOCAL="$ACLOCAL -I acmacro"
19140 ac_cpp='$CPP $CPPFLAGS'
19141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19144 if test -n "$ac_tool_prefix"; then
19145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19146 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19147 echo "$as_me:$LINENO: checking for $ac_word" >&5
19148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19149 if test "${ac_cv_prog_CC+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 if test -n "$CC"; then
19153 ac_cv_prog_CC="$CC" # Let the user override the test.
19155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19156 for as_dir in $PATH
19159 test -z "$as_dir" && as_dir=.
19160 for ac_exec_ext in '' $ac_executable_extensions; do
19161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19162 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19172 if test -n "$CC"; then
19173 echo "$as_me:$LINENO: result: $CC" >&5
19174 echo "${ECHO_T}$CC" >&6
19176 echo "$as_me:$LINENO: result: no" >&5
19177 echo "${ECHO_T}no" >&6
19181 if test -z "$ac_cv_prog_CC"; then
19183 # Extract the first word of "gcc", so it can be a program name with args.
19184 set dummy gcc; ac_word=$2
19185 echo "$as_me:$LINENO: checking for $ac_word" >&5
19186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 if test -n "$ac_ct_CC"; then
19191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19194 for as_dir in $PATH
19197 test -z "$as_dir" && as_dir=.
19198 for ac_exec_ext in '' $ac_executable_extensions; do
19199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19200 ac_cv_prog_ac_ct_CC="gcc"
19201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19210 if test -n "$ac_ct_CC"; then
19211 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19212 echo "${ECHO_T}$ac_ct_CC" >&6
19214 echo "$as_me:$LINENO: result: no" >&5
19215 echo "${ECHO_T}no" >&6
19220 CC="$ac_cv_prog_CC"
19223 if test -z "$CC"; then
19224 if test -n "$ac_tool_prefix"; then
19225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19226 set dummy ${ac_tool_prefix}cc; ac_word=$2
19227 echo "$as_me:$LINENO: checking for $ac_word" >&5
19228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19229 if test "${ac_cv_prog_CC+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 if test -n "$CC"; then
19233 ac_cv_prog_CC="$CC" # Let the user override the test.
19235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19236 for as_dir in $PATH
19239 test -z "$as_dir" && as_dir=.
19240 for ac_exec_ext in '' $ac_executable_extensions; do
19241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19242 ac_cv_prog_CC="${ac_tool_prefix}cc"
19243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19252 if test -n "$CC"; then
19253 echo "$as_me:$LINENO: result: $CC" >&5
19254 echo "${ECHO_T}$CC" >&6
19256 echo "$as_me:$LINENO: result: no" >&5
19257 echo "${ECHO_T}no" >&6
19261 if test -z "$ac_cv_prog_CC"; then
19263 # Extract the first word of "cc", so it can be a program name with args.
19264 set dummy cc; ac_word=$2
19265 echo "$as_me:$LINENO: checking for $ac_word" >&5
19266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19270 if test -n "$ac_ct_CC"; then
19271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19274 for as_dir in $PATH
19277 test -z "$as_dir" && as_dir=.
19278 for ac_exec_ext in '' $ac_executable_extensions; do
19279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19280 ac_cv_prog_ac_ct_CC="cc"
19281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19290 if test -n "$ac_ct_CC"; then
19291 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19292 echo "${ECHO_T}$ac_ct_CC" >&6
19294 echo "$as_me:$LINENO: result: no" >&5
19295 echo "${ECHO_T}no" >&6
19300 CC="$ac_cv_prog_CC"
19304 if test -z "$CC"; then
19305 # Extract the first word of "cc", so it can be a program name with args.
19306 set dummy cc; ac_word=$2
19307 echo "$as_me:$LINENO: checking for $ac_word" >&5
19308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19309 if test "${ac_cv_prog_CC+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 if test -n "$CC"; then
19313 ac_cv_prog_CC="$CC" # Let the user override the test.
19315 ac_prog_rejected=no
19316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19317 for as_dir in $PATH
19320 test -z "$as_dir" && as_dir=.
19321 for ac_exec_ext in '' $ac_executable_extensions; do
19322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19324 ac_prog_rejected=yes
19328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19334 if test $ac_prog_rejected = yes; then
19335 # We found a bogon in the path, so make sure we never use it.
19336 set dummy $ac_cv_prog_CC
19338 if test $# != 0; then
19339 # We chose a different compiler from the bogus one.
19340 # However, it has the same basename, so the bogon will be chosen
19341 # first if we set CC to just the basename; use the full file name.
19343 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19349 if test -n "$CC"; then
19350 echo "$as_me:$LINENO: result: $CC" >&5
19351 echo "${ECHO_T}$CC" >&6
19353 echo "$as_me:$LINENO: result: no" >&5
19354 echo "${ECHO_T}no" >&6
19358 if test -z "$CC"; then
19359 if test -n "$ac_tool_prefix"; then
19362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19364 echo "$as_me:$LINENO: checking for $ac_word" >&5
19365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19366 if test "${ac_cv_prog_CC+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 if test -n "$CC"; then
19370 ac_cv_prog_CC="$CC" # Let the user override the test.
19372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19373 for as_dir in $PATH
19376 test -z "$as_dir" && as_dir=.
19377 for ac_exec_ext in '' $ac_executable_extensions; do
19378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19389 if test -n "$CC"; then
19390 echo "$as_me:$LINENO: result: $CC" >&5
19391 echo "${ECHO_T}$CC" >&6
19393 echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6
19397 test -n "$CC" && break
19400 if test -z "$CC"; then
19404 # Extract the first word of "$ac_prog", so it can be a program name with args.
19405 set dummy $ac_prog; ac_word=$2
19406 echo "$as_me:$LINENO: checking for $ac_word" >&5
19407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 if test -n "$ac_ct_CC"; then
19412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19415 for as_dir in $PATH
19418 test -z "$as_dir" && as_dir=.
19419 for ac_exec_ext in '' $ac_executable_extensions; do
19420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19421 ac_cv_prog_ac_ct_CC="$ac_prog"
19422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19431 if test -n "$ac_ct_CC"; then
19432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19433 echo "${ECHO_T}$ac_ct_CC" >&6
19435 echo "$as_me:$LINENO: result: no" >&5
19436 echo "${ECHO_T}no" >&6
19439 test -n "$ac_ct_CC" && break
19448 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19449 See \`config.log' for more details." >&5
19450 echo "$as_me: error: no acceptable C compiler found in \$PATH
19451 See \`config.log' for more details." >&2;}
19452 { (exit 1); exit 1; }; }
19454 # Provide some information about the compiler.
19455 echo "$as_me:$LINENO:" \
19456 "checking for C compiler version" >&5
19457 ac_compiler=`set X $ac_compile; echo $2`
19458 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19459 (eval $ac_compiler --version </dev/null >&5) 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }
19463 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19464 (eval $ac_compiler -v </dev/null >&5) 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }
19468 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19469 (eval $ac_compiler -V </dev/null >&5) 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }
19474 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19475 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19476 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19497 rm -f conftest.$ac_objext
19498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19499 (eval $ac_compile) 2>conftest.er1
19501 grep -v '^ *+' conftest.er1 >conftest.err
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest.$ac_objext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 ac_compiler_gnu=yes
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19529 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19530 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19531 GCC=`test $ac_compiler_gnu = yes && echo yes`
19532 ac_test_CFLAGS=${CFLAGS+set}
19533 ac_save_CFLAGS=$CFLAGS
19535 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19536 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19537 if test "${ac_cv_prog_cc_g+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 cat >conftest.$ac_ext <<_ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19555 rm -f conftest.$ac_objext
19556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19557 (eval $ac_compile) 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } &&
19564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try='test -s conftest.$ac_objext'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_cv_prog_cc_g=yes
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19586 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19587 if test "$ac_test_CFLAGS" = set; then
19588 CFLAGS=$ac_save_CFLAGS
19589 elif test $ac_cv_prog_cc_g = yes; then
19590 if test "$GCC" = yes; then
19596 if test "$GCC" = yes; then
19602 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19603 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19604 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 ac_cv_prog_cc_stdc=no
19609 cat >conftest.$ac_ext <<_ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19615 #include <stdarg.h>
19617 #include <sys/types.h>
19618 #include <sys/stat.h>
19619 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19620 struct buf { int x; };
19621 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19622 static char *e (p, i)
19628 static char *f (char * (*g) (char **, int), char **p, ...)
19633 s = g (p, va_arg (v,int));
19638 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19639 function prototypes and stuff, but not '\xHH' hex character constants.
19640 These don't provoke an error unfortunately, instead are silently treated
19641 as 'x'. The following induces an error, until -std1 is added to get
19642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19643 array size at least. It's necessary to write '\x00'==0 to get something
19644 that's true only with -std1. */
19645 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19647 int test (int i, double x);
19648 struct s1 {int (*f) (int a);};
19649 struct s2 {int (*f) (double a);};
19650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19656 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19661 # Don't try gcc -ansi; that turns off useful extensions and
19662 # breaks some systems' header files.
19663 # AIX -qlanglvl=ansi
19664 # Ultrix and OSF/1 -std1
19665 # HP-UX 10.20 and later -Ae
19666 # HP-UX older versions -Aa -D_HPUX_SOURCE
19667 # SVR4 -Xc -D__EXTENSIONS__
19668 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19670 CC="$ac_save_CC $ac_arg"
19671 rm -f conftest.$ac_objext
19672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19673 (eval $ac_compile) 2>conftest.er1
19675 grep -v '^ *+' conftest.er1 >conftest.err
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
19680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest.$ac_objext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_cv_prog_cc_stdc=$ac_arg
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19699 rm -f conftest.err conftest.$ac_objext
19701 rm -f conftest.$ac_ext conftest.$ac_objext
19706 case "x$ac_cv_prog_cc_stdc" in
19708 echo "$as_me:$LINENO: result: none needed" >&5
19709 echo "${ECHO_T}none needed" >&6 ;;
19711 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19712 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19713 CC="$CC $ac_cv_prog_cc_stdc" ;;
19716 # Some people use a C++ compiler to compile C. Since we use `exit',
19717 # in C++ we need to declare it. In case someone uses the same compiler
19718 # for both compiling C and C++ we need to have the C++ compiler decide
19719 # the declaration of exit, since it's the most demanding environment.
19720 cat >conftest.$ac_ext <<_ACEOF
19721 #ifndef __cplusplus
19725 rm -f conftest.$ac_objext
19726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19727 (eval $ac_compile) 2>conftest.er1
19729 grep -v '^ *+' conftest.er1 >conftest.err
19731 cat conftest.err >&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
19734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } &&
19740 { ac_try='test -s conftest.$ac_objext'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 for ac_declaration in \
19748 'extern "C" void std::exit (int) throw (); using std::exit;' \
19749 'extern "C" void std::exit (int); using std::exit;' \
19750 'extern "C" void exit (int) throw ();' \
19751 'extern "C" void exit (int);' \
19754 cat >conftest.$ac_ext <<_ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19761 #include <stdlib.h>
19770 rm -f conftest.$ac_objext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772 (eval $ac_compile) 2>conftest.er1
19774 grep -v '^ *+' conftest.er1 >conftest.err
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } &&
19785 { ac_try='test -s conftest.$ac_objext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19793 echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19799 cat >conftest.$ac_ext <<_ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19814 rm -f conftest.$ac_objext
19815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816 (eval $ac_compile) 2>conftest.er1
19818 grep -v '^ *+' conftest.er1 >conftest.err
19820 cat conftest.err >&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } &&
19823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; } &&
19829 { ac_try='test -s conftest.$ac_objext'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19844 if test -n "$ac_declaration"; then
19845 echo '#ifdef __cplusplus' >>confdefs.h
19846 echo $ac_declaration >>confdefs.h
19847 echo '#endif' >>confdefs.h
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19857 ac_cpp='$CPP $CPPFLAGS'
19858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19862 depcc="$CC" am_compiler_list=
19864 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19865 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19866 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19870 # We make a subdir and do the tests there. Otherwise we can end up
19871 # making bogus files that we don't know about and never remove. For
19872 # instance it was reported that on HP-UX the gcc test will end up
19873 # making a dummy file named `D' -- because `-MD' means `put the output
19876 # Copy depcomp to subdir because otherwise we won't find it if we're
19877 # using a relative directory.
19878 cp "$am_depcomp" conftest.dir
19880 # We will build objects and dependencies in a subdirectory because
19881 # it helps to detect inapplicable dependency modes. For instance
19882 # both Tru64's cc and ICC support -MD to output dependencies as a
19883 # side effect of compilation, but ICC will put the dependencies in
19884 # the current directory while Tru64 will put them in the object
19888 am_cv_CC_dependencies_compiler_type=none
19889 if test "$am_compiler_list" = ""; then
19890 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19892 for depmode in $am_compiler_list; do
19893 # Setup a source with many dependencies, because some compilers
19894 # like to wrap large dependency lists on column 80 (with \), and
19895 # we should not choose a depcomp mode which is confused by this.
19897 # We need to recreate these files for each test, as the compiler may
19898 # overwrite some of them when testing with obscure command lines.
19899 # This happens at least with the AIX C compiler.
19901 for i in 1 2 3 4 5 6; do
19902 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19903 : > sub/conftst$i.h
19905 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19909 # after this tag, mechanisms are not by side-effect, so they'll
19910 # only be used when explicitly requested
19911 if test "x$enable_dependency_tracking" = xyes; then
19919 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19920 # mode. It turns out that the SunPro C++ compiler does not properly
19921 # handle `-M -o', and we need to detect this.
19922 if depmode=$depmode \
19923 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19925 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19926 >/dev/null 2>conftest.err &&
19927 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19928 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19929 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19930 # icc doesn't choke on unknown options, it will just issue warnings
19931 # (even with -Werror). So we grep stderr for any message
19932 # that says an option was ignored.
19933 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19934 am_cv_CC_dependencies_compiler_type=$depmode
19941 rm -rf conftest.dir
19943 am_cv_CC_dependencies_compiler_type=none
19947 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19948 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19949 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19954 test "x$enable_dependency_tracking" != xno \
19955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19956 am__fastdepCC_TRUE=
19957 am__fastdepCC_FALSE='#'
19959 am__fastdepCC_TRUE='#'
19960 am__fastdepCC_FALSE=
19965 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19966 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19967 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19968 if test -n "$ac_tool_prefix"; then
19969 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
19971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19973 echo "$as_me:$LINENO: checking for $ac_word" >&5
19974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19975 if test "${ac_cv_prog_F77+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19978 if test -n "$F77"; then
19979 ac_cv_prog_F77="$F77" # Let the user override the test.
19981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19982 for as_dir in $PATH
19985 test -z "$as_dir" && as_dir=.
19986 for ac_exec_ext in '' $ac_executable_extensions; do
19987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19988 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
19989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19997 F77=$ac_cv_prog_F77
19998 if test -n "$F77"; then
19999 echo "$as_me:$LINENO: result: $F77" >&5
20000 echo "${ECHO_T}$F77" >&6
20002 echo "$as_me:$LINENO: result: no" >&5
20003 echo "${ECHO_T}no" >&6
20006 test -n "$F77" && break
20009 if test -z "$F77"; then
20011 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
20013 # Extract the first word of "$ac_prog", so it can be a program name with args.
20014 set dummy $ac_prog; ac_word=$2
20015 echo "$as_me:$LINENO: checking for $ac_word" >&5
20016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20017 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 if test -n "$ac_ct_F77"; then
20021 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
20023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20024 for as_dir in $PATH
20027 test -z "$as_dir" && as_dir=.
20028 for ac_exec_ext in '' $ac_executable_extensions; do
20029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20030 ac_cv_prog_ac_ct_F77="$ac_prog"
20031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20039 ac_ct_F77=$ac_cv_prog_ac_ct_F77
20040 if test -n "$ac_ct_F77"; then
20041 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
20042 echo "${ECHO_T}$ac_ct_F77" >&6
20044 echo "$as_me:$LINENO: result: no" >&5
20045 echo "${ECHO_T}no" >&6
20048 test -n "$ac_ct_F77" && break
20055 # Provide some information about the compiler.
20056 echo "$as_me:20056:" \
20057 "checking for Fortran 77 compiler version" >&5
20058 ac_compiler=`set X $ac_compile; echo $2`
20059 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20060 (eval $ac_compiler --version </dev/null >&5) 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }
20064 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20065 (eval $ac_compiler -v </dev/null >&5) 2>&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }
20069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20070 (eval $ac_compiler -V </dev/null >&5) 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }
20076 # If we don't use `.F' as extension, the preprocessor is not run on the
20077 # input file. (Note that this only needs to work for GNU compilers.)
20078 ac_save_ext=$ac_ext
20080 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
20081 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
20082 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20085 cat >conftest.$ac_ext <<_ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095 (eval $ac_compile) 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; } &&
20108 { ac_try='test -s conftest.$ac_objext'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
20114 ac_compiler_gnu=yes
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20122 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
20125 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
20126 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
20127 ac_ext=$ac_save_ext
20128 ac_test_FFLAGS=${FFLAGS+set}
20129 ac_save_FFLAGS=$FFLAGS
20131 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
20132 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
20133 if test "${ac_cv_prog_f77_g+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 cat >conftest.$ac_ext <<_ACEOF
20142 rm -f conftest.$ac_objext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20144 (eval $ac_compile) 2>conftest.er1
20146 grep -v '^ *+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
20151 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153 (eval $ac_try) 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest.$ac_objext'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_cv_prog_f77_g=yes
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_cv_prog_f77_g=no
20170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20173 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
20174 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
20175 if test "$ac_test_FFLAGS" = set; then
20176 FFLAGS=$ac_save_FFLAGS
20177 elif test $ac_cv_prog_f77_g = yes; then
20178 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20184 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20191 G77=`test $ac_compiler_gnu = yes && echo yes`
20193 ac_cpp='$CPP $CPPFLAGS'
20194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20199 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20200 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20202 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
20203 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
20204 if test "${ac_cv_prog_f77_v+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 cat >conftest.$ac_ext <<_ACEOF
20212 rm -f conftest.$ac_objext
20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214 (eval $ac_compile) 2>conftest.er1
20216 grep -v '^ *+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; } &&
20227 { ac_try='test -s conftest.$ac_objext'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; }; then
20234 # Try some options frequently used verbose output
20235 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
20236 cat >conftest.$ac_ext <<_ACEOF
20242 # Compile and link our simple test program by passing a flag (argument
20243 # 1 to this macro) to the Fortran compiler in order to get
20244 # "verbose" output that we can then parse for the Fortran linker
20246 ac_save_FFLAGS=$FFLAGS
20247 FFLAGS="$FFLAGS $ac_verb"
20248 (eval echo $as_me:20248: \"$ac_link\") >&5
20249 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
20250 echo "$ac_f77_v_output" >&5
20251 FFLAGS=$ac_save_FFLAGS
20255 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20256 # /foo, /bar, and /baz are search directories for the Fortran linker.
20257 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20258 ac_f77_v_output="`echo $ac_f77_v_output |
20260 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
20262 case $ac_f77_v_output in
20263 # If we are using xlf then replace all the commas with spaces.
20265 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20267 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20268 # $LIBS confuse us, and the libraries appear later in the output anyway).
20269 *mGLOB_options_string*)
20270 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
20272 # If we are using Cray Fortran then delete quotes.
20273 # Use "\"" instead of '"' for font-lock-mode.
20274 # FIXME: a more general fix for quoted arguments with spaces?
20276 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
20280 # look for -l* and *.a constructs in the output
20281 for ac_arg in $ac_f77_v_output; do
20283 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
20284 ac_cv_prog_f77_v=$ac_verb
20289 if test -z "$ac_cv_prog_f77_v"; then
20290 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
20291 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
20298 echo "$as_me: WARNING: compilation failed" >&2;}
20300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20303 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
20304 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
20305 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
20306 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
20307 if test "${ac_cv_f77_libs+set}" = set; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 if test "x$FLIBS" != "x"; then
20311 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
20314 cat >conftest.$ac_ext <<_ACEOF
20320 # Compile and link our simple test program by passing a flag (argument
20321 # 1 to this macro) to the Fortran compiler in order to get
20322 # "verbose" output that we can then parse for the Fortran linker
20324 ac_save_FFLAGS=$FFLAGS
20325 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
20326 (eval echo $as_me:20326: \"$ac_link\") >&5
20327 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
20328 echo "$ac_f77_v_output" >&5
20329 FFLAGS=$ac_save_FFLAGS
20333 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20334 # /foo, /bar, and /baz are search directories for the Fortran linker.
20335 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20336 ac_f77_v_output="`echo $ac_f77_v_output |
20338 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
20340 case $ac_f77_v_output in
20341 # If we are using xlf then replace all the commas with spaces.
20343 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20345 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20346 # $LIBS confuse us, and the libraries appear later in the output anyway).
20347 *mGLOB_options_string*)
20348 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
20350 # If we are using Cray Fortran then delete quotes.
20351 # Use "\"" instead of '"' for font-lock-mode.
20352 # FIXME: a more general fix for quoted arguments with spaces?
20354 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
20361 # Save positional arguments (if any)
20362 ac_save_positional="$@"
20364 set X $ac_f77_v_output
20365 while test $# != 1; do
20369 [\\/]*.a | ?:[\\/]*.a)
20371 for ac_i in $ac_cv_f77_libs; do
20372 if test x"$ac_arg" = x"$ac_i"; then
20378 if test x"$ac_exists" = xtrue; then
20381 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20387 for ac_i in $ac_cv_f77_libs; do
20388 if test x"$ac_arg" = x"$ac_i"; then
20394 if test x"$ac_exists" = xtrue; then
20397 if test "$ac_compiler_gnu" = yes; then
20398 for ac_link_opt in $ac_arg; do
20399 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20402 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20407 # Ignore these flags.
20408 -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
20411 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20414 # These flags, when seen by themselves, take an argument.
20415 # We remove the space between option and argument and re-iterate
20416 # unless we find an empty arg or a new option (starting with -)
20427 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
20429 for ac_i in $ac_cv_f77_libs; do
20430 if test x"$ac_j" = x"$ac_i"; then
20436 if test x"$ac_exists" = xtrue; then
20439 ac_arg="$ac_arg $ac_j"
20440 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
20447 for ac_i in $ac_cv_f77_libs; do
20448 if test x"$ac_arg" = x"$ac_i"; then
20454 if test x"$ac_exists" = xtrue; then
20457 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20461 # Ignore everything else.
20464 # restore positional arguments
20465 set X $ac_save_positional; shift
20467 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
20468 # then we insist that the "run path" must be an absolute path (i.e. it
20469 # must begin with a "/").
20470 case `(uname -sr) 2>/dev/null` in
20472 ac_ld_run_path=`echo $ac_f77_v_output |
20473 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
20474 test "x$ac_ld_run_path" != x &&
20475 if test "$ac_compiler_gnu" = yes; then
20476 for ac_link_opt in $ac_ld_run_path; do
20477 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20480 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
20484 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
20487 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
20488 echo "${ECHO_T}$ac_cv_f77_libs" >&6
20489 FLIBS="$ac_cv_f77_libs"
20493 ac_cpp='$CPP $CPPFLAGS'
20494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20498 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20499 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
20502 echo timestamp > conftest.file
20503 # Do `set' in a subshell so we don't clobber the current shell's
20504 # arguments. Must try -L first in case configure is actually a
20505 # symlink; some systems play weird games with the mod time of symlinks
20506 # (eg FreeBSD returns the mod time of the symlink's containing
20509 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20510 if test "$*" = "X"; then
20512 set X `ls -t $srcdir/configure conftest.file`
20514 rm -f conftest.file
20515 if test "$*" != "X $srcdir/configure conftest.file" \
20516 && test "$*" != "X conftest.file $srcdir/configure"; then
20518 # If neither matched, then we have a broken ls. This can happen
20519 # if, for instance, CONFIG_SHELL is bash and it inherits a
20520 # broken ls alias from the environment. This has actually
20521 # happened. Such a system could not be considered "sane".
20522 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20523 alias in your environment" >&5
20524 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20525 alias in your environment" >&2;}
20526 { (exit 1); exit 1; }; }
20529 test "$2" = conftest.file
20535 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20536 Check your system clock" >&5
20537 echo "$as_me: error: newly created file is older than distributed files!
20538 Check your system clock" >&2;}
20539 { (exit 1); exit 1; }; }
20541 echo "$as_me:$LINENO: result: yes" >&5
20542 echo "${ECHO_T}yes" >&6
20543 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20544 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20545 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20546 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 cat >conftest.make <<\_ACEOF
20551 @echo 'ac_maketemp="$(MAKE)"'
20553 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20554 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20555 if test -n "$ac_maketemp"; then
20556 eval ac_cv_prog_make_${ac_make}_set=yes
20558 eval ac_cv_prog_make_${ac_make}_set=no
20560 rm -f conftest.make
20562 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20563 echo "$as_me:$LINENO: result: yes" >&5
20564 echo "${ECHO_T}yes" >&6
20567 echo "$as_me:$LINENO: result: no" >&5
20568 echo "${ECHO_T}no" >&6
20569 SET_MAKE="MAKE=${MAKE-make}"
20573 # Checks for header files.
20574 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20575 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20576 if test "${ac_cv_header_stdc+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 #include <stdlib.h>
20586 #include <stdarg.h>
20587 #include <string.h>
20598 rm -f conftest.$ac_objext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20600 (eval $ac_compile) 2>conftest.er1
20602 grep -v '^ *+' conftest.er1 >conftest.err
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } &&
20607 { ac_try='test -z "$ac_c_werror_flag" || 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_cv_header_stdc=yes
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_cv_header_stdc=no
20626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20628 if test $ac_cv_header_stdc = yes; then
20629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 #include <string.h>
20639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20640 $EGREP "memchr" >/dev/null 2>&1; then
20643 ac_cv_header_stdc=no
20649 if test $ac_cv_header_stdc = yes; then
20650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20657 #include <stdlib.h>
20660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20661 $EGREP "free" >/dev/null 2>&1; then
20664 ac_cv_header_stdc=no
20670 if test $ac_cv_header_stdc = yes; then
20671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20672 if test "$cross_compiling" = yes; then
20675 cat >conftest.$ac_ext <<_ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20682 #if ((' ' & 0x0FF) == 0x020)
20683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20686 # define ISLOWER(c) \
20687 (('a' <= (c) && (c) <= 'i') \
20688 || ('j' <= (c) && (c) <= 'r') \
20689 || ('s' <= (c) && (c) <= 'z'))
20690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20698 for (i = 0; i < 256; i++)
20699 if (XOR (islower (i), ISLOWER (i))
20700 || toupper (i) != TOUPPER (i))
20705 rm -f conftest$ac_exeext
20706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20707 (eval $ac_link) 2>&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; }; then
20718 echo "$as_me: program exited with status $ac_status" >&5
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ( exit $ac_status )
20723 ac_cv_header_stdc=no
20725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20729 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20730 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20731 if test $ac_cv_header_stdc = yes; then
20733 cat >>confdefs.h <<\_ACEOF
20734 #define STDC_HEADERS 1
20743 for ac_header in stddef.h stdlib.h string.h unistd.h
20745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20747 echo "$as_me:$LINENO: checking for $ac_header" >&5
20748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20755 # Is the header compilable?
20756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20758 cat >conftest.$ac_ext <<_ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20764 $ac_includes_default
20765 #include <$ac_header>
20767 rm -f conftest.$ac_objext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769 (eval $ac_compile) 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" || test ! -s conftest.err'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; } &&
20782 { ac_try='test -s conftest.$ac_objext'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788 ac_header_compiler=yes
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 ac_header_compiler=no
20795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20797 echo "${ECHO_T}$ac_header_compiler" >&6
20799 # Is the header present?
20800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 #include <$ac_header>
20810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } >/dev/null; then
20818 if test -s conftest.err; then
20819 ac_cpp_err=$ac_c_preproc_warn_flag
20820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20827 if test -z "$ac_cpp_err"; then
20828 ac_header_preproc=yes
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ac_header_preproc=no
20835 rm -f conftest.err conftest.$ac_ext
20836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20837 echo "${ECHO_T}$ac_header_preproc" >&6
20839 # So? What about this header?
20840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20846 ac_header_preproc=yes
20849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20863 ## ----------------------------------------- ##
20864 ## Report this to martin.quinson@ens-lyon.fr ##
20865 ## ----------------------------------------- ##
20868 sed "s/^/$as_me: WARNING: /" >&2
20871 echo "$as_me:$LINENO: checking for $ac_header" >&5
20872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 eval "$as_ac_Header=\$ac_header_preproc"
20878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20883 cat >>confdefs.h <<_ACEOF
20884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20892 # Checks for typedefs, structures, and compiler characteristics.
20893 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20894 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20895 if test "${ac_cv_c_const+set}" = set; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20908 /* FIXME: Include the comments suggested by Paul. */
20909 #ifndef __cplusplus
20910 /* Ultrix mips cc rejects this. */
20911 typedef int charset[2];
20913 /* SunOS 4.1.1 cc rejects this. */
20914 char const *const *ccp;
20916 /* NEC SVR4.0.2 mips cc rejects this. */
20917 struct point {int x, y;};
20918 static struct point const zero = {0,0};
20919 /* AIX XL C 1.02.0.0 rejects this.
20920 It does not let you subtract one const X* pointer from another in
20921 an arm of an if-expression whose if-part is not a constant
20923 const char *g = "string";
20924 ccp = &g + (g ? g-g : 0);
20925 /* HPUX 7.0 cc rejects these. */
20928 ccp = (char const *const *) p;
20929 { /* SCO 3.2v4 cc rejects this. */
20931 char const *s = 0 ? (char *) 0 : (char const *) 0;
20935 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20936 int x[] = {25, 17};
20937 const int *foo = &x[0];
20940 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20941 typedef const int *iptr;
20945 { /* AIX XL C 1.02.0.0 rejects this saying
20946 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20947 struct s { int j; const int *ap[3]; };
20948 struct s *b; b->j = 5;
20950 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20951 const int foo = 10;
20959 rm -f conftest.$ac_objext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20961 (eval $ac_compile) 2>conftest.er1
20963 grep -v '^ *+' conftest.er1 >conftest.err
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
20968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; } &&
20974 { ac_try='test -s conftest.$ac_objext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20989 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20990 echo "${ECHO_T}$ac_cv_c_const" >&6
20991 if test $ac_cv_c_const = no; then
20993 cat >>confdefs.h <<\_ACEOF
20999 echo "$as_me:$LINENO: checking for inline" >&5
21000 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21001 if test "${ac_cv_c_inline+set}" = set; then
21002 echo $ECHO_N "(cached) $ECHO_C" >&6
21005 for ac_kw in inline __inline__ __inline; do
21006 cat >conftest.$ac_ext <<_ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 #ifndef __cplusplus
21014 static $ac_kw foo_t static_foo () {return 0; }
21015 $ac_kw foo_t foo () {return 0; }
21019 rm -f conftest.$ac_objext
21020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21021 (eval $ac_compile) 2>conftest.er1
21023 grep -v '^ *+' conftest.er1 >conftest.err
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } &&
21028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; } &&
21034 { ac_try='test -s conftest.$ac_objext'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; }; then
21040 ac_cv_c_inline=$ac_kw; break
21042 echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21050 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21051 echo "${ECHO_T}$ac_cv_c_inline" >&6
21054 case $ac_cv_c_inline in
21057 case $ac_cv_c_inline in
21059 *) ac_val=$ac_cv_c_inline;;
21061 cat >>confdefs.h <<_ACEOF
21062 #ifndef __cplusplus
21063 #define inline $ac_val
21069 echo "$as_me:$LINENO: checking for size_t" >&5
21070 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21071 if test "${ac_cv_type_size_t+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 $ac_includes_default
21086 if (sizeof (size_t))
21092 rm -f conftest.$ac_objext
21093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21094 (eval $ac_compile) 2>conftest.er1
21096 grep -v '^ *+' conftest.er1 >conftest.err
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } &&
21101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; } &&
21107 { ac_try='test -s conftest.$ac_objext'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 ac_cv_type_size_t=yes
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ac_cv_type_size_t=no
21120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21122 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21123 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21124 if test $ac_cv_type_size_t = yes; then
21128 cat >>confdefs.h <<_ACEOF
21129 #define size_t unsigned
21135 # Checks for library functions.
21137 for ac_header in stdlib.h
21139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21141 echo "$as_me:$LINENO: checking for $ac_header" >&5
21142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21149 # Is the header compilable?
21150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21151 echo $ECHO_N "checking $ac_header usability... $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. */
21158 $ac_includes_default
21159 #include <$ac_header>
21161 rm -f conftest.$ac_objext
21162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21163 (eval $ac_compile) 2>conftest.er1
21165 grep -v '^ *+' conftest.er1 >conftest.err
21167 cat conftest.err >&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } &&
21170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; } &&
21176 { ac_try='test -s conftest.$ac_objext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_header_compiler=yes
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21187 ac_header_compiler=no
21189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21191 echo "${ECHO_T}$ac_header_compiler" >&6
21193 # Is the header present?
21194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 #include <$ac_header>
21204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21207 grep -v '^ *+' conftest.er1 >conftest.err
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } >/dev/null; then
21212 if test -s conftest.err; then
21213 ac_cpp_err=$ac_c_preproc_warn_flag
21214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21221 if test -z "$ac_cpp_err"; then
21222 ac_header_preproc=yes
21224 echo "$as_me: failed program was:" >&5
21225 sed 's/^/| /' conftest.$ac_ext >&5
21227 ac_header_preproc=no
21229 rm -f conftest.err conftest.$ac_ext
21230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21231 echo "${ECHO_T}$ac_header_preproc" >&6
21233 # So? What about this header?
21234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21240 ac_header_preproc=yes
21243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21257 ## ----------------------------------------- ##
21258 ## Report this to martin.quinson@ens-lyon.fr ##
21259 ## ----------------------------------------- ##
21262 sed "s/^/$as_me: WARNING: /" >&2
21265 echo "$as_me:$LINENO: checking for $ac_header" >&5
21266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 eval "$as_ac_Header=\$ac_header_preproc"
21272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21277 cat >>confdefs.h <<_ACEOF
21278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21285 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21286 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21287 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21290 if test "$cross_compiling" = yes; then
21291 ac_cv_func_malloc_0_nonnull=no
21293 cat >conftest.$ac_ext <<_ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 #if STDC_HEADERS || HAVE_STDLIB_H
21300 # include <stdlib.h>
21308 exit (malloc (0) ? 0 : 1);
21313 rm -f conftest$ac_exeext
21314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21315 (eval $ac_link) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ac_cv_func_malloc_0_nonnull=yes
21326 echo "$as_me: program exited with status $ac_status" >&5
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ( exit $ac_status )
21331 ac_cv_func_malloc_0_nonnull=no
21333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21336 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21337 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21338 if test $ac_cv_func_malloc_0_nonnull = yes; then
21340 cat >>confdefs.h <<\_ACEOF
21341 #define HAVE_MALLOC 1
21345 cat >>confdefs.h <<\_ACEOF
21346 #define HAVE_MALLOC 0
21350 "malloc.$ac_objext" | \
21351 *" malloc.$ac_objext" | \
21352 "malloc.$ac_objext "* | \
21353 *" malloc.$ac_objext "* ) ;;
21354 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21358 cat >>confdefs.h <<\_ACEOF
21359 #define malloc rpl_malloc
21366 echo "$as_me:$LINENO: checking for working memcmp" >&5
21367 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21368 if test "${ac_cv_func_memcmp_working+set}" = set; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 if test "$cross_compiling" = yes; then
21372 ac_cv_func_memcmp_working=no
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 $ac_includes_default
21385 /* Some versions of memcmp are not 8-bit clean. */
21386 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21387 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21390 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21391 or more and with at least one buffer not starting on a 4-byte boundary.
21392 William Lewis provided this test program. */
21397 for (i = 0; i < 4; i++)
21401 strcpy (a, "--------01111111");
21402 strcpy (b, "--------10000000");
21403 if (memcmp (a, b, 16) >= 0)
21413 rm -f conftest$ac_exeext
21414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415 (eval $ac_link) 2>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; }; then
21424 ac_cv_func_memcmp_working=yes
21426 echo "$as_me: program exited with status $ac_status" >&5
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21430 ( exit $ac_status )
21431 ac_cv_func_memcmp_working=no
21433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21436 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21437 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21438 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21439 "memcmp.$ac_objext" | \
21440 *" memcmp.$ac_objext" | \
21441 "memcmp.$ac_objext "* | \
21442 *" memcmp.$ac_objext "* ) ;;
21443 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21450 for ac_func in memset strchr strerror
21452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21453 echo "$as_me:$LINENO: checking for $ac_func" >&5
21454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21455 if eval "test \"\${$as_ac_var+set}\" = set"; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 cat >conftest.$ac_ext <<_ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21466 #define $ac_func innocuous_$ac_func
21468 /* System header to define __stub macros and hopefully few prototypes,
21469 which can conflict with char $ac_func (); below.
21470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21471 <limits.h> exists even on freestanding compilers. */
21474 # include <limits.h>
21476 # include <assert.h>
21481 /* Override any gcc2 internal prototype to avoid an error. */
21486 /* We use char because int might match the return type of a gcc2
21487 builtin and then its argument prototype would still apply. */
21489 /* The GNU C library defines this for functions which it implements
21490 to always fail with ENOSYS. Some functions are actually named
21491 something starting with __ and the normal name is an alias. */
21492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21495 char (*f) () = $ac_func;
21504 return f != $ac_func;
21509 rm -f conftest.$ac_objext conftest$ac_exeext
21510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21511 (eval $ac_link) 2>conftest.er1
21513 grep -v '^ *+' conftest.er1 >conftest.err
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } &&
21518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; } &&
21524 { ac_try='test -s conftest$ac_exeext'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
21530 eval "$as_ac_var=yes"
21532 echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21535 eval "$as_ac_var=no"
21537 rm -f conftest.err conftest.$ac_objext \
21538 conftest$ac_exeext conftest.$ac_ext
21540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21542 if test `eval echo '${'$as_ac_var'}'` = yes; then
21543 cat >>confdefs.h <<_ACEOF
21544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21552 echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
21553 # Extract the first word of "xml2-config", so it can be a program name with args.
21554 set dummy xml2-config; ac_word=$2
21555 echo "$as_me:$LINENO: checking for $ac_word" >&5
21556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21557 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
21558 echo $ECHO_N "(cached) $ECHO_C" >&6
21560 case $ACI_CACHE_PROG in
21562 ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
21565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21566 for as_dir in $PATH
21569 test -z "$as_dir" && as_dir=.
21570 for ac_exec_ext in '' $ac_executable_extensions; do
21571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21572 ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
21573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21579 test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
21583 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
21585 if test -n "$ACI_CACHE_PROG"; then
21586 echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
21587 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
21589 echo "$as_me:$LINENO: result: no" >&5
21590 echo "${ECHO_T}no" >&6
21593 aci_module_desc_XML="XML library (version XML2)"
21594 aci_pkg_config_XML=xml2-config
21595 aci_packages="$aci_packages XML"
21596 if test x$ACI_CACHE_PROG = xno; then
21603 CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
21604 LIBS_XML=`$ACI_CACHE_PROG --libs `
21607 echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
21618 aci_nameok=`echo SimGrid|sed 'y/-/./'`
21619 if test "xSimGrid" != "x$aci_nameok" ; then
21620 { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
21621 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
21622 { (exit 1); exit 1; }; }
21624 echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
21625 aci_module_desc_SimGrid="the SimGrid simulator"
21626 aci_packages="$aci_packages SimGrid"
21629 # Check whether --with-SimGrid or --without-SimGrid was given.
21630 if test "${with_SimGrid+set}" = set; then
21631 withval="$with_SimGrid"
21632 with_SimGrid=$withval
21634 if test "$withval" = yes ; then good=no; fi
21635 if test "$withval" = no ; then good=no; fi
21636 if test $good = no ; then
21637 { { echo "$as_me:$LINENO: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&5
21638 echo "$as_me: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&2;}
21639 { (exit 1); exit 1; }; }
21641 aci_pkg_prefix_SimGrid="$withval"
21642 CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
21643 LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
21648 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
21649 if test "${with_SimGrid_includes+set}" = set; then
21650 withval="$with_SimGrid_includes"
21651 CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
21652 aci_pkg_inc_SimGrid="$withval"
21657 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
21658 if test "${with_SimGrid_libraries+set}" = set; then
21659 withval="$with_SimGrid_libraries"
21660 LIBS_SimGrid="-L$withval $LIBS_SimGrid"
21661 aci_pkg_lib_SimGrid="$withval"
21665 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
21666 if test "${with_SimGrid_extra+set}" = set; then
21667 withval="$with_SimGrid_extra"
21668 LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
21669 aci_pkg_extra_SimGrid="$withval"
21673 OLD_LDFLAGS=$LDFLAGS
21675 OLD_CPPFLAGS=$CPPFLAGS
21677 i=`echo -lsimgrid|wc -l`
21678 if test $i != 1 && test $i != 0 ; then
21679 { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
21680 please no newline and no tab." >&5
21681 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
21682 please no newline and no tab." >&2;}
21683 { (exit 1); exit 1; }; }
21686 ac_func_search_save_LIBS="$LIBS"
21687 ac_func_search_save_this_LIBS="$LIBS_SimGrid"
21689 echo "----------------------------------------" >&5
21690 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
21691 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
21692 cat >conftest.$ac_ext <<_ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21699 /* Override any gcc2 internal prototype to avoid an error. */
21703 /* We use char because int might match the return type of a gcc2
21704 builtin and then its argument prototype would still apply. */
21714 rm -f conftest.$ac_objext conftest$ac_exeext
21715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21716 (eval $ac_link) 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
21723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; } &&
21729 { ac_try='test -s conftest$ac_exeext'
21730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731 (eval $ac_try) 2>&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); }; }; then
21735 echo "$as_me:$LINENO: result: yes" >&5
21736 echo "${ECHO_T}yes" >&6 aci_found="yes"
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21741 echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6
21744 rm -f conftest.err conftest.$ac_objext \
21745 conftest$ac_exeext conftest.$ac_ext
21746 if test "$aci_found" = "no"; then
21747 if test -n "$LIBS_SimGrid" ; then
21748 LIBS="$LIBS_SimGrid"
21749 echo "----------------------------------------" >&5
21750 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
21751 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
21752 cat >conftest.$ac_ext <<_ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21759 /* Override any gcc2 internal prototype to avoid an error. */
21763 /* We use char because int might match the return type of a gcc2
21764 builtin and then its argument prototype would still apply. */
21774 rm -f conftest.$ac_objext conftest$ac_exeext
21775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21776 (eval $ac_link) 2>conftest.er1
21778 grep -v '^ *+' conftest.er1 >conftest.err
21780 cat conftest.err >&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } &&
21783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; } &&
21789 { ac_try='test -s conftest$ac_exeext'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21802 rm -f conftest.err conftest.$ac_objext \
21803 conftest$ac_exeext conftest.$ac_ext
21804 echo "$as_me:$LINENO: result: $aci_found" >&5
21805 echo "${ECHO_T}$aci_found" >&6
21810 if test "x$aci_found" = "xno"; then
21811 LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
21812 LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
21813 echo "----------------------------------------" >&5
21814 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
21815 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
21816 cat >conftest.$ac_ext <<_ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21823 /* Override any gcc2 internal prototype to avoid an error. */
21827 /* We use char because int might match the return type of a gcc2
21828 builtin and then its argument prototype would still apply. */
21838 rm -f conftest.$ac_objext conftest$ac_exeext
21839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21840 (eval $ac_link) 2>conftest.er1
21842 grep -v '^ *+' conftest.er1 >conftest.err
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } &&
21847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; } &&
21853 { ac_try='test -s conftest$ac_exeext'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; }; then
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21866 rm -f conftest.err conftest.$ac_objext \
21867 conftest$ac_exeext conftest.$ac_ext
21868 echo "$as_me:$LINENO: result: $aci_found" >&5
21869 echo "${ECHO_T}$aci_found" >&6
21872 LIBS="$ac_func_search_save_LIBS"
21874 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
21875 CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
21876 echo "CPPFLAGS=$CPPFLAGS">&5;
21877 if test "${ac_cv_header_simgrid_h+set}" = set; then
21878 echo "$as_me:$LINENO: checking for simgrid.h" >&5
21879 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
21880 if test "${ac_cv_header_simgrid_h+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
21884 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
21886 # Is the header compilable?
21887 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
21888 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
21889 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 $ac_includes_default
21896 #include <simgrid.h>
21898 rm -f conftest.$ac_objext
21899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21900 (eval $ac_compile) 2>conftest.er1
21902 grep -v '^ *+' conftest.er1 >conftest.err
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } &&
21907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; } &&
21913 { ac_try='test -s conftest.$ac_objext'
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; }; then
21919 ac_header_compiler=yes
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21924 ac_header_compiler=no
21926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21928 echo "${ECHO_T}$ac_header_compiler" >&6
21930 # Is the header present?
21931 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
21932 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
21933 cat >conftest.$ac_ext <<_ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 #include <simgrid.h>
21941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21944 grep -v '^ *+' conftest.er1 >conftest.err
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } >/dev/null; then
21949 if test -s conftest.err; then
21950 ac_cpp_err=$ac_c_preproc_warn_flag
21951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21958 if test -z "$ac_cpp_err"; then
21959 ac_header_preproc=yes
21961 echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21964 ac_header_preproc=no
21966 rm -f conftest.err conftest.$ac_ext
21967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21968 echo "${ECHO_T}$ac_header_preproc" >&6
21970 # So? What about this header?
21971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21973 { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
21974 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21975 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
21976 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
21977 ac_header_preproc=yes
21980 { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
21981 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: simgrid.h: check for missing prerequisite headers?" >&5
21983 echo "$as_me: WARNING: simgrid.h: check for missing prerequisite headers?" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
21985 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&5
21987 echo "$as_me: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
21989 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
21990 { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
21991 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
21994 ## ----------------------------------------- ##
21995 ## Report this to martin.quinson@ens-lyon.fr ##
21996 ## ----------------------------------------- ##
21999 sed "s/^/$as_me: WARNING: /" >&2
22002 echo "$as_me:$LINENO: checking for simgrid.h" >&5
22003 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
22004 if test "${ac_cv_header_simgrid_h+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 ac_cv_header_simgrid_h=$ac_header_preproc
22009 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
22010 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
22013 if test $ac_cv_header_simgrid_h = yes; then
22021 if test "x$aci_found" = "xno" ; then
22022 { { echo "$as_me:$LINENO: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&5
22023 echo "$as_me: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&2;}
22024 { (exit 1); exit 1; }; }
22029 if test "x$HAVE_SimGrid" != "xyes" ; then
22037 echo "END OF ACI-PACKAGE(SimGrid)">&5;
22038 LDFLAGS=$OLDLDFLAGS
22039 CPPFLAGS=$OLDCPPFLAGS
22044 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
22045 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
22046 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
22047 if test "${enable_maintainer_mode+set}" = set; then
22048 enableval="$enable_maintainer_mode"
22049 USE_MAINTAINER_MODE=$enableval
22051 USE_MAINTAINER_MODE=no
22053 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
22054 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
22057 if test $USE_MAINTAINER_MODE = yes; then
22058 MAINTAINER_MODE_TRUE=
22059 MAINTAINER_MODE_FALSE='#'
22061 MAINTAINER_MODE_TRUE='#'
22062 MAINTAINER_MODE_FALSE=
22065 MAINT=$MAINTAINER_MODE_TRUE
22068 if test x$USE_MAINTAINER_MODE = xyes
22071 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
22072 if test "${enable_compile_warnings+set}" = set; then
22073 enableval="$enable_compile_warnings"
22076 enable_compile_warnings=yes
22079 echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
22080 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
22082 if test "x$GCC" != xyes; then
22083 enable_compile_warnings=no
22086 if test "x$enable_compile_warnings" != "xno"; then
22087 if test "x$GCC" = "xyes"; then
22088 case " $CFLAGS " in
22090 *) warnCFLAGS="-g -Wall -Wunused" ;;
22093 ## -W is not all that useful. And it cannot be controlled
22094 ## with individual -Wno-xxx flags, unlike -Wall
22095 if test "x$enable_compile_warnings" = "xyes"; then
22096 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations\
22097 -finline-functions -Wshadow -Wpointer-arith \
22098 -Wwrite-strings -Wno-unused-function -Werror"
22102 echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
22103 echo "${ECHO_T}$warnCFLAGS" >&6
22105 # Check whether --enable-iso-c or --disable-iso-c was given.
22106 if test "${enable_iso_c+set}" = set; then
22107 enableval="$enable_iso_c"
22113 echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
22114 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
22116 if test "x$enable_iso_c" != "xno"; then
22117 if test "x$GCC" = "xyes"; then
22118 case " $CFLAGS " in
22120 *) complCFLAGS="$complCFLAGS -ansi" ;;
22123 case " $CFLAGS " in
22125 *) complCFLAGS="$complCFLAGS -pedantic" ;;
22129 echo "$as_me:$LINENO: result: $complCFLAGS" >&5
22130 echo "${ECHO_T}$complCFLAGS" >&6
22131 if test "x$cflags_set" != "xyes"; then
22132 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
22143 # Extract the first word of "bash", so it can be a program name with args.
22144 set dummy bash; ac_word=$2
22145 echo "$as_me:$LINENO: checking for $ac_word" >&5
22146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22147 if test "${ac_cv_prog_BASH+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 if test -n "$BASH"; then
22151 ac_cv_prog_BASH="$BASH" # Let the user override the test.
22153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22154 for as_dir in $PATH
22157 test -z "$as_dir" && as_dir=.
22158 for ac_exec_ext in '' $ac_executable_extensions; do
22159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22160 ac_cv_prog_BASH="`which bash`"
22161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22167 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
22170 BASH=$ac_cv_prog_BASH
22171 if test -n "$BASH"; then
22172 echo "$as_me:$LINENO: result: $BASH" >&5
22173 echo "${ECHO_T}$BASH" >&6
22175 echo "$as_me:$LINENO: result: no" >&5
22176 echo "${ECHO_T}no" >&6
22179 WARNING="This file is generated, do not edit"
22182 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/gs_example src/base/Tests/run_tests src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
22185 cat >confcache <<\_ACEOF
22186 # This file is a shell script that caches the results of configure
22187 # tests run on this system so they can be shared between configure
22188 # scripts and configure runs, see configure's option --config-cache.
22189 # It is not useful on other systems. If it contains results you don't
22190 # want to keep, you may remove or edit it.
22192 # config.status only pays attention to the cache file if you give it
22193 # the --recheck option to rerun configure.
22195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22197 # following values.
22201 # The following way of writing the cache mishandles newlines in values,
22202 # but we know of no workaround that is simple, portable, and efficient.
22203 # So, don't put newlines in cache variables' values.
22204 # Ultrix sh set writes to stderr and can't be redirected directly,
22205 # and sets the high bit in the cache file unless we assign to the vars.
22208 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22210 # `set' does not quote correctly, so add quotes (double-quote
22211 # substitution turns \\\\ into \\, and sed turns \\ into \).
22214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22217 # `set' quotes correctly as required by POSIX, so do not add quotes.
22219 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22228 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22230 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22231 if test -w $cache_file; then
22232 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22233 cat confcache >$cache_file
22235 echo "not updating unwritable cache $cache_file"
22240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22241 # Let make expand exec_prefix.
22242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22244 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22245 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22246 # trailing colons and then remove the whole line if VPATH becomes empty
22247 # (actually we leave an empty line to preserve line numbers).
22248 if test "x$srcdir" = x.; then
22249 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22250 s/:*\$(srcdir):*/:/;
22251 s/:*\${srcdir}:*/:/;
22253 s/^\([^=]*=[ ]*\):*/\1/;
22259 DEFS=-DHAVE_CONFIG_H
22263 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22264 # 1. Remove the extension, and $U if already installed.
22265 ac_i=`echo "$ac_i" |
22266 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22268 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22269 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22271 LIBOBJS=$ac_libobjs
22273 LTLIBOBJS=$ac_ltlibobjs
22276 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22277 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22278 Usually this means the macro was only invoked conditionally." >&5
22279 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22280 Usually this means the macro was only invoked conditionally." >&2;}
22281 { (exit 1); exit 1; }; }
22283 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22284 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22285 Usually this means the macro was only invoked conditionally." >&5
22286 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22287 Usually this means the macro was only invoked conditionally." >&2;}
22288 { (exit 1); exit 1; }; }
22290 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22291 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22292 Usually this means the macro was only invoked conditionally." >&5
22293 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22294 Usually this means the macro was only invoked conditionally." >&2;}
22295 { (exit 1); exit 1; }; }
22297 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22298 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22299 Usually this means the macro was only invoked conditionally." >&5
22300 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22301 Usually this means the macro was only invoked conditionally." >&2;}
22302 { (exit 1); exit 1; }; }
22304 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22305 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22306 Usually this means the macro was only invoked conditionally." >&5
22307 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22308 Usually this means the macro was only invoked conditionally." >&2;}
22309 { (exit 1); exit 1; }; }
22311 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22312 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22313 Usually this means the macro was only invoked conditionally." >&5
22314 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22315 Usually this means the macro was only invoked conditionally." >&2;}
22316 { (exit 1); exit 1; }; }
22318 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22319 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22320 Usually this means the macro was only invoked conditionally." >&5
22321 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22322 Usually this means the macro was only invoked conditionally." >&2;}
22323 { (exit 1); exit 1; }; }
22326 : ${CONFIG_STATUS=./config.status}
22327 ac_clean_files_save=$ac_clean_files
22328 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22329 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22330 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22331 cat >$CONFIG_STATUS <<_ACEOF
22333 # Generated by $as_me.
22334 # Run this file to recreate the current configuration.
22335 # Compiler output produced by configure, useful for debugging
22336 # configure, is in config.log if it exists.
22339 ac_cs_recheck=false
22341 SHELL=\${CONFIG_SHELL-$SHELL}
22344 cat >>$CONFIG_STATUS <<\_ACEOF
22345 ## --------------------- ##
22346 ## M4sh Initialization. ##
22347 ## --------------------- ##
22349 # Be Bourne compatible
22350 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22353 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22354 # is contrary to our usage. Disable this feature.
22355 alias -g '${1+"$@"}'='"$@"'
22356 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22359 DUALCASE=1; export DUALCASE # for MKS sh
22361 # Support unset when possible.
22362 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22369 # Work around bugs in pre-3.0 UWIN ksh.
22370 $as_unset ENV MAIL MAILPATH
22377 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22378 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22379 LC_TELEPHONE LC_TIME
22381 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22382 eval $as_var=C; export $as_var
22388 # Required to use basename.
22389 if expr a : '\(a\)' >/dev/null 2>&1; then
22395 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22396 as_basename=basename
22402 # Name of the executable.
22403 as_me=`$as_basename "$0" ||
22404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22405 X"$0" : 'X\(//\)$' \| \
22406 X"$0" : 'X\(/\)$' \| \
22407 . : '\(.\)' 2>/dev/null ||
22409 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22410 /^X\/\(\/\/\)$/{ s//\1/; q; }
22411 /^X\/\(\/\).*/{ s//\1/; q; }
22415 # PATH needs CR, and LINENO needs CR and PATH.
22416 # Avoid depending upon Character Ranges.
22417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22420 as_cr_digits='0123456789'
22421 as_cr_alnum=$as_cr_Letters$as_cr_digits
22423 # The user is always right.
22424 if test "${PATH_SEPARATOR+set}" != set; then
22425 echo "#! /bin/sh" >conf$$.sh
22426 echo "exit 0" >>conf$$.sh
22428 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22437 as_lineno_1=$LINENO
22438 as_lineno_2=$LINENO
22439 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22440 test "x$as_lineno_1" != "x$as_lineno_2" &&
22441 test "x$as_lineno_3" = "x$as_lineno_2" || {
22442 # Find who we are. Look in the path if we contain no path at all
22445 *[\\/]* ) as_myself=$0 ;;
22446 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22447 for as_dir in $PATH
22450 test -z "$as_dir" && as_dir=.
22451 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22456 # We did not find ourselves, most probably we were run as `sh COMMAND'
22457 # in which case we are not to be found in the path.
22458 if test "x$as_myself" = x; then
22461 if test ! -f "$as_myself"; then
22462 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22463 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22464 { (exit 1); exit 1; }; }
22466 case $CONFIG_SHELL in
22468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22469 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22472 test -z "$as_dir" && as_dir=.
22473 for as_base in sh bash ksh sh5; do
22476 if ("$as_dir/$as_base" -c '
22477 as_lineno_1=$LINENO
22478 as_lineno_2=$LINENO
22479 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22480 test "x$as_lineno_1" != "x$as_lineno_2" &&
22481 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22482 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22483 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22484 CONFIG_SHELL=$as_dir/$as_base
22485 export CONFIG_SHELL
22486 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22494 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22495 # uniformly replaced by the line number. The first 'sed' inserts a
22496 # line-number line before each line; the second 'sed' does the real
22497 # work. The second script uses 'N' to pair each line-number line
22498 # with the numbered line, and appends trailing '-' during
22499 # substitution so that $LINENO is not a special case at line end.
22500 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22501 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22502 sed '=' <$as_myself |
22507 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22510 s,^['$as_cr_digits']*\n,,
22511 ' >$as_me.lineno &&
22512 chmod +x $as_me.lineno ||
22513 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22514 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22515 { (exit 1); exit 1; }; }
22517 # Don't try to exec as it changes $[0], causing all sort of problems
22518 # (the dirname of $[0] is not the place where we might find the
22519 # original and so on. Autoconf is especially sensible to this).
22521 # Exit status is that of the last command.
22526 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22527 *c*,-n*) ECHO_N= ECHO_C='
22529 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22530 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22533 if expr a : '\(a\)' >/dev/null 2>&1; then
22539 rm -f conf$$ conf$$.exe conf$$.file
22541 if ln -s conf$$.file conf$$ 2>/dev/null; then
22542 # We could just check for DJGPP; but this test a) works b) is more generic
22543 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22544 if test -f conf$$.exe; then
22545 # Don't use ln at all; we don't have any links
22550 elif ln conf$$.file conf$$ 2>/dev/null; then
22555 rm -f conf$$ conf$$.exe conf$$.file
22557 if mkdir -p . 2>/dev/null; then
22560 test -d ./-p && rmdir ./-p
22564 as_executable_p="test -f"
22566 # Sed expression to map a string onto a valid CPP name.
22567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22569 # Sed expression to map a string onto a valid variable name.
22570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22574 # We need space, tab and new line, in precisely that order.
22584 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22585 # report actual input values of CONFIG_FILES etc. instead of their
22586 # values after options handling. Logging --version etc. is OK.
22590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22591 ## Running $as_me. ##
22596 This file was extended by GRAS $as_me 0.0.040129, which was
22597 generated by GNU Autoconf 2.59. Invocation command line was
22599 CONFIG_FILES = $CONFIG_FILES
22600 CONFIG_HEADERS = $CONFIG_HEADERS
22601 CONFIG_LINKS = $CONFIG_LINKS
22602 CONFIG_COMMANDS = $CONFIG_COMMANDS
22606 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22610 # Files that config.status was made for.
22611 if test -n "$ac_config_files"; then
22612 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22615 if test -n "$ac_config_headers"; then
22616 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22619 if test -n "$ac_config_links"; then
22620 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22623 if test -n "$ac_config_commands"; then
22624 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22627 cat >>$CONFIG_STATUS <<\_ACEOF
22630 \`$as_me' instantiates files from templates according to the
22631 current configuration.
22633 Usage: $0 [OPTIONS] [FILE]...
22635 -h, --help print this help, then exit
22636 -V, --version print version number, then exit
22637 -q, --quiet do not print progress messages
22638 -d, --debug don't remove temporary files
22639 --recheck update $as_me by reconfiguring in the same conditions
22640 --file=FILE[:TEMPLATE]
22641 instantiate the configuration file FILE
22642 --header=FILE[:TEMPLATE]
22643 instantiate the configuration header FILE
22645 Configuration files:
22648 Configuration headers:
22651 Configuration commands:
22654 Report bugs to <bug-autoconf@gnu.org>."
22657 cat >>$CONFIG_STATUS <<_ACEOF
22659 GRAS config.status 0.0.040129
22660 configured by $0, generated by GNU Autoconf 2.59,
22661 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22663 Copyright (C) 2003 Free Software Foundation, Inc.
22664 This config.status script is free software; the Free Software Foundation
22665 gives unlimited permission to copy, distribute and modify it."
22670 cat >>$CONFIG_STATUS <<\_ACEOF
22671 # If no file are specified by the user, then we need to provide default
22672 # value. By we need to know if files were specified by the user.
22678 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22679 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22687 *) # This is not an option, so the user has probably given explicit
22690 ac_need_defaults=false;;
22694 # Handling of the options.
22696 cat >>$CONFIG_STATUS <<\_ACEOF
22697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22699 --version | --vers* | -V )
22700 echo "$ac_cs_version"; exit 0 ;;
22702 # Conflict between --help and --header
22703 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22704 Try \`$0 --help' for more information." >&5
22705 echo "$as_me: error: ambiguous option: $1
22706 Try \`$0 --help' for more information." >&2;}
22707 { (exit 1); exit 1; }; };;
22708 --help | --hel | -h )
22709 echo "$ac_cs_usage"; exit 0 ;;
22710 --debug | --d* | -d )
22712 --file | --fil | --fi | --f )
22714 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22715 ac_need_defaults=false;;
22716 --header | --heade | --head | --hea )
22718 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22719 ac_need_defaults=false;;
22720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22721 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22724 # This is an error.
22725 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22726 Try \`$0 --help' for more information." >&5
22727 echo "$as_me: error: unrecognized option: $1
22728 Try \`$0 --help' for more information." >&2;}
22729 { (exit 1); exit 1; }; } ;;
22731 *) ac_config_targets="$ac_config_targets $1" ;;
22737 ac_configure_extra_args=
22739 if $ac_cs_silent; then
22741 ac_configure_extra_args="$ac_configure_extra_args --silent"
22745 cat >>$CONFIG_STATUS <<_ACEOF
22746 if \$ac_cs_recheck; then
22747 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22748 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22753 cat >>$CONFIG_STATUS <<_ACEOF
22755 # INIT-COMMANDS section.
22758 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22764 cat >>$CONFIG_STATUS <<\_ACEOF
22765 for ac_config_target in $ac_config_targets
22767 case "$ac_config_target" in
22768 # Handling of arguments.
22769 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22770 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22771 "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
22772 "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
22773 "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
22774 "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
22775 "src/base/Tests/gs_example" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/gs_example" ;;
22776 "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
22777 "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
22778 "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
22779 "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
22780 "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
22781 "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
22782 "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
22783 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22784 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22785 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
22786 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22787 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22788 { (exit 1); exit 1; }; };;
22792 # If the user did not use the arguments to specify the items to instantiate,
22793 # then the envvar interface is used. Set only those that are not.
22794 # We use the long form for the default assignment because of an extremely
22795 # bizarre bug on SunOS 4.1.3.
22796 if $ac_need_defaults; then
22797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22802 # Have a temporary directory for convenience. Make it in the build tree
22803 # simply because there is no reason to put it here, and in addition,
22804 # creating and moving files from /tmp can sometimes cause problems.
22805 # Create a temporary directory, and hook for its removal unless debugging.
22808 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22809 trap '{ (exit 1); exit 1; }' 1 2 13 15
22812 # Create a (secure) tmp directory for tmp files.
22815 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22816 test -n "$tmp" && test -d "$tmp"
22819 tmp=./confstat$$-$RANDOM
22820 (umask 077 && mkdir $tmp)
22823 echo "$me: cannot create a temporary directory in ." >&2
22824 { (exit 1); exit 1; }
22829 cat >>$CONFIG_STATUS <<_ACEOF
22832 # CONFIG_FILES section.
22835 # No need to generate the scripts if there are no CONFIG_FILES.
22836 # This happens for instance when ./config.status config.h
22837 if test -n "\$CONFIG_FILES"; then
22838 # Protect against being on the right side of a sed subst in config.status.
22839 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22840 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22841 s,@SHELL@,$SHELL,;t t
22842 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22843 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22844 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22845 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22846 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22847 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22848 s,@exec_prefix@,$exec_prefix,;t t
22849 s,@prefix@,$prefix,;t t
22850 s,@program_transform_name@,$program_transform_name,;t t
22851 s,@bindir@,$bindir,;t t
22852 s,@sbindir@,$sbindir,;t t
22853 s,@libexecdir@,$libexecdir,;t t
22854 s,@datadir@,$datadir,;t t
22855 s,@sysconfdir@,$sysconfdir,;t t
22856 s,@sharedstatedir@,$sharedstatedir,;t t
22857 s,@localstatedir@,$localstatedir,;t t
22858 s,@libdir@,$libdir,;t t
22859 s,@includedir@,$includedir,;t t
22860 s,@oldincludedir@,$oldincludedir,;t t
22861 s,@infodir@,$infodir,;t t
22862 s,@mandir@,$mandir,;t t
22863 s,@build_alias@,$build_alias,;t t
22864 s,@host_alias@,$host_alias,;t t
22865 s,@target_alias@,$target_alias,;t t
22866 s,@DEFS@,$DEFS,;t t
22867 s,@ECHO_C@,$ECHO_C,;t t
22868 s,@ECHO_N@,$ECHO_N,;t t
22869 s,@ECHO_T@,$ECHO_T,;t t
22870 s,@LIBS@,$LIBS,;t t
22871 s,@subdirs@,$subdirs,;t t
22872 s,@build@,$build,;t t
22873 s,@build_cpu@,$build_cpu,;t t
22874 s,@build_vendor@,$build_vendor,;t t
22875 s,@build_os@,$build_os,;t t
22876 s,@host@,$host,;t t
22877 s,@host_cpu@,$host_cpu,;t t
22878 s,@host_vendor@,$host_vendor,;t t
22879 s,@host_os@,$host_os,;t t
22880 s,@target@,$target,;t t
22881 s,@target_cpu@,$target_cpu,;t t
22882 s,@target_vendor@,$target_vendor,;t t
22883 s,@target_os@,$target_os,;t t
22884 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22885 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22886 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22887 s,@CYGPATH_W@,$CYGPATH_W,;t t
22888 s,@PACKAGE@,$PACKAGE,;t t
22889 s,@VERSION@,$VERSION,;t t
22890 s,@ACLOCAL@,$ACLOCAL,;t t
22891 s,@AUTOCONF@,$AUTOCONF,;t t
22892 s,@AUTOMAKE@,$AUTOMAKE,;t t
22893 s,@AUTOHEADER@,$AUTOHEADER,;t t
22894 s,@MAKEINFO@,$MAKEINFO,;t t
22895 s,@AMTAR@,$AMTAR,;t t
22896 s,@install_sh@,$install_sh,;t t
22897 s,@STRIP@,$STRIP,;t t
22898 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22899 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22901 s,@SET_MAKE@,$SET_MAKE,;t t
22902 s,@am__leading_dot@,$am__leading_dot,;t t
22904 s,@CFLAGS@,$CFLAGS,;t t
22905 s,@LDFLAGS@,$LDFLAGS,;t t
22906 s,@CPPFLAGS@,$CPPFLAGS,;t t
22907 s,@ac_ct_CC@,$ac_ct_CC,;t t
22908 s,@EXEEXT@,$EXEEXT,;t t
22909 s,@OBJEXT@,$OBJEXT,;t t
22910 s,@DEPDIR@,$DEPDIR,;t t
22911 s,@am__include@,$am__include,;t t
22912 s,@am__quote@,$am__quote,;t t
22913 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22914 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22915 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22916 s,@CCDEPMODE@,$CCDEPMODE,;t t
22917 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22918 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22919 s,@EGREP@,$EGREP,;t t
22920 s,@LN_S@,$LN_S,;t t
22921 s,@ECHO@,$ECHO,;t t
22923 s,@ac_ct_AR@,$ac_ct_AR,;t t
22924 s,@RANLIB@,$RANLIB,;t t
22925 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22928 s,@CXXFLAGS@,$CXXFLAGS,;t t
22929 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22930 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22931 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22932 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22933 s,@CXXCPP@,$CXXCPP,;t t
22935 s,@FFLAGS@,$FFLAGS,;t t
22936 s,@ac_ct_F77@,$ac_ct_F77,;t t
22937 s,@LIBTOOL@,$LIBTOOL,;t t
22938 s,@HTML_DIR@,$HTML_DIR,;t t
22939 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22940 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
22941 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
22942 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
22943 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
22944 s,@FLIBS@,$FLIBS,;t t
22945 s,@LIBOBJS@,$LIBOBJS,;t t
22946 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
22947 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
22948 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
22949 s,@HAVE_XML@,$HAVE_XML,;t t
22950 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
22951 s,@LIBS_XML@,$LIBS_XML,;t t
22952 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
22953 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
22954 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
22955 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
22956 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
22957 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
22958 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
22959 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
22960 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22961 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22962 s,@MAINT@,$MAINT,;t t
22963 s,@cflags_set@,$cflags_set,;t t
22964 s,@BASH@,$BASH,;t t
22965 s,@WARNING@,$WARNING,;t t
22966 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22971 cat >>$CONFIG_STATUS <<\_ACEOF
22972 # Split the substitutions into bite-sized pieces for seds with
22973 # small command number limits, like on Digital OSF/1 and HP-UX.
22974 ac_max_sed_lines=48
22975 ac_sed_frag=1 # Number of current file.
22976 ac_beg=1 # First line for current file.
22977 ac_end=$ac_max_sed_lines # Line after last line for current file.
22980 while $ac_more_lines; do
22981 if test $ac_beg -gt 1; then
22982 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22984 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22986 if test ! -s $tmp/subs.frag; then
22987 ac_more_lines=false
22989 # The purpose of the label and of the branching condition is to
22990 # speed up the sed processing (if there are no `@' at all, there
22991 # is no need to browse any of the substitutions).
22992 # These are the two extra sed commands mentioned above.
22994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22995 if test -z "$ac_sed_cmds"; then
22996 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22998 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23000 ac_sed_frag=`expr $ac_sed_frag + 1`
23002 ac_end=`expr $ac_end + $ac_max_sed_lines`
23005 if test -z "$ac_sed_cmds"; then
23008 fi # test -n "$CONFIG_FILES"
23011 cat >>$CONFIG_STATUS <<\_ACEOF
23012 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23015 - | *:- | *:-:* ) # input from stdin
23017 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23019 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23020 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23021 * ) ac_file_in=$ac_file.in ;;
23024 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23025 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23027 X"$ac_file" : 'X\(//\)[^/]' \| \
23028 X"$ac_file" : 'X\(//\)$' \| \
23029 X"$ac_file" : 'X\(/\)' \| \
23030 . : '\(.\)' 2>/dev/null ||
23032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23034 /^X\(\/\/\)$/{ s//\1/; q; }
23035 /^X\(\/\).*/{ s//\1/; q; }
23037 { if $as_mkdir_p; then
23042 while test ! -d "$as_dir"; do
23043 as_dirs="$as_dir $as_dirs"
23044 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23046 X"$as_dir" : 'X\(//\)[^/]' \| \
23047 X"$as_dir" : 'X\(//\)$' \| \
23048 X"$as_dir" : 'X\(/\)' \| \
23049 . : '\(.\)' 2>/dev/null ||
23051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23053 /^X\(\/\/\)$/{ s//\1/; q; }
23054 /^X\(\/\).*/{ s//\1/; q; }
23057 test ! -n "$as_dirs" || mkdir $as_dirs
23058 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23059 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23060 { (exit 1); exit 1; }; }; }
23064 if test "$ac_dir" != .; then
23065 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23066 # A "../" for each directory in $ac_dir_suffix.
23067 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23069 ac_dir_suffix= ac_top_builddir=
23073 .) # No --srcdir option. We are building in place.
23075 if test -z "$ac_top_builddir"; then
23078 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23080 [\\/]* | ?:[\\/]* ) # Absolute path.
23081 ac_srcdir=$srcdir$ac_dir_suffix;
23082 ac_top_srcdir=$srcdir ;;
23083 *) # Relative path.
23084 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23085 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23088 # Do not use `cd foo && pwd` to compute absolute paths, because
23089 # the directories may not exist.
23091 .) ac_abs_builddir="$ac_dir";;
23094 .) ac_abs_builddir=`pwd`;;
23095 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23096 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23099 case $ac_abs_builddir in
23100 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23102 case ${ac_top_builddir}. in
23103 .) ac_abs_top_builddir=$ac_abs_builddir;;
23104 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23105 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23108 case $ac_abs_builddir in
23109 .) ac_abs_srcdir=$ac_srcdir;;
23112 .) ac_abs_srcdir=$ac_abs_builddir;;
23113 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23114 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23117 case $ac_abs_builddir in
23118 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23120 case $ac_top_srcdir in
23121 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23122 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23123 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23130 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23133 # Let's still pretend it is `configure' which instantiates (i.e., don't
23134 # use $as_me), people would be surprised to read:
23135 # /* config.h. Generated by config.status. */
23136 if test x"$ac_file" = x-; then
23139 configure_input="$ac_file. "
23141 configure_input=$configure_input"Generated from `echo $ac_file_in |
23142 sed 's,.*/,,'` by configure."
23144 # First look for the input files in the build tree, otherwise in the
23146 ac_file_inputs=`IFS=:
23147 for f in $ac_file_in; do
23149 -) echo $tmp/stdin ;;
23151 # Absolute (can't be DOS-style, as IFS=:)
23152 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23153 echo "$as_me: error: cannot find input file: $f" >&2;}
23154 { (exit 1); exit 1; }; }
23157 if test -f "$f"; then
23160 elif test -f "$srcdir/$f"; then
23165 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23166 echo "$as_me: error: cannot find input file: $f" >&2;}
23167 { (exit 1); exit 1; }; }
23170 done` || { (exit 1); exit 1; }
23172 if test x"$ac_file" != x-; then
23173 { echo "$as_me:$LINENO: creating $ac_file" >&5
23174 echo "$as_me: creating $ac_file" >&6;}
23178 cat >>$CONFIG_STATUS <<_ACEOF
23182 cat >>$CONFIG_STATUS <<\_ACEOF
23184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23185 s,@configure_input@,$configure_input,;t t
23186 s,@srcdir@,$ac_srcdir,;t t
23187 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23188 s,@top_srcdir@,$ac_top_srcdir,;t t
23189 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23190 s,@builddir@,$ac_builddir,;t t
23191 s,@abs_builddir@,$ac_abs_builddir,;t t
23192 s,@top_builddir@,$ac_top_builddir,;t t
23193 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23194 s,@INSTALL@,$ac_INSTALL,;t t
23195 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23197 if test x"$ac_file" != x-; then
23198 mv $tmp/out $ac_file
23204 # Run the commands associated with the file.
23206 Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23207 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23208 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23209 src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23210 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23211 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23212 src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23213 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23214 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23215 src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23216 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23217 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23218 src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23219 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23220 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23221 src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23222 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23223 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23224 src/base/Tests/gs_example ) ( cd src/include ; test -e gras || ln -s . gras )
23225 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23226 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23227 src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
23228 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23229 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23230 src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23231 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23232 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23233 src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23234 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23235 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23236 src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23237 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23238 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23239 src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23240 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23241 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23242 src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23243 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23244 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23245 src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23246 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23247 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23248 doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23249 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23250 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23254 cat >>$CONFIG_STATUS <<\_ACEOF
23257 # CONFIG_HEADER section.
23260 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23261 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23263 # ac_d sets the value in "#define NAME VALUE" lines.
23264 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23265 ac_dB='[ ].*$,\1#\2'
23268 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23269 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23270 ac_uB='$,\1#\2define\3'
23274 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23275 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23277 - | *:- | *:-:* ) # input from stdin
23279 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23281 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23283 * ) ac_file_in=$ac_file.in ;;
23286 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23287 echo "$as_me: creating $ac_file" >&6;}
23289 # First look for the input files in the build tree, otherwise in the
23291 ac_file_inputs=`IFS=:
23292 for f in $ac_file_in; do
23294 -) echo $tmp/stdin ;;
23296 # Absolute (can't be DOS-style, as IFS=:)
23297 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23298 echo "$as_me: error: cannot find input file: $f" >&2;}
23299 { (exit 1); exit 1; }; }
23300 # Do quote $f, to prevent DOS paths from being IFS'd.
23303 if test -f "$f"; then
23306 elif test -f "$srcdir/$f"; then
23311 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23312 echo "$as_me: error: cannot find input file: $f" >&2;}
23313 { (exit 1); exit 1; }; }
23316 done` || { (exit 1); exit 1; }
23317 # Remove the trailing spaces.
23318 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23322 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23323 # `conftest.undefs', that substitutes the proper values into
23324 # config.h.in to produce config.h. The first handles `#define'
23325 # templates, and the second `#undef' templates.
23326 # And first: Protect against being on the right side of a sed subst in
23327 # config.status. Protect against being in an unquoted here document
23328 # in config.status.
23329 rm -f conftest.defines conftest.undefs
23330 # Using a here document instead of a string reduces the quoting nightmare.
23331 # Putting comments in sed scripts is not portable.
23333 # `end' is used to avoid that the second main sed command (meant for
23334 # 0-ary CPP macros) applies to n-ary macro definitions.
23335 # See the Autoconf documentation for `clear'.
23336 cat >confdef2sed.sed <<\_ACEOF
23341 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23343 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23346 # If some macros were called several times there might be several times
23347 # the same #defines, which is useless. Nevertheless, we may not want to
23348 # sort them, since we want the *last* AC-DEFINE to be honored.
23349 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23350 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23351 rm -f confdef2sed.sed
23353 # This sed command replaces #undef with comments. This is necessary, for
23354 # example, in the case of _POSIX_SOURCE, which is predefined and required
23355 # on some systems where configure will not decide to define it.
23356 cat >>conftest.undefs <<\_ACEOF
23357 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23360 # Break up conftest.defines because some shells have a limit on the size
23361 # of here documents, and old seds have small limits too (100 cmds).
23362 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23363 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23364 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23365 echo ' :' >>$CONFIG_STATUS
23366 rm -f conftest.tail
23367 while grep . conftest.defines >/dev/null
23369 # Write a limited-size here document to $tmp/defines.sed.
23370 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23371 # Speed up: don't consider the non `#define' lines.
23372 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23373 # Work around the forget-to-reset-the-flag bug.
23374 echo 't clr' >>$CONFIG_STATUS
23375 echo ': clr' >>$CONFIG_STATUS
23376 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23378 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23380 mv $tmp/out $tmp/in
23382 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23383 rm -f conftest.defines
23384 mv conftest.tail conftest.defines
23386 rm -f conftest.defines
23387 echo ' fi # grep' >>$CONFIG_STATUS
23388 echo >>$CONFIG_STATUS
23390 # Break up conftest.undefs because some shells have a limit on the size
23391 # of here documents, and old seds have small limits too (100 cmds).
23392 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23393 rm -f conftest.tail
23394 while grep . conftest.undefs >/dev/null
23396 # Write a limited-size here document to $tmp/undefs.sed.
23397 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23398 # Speed up: don't consider the non `#undef'
23399 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23400 # Work around the forget-to-reset-the-flag bug.
23401 echo 't clr' >>$CONFIG_STATUS
23402 echo ': clr' >>$CONFIG_STATUS
23403 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23405 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23407 mv $tmp/out $tmp/in
23409 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23410 rm -f conftest.undefs
23411 mv conftest.tail conftest.undefs
23413 rm -f conftest.undefs
23415 cat >>$CONFIG_STATUS <<\_ACEOF
23416 # Let's still pretend it is `configure' which instantiates (i.e., don't
23417 # use $as_me), people would be surprised to read:
23418 # /* config.h. Generated by config.status. */
23419 if test x"$ac_file" = x-; then
23420 echo "/* Generated by configure. */" >$tmp/config.h
23422 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23424 cat $tmp/in >>$tmp/config.h
23426 if test x"$ac_file" != x-; then
23427 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23428 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23429 echo "$as_me: $ac_file is unchanged" >&6;}
23431 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23433 X"$ac_file" : 'X\(//\)[^/]' \| \
23434 X"$ac_file" : 'X\(//\)$' \| \
23435 X"$ac_file" : 'X\(/\)' \| \
23436 . : '\(.\)' 2>/dev/null ||
23438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23440 /^X\(\/\/\)$/{ s//\1/; q; }
23441 /^X\(\/\).*/{ s//\1/; q; }
23443 { if $as_mkdir_p; then
23448 while test ! -d "$as_dir"; do
23449 as_dirs="$as_dir $as_dirs"
23450 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23452 X"$as_dir" : 'X\(//\)[^/]' \| \
23453 X"$as_dir" : 'X\(//\)$' \| \
23454 X"$as_dir" : 'X\(/\)' \| \
23455 . : '\(.\)' 2>/dev/null ||
23457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23459 /^X\(\/\/\)$/{ s//\1/; q; }
23460 /^X\(\/\).*/{ s//\1/; q; }
23463 test ! -n "$as_dirs" || mkdir $as_dirs
23464 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23465 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23466 { (exit 1); exit 1; }; }; }
23469 mv $tmp/config.h $ac_file
23473 rm -f $tmp/config.h
23475 # Compute $ac_file's index in $config_headers.
23477 for _am_header in $config_headers :; do
23478 case $_am_header in
23479 $ac_file | $ac_file:* )
23482 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23485 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23486 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23487 X$ac_file : 'X\(//\)[^/]' \| \
23488 X$ac_file : 'X\(//\)$' \| \
23489 X$ac_file : 'X\(/\)' \| \
23490 . : '\(.\)' 2>/dev/null ||
23492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23493 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23494 /^X\(\/\/\)$/{ s//\1/; q; }
23495 /^X\(\/\).*/{ s//\1/; q; }
23496 s/.*/./; q'`/stamp-h$_am_stamp_count
23499 cat >>$CONFIG_STATUS <<\_ACEOF
23502 # CONFIG_COMMANDS section.
23504 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23505 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23506 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23507 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23508 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23509 X"$ac_dest" : 'X\(//\)[^/]' \| \
23510 X"$ac_dest" : 'X\(//\)$' \| \
23511 X"$ac_dest" : 'X\(/\)' \| \
23512 . : '\(.\)' 2>/dev/null ||
23514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23516 /^X\(\/\/\)$/{ s//\1/; q; }
23517 /^X\(\/\).*/{ s//\1/; q; }
23519 { if $as_mkdir_p; then
23524 while test ! -d "$as_dir"; do
23525 as_dirs="$as_dir $as_dirs"
23526 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23527 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23528 X"$as_dir" : 'X\(//\)[^/]' \| \
23529 X"$as_dir" : 'X\(//\)$' \| \
23530 X"$as_dir" : 'X\(/\)' \| \
23531 . : '\(.\)' 2>/dev/null ||
23533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23535 /^X\(\/\/\)$/{ s//\1/; q; }
23536 /^X\(\/\).*/{ s//\1/; q; }
23539 test ! -n "$as_dirs" || mkdir $as_dirs
23540 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23541 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23542 { (exit 1); exit 1; }; }; }
23546 if test "$ac_dir" != .; then
23547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23548 # A "../" for each directory in $ac_dir_suffix.
23549 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23551 ac_dir_suffix= ac_top_builddir=
23555 .) # No --srcdir option. We are building in place.
23557 if test -z "$ac_top_builddir"; then
23560 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23562 [\\/]* | ?:[\\/]* ) # Absolute path.
23563 ac_srcdir=$srcdir$ac_dir_suffix;
23564 ac_top_srcdir=$srcdir ;;
23565 *) # Relative path.
23566 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23567 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23570 # Do not use `cd foo && pwd` to compute absolute paths, because
23571 # the directories may not exist.
23573 .) ac_abs_builddir="$ac_dir";;
23576 .) ac_abs_builddir=`pwd`;;
23577 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23578 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23581 case $ac_abs_builddir in
23582 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23584 case ${ac_top_builddir}. in
23585 .) ac_abs_top_builddir=$ac_abs_builddir;;
23586 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23587 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23590 case $ac_abs_builddir in
23591 .) ac_abs_srcdir=$ac_srcdir;;
23594 .) ac_abs_srcdir=$ac_abs_builddir;;
23595 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23596 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23599 case $ac_abs_builddir in
23600 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23602 case $ac_top_srcdir in
23603 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23604 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23605 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23610 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23611 echo "$as_me: executing $ac_dest commands" >&6;}
23613 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23614 # Strip MF so we end up with the name of the file.
23615 mf=`echo "$mf" | sed -e 's/:.*$//'`
23616 # Check whether this is an Automake generated Makefile or not.
23617 # We used to match only the files named `Makefile.in', but
23618 # some people rename them; so instead we look at the file content.
23619 # Grep'ing the first line is not enough: some people post-process
23620 # each Makefile.in and add a new line on top of each file to say so.
23621 # So let's grep whole file.
23622 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23623 dirpart=`(dirname "$mf") 2>/dev/null ||
23624 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23625 X"$mf" : 'X\(//\)[^/]' \| \
23626 X"$mf" : 'X\(//\)$' \| \
23627 X"$mf" : 'X\(/\)' \| \
23628 . : '\(.\)' 2>/dev/null ||
23630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23632 /^X\(\/\/\)$/{ s//\1/; q; }
23633 /^X\(\/\).*/{ s//\1/; q; }
23638 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23639 # Extract the definition of DEP_FILES from the Makefile without
23641 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
23642 test -z "$DEPDIR" && continue
23643 # When using ansi2knr, U may be empty or an underscore; expand it
23644 U=`sed -n -e '/^U = / s///p' < "$mf"`
23645 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23646 # We invoke sed twice because it is the simplest approach to
23647 # changing $(DEPDIR) to its actual value in the expansion.
23648 for file in `sed -n -e '
23649 /^DEP_FILES = .*\\\\$/ {
23658 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23659 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23660 # Make sure the directory exists.
23661 test -f "$dirpart/$file" && continue
23662 fdir=`(dirname "$file") 2>/dev/null ||
23663 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23664 X"$file" : 'X\(//\)[^/]' \| \
23665 X"$file" : 'X\(//\)$' \| \
23666 X"$file" : 'X\(/\)' \| \
23667 . : '\(.\)' 2>/dev/null ||
23669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23671 /^X\(\/\/\)$/{ s//\1/; q; }
23672 /^X\(\/\).*/{ s//\1/; q; }
23674 { if $as_mkdir_p; then
23675 mkdir -p $dirpart/$fdir
23677 as_dir=$dirpart/$fdir
23679 while test ! -d "$as_dir"; do
23680 as_dirs="$as_dir $as_dirs"
23681 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23683 X"$as_dir" : 'X\(//\)[^/]' \| \
23684 X"$as_dir" : 'X\(//\)$' \| \
23685 X"$as_dir" : 'X\(/\)' \| \
23686 . : '\(.\)' 2>/dev/null ||
23688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23690 /^X\(\/\/\)$/{ s//\1/; q; }
23691 /^X\(\/\).*/{ s//\1/; q; }
23694 test ! -n "$as_dirs" || mkdir $as_dirs
23695 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23696 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23697 { (exit 1); exit 1; }; }; }
23699 # echo "creating $dirpart/$file"
23700 echo '# dummy' > "$dirpart/$file"
23708 cat >>$CONFIG_STATUS <<\_ACEOF
23710 { (exit 0); exit 0; }
23712 chmod +x $CONFIG_STATUS
23713 ac_clean_files=$ac_clean_files_save
23716 # configure is writing to config.log, and then calls config.status.
23717 # config.status does its own redirection, appending to config.log.
23718 # Unfortunately, on DOS this fails, as config.log is still kept open
23719 # by configure, so config.status won't be able to write to it; its
23720 # output is simply discarded. So we exec the FD to /dev/null,
23721 # effectively closing config.log, so it can be properly (re)opened and
23722 # appended to by config.status. When coming back to configure, we
23723 # need to make the FD available again.
23724 if test "$no_create" != yes; then
23726 ac_config_status_args=
23727 test "$silent" = yes &&
23728 ac_config_status_args="$ac_config_status_args --quiet"
23730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23733 # would make configure fail if this is the last instruction.
23734 $ac_cs_success || { (exit 1); exit 1; }
23738 # CONFIG_SUBDIRS section.
23740 if test "$no_recursion" != yes; then
23742 # Remove --cache-file and --srcdir arguments so they do not pile up.
23743 ac_sub_configure_args=
23745 for ac_arg in $ac_configure_args; do
23746 if test -n "$ac_prev"; then
23751 -cache-file | --cache-file | --cache-fil | --cache-fi \
23752 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23753 ac_prev=cache_file ;;
23754 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23755 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23758 --config-cache | -C)
23760 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23762 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23764 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23766 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23768 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23772 # Always prepend --prefix to ensure using the same prefix
23773 # in subdir configurations.
23774 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23777 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23779 # Do not complain, so a configure script can configure whichever
23780 # parts of a large source tree are present.
23781 test -d $srcdir/$ac_dir || continue
23783 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23784 echo "$as_me: configuring in $ac_dir" >&6;}
23785 { if $as_mkdir_p; then
23790 while test ! -d "$as_dir"; do
23791 as_dirs="$as_dir $as_dirs"
23792 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23794 X"$as_dir" : 'X\(//\)[^/]' \| \
23795 X"$as_dir" : 'X\(//\)$' \| \
23796 X"$as_dir" : 'X\(/\)' \| \
23797 . : '\(.\)' 2>/dev/null ||
23799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23801 /^X\(\/\/\)$/{ s//\1/; q; }
23802 /^X\(\/\).*/{ s//\1/; q; }
23805 test ! -n "$as_dirs" || mkdir $as_dirs
23806 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23807 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23808 { (exit 1); exit 1; }; }; }
23812 if test "$ac_dir" != .; then
23813 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23814 # A "../" for each directory in $ac_dir_suffix.
23815 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23817 ac_dir_suffix= ac_top_builddir=
23821 .) # No --srcdir option. We are building in place.
23823 if test -z "$ac_top_builddir"; then
23826 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23828 [\\/]* | ?:[\\/]* ) # Absolute path.
23829 ac_srcdir=$srcdir$ac_dir_suffix;
23830 ac_top_srcdir=$srcdir ;;
23831 *) # Relative path.
23832 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23833 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23836 # Do not use `cd foo && pwd` to compute absolute paths, because
23837 # the directories may not exist.
23839 .) ac_abs_builddir="$ac_dir";;
23842 .) ac_abs_builddir=`pwd`;;
23843 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23844 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23847 case $ac_abs_builddir in
23848 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23850 case ${ac_top_builddir}. in
23851 .) ac_abs_top_builddir=$ac_abs_builddir;;
23852 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23853 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23856 case $ac_abs_builddir in
23857 .) ac_abs_srcdir=$ac_srcdir;;
23860 .) ac_abs_srcdir=$ac_abs_builddir;;
23861 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23862 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23865 case $ac_abs_builddir in
23866 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23868 case $ac_top_srcdir in
23869 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23870 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23871 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23878 # Check for guested configure; otherwise get Cygnus style configure.
23879 if test -f $ac_srcdir/configure.gnu; then
23880 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23881 elif test -f $ac_srcdir/configure; then
23882 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23883 elif test -f $ac_srcdir/configure.in; then
23884 ac_sub_configure=$ac_configure
23886 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23887 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23891 # The recursion is here.
23892 if test -n "$ac_sub_configure"; then
23893 # Make the cache file name correct relative to the subdirectory.
23894 case $cache_file in
23895 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23896 *) # Relative path.
23897 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23900 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23901 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23902 # The eval makes quoting arguments work.
23903 eval $ac_sub_configure $ac_sub_configure_args \
23904 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23905 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23906 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23907 { (exit 1); exit 1; }; }
23917 Configuration of package \`${PACKAGE}':
23922 LDFlags: ${LDFLAGS}