2 # From configure.ac Revision: 1.136 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for simgrid 3.1.1-cvs.
6 # Report bugs to <simgrid-devel@lists.gforge.inria.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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
425 PACKAGE_NAME='simgrid'
426 PACKAGE_TARNAME='simgrid'
427 PACKAGE_VERSION='3.1.1-cvs'
428 PACKAGE_STRING='simgrid 3.1.1-cvs'
429 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
431 ac_unique_file="include/gras.h"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
436 # include <sys/types.h>
439 # include <sys/stat.h>
450 # if !STDC_HEADERS && HAVE_MEMORY_H
456 # include <strings.h>
459 # include <inttypes.h>
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS PTH_STACK_GROWTH pth_skaddr_makecontext pth_sksize_makecontext SIMGRID_DEP GRAS_DEP GRAMINE_MODE_TRUE GRAMINE_MODE_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LD_DYNAMIC_FLAGS abs_builddir abs_srcdir abs_top_builddir abs_top_srcdir BASH WARNING LEX LEXLIB LEX_OUTPUT_ROOT FLEXML HAVE_FLEXML_TRUE HAVE_FLEXML_FALSE DOXYGEN ADDR2LINE ac_configure_args MD5SUM build_id LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
958 \`configure' configures simgrid 3.1.1-cvs to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 --target=TARGET configure for building compilers for TARGET [HOST]
1023 if test -n "$ac_init_help"; then
1024 case $ac_init_help in
1025 short | recursive ) echo "Configuration of simgrid 3.1.1-cvs:";;
1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-dependency-tracking speeds up one-time build
1039 --enable-dependency-tracking do not reject slow dependency extractors
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-maintainer-mode enable make rules and dependencies not useful
1042 (and sometimes confusing) to the casual installer
1043 --enable-compile-warnings
1044 use compiler warnings (default=no, unless in
1046 --disable-compile-optimizations
1047 use compiler optimizations (default=yes, unless if
1048 CFLAGS is explicitly set)
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use
1057 include additional configurations [automatic]
1058 --with-pthread Use pthread instead of ucontext.
1059 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1061 Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1078 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 ac_dir_suffix= ac_top_builddir=
1098 .) # No --srcdir option. We are building in place.
1100 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1116 .) ac_abs_builddir="$ac_dir";;
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1163 $ac_configure --help
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1174 simgrid configure 3.1.1-cvs
1175 generated by GNU Autoconf 2.59
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1188 It was created by simgrid $as_me 3.1.1-cvs, which was
1189 generated by GNU Autoconf 2.59. Invocation command line was
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_must_keep_next=false
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
1266 ac_must_keep_next=false # Got value, back to normal.
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 -* ) ac_must_keep_next=true ;;
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log. We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1306 # The following way of writing the cache mishandles newlines in values,
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1329 for ac_var in $ac_subst_vars
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -n "$ac_subst_files"; then
1343 for ac_var in $ac_subst_files
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1351 if test -s confdefs.h; then
1358 sed "/^$/d" confdefs.h | sort
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1365 rm -f core *.core &&
1366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 # Predefined preprocessor variables.
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1424 if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1441 # Check that the precious variables saved in the cache have kept the same
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
1462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1465 echo "$as_me: former value: $ac_old_val" >&2;}
1466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1467 echo "$as_me: current value: $ac_new_val" >&2;}
1468 ac_cache_corrupted=:
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 ac_config_headers="$ac_config_headers src/gras_config.h"
1527 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1531 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1532 if test -f $ac_dir/install-sh; then
1534 ac_install_sh="$ac_aux_dir/install-sh -c"
1536 elif test -f $ac_dir/install.sh; then
1538 ac_install_sh="$ac_aux_dir/install.sh -c"
1540 elif test -f $ac_dir/shtool; then
1542 ac_install_sh="$ac_aux_dir/shtool install -c"
1546 if test -z "$ac_aux_dir"; then
1547 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1548 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1549 { (exit 1); exit 1; }; }
1551 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1552 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1553 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555 # Make sure we can run config.sub.
1556 $ac_config_sub sun4 >/dev/null 2>&1 ||
1557 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1558 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1559 { (exit 1); exit 1; }; }
1561 echo "$as_me:$LINENO: checking build system type" >&5
1562 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1563 if test "${ac_cv_build+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 ac_cv_build_alias=$build_alias
1567 test -z "$ac_cv_build_alias" &&
1568 ac_cv_build_alias=`$ac_config_guess`
1569 test -z "$ac_cv_build_alias" &&
1570 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1571 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1572 { (exit 1); exit 1; }; }
1573 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1575 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1579 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1580 echo "${ECHO_T}$ac_cv_build" >&6
1582 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587 echo "$as_me:$LINENO: checking host system type" >&5
1588 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1589 if test "${ac_cv_host+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 ac_cv_host_alias=$host_alias
1593 test -z "$ac_cv_host_alias" &&
1594 ac_cv_host_alias=$ac_cv_build_alias
1595 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1596 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1597 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1598 { (exit 1); exit 1; }; }
1601 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1602 echo "${ECHO_T}$ac_cv_host" >&6
1604 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1605 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1606 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609 echo "$as_me:$LINENO: checking target system type" >&5
1610 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1611 if test "${ac_cv_target+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 ac_cv_target_alias=$target_alias
1615 test "x$ac_cv_target_alias" = "x" &&
1616 ac_cv_target_alias=$ac_cv_host_alias
1617 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1624 echo "${ECHO_T}$ac_cv_target" >&6
1625 target=$ac_cv_target
1626 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631 # The aliases save the names the user supplied, while $host etc.
1632 # will get canonicalized.
1633 test -n "$target_alias" &&
1634 test "$program_prefix$program_suffix$program_transform_name" = \
1636 program_prefix=${target_alias}-
1638 ac_cpp='$CPP $CPPFLAGS'
1639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1644 am__api_version="1.9"
1645 # Find a good install program. We prefer a C program (faster),
1646 # so one script is as good as another. But avoid the broken or
1647 # incompatible versions:
1648 # SysV /etc/install, /usr/sbin/install
1649 # SunOS /usr/etc/install
1650 # IRIX /sbin/install
1652 # AmigaOS /C/install, which installs bootblocks on floppy discs
1653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1656 # OS/2's system install, which has a completely different semantic
1657 # ./install, which can be erroneously created by make from ./install.sh.
1658 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1659 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1660 if test -z "$INSTALL"; then
1661 if test "${ac_cv_path_install+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir=.
1669 # Account for people who put trailing slashes in PATH elements.
1671 ./ | .// | /cC/* | \
1672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1673 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1676 # OSF1 and SCO ODT 3.0 have their own names for install.
1677 # Don't use installbsd from OSF since it installs stuff as root
1679 for ac_prog in ginstall scoinst install; do
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1682 if test $ac_prog = install &&
1683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1684 # AIX install. It has an incompatible calling convention.
1686 elif test $ac_prog = install &&
1687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688 # program-specific install script used by HP pwplus--don't use.
1691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1703 if test "${ac_cv_path_install+set}" = set; then
1704 INSTALL=$ac_cv_path_install
1706 # As a last resort, use the slow shell script. We don't cache a
1707 # path for INSTALL within a source directory, because that will
1708 # break other packages using the cache if that directory is
1709 # removed, or if the path is relative.
1710 INSTALL=$ac_install_sh
1713 echo "$as_me:$LINENO: result: $INSTALL" >&5
1714 echo "${ECHO_T}$INSTALL" >&6
1716 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1717 # It thinks the first close brace ends the variable substitution.
1718 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1720 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1722 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1724 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1725 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1728 echo timestamp > conftest.file
1729 # Do `set' in a subshell so we don't clobber the current shell's
1730 # arguments. Must try -L first in case configure is actually a
1731 # symlink; some systems play weird games with the mod time of symlinks
1732 # (eg FreeBSD returns the mod time of the symlink's containing
1735 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1736 if test "$*" = "X"; then
1738 set X `ls -t $srcdir/configure conftest.file`
1741 if test "$*" != "X $srcdir/configure conftest.file" \
1742 && test "$*" != "X conftest.file $srcdir/configure"; then
1744 # If neither matched, then we have a broken ls. This can happen
1745 # if, for instance, CONFIG_SHELL is bash and it inherits a
1746 # broken ls alias from the environment. This has actually
1747 # happened. Such a system could not be considered "sane".
1748 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1749 alias in your environment" >&5
1750 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1751 alias in your environment" >&2;}
1752 { (exit 1); exit 1; }; }
1755 test "$2" = conftest.file
1761 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1762 Check your system clock" >&5
1763 echo "$as_me: error: newly created file is older than distributed files!
1764 Check your system clock" >&2;}
1765 { (exit 1); exit 1; }; }
1767 echo "$as_me:$LINENO: result: yes" >&5
1768 echo "${ECHO_T}yes" >&6
1769 test "$program_prefix" != NONE &&
1770 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1771 # Use a double $ so make ignores it.
1772 test "$program_suffix" != NONE &&
1773 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1774 # Double any \ or $. echo might interpret backslashes.
1775 # By default was `s,x,x', remove it if useless.
1776 cat <<\_ACEOF >conftest.sed
1777 s/[\\$]/&&/g;s/;s,x,x,$//
1779 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1782 # expand $ac_aux_dir to an absolute path
1783 am_aux_dir=`cd $ac_aux_dir && pwd`
1785 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1786 # Use eval to expand $SHELL
1787 if eval "$MISSING --run true"; then
1788 am_missing_run="$MISSING --run "
1791 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1792 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1795 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1796 # We used to keeping the `.' as first argument, in order to
1797 # allow $(mkdir_p) to be used without argument. As in
1798 # $(mkdir_p) $(somedir)
1799 # where $(somedir) is conditionally defined. However this is wrong
1801 # 1. if the package is installed by a user who cannot write `.'
1802 # make install will fail,
1803 # 2. the above comment should most certainly read
1804 # $(mkdir_p) $(DESTDIR)$(somedir)
1805 # so it does not work when $(somedir) is undefined and
1806 # $(DESTDIR) is not.
1807 # To support the latter case, we have to write
1808 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1809 # so the `.' trick is pointless.
1810 mkdir_p='mkdir -p --'
1812 # On NextStep and OpenStep, the `mkdir' command does not
1813 # recognize any option. It will interpret all options as
1814 # directories to create, and then abort because `.' already
1816 for d in ./-p ./--version;
1818 test -d $d && rmdir $d
1820 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1821 if test -f "$ac_aux_dir/mkinstalldirs"; then
1822 mkdir_p='$(mkinstalldirs)'
1824 mkdir_p='$(install_sh) -d'
1828 for ac_prog in gawk mawk nawk awk
1830 # Extract the first word of "$ac_prog", so it can be a program name with args.
1831 set dummy $ac_prog; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_AWK+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$AWK"; then
1838 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_AWK="$ac_prog"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 if test -n "$AWK"; then
1858 echo "$as_me:$LINENO: result: $AWK" >&5
1859 echo "${ECHO_T}$AWK" >&6
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1865 test -n "$AWK" && break
1868 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1869 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1870 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1871 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 cat >conftest.make <<\_ACEOF
1876 @echo 'ac_maketemp="$(MAKE)"'
1878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1879 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1880 if test -n "$ac_maketemp"; then
1881 eval ac_cv_prog_make_${ac_make}_set=yes
1883 eval ac_cv_prog_make_${ac_make}_set=no
1887 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1888 echo "$as_me:$LINENO: result: yes" >&5
1889 echo "${ECHO_T}yes" >&6
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1894 SET_MAKE="MAKE=${MAKE-make}"
1897 rm -rf .tst 2>/dev/null
1898 mkdir .tst 2>/dev/null
1899 if test -d .tst; then
1904 rmdir .tst 2>/dev/null
1906 # test to see if srcdir already configured
1907 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1908 test -f $srcdir/config.status; then
1909 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1910 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1911 { (exit 1); exit 1; }; }
1914 # test whether we have cygpath
1915 if test -z "$CYGPATH_W"; then
1916 if (cygpath --version) >/dev/null 2>/dev/null; then
1917 CYGPATH_W='cygpath -w'
1924 # Define the identity of the package.
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE "$PACKAGE"
1934 cat >>confdefs.h <<_ACEOF
1935 #define VERSION "$VERSION"
1938 # Some tools Automake needs.
1940 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1943 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1946 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1949 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1952 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1954 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1956 # Installed binaries are usually stripped using `strip' when the user
1957 # run `make install-strip'. However `strip' might not be the right
1958 # tool to use in cross-compilation environments, therefore Automake
1959 # will honor the `STRIP' environment variable to overrule this program.
1960 if test "$cross_compiling" != no; then
1961 if test -n "$ac_tool_prefix"; then
1962 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1963 set dummy ${ac_tool_prefix}strip; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_STRIP+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$STRIP"; then
1970 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 STRIP=$ac_cv_prog_STRIP
1989 if test -n "$STRIP"; then
1990 echo "$as_me:$LINENO: result: $STRIP" >&5
1991 echo "${ECHO_T}$STRIP" >&6
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1998 if test -z "$ac_cv_prog_STRIP"; then
2000 # Extract the first word of "strip", so it can be a program name with args.
2001 set dummy strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$ac_ct_STRIP"; then
2008 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_ac_ct_STRIP="strip"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2027 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2028 if test -n "$ac_ct_STRIP"; then
2029 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2030 echo "${ECHO_T}$ac_ct_STRIP" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2038 STRIP="$ac_cv_prog_STRIP"
2042 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2044 # We need awk for the "check" target. The system "awk" is bad on
2046 # Always define AMTAR for backward compatibility.
2048 AMTAR=${AMTAR-"${am_missing_run}tar"}
2050 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2057 [\\/]* | ?:[\\/]* ) ac_macro_dir=acmacro ;;
2058 *) ac_macro_dir=$srcdir/acmacro ;;
2060 if test -d "$ac_macro_dir"; then :
2062 { { echo "$as_me:$LINENO: error: cannot find macro directory \`acmacro'" >&5
2063 echo "$as_me: error: cannot find macro directory \`acmacro'" >&2;}
2064 { (exit 1); exit 1; }; }
2067 ACLOCAL="$ACLOCAL -I acmacro"
2070 # Check whether --enable-shared or --disable-shared was given.
2071 if test "${enable_shared+set}" = set; then
2072 enableval="$enable_shared"
2073 p=${PACKAGE-default}
2075 yes) enable_shared=yes ;;
2076 no) enable_shared=no ;;
2079 # Look at the argument we got. We use all the common list separators.
2080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2081 for pkg in $enableval; do
2083 if test "X$pkg" = "X$p"; then
2094 # Check whether --enable-static or --disable-static was given.
2095 if test "${enable_static+set}" = set; then
2096 enableval="$enable_static"
2097 p=${PACKAGE-default}
2099 yes) enable_static=yes ;;
2100 no) enable_static=no ;;
2103 # Look at the argument we got. We use all the common list separators.
2104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2105 for pkg in $enableval; do
2107 if test "X$pkg" = "X$p"; then
2118 # Check whether --enable-fast-install or --disable-fast-install was given.
2119 if test "${enable_fast_install+set}" = set; then
2120 enableval="$enable_fast_install"
2121 p=${PACKAGE-default}
2123 yes) enable_fast_install=yes ;;
2124 no) enable_fast_install=no ;;
2126 enable_fast_install=no
2127 # Look at the argument we got. We use all the common list separators.
2128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2129 for pkg in $enableval; do
2131 if test "X$pkg" = "X$p"; then
2132 enable_fast_install=yes
2139 enable_fast_install=yes
2142 DEPDIR="${am__leading_dot}deps"
2144 ac_config_commands="$ac_config_commands depfiles"
2147 am_make=${MAKE-make}
2148 cat > confinc << 'END'
2153 # If we don't find an include directive, just comment out the code.
2154 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2155 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2159 # First try GNU make style include.
2160 echo "include confinc" > confmf
2161 # We grep out `Entering directory' and `Leaving directory'
2162 # messages which can occur if `w' ends up in MAKEFLAGS.
2163 # In particular we don't look at `^make:' because GNU make might
2164 # be invoked under some other name (usually "gmake"), in which
2165 # case it prints its new name instead of `make'.
2166 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2171 # Now try BSD make style include.
2172 if test "$am__include" = "#"; then
2173 echo '.include "confinc"' > confmf
2174 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2175 am__include=.include
2182 echo "$as_me:$LINENO: result: $_am_result" >&5
2183 echo "${ECHO_T}$_am_result" >&6
2184 rm -f confinc confmf
2186 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2187 if test "${enable_dependency_tracking+set}" = set; then
2188 enableval="$enable_dependency_tracking"
2191 if test "x$enable_dependency_tracking" != xno; then
2192 am_depcomp="$ac_aux_dir/depcomp"
2197 if test "x$enable_dependency_tracking" != xno; then
2208 ac_cpp='$CPP $CPPFLAGS'
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212 if test -n "$ac_tool_prefix"; then
2213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2214 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_CC+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 if test -n "$CC"; then
2221 ac_cv_prog_CC="$CC" # Let the user override the test.
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 if test -n "$CC"; then
2241 echo "$as_me:$LINENO: result: $CC" >&5
2242 echo "${ECHO_T}$CC" >&6
2244 echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2249 if test -z "$ac_cv_prog_CC"; then
2251 # Extract the first word of "gcc", so it can be a program name with args.
2252 set dummy gcc; ac_word=$2
2253 echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 if test -n "$ac_ct_CC"; then
2259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268 ac_cv_prog_ac_ct_CC="gcc"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2278 if test -n "$ac_ct_CC"; then
2279 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2280 echo "${ECHO_T}$ac_ct_CC" >&6
2282 echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2291 if test -z "$CC"; then
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}cc; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310 ac_cv_prog_CC="${ac_tool_prefix}cc"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 if test -n "$CC"; then
2321 echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6
2324 echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2329 if test -z "$ac_cv_prog_CC"; then
2331 # Extract the first word of "cc", so it can be a program name with args.
2332 set dummy cc; ac_word=$2
2333 echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 if test -n "$ac_ct_CC"; then
2339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348 ac_cv_prog_ac_ct_CC="cc"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358 if test -n "$ac_ct_CC"; then
2359 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2360 echo "${ECHO_T}$ac_ct_CC" >&6
2362 echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2372 if test -z "$CC"; then
2373 # Extract the first word of "cc", so it can be a program name with args.
2374 set dummy cc; ac_word=$2
2375 echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2377 if test "${ac_cv_prog_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2392 ac_prog_rejected=yes
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 if test $ac_prog_rejected = yes; then
2403 # We found a bogon in the path, so make sure we never use it.
2404 set dummy $ac_cv_prog_CC
2406 if test $# != 0; then
2407 # We chose a different compiler from the bogus one.
2408 # However, it has the same basename, so the bogon will be chosen
2409 # first if we set CC to just the basename; use the full file name.
2411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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
2426 if test -z "$CC"; then
2427 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 if test -n "$CC"; then
2458 echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 test -n "$CC" && break
2468 if test -z "$CC"; then
2472 # Extract the first word of "$ac_prog", so it can be a program name with args.
2473 set dummy $ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$ac_ct_CC"; then
2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_ac_ct_CC="$ac_prog"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499 if test -n "$ac_ct_CC"; then
2500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501 echo "${ECHO_T}$ac_ct_CC" >&6
2503 echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2507 test -n "$ac_ct_CC" && break
2516 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2517 See \`config.log' for more details." >&5
2518 echo "$as_me: error: no acceptable C compiler found in \$PATH
2519 See \`config.log' for more details." >&2;}
2520 { (exit 1); exit 1; }; }
2522 # Provide some information about the compiler.
2523 echo "$as_me:$LINENO:" \
2524 "checking for C compiler version" >&5
2525 ac_compiler=`set X $ac_compile; echo $2`
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2527 (eval $ac_compiler --version </dev/null >&5) 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2532 (eval $ac_compiler -v </dev/null >&5) 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2537 (eval $ac_compiler -V </dev/null >&5) 2>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2557 ac_clean_files_save=$ac_clean_files
2558 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2559 # Try to create an executable without -o first, disregard a.out.
2560 # It will help us diagnose broken compilers, and finding out an intuition
2562 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2563 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2564 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2565 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2566 (eval $ac_link_default) 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 # Find the output, starting from the most likely. This scheme is
2571 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2574 # Be careful to initialize this variable, since it used to be cached.
2575 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2577 # b.out is created by i960 compilers.
2578 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2580 test -f "$ac_file" || continue
2582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2585 # This is the source file.
2588 # We found the default executable, but exeext='' is most
2592 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2593 # FIXME: I believe we export ac_cv_exeext for Libtool,
2594 # but it would be cool to find out if it's true. Does anybody
2595 # maintain Libtool? --akim.
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2606 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: C compiler cannot create executables
2609 See \`config.log' for more details." >&2;}
2610 { (exit 77); exit 77; }; }
2613 ac_exeext=$ac_cv_exeext
2614 echo "$as_me:$LINENO: result: $ac_file" >&5
2615 echo "${ECHO_T}$ac_file" >&6
2617 # Check the compiler produces executables we can run. If not, either
2618 # the compiler is broken, or we cross compile.
2619 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2620 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2621 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2622 # If not cross compiling, check that we can run a simple program.
2623 if test "$cross_compiling" != yes; then
2624 if { ac_try='./$ac_file'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2632 if test "$cross_compiling" = maybe; then
2635 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2636 If you meant to cross compile, use \`--host'.
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: cannot run C compiled programs.
2639 If you meant to cross compile, use \`--host'.
2640 See \`config.log' for more details." >&2;}
2641 { (exit 1); exit 1; }; }
2645 echo "$as_me:$LINENO: result: yes" >&5
2646 echo "${ECHO_T}yes" >&6
2648 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2649 ac_clean_files=$ac_clean_files_save
2650 # Check the compiler produces executables we can run. If not, either
2651 # the compiler is broken, or we cross compile.
2652 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2653 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2654 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2655 echo "${ECHO_T}$cross_compiling" >&6
2657 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2658 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2660 (eval $ac_link) 2>&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; then
2664 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2665 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2666 # work properly (i.e., refer to `conftest.exe'), while it won't with
2668 for ac_file in conftest.exe conftest conftest.*; do
2669 test -f "$ac_file" || continue
2671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2672 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2679 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2680 See \`config.log' for more details." >&5
2681 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2682 See \`config.log' for more details." >&2;}
2683 { (exit 1); exit 1; }; }
2686 rm -f conftest$ac_cv_exeext
2687 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2688 echo "${ECHO_T}$ac_cv_exeext" >&6
2690 rm -f conftest.$ac_ext
2691 EXEEXT=$ac_cv_exeext
2693 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2694 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2695 if test "${ac_cv_objext+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 cat >conftest.$ac_ext <<_ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2713 rm -f conftest.o conftest.obj
2714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715 (eval $ac_compile) 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; then
2719 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2731 See \`config.log' for more details." >&5
2732 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2733 See \`config.log' for more details." >&2;}
2734 { (exit 1); exit 1; }; }
2737 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2739 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2740 echo "${ECHO_T}$ac_cv_objext" >&6
2741 OBJEXT=$ac_cv_objext
2743 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2744 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2745 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 cat >conftest.$ac_ext <<_ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2770 grep -v '^ *+' conftest.er1 >conftest.err
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2798 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2800 GCC=`test $ac_compiler_gnu = yes && echo yes`
2801 ac_test_CFLAGS=${CFLAGS+set}
2802 ac_save_CFLAGS=$CFLAGS
2804 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2805 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2806 if test "${ac_cv_prog_cc_g+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 cat >conftest.$ac_ext <<_ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2828 grep -v '^ *+' conftest.er1 >conftest.err
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2854 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2855 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2856 if test "$ac_test_CFLAGS" = set; then
2857 CFLAGS=$ac_save_CFLAGS
2858 elif test $ac_cv_prog_cc_g = yes; then
2859 if test "$GCC" = yes; then
2865 if test "$GCC" = yes; then
2871 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2872 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2873 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 ac_cv_prog_cc_stdc=no
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2886 #include <sys/types.h>
2887 #include <sys/stat.h>
2888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2889 struct buf { int x; };
2890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2891 static char *e (p, i)
2897 static char *f (char * (*g) (char **, int), char **p, ...)
2902 s = g (p, va_arg (v,int));
2907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2908 function prototypes and stuff, but not '\xHH' hex character constants.
2909 These don't provoke an error unfortunately, instead are silently treated
2910 as 'x'. The following induces an error, until -std1 is added to get
2911 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2912 array size at least. It's necessary to write '\x00'==0 to get something
2913 that's true only with -std1. */
2914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2916 int test (int i, double x);
2917 struct s1 {int (*f) (int a);};
2918 struct s2 {int (*f) (double a);};
2919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2925 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2930 # Don't try gcc -ansi; that turns off useful extensions and
2931 # breaks some systems' header files.
2932 # AIX -qlanglvl=ansi
2933 # Ultrix and OSF/1 -std1
2934 # HP-UX 10.20 and later -Ae
2935 # HP-UX older versions -Aa -D_HPUX_SOURCE
2936 # SVR4 -Xc -D__EXTENSIONS__
2937 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2939 CC="$ac_save_CC $ac_arg"
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>conftest.er1
2944 grep -v '^ *+' conftest.er1 >conftest.err
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try='test -s conftest.$ac_objext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 ac_cv_prog_cc_stdc=$ac_arg
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2968 rm -f conftest.err conftest.$ac_objext
2970 rm -f conftest.$ac_ext conftest.$ac_objext
2975 case "x$ac_cv_prog_cc_stdc" in
2977 echo "$as_me:$LINENO: result: none needed" >&5
2978 echo "${ECHO_T}none needed" >&6 ;;
2980 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2981 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2982 CC="$CC $ac_cv_prog_cc_stdc" ;;
2985 # Some people use a C++ compiler to compile C. Since we use `exit',
2986 # in C++ we need to declare it. In case someone uses the same compiler
2987 # for both compiling C and C++ we need to have the C++ compiler decide
2988 # the declaration of exit, since it's the most demanding environment.
2989 cat >conftest.$ac_ext <<_ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; } &&
3009 { ac_try='test -s conftest.$ac_objext'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 for ac_declaration in \
3017 'extern "C" void std::exit (int) throw (); using std::exit;' \
3018 'extern "C" void std::exit (int); using std::exit;' \
3019 'extern "C" void exit (int) throw ();' \
3020 'extern "C" void exit (int);' \
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3083 rm -f conftest.$ac_objext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085 (eval $ac_compile) 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3113 if test -n "$ac_declaration"; then
3114 echo '#ifdef __cplusplus' >>confdefs.h
3115 echo $ac_declaration >>confdefs.h
3116 echo '#endif' >>confdefs.h
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 depcc="$CC" am_compiler_list=
3133 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3134 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3135 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3139 # We make a subdir and do the tests there. Otherwise we can end up
3140 # making bogus files that we don't know about and never remove. For
3141 # instance it was reported that on HP-UX the gcc test will end up
3142 # making a dummy file named `D' -- because `-MD' means `put the output
3145 # Copy depcomp to subdir because otherwise we won't find it if we're
3146 # using a relative directory.
3147 cp "$am_depcomp" conftest.dir
3149 # We will build objects and dependencies in a subdirectory because
3150 # it helps to detect inapplicable dependency modes. For instance
3151 # both Tru64's cc and ICC support -MD to output dependencies as a
3152 # side effect of compilation, but ICC will put the dependencies in
3153 # the current directory while Tru64 will put them in the object
3157 am_cv_CC_dependencies_compiler_type=none
3158 if test "$am_compiler_list" = ""; then
3159 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3161 for depmode in $am_compiler_list; do
3162 # Setup a source with many dependencies, because some compilers
3163 # like to wrap large dependency lists on column 80 (with \), and
3164 # we should not choose a depcomp mode which is confused by this.
3166 # We need to recreate these files for each test, as the compiler may
3167 # overwrite some of them when testing with obscure command lines.
3168 # This happens at least with the AIX C compiler.
3170 for i in 1 2 3 4 5 6; do
3171 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3172 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3173 # Solaris 8's {/usr,}/bin/sh.
3174 touch sub/conftst$i.h
3176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3180 # after this tag, mechanisms are not by side-effect, so they'll
3181 # only be used when explicitly requested
3182 if test "x$enable_dependency_tracking" = xyes; then
3190 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3191 # mode. It turns out that the SunPro C++ compiler does not properly
3192 # handle `-M -o', and we need to detect this.
3193 if depmode=$depmode \
3194 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3195 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3196 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3197 >/dev/null 2>conftest.err &&
3198 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3199 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3200 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3201 # icc doesn't choke on unknown options, it will just issue warnings
3202 # or remarks (even with -Werror). So we grep stderr for any message
3203 # that says an option was ignored or not supported.
3204 # When given -MP, icc 7.0 and 7.1 complain thusly:
3205 # icc: Command line warning: ignoring option '-M'; no argument required
3206 # The diagnosis changed in icc 8.0:
3207 # icc: Command line remark: option '-MP' not supported
3208 if (grep 'ignoring option' conftest.err ||
3209 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3210 am_cv_CC_dependencies_compiler_type=$depmode
3219 am_cv_CC_dependencies_compiler_type=none
3223 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3224 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3225 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3230 test "x$enable_dependency_tracking" != xno \
3231 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3233 am__fastdepCC_FALSE='#'
3235 am__fastdepCC_TRUE='#'
3236 am__fastdepCC_FALSE=
3240 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3241 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3242 if test "${lt_cv_path_SED+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 # Loop through the user's path and test for sed and gsed.
3246 # Then use that list of sed's as ones to test for truncation.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 test -z "$as_dir" && as_dir=.
3252 for lt_ac_prog in sed gsed; do
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3255 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3262 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3263 # along with /bin/sed that truncates output.
3264 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3265 test ! -f $lt_ac_sed && continue
3266 cat /dev/null > conftest.in
3268 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3269 # Check for GNU sed and select it if it is found.
3270 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3271 lt_cv_path_SED=$lt_ac_sed
3275 cat conftest.in conftest.in >conftest.tmp
3276 mv conftest.tmp conftest.in
3277 cp conftest.in conftest.nl
3279 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3280 cmp -s conftest.out conftest.nl || break
3281 # 10000 chars as input seems more than enough
3282 test $lt_ac_count -gt 10 && break
3283 lt_ac_count=`expr $lt_ac_count + 1`
3284 if test $lt_ac_count -gt $lt_ac_max; then
3285 lt_ac_max=$lt_ac_count
3286 lt_cv_path_SED=$lt_ac_sed
3294 echo "$as_me:$LINENO: result: $SED" >&5
3295 echo "${ECHO_T}$SED" >&6
3297 echo "$as_me:$LINENO: checking for egrep" >&5
3298 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3299 if test "${ac_cv_prog_egrep+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3303 then ac_cv_prog_egrep='grep -E'
3304 else ac_cv_prog_egrep='egrep'
3307 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3308 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3309 EGREP=$ac_cv_prog_egrep
3313 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3314 if test "${with_gnu_ld+set}" = set; then
3315 withval="$with_gnu_ld"
3316 test "$withval" = no || with_gnu_ld=yes
3321 if test "$GCC" = yes; then
3322 # Check if gcc -print-prog-name=ld gives a path.
3323 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3324 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3327 # gcc leaves a trailing carriage return which upsets mingw
3328 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3330 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3333 # Accept absolute paths.
3335 re_direlt='/[^/][^/]*/\.\./'
3336 # Canonicalize the pathname of ld
3337 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3338 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3339 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3341 test -z "$LD" && LD="$ac_prog"
3344 # If it fails, then pretend we aren't using GCC.
3348 # If it is relative, then search for the first ld in PATH.
3352 elif test "$with_gnu_ld" = yes; then
3353 echo "$as_me:$LINENO: checking for GNU ld" >&5
3354 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3356 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3357 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3359 if test "${lt_cv_path_LD+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 if test -z "$LD"; then
3363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3364 for ac_dir in $PATH; do
3366 test -z "$ac_dir" && ac_dir=.
3367 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3368 lt_cv_path_LD="$ac_dir/$ac_prog"
3369 # Check to see if the program is GNU ld. I'd rather use --version,
3370 # but apparently some variants of GNU ld only accept -v.
3371 # Break only if it was the GNU/non-GNU ld that we prefer.
3372 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3373 *GNU* | *'with BFD'*)
3374 test "$with_gnu_ld" != no && break
3377 test "$with_gnu_ld" != yes && break
3384 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3389 if test -n "$LD"; then
3390 echo "$as_me:$LINENO: result: $LD" >&5
3391 echo "${ECHO_T}$LD" >&6
3393 echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6
3396 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3397 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3398 { (exit 1); exit 1; }; }
3399 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3400 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3401 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3405 case `$LD -v 2>&1 </dev/null` in
3406 *GNU* | *'with BFD'*)
3407 lt_cv_prog_gnu_ld=yes
3410 lt_cv_prog_gnu_ld=no
3414 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3415 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3416 with_gnu_ld=$lt_cv_prog_gnu_ld
3419 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3420 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3421 if test "${lt_cv_ld_reload_flag+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 lt_cv_ld_reload_flag='-r'
3426 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3427 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3428 reload_flag=$lt_cv_ld_reload_flag
3429 case $reload_flag in
3431 *) reload_flag=" $reload_flag" ;;
3433 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3436 if test "$GCC" = yes; then
3437 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3444 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3445 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3446 if test "${lt_cv_path_NM+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 if test -n "$NM"; then
3450 # Let the user override the test.
3453 lt_nm_to_check="${ac_tool_prefix}nm"
3454 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3455 lt_nm_to_check="$lt_nm_to_check nm"
3457 for lt_tmp_nm in $lt_nm_to_check; do
3458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3459 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3461 test -z "$ac_dir" && ac_dir=.
3462 tmp_nm="$ac_dir/$lt_tmp_nm"
3463 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3464 # Check to see if the nm accepts a BSD-compat flag.
3465 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3466 # nm: unknown option "B" ignored
3467 # Tru64's nm complains that /dev/null is an invalid object file
3468 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3469 */dev/null* | *'Invalid file or object type'*)
3470 lt_cv_path_NM="$tmp_nm -B"
3474 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3476 lt_cv_path_NM="$tmp_nm -p"
3480 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3481 continue # so that we can try to find one that supports BSD flags
3490 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3493 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3494 echo "${ECHO_T}$lt_cv_path_NM" >&6
3497 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3498 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3500 if test "$LN_S" = "ln -s"; then
3501 echo "$as_me:$LINENO: result: yes" >&5
3502 echo "${ECHO_T}yes" >&6
3504 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3505 echo "${ECHO_T}no, using $LN_S" >&6
3508 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3509 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3510 if test "${lt_cv_deplibs_check_method+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 lt_cv_file_magic_cmd='$MAGIC_CMD'
3514 lt_cv_file_magic_test_file=
3515 lt_cv_deplibs_check_method='unknown'
3516 # Need to set the preceding variable on all platforms that support
3517 # interlibrary dependencies.
3518 # 'none' -- dependencies not supported.
3519 # `unknown' -- same as none, but documents that we really don't know.
3520 # 'pass_all' -- all dependencies passed with no checks.
3521 # 'test_compile' -- check by making test program.
3522 # 'file_magic [[regex]]' -- check by looking for files in library path
3523 # which responds to the $file_magic_cmd with a given extended regex.
3524 # If you have `file' or equivalent on your system and you're not sure
3525 # whether `pass_all' will *always* work, you probably want this one.
3529 lt_cv_deplibs_check_method=pass_all
3533 lt_cv_deplibs_check_method=pass_all
3537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3538 lt_cv_file_magic_cmd='/usr/bin/file -L'
3539 lt_cv_file_magic_test_file=/shlib/libc.so
3543 # func_win32_libid is a shell function defined in ltmain.sh
3544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3545 lt_cv_file_magic_cmd='func_win32_libid'
3549 # Base MSYS/MinGW do not provide the 'file' command needed by
3550 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3551 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3552 lt_cv_file_magic_cmd='$OBJDUMP -f'
3555 darwin* | rhapsody*)
3556 lt_cv_deplibs_check_method=pass_all
3559 freebsd* | kfreebsd*-gnu | dragonfly*)
3560 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3563 # Not sure whether the presence of OpenBSD here was a mistake.
3564 # Let's accept both of them until this is cleared up.
3565 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3566 lt_cv_file_magic_cmd=/usr/bin/file
3567 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3571 lt_cv_deplibs_check_method=pass_all
3576 lt_cv_deplibs_check_method=pass_all
3579 hpux10.20* | hpux11*)
3580 lt_cv_file_magic_cmd=/usr/bin/file
3583 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3584 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3587 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]'
3588 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3592 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3598 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3602 irix5* | irix6* | nonstopux*)
3604 *-32|*"-32 ") libmagic=32-bit;;
3605 *-n32|*"-n32 ") libmagic=N32;;
3606 *-64|*"-64 ") libmagic=64-bit;;
3607 *) libmagic=never-match;;
3609 lt_cv_deplibs_check_method=pass_all
3612 # This must be Linux ELF.
3614 lt_cv_deplibs_check_method=pass_all
3617 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3618 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3627 lt_cv_file_magic_cmd=/usr/bin/file
3628 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3632 lt_cv_deplibs_check_method=unknown
3636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3643 osf3* | osf4* | osf5*)
3644 lt_cv_deplibs_check_method=pass_all
3648 lt_cv_deplibs_check_method=pass_all
3652 case $host_vendor in
3654 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]'
3655 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3658 lt_cv_deplibs_check_method=pass_all
3661 lt_cv_file_magic_cmd='/bin/file'
3662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3665 lt_cv_file_magic_cmd='/bin/file'
3666 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3667 lt_cv_file_magic_test_file=/lib/libc.so
3670 lt_cv_deplibs_check_method=pass_all
3673 lt_cv_deplibs_check_method=pass_all
3678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3679 lt_cv_deplibs_check_method=pass_all
3684 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3685 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3686 file_magic_cmd=$lt_cv_file_magic_cmd
3687 deplibs_check_method=$lt_cv_deplibs_check_method
3688 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3693 # If no C compiler was specified, use CC.
3696 # If no C compiler flags were specified, use CFLAGS.
3697 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3699 # Allow CC to be a program name with arguments.
3703 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3704 if test "${enable_libtool_lock+set}" = set; then
3705 enableval="$enable_libtool_lock"
3708 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3710 # Some flags need to be propagated to the compiler or linker for good
3714 # Find out which ABI we are using.
3715 echo 'int i;' > conftest.$ac_ext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; then
3721 case `/usr/bin/file conftest.$ac_objext` in
3733 # Find out which ABI we are using.
3734 echo '#line 3734 "configure"' > conftest.$ac_ext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736 (eval $ac_compile) 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; then
3740 if test "$lt_cv_prog_gnu_ld" = yes; then
3741 case `/usr/bin/file conftest.$ac_objext` in
3743 LD="${LD-ld} -melf32bsmip"
3746 LD="${LD-ld} -melf32bmipn32"
3749 LD="${LD-ld} -melf64bmip"
3753 case `/usr/bin/file conftest.$ac_objext` in
3769 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3770 # Find out which ABI we are using.
3771 echo 'int i;' > conftest.$ac_ext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773 (eval $ac_compile) 2>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; then
3777 case `/usr/bin/file conftest.o` in
3781 LD="${LD-ld} -m elf_i386"
3783 ppc64-*linux*|powerpc64-*linux*)
3784 LD="${LD-ld} -m elf32ppclinux"
3787 LD="${LD-ld} -m elf_s390"
3790 LD="${LD-ld} -m elf32_sparc"
3797 LD="${LD-ld} -m elf_x86_64"
3799 ppc*-*linux*|powerpc*-*linux*)
3800 LD="${LD-ld} -m elf64ppc"
3803 LD="${LD-ld} -m elf64_s390"
3806 LD="${LD-ld} -m elf64_sparc"
3816 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3817 SAVE_CFLAGS="$CFLAGS"
3818 CFLAGS="$CFLAGS -belf"
3819 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3820 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3821 if test "${lt_cv_cc_needs_belf+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1 >conftest.err
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 lt_cv_cc_needs_belf=yes
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 lt_cv_cc_needs_belf=no
3873 rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3883 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3884 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3885 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3886 CFLAGS="$SAVE_CFLAGS"
3890 # Find out which ABI we are using.
3891 echo 'int i;' > conftest.$ac_ext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; then
3897 case `/usr/bin/file conftest.o` in
3899 case $lt_cv_prog_gnu_ld in
3900 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3901 *) LD="${LD-ld} -64" ;;
3909 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 if test -n "$DLLTOOL"; then
3919 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 DLLTOOL=$ac_cv_prog_DLLTOOL
3938 if test -n "$DLLTOOL"; then
3939 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3940 echo "${ECHO_T}$DLLTOOL" >&6
3942 echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3947 if test -z "$ac_cv_prog_DLLTOOL"; then
3948 ac_ct_DLLTOOL=$DLLTOOL
3949 # Extract the first word of "dlltool", so it can be a program name with args.
3950 set dummy dlltool; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if test -n "$ac_ct_DLLTOOL"; then
3957 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3976 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3977 if test -n "$ac_ct_DLLTOOL"; then
3978 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3979 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3981 echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6
3985 DLLTOOL=$ac_ct_DLLTOOL
3987 DLLTOOL="$ac_cv_prog_DLLTOOL"
3990 if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}as; ac_word=$2
3993 echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_AS+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 if test -n "$AS"; then
3999 ac_cv_prog_AS="$AS" # Let the user override the test.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_prog_AS="${ac_tool_prefix}as"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 if test -n "$AS"; then
4019 echo "$as_me:$LINENO: result: $AS" >&5
4020 echo "${ECHO_T}$AS" >&6
4022 echo "$as_me:$LINENO: result: no" >&5
4023 echo "${ECHO_T}no" >&6
4027 if test -z "$ac_cv_prog_AS"; then
4029 # Extract the first word of "as", so it can be a program name with args.
4030 set dummy as; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if test -n "$ac_ct_AS"; then
4037 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_ac_ct_AS="as"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4056 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4057 if test -n "$ac_ct_AS"; then
4058 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4059 echo "${ECHO_T}$ac_ct_AS" >&6
4061 echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4070 if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4073 echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 if test -n "$OBJDUMP"; then
4079 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 OBJDUMP=$ac_cv_prog_OBJDUMP
4098 if test -n "$OBJDUMP"; then
4099 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4100 echo "${ECHO_T}$OBJDUMP" >&6
4102 echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4107 if test -z "$ac_cv_prog_OBJDUMP"; then
4108 ac_ct_OBJDUMP=$OBJDUMP
4109 # Extract the first word of "objdump", so it can be a program name with args.
4110 set dummy objdump; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test -n "$ac_ct_OBJDUMP"; then
4117 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4136 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4137 if test -n "$ac_ct_OBJDUMP"; then
4138 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4139 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4145 OBJDUMP=$ac_ct_OBJDUMP
4147 OBJDUMP="$ac_cv_prog_OBJDUMP"
4154 need_locks="$enable_libtool_lock"
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4163 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4164 # On Suns, sometimes $CPP names a directory.
4165 if test -n "$CPP" && test -d "$CPP"; then
4168 if test -z "$CPP"; then
4169 if test "${ac_cv_prog_CPP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 # Double quotes because CPP needs to be expanded
4173 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4176 for ac_c_preproc_warn_flag in '' yes
4178 # Use a header file that comes with gcc, so configuring glibc
4179 # with a fresh cross-compiler works.
4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 # <limits.h> exists even on freestanding compilers.
4182 # On the NeXT, cc -E runs the code through the compiler's parser,
4183 # not just through cpp. "Syntax error" is here to catch this case.
4184 cat >conftest.$ac_ext <<_ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4191 # include <limits.h>
4193 # include <assert.h>
4197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4200 grep -v '^ *+' conftest.er1 >conftest.err
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } >/dev/null; then
4205 if test -s conftest.err; then
4206 ac_cpp_err=$ac_c_preproc_warn_flag
4207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4214 if test -z "$ac_cpp_err"; then
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 # Broken: fails on valid input.
4223 rm -f conftest.err conftest.$ac_ext
4225 # OK, works on sane cases. Now check whether non-existent headers
4226 # can be detected and how.
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 #include <ac_nonexistent.h>
4235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4238 grep -v '^ *+' conftest.er1 >conftest.err
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } >/dev/null; then
4243 if test -s conftest.err; then
4244 ac_cpp_err=$ac_c_preproc_warn_flag
4245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4252 if test -z "$ac_cpp_err"; then
4253 # Broken: success on invalid input.
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 # Passes both tests.
4263 rm -f conftest.err conftest.$ac_ext
4266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4267 rm -f conftest.err conftest.$ac_ext
4268 if $ac_preproc_ok; then
4280 echo "$as_me:$LINENO: result: $CPP" >&5
4281 echo "${ECHO_T}$CPP" >&6
4283 for ac_c_preproc_warn_flag in '' yes
4285 # Use a header file that comes with gcc, so configuring glibc
4286 # with a fresh cross-compiler works.
4287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 # <limits.h> exists even on freestanding compilers.
4289 # On the NeXT, cc -E runs the code through the compiler's parser,
4290 # not just through cpp. "Syntax error" is here to catch this case.
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4298 # include <limits.h>
4300 # include <assert.h>
4304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4307 grep -v '^ *+' conftest.er1 >conftest.err
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } >/dev/null; then
4312 if test -s conftest.err; then
4313 ac_cpp_err=$ac_c_preproc_warn_flag
4314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4321 if test -z "$ac_cpp_err"; then
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4327 # Broken: fails on valid input.
4330 rm -f conftest.err conftest.$ac_ext
4332 # OK, works on sane cases. Now check whether non-existent headers
4333 # can be detected and how.
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <ac_nonexistent.h>
4342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev/null; then
4350 if test -s conftest.err; then
4351 ac_cpp_err=$ac_c_preproc_warn_flag
4352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4359 if test -z "$ac_cpp_err"; then
4360 # Broken: success on invalid input.
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 # Passes both tests.
4370 rm -f conftest.err conftest.$ac_ext
4373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4374 rm -f conftest.err conftest.$ac_ext
4375 if $ac_preproc_ok; then
4378 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4379 See \`config.log' for more details." >&5
4380 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4381 See \`config.log' for more details." >&2;}
4382 { (exit 1); exit 1; }; }
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4394 if test "${ac_cv_header_stdc+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4416 rm -f conftest.$ac_objext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>conftest.er1
4420 grep -v '^ *+' conftest.er1 >conftest.err
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } &&
4425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_cv_header_stdc=yes
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 ac_cv_header_stdc=no
4444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446 if test $ac_cv_header_stdc = yes; then
4447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4458 $EGREP "memchr" >/dev/null 2>&1; then
4461 ac_cv_header_stdc=no
4467 if test $ac_cv_header_stdc = yes; then
4468 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4469 cat >conftest.$ac_ext <<_ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479 $EGREP "free" >/dev/null 2>&1; then
4482 ac_cv_header_stdc=no
4488 if test $ac_cv_header_stdc = yes; then
4489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4490 if test "$cross_compiling" = yes; then
4493 cat >conftest.$ac_ext <<_ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4500 #if ((' ' & 0x0FF) == 0x020)
4501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4504 # define ISLOWER(c) \
4505 (('a' <= (c) && (c) <= 'i') \
4506 || ('j' <= (c) && (c) <= 'r') \
4507 || ('s' <= (c) && (c) <= 'z'))
4508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4516 for (i = 0; i < 256; i++)
4517 if (XOR (islower (i), ISLOWER (i))
4518 || toupper (i) != TOUPPER (i))
4523 rm -f conftest$ac_exeext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4525 (eval $ac_link) 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4536 echo "$as_me: program exited with status $ac_status" >&5
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4541 ac_cv_header_stdc=no
4543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4547 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4548 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4549 if test $ac_cv_header_stdc = yes; then
4551 cat >>confdefs.h <<\_ACEOF
4552 #define STDC_HEADERS 1
4557 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4567 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4568 inttypes.h stdint.h unistd.h
4570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4571 echo "$as_me:$LINENO: checking for $ac_header" >&5
4572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 cat >conftest.$ac_ext <<_ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 $ac_includes_default
4584 #include <$ac_header>
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4590 grep -v '^ *+' conftest.er1 >conftest.err
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 eval "$as_ac_Header=yes"
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 eval "$as_ac_Header=no"
4614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4619 cat >>confdefs.h <<_ACEOF
4620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4629 for ac_header in dlfcn.h
4631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4633 echo "$as_me:$LINENO: checking for $ac_header" >&5
4634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4641 # Is the header compilable?
4642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 $ac_includes_default
4651 #include <$ac_header>
4653 rm -f conftest.$ac_objext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_header_compiler=yes
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 ac_header_compiler=no
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4683 echo "${ECHO_T}$ac_header_compiler" >&6
4685 # Is the header present?
4686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4688 cat >conftest.$ac_ext <<_ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 #include <$ac_header>
4696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev/null; then
4704 if test -s conftest.err; then
4705 ac_cpp_err=$ac_c_preproc_warn_flag
4706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4713 if test -z "$ac_cpp_err"; then
4714 ac_header_preproc=yes
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 ac_header_preproc=no
4721 rm -f conftest.err conftest.$ac_ext
4722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4723 echo "${ECHO_T}$ac_header_preproc" >&6
4725 # So? What about this header?
4726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4732 ac_header_preproc=yes
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4749 ## -------------------------------------------------- ##
4750 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
4751 ## -------------------------------------------------- ##
4754 sed "s/^/$as_me: WARNING: /" >&2
4757 echo "$as_me:$LINENO: checking for $ac_header" >&5
4758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 eval "$as_ac_Header=\$ac_header_preproc"
4764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769 cat >>confdefs.h <<_ACEOF
4770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4778 ac_cpp='$CXXCPP $CPPFLAGS'
4779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4782 if test -n "$ac_tool_prefix"; then
4783 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_CXX+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 if test -n "$CXX"; then
4793 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 if test -n "$CXX"; then
4813 echo "$as_me:$LINENO: result: $CXX" >&5
4814 echo "${ECHO_T}$CXX" >&6
4816 echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 test -n "$CXX" && break
4823 if test -z "$CXX"; then
4825 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4827 # Extract the first word of "$ac_prog", so it can be a program name with args.
4828 set dummy $ac_prog; ac_word=$2
4829 echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4831 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 if test -n "$ac_ct_CXX"; then
4835 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4844 ac_cv_prog_ac_ct_CXX="$ac_prog"
4845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4854 if test -n "$ac_ct_CXX"; then
4855 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4856 echo "${ECHO_T}$ac_ct_CXX" >&6
4858 echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6
4862 test -n "$ac_ct_CXX" && break
4864 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4870 # Provide some information about the compiler.
4871 echo "$as_me:$LINENO:" \
4872 "checking for C++ compiler version" >&5
4873 ac_compiler=`set X $ac_compile; echo $2`
4874 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4875 (eval $ac_compiler --version </dev/null >&5) 2>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }
4879 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4880 (eval $ac_compiler -v </dev/null >&5) 2>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }
4884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4885 (eval $ac_compiler -V </dev/null >&5) 2>&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }
4890 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4891 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4892 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 cat >conftest.$ac_ext <<_ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4913 rm -f conftest.$ac_objext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4945 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4946 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4947 GXX=`test $ac_compiler_gnu = yes && echo yes`
4948 ac_test_CXXFLAGS=${CXXFLAGS+set}
4949 ac_save_CXXFLAGS=$CXXFLAGS
4951 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4952 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4953 if test "${ac_cv_prog_cxx_g+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4971 rm -f conftest.$ac_objext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973 (eval $ac_compile) 2>conftest.er1
4975 grep -v '^ *+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try='test -s conftest.$ac_objext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_prog_cxx_g=yes
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5001 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5002 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5003 if test "$ac_test_CXXFLAGS" = set; then
5004 CXXFLAGS=$ac_save_CXXFLAGS
5005 elif test $ac_cv_prog_cxx_g = yes; then
5006 if test "$GXX" = yes; then
5012 if test "$GXX" = yes; then
5018 for ac_declaration in \
5020 'extern "C" void std::exit (int) throw (); using std::exit;' \
5021 'extern "C" void std::exit (int); using std::exit;' \
5022 'extern "C" void exit (int) throw ();' \
5023 'extern "C" void exit (int);' \
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5042 rm -f conftest.$ac_objext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 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); } &&
5051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; } &&
5057 { ac_try='test -s conftest.$ac_objext'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; } &&
5101 { ac_try='test -s conftest.$ac_objext'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5116 if test -n "$ac_declaration"; then
5117 echo '#ifdef __cplusplus' >>confdefs.h
5118 echo $ac_declaration >>confdefs.h
5119 echo '#endif' >>confdefs.h
5123 ac_cpp='$CXXCPP $CPPFLAGS'
5124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5128 depcc="$CXX" am_compiler_list=
5130 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5131 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5132 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5136 # We make a subdir and do the tests there. Otherwise we can end up
5137 # making bogus files that we don't know about and never remove. For
5138 # instance it was reported that on HP-UX the gcc test will end up
5139 # making a dummy file named `D' -- because `-MD' means `put the output
5142 # Copy depcomp to subdir because otherwise we won't find it if we're
5143 # using a relative directory.
5144 cp "$am_depcomp" conftest.dir
5146 # We will build objects and dependencies in a subdirectory because
5147 # it helps to detect inapplicable dependency modes. For instance
5148 # both Tru64's cc and ICC support -MD to output dependencies as a
5149 # side effect of compilation, but ICC will put the dependencies in
5150 # the current directory while Tru64 will put them in the object
5154 am_cv_CXX_dependencies_compiler_type=none
5155 if test "$am_compiler_list" = ""; then
5156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5158 for depmode in $am_compiler_list; do
5159 # Setup a source with many dependencies, because some compilers
5160 # like to wrap large dependency lists on column 80 (with \), and
5161 # we should not choose a depcomp mode which is confused by this.
5163 # We need to recreate these files for each test, as the compiler may
5164 # overwrite some of them when testing with obscure command lines.
5165 # This happens at least with the AIX C compiler.
5167 for i in 1 2 3 4 5 6; do
5168 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5169 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5170 # Solaris 8's {/usr,}/bin/sh.
5171 touch sub/conftst$i.h
5173 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5177 # after this tag, mechanisms are not by side-effect, so they'll
5178 # only be used when explicitly requested
5179 if test "x$enable_dependency_tracking" = xyes; then
5187 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5188 # mode. It turns out that the SunPro C++ compiler does not properly
5189 # handle `-M -o', and we need to detect this.
5190 if depmode=$depmode \
5191 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5192 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5193 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5194 >/dev/null 2>conftest.err &&
5195 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5196 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5197 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5198 # icc doesn't choke on unknown options, it will just issue warnings
5199 # or remarks (even with -Werror). So we grep stderr for any message
5200 # that says an option was ignored or not supported.
5201 # When given -MP, icc 7.0 and 7.1 complain thusly:
5202 # icc: Command line warning: ignoring option '-M'; no argument required
5203 # The diagnosis changed in icc 8.0:
5204 # icc: Command line remark: option '-MP' not supported
5205 if (grep 'ignoring option' conftest.err ||
5206 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5207 am_cv_CXX_dependencies_compiler_type=$depmode
5216 am_cv_CXX_dependencies_compiler_type=none
5220 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5221 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5222 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5227 test "x$enable_dependency_tracking" != xno \
5228 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5229 am__fastdepCXX_TRUE=
5230 am__fastdepCXX_FALSE='#'
5232 am__fastdepCXX_TRUE='#'
5233 am__fastdepCXX_FALSE=
5239 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5240 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5241 (test "X$CXX" != "Xg++"))) ; then
5243 ac_cpp='$CXXCPP $CPPFLAGS'
5244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5247 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5248 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5249 if test -z "$CXXCPP"; then
5250 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 # Double quotes because CXXCPP needs to be expanded
5254 for CXXCPP in "$CXX -E" "/lib/cpp"
5257 for ac_cxx_preproc_warn_flag in '' yes
5259 # Use a header file that comes with gcc, so configuring glibc
5260 # with a fresh cross-compiler works.
5261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5262 # <limits.h> exists even on freestanding compilers.
5263 # On the NeXT, cc -E runs the code through the compiler's parser,
5264 # not just through cpp. "Syntax error" is here to catch this case.
5265 cat >conftest.$ac_ext <<_ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5272 # include <limits.h>
5274 # include <assert.h>
5278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5281 grep -v '^ *+' conftest.er1 >conftest.err
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } >/dev/null; then
5286 if test -s conftest.err; then
5287 ac_cpp_err=$ac_cxx_preproc_warn_flag
5288 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5295 if test -z "$ac_cpp_err"; then
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5301 # Broken: fails on valid input.
5304 rm -f conftest.err conftest.$ac_ext
5306 # OK, works on sane cases. Now check whether non-existent headers
5307 # can be detected and how.
5308 cat >conftest.$ac_ext <<_ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #include <ac_nonexistent.h>
5316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } >/dev/null; then
5324 if test -s conftest.err; then
5325 ac_cpp_err=$ac_cxx_preproc_warn_flag
5326 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5333 if test -z "$ac_cpp_err"; then
5334 # Broken: success on invalid input.
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 # Passes both tests.
5344 rm -f conftest.err conftest.$ac_ext
5347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5348 rm -f conftest.err conftest.$ac_ext
5349 if $ac_preproc_ok; then
5354 ac_cv_prog_CXXCPP=$CXXCPP
5357 CXXCPP=$ac_cv_prog_CXXCPP
5359 ac_cv_prog_CXXCPP=$CXXCPP
5361 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5362 echo "${ECHO_T}$CXXCPP" >&6
5364 for ac_cxx_preproc_warn_flag in '' yes
5366 # Use a header file that comes with gcc, so configuring glibc
5367 # with a fresh cross-compiler works.
5368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369 # <limits.h> exists even on freestanding compilers.
5370 # On the NeXT, cc -E runs the code through the compiler's parser,
5371 # not just through cpp. "Syntax error" is here to catch this case.
5372 cat >conftest.$ac_ext <<_ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5379 # include <limits.h>
5381 # include <assert.h>
5385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5388 grep -v '^ *+' conftest.er1 >conftest.err
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } >/dev/null; then
5393 if test -s conftest.err; then
5394 ac_cpp_err=$ac_cxx_preproc_warn_flag
5395 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5402 if test -z "$ac_cpp_err"; then
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 # Broken: fails on valid input.
5411 rm -f conftest.err conftest.$ac_ext
5413 # OK, works on sane cases. Now check whether non-existent headers
5414 # can be detected and how.
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <ac_nonexistent.h>
5423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } >/dev/null; then
5431 if test -s conftest.err; then
5432 ac_cpp_err=$ac_cxx_preproc_warn_flag
5433 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5440 if test -z "$ac_cpp_err"; then
5441 # Broken: success on invalid input.
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 # Passes both tests.
5451 rm -f conftest.err conftest.$ac_ext
5454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5455 rm -f conftest.err conftest.$ac_ext
5456 if $ac_preproc_ok; then
5459 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5460 See \`config.log' for more details." >&5
5461 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5462 See \`config.log' for more details." >&2;}
5463 { (exit 1); exit 1; }; }
5467 ac_cpp='$CXXCPP $CPPFLAGS'
5468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5476 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5477 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5479 if test -n "$ac_tool_prefix"; then
5480 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5484 echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486 if test "${ac_cv_prog_F77+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 if test -n "$F77"; then
5490 ac_cv_prog_F77="$F77" # Let the user override the test.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 if test -n "$F77"; then
5510 echo "$as_me:$LINENO: result: $F77" >&5
5511 echo "${ECHO_T}$F77" >&6
5513 echo "$as_me:$LINENO: result: no" >&5
5514 echo "${ECHO_T}no" >&6
5517 test -n "$F77" && break
5520 if test -z "$F77"; then
5522 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5524 # Extract the first word of "$ac_prog", so it can be a program name with args.
5525 set dummy $ac_prog; ac_word=$2
5526 echo "$as_me:$LINENO: checking for $ac_word" >&5
5527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5528 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 if test -n "$ac_ct_F77"; then
5532 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_ac_ct_F77="$ac_prog"
5542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5551 if test -n "$ac_ct_F77"; then
5552 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5553 echo "${ECHO_T}$ac_ct_F77" >&6
5555 echo "$as_me:$LINENO: result: no" >&5
5556 echo "${ECHO_T}no" >&6
5559 test -n "$ac_ct_F77" && break
5566 # Provide some information about the compiler.
5567 echo "$as_me:5567:" \
5568 "checking for Fortran 77 compiler version" >&5
5569 ac_compiler=`set X $ac_compile; echo $2`
5570 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5571 (eval $ac_compiler --version </dev/null >&5) 2>&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }
5575 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5576 (eval $ac_compiler -v </dev/null >&5) 2>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }
5580 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5581 (eval $ac_compiler -V </dev/null >&5) 2>&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }
5587 # If we don't use `.F' as extension, the preprocessor is not run on the
5588 # input file. (Note that this only needs to work for GNU compilers.)
5591 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5592 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5593 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 cat >conftest.$ac_ext <<_ACEOF
5604 rm -f conftest.$ac_objext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606 (eval $ac_compile) 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; } &&
5619 { ac_try='test -s conftest.$ac_objext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5633 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5636 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5637 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5639 ac_test_FFLAGS=${FFLAGS+set}
5640 ac_save_FFLAGS=$FFLAGS
5642 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5643 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5644 if test "${ac_cv_prog_f77_g+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 cat >conftest.$ac_ext <<_ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_prog_f77_g=yes
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5684 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5685 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5686 if test "$ac_test_FFLAGS" = set; then
5687 FFLAGS=$ac_save_FFLAGS
5688 elif test $ac_cv_prog_f77_g = yes; then
5689 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5695 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5702 G77=`test $ac_compiler_gnu = yes && echo yes`
5704 ac_cpp='$CPP $CPPFLAGS'
5705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5711 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5713 # find the maximum length of command line arguments
5714 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5715 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5716 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 # On DJGPP, this test can blow up pretty badly due to problems in libc
5725 # (any single argument exceeding 2000 bytes causes a buffer overrun
5726 # during glob expansion). Even if it were fixed, the result of this
5727 # check would be larger than it should be.
5728 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5732 # Under GNU Hurd, this test is not required because there is
5733 # no limit to the length of command line arguments.
5734 # Libtool will interpret -1 as no limit whatsoever
5735 lt_cv_sys_max_cmd_len=-1;
5739 # On Win9x/ME, this test blows up -- it succeeds, but takes
5740 # about 5 minutes as the teststring grows exponentially.
5741 # Worse, since 9x/ME are not pre-emptively multitasking,
5742 # you end up with a "frozen" computer, even though with patience
5743 # the test eventually succeeds (with a max line length of 256k).
5744 # Instead, let's just punt: use the minimum linelength reported by
5745 # all of the supported platforms: 8192 (on NT/2K/XP).
5746 lt_cv_sys_max_cmd_len=8192;
5750 # On AmigaOS with pdksh, this test takes hours, literally.
5751 # So we just punt and use a minimum line length of 8192.
5752 lt_cv_sys_max_cmd_len=8192;
5755 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5756 # This has been around since 386BSD, at least. Likely further.
5757 if test -x /sbin/sysctl; then
5758 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5759 elif test -x /usr/sbin/sysctl; then
5760 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5762 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5764 # And add a safety zone
5765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5770 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5771 lt_cv_sys_max_cmd_len=196608
5775 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5776 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5777 # nice to cause kernel panics so lets avoid the loop below.
5778 # First set a reasonable default.
5779 lt_cv_sys_max_cmd_len=16384
5781 if test -x /sbin/sysconfig; then
5782 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5783 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5788 lt_cv_sys_max_cmd_len=102400
5790 sysv5* | sco5v6* | sysv4.2uw2*)
5791 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5792 if test -n "$kargmax"; then
5793 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5795 lt_cv_sys_max_cmd_len=32768
5799 # If test is not a shell built-in, we'll probably end up computing a
5800 # maximum length that is only half of the actual maximum length, but
5802 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5803 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5804 = "XX$teststring") >/dev/null 2>&1 &&
5805 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5806 lt_cv_sys_max_cmd_len=$new_result &&
5807 test $i != 17 # 1/2 MB should be enough
5810 teststring=$teststring$teststring
5813 # Add a significant safety factor because C++ compilers can tack on massive
5814 # amounts of additional arguments before passing them to the linker.
5815 # It appears as though 1/2 is a usable value.
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5822 if test -n $lt_cv_sys_max_cmd_len ; then
5823 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5824 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5826 echo "$as_me:$LINENO: result: none" >&5
5827 echo "${ECHO_T}none" >&6
5833 # Check for command to grab the raw symbol name followed by C symbol from nm.
5834 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5835 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5836 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 # These are sane defaults that work on at least a few old systems.
5841 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5843 # Character class describing NM global symbol codes.
5844 symcode='[BCDEGRST]'
5846 # Regexp to match symbols that can be accessed directly from C.
5847 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5849 # Transform an extracted symbol line into a proper C declaration
5850 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5852 # Transform an extracted symbol line into symbol name and symbol address
5853 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'"
5855 # Define system-specific variables.
5860 cygwin* | mingw* | pw32*)
5861 symcode='[ABCDGISTW]'
5863 hpux*) # Its linker distinguishes data from code symbols
5864 if test "$host_cpu" = ia64; then
5865 symcode='[ABCDEGRST]'
5867 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5868 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'"
5871 if test "$host_cpu" = ia64; then
5872 symcode='[ABCDGIRSTW]'
5873 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5874 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'"
5878 symcode='[BCDEGRST]'
5881 symcode='[BCDEGQRST]'
5892 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5900 # Handle CRLF in mingw tool chain
5904 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5908 # If we're using GNU nm, then use its standard symbol codes.
5909 case `$NM -V 2>&1` in
5910 *GNU* | *'with BFD'*)
5911 symcode='[ABCDGIRSTW]' ;;
5914 # Try without a prefix undercore, then with it.
5915 for ac_symprfx in "" "_"; do
5917 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5918 symxfrm="\\1 $ac_symprfx\\2 \\2"
5920 # Write the raw and C identifiers.
5921 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5923 # Check to see that the pipe works correctly.
5927 cat > conftest.$ac_ext <<EOF
5932 void nm_test_func(){}
5936 int main(){nm_test_var='a';nm_test_func();return(0);}
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; then
5944 # Now try to grab the symbols.
5946 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5947 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && test -s "$nlist"; then
5951 # Try sorting and uniquifying the output.
5952 if sort "$nlist" | uniq > "$nlist"T; then
5953 mv -f "$nlist"T "$nlist"
5958 # Make sure that we snagged all the symbols we need.
5959 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5960 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5961 cat <<EOF > conftest.$ac_ext
5967 # Now generate the symbol file.
5968 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5970 cat <<EOF >> conftest.$ac_ext
5971 #if defined (__STDC__) && __STDC__
5972 # define lt_ptr_t void *
5974 # define lt_ptr_t char *
5978 /* The mapping between symbol names and symbols. */
5983 lt_preloaded_symbols[] =
5986 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5987 cat <<\EOF >> conftest.$ac_ext
5995 # Now try linking the two files.
5996 mv conftest.$ac_objext conftstm.$ac_objext
5997 lt_save_LIBS="$LIBS"
5998 lt_save_CFLAGS="$CFLAGS"
5999 LIBS="conftstm.$ac_objext"
6000 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6008 LIBS="$lt_save_LIBS"
6009 CFLAGS="$lt_save_CFLAGS"
6011 echo "cannot find nm_test_func in $nlist" >&5
6014 echo "cannot find nm_test_var in $nlist" >&5
6017 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6020 echo "$progname: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6023 rm -f conftest* conftst*
6025 # Do not use the global_symbol_pipe unless it works.
6026 if test "$pipe_works" = yes; then
6029 lt_cv_sys_global_symbol_pipe=
6035 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6036 lt_cv_sys_global_symbol_to_cdecl=
6038 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6039 echo "$as_me:$LINENO: result: failed" >&5
6040 echo "${ECHO_T}failed" >&6
6042 echo "$as_me:$LINENO: result: ok" >&5
6043 echo "${ECHO_T}ok" >&6
6046 echo "$as_me:$LINENO: checking for objdir" >&5
6047 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6048 if test "${lt_cv_objdir+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 rm -f .libs 2>/dev/null
6052 mkdir .libs 2>/dev/null
6053 if test -d .libs; then
6056 # MS-DOS does not allow filenames that begin with a dot.
6059 rmdir .libs 2>/dev/null
6061 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6062 echo "${ECHO_T}$lt_cv_objdir" >&6
6063 objdir=$lt_cv_objdir
6071 # AIX sometimes has problems with the GCC collect2 program. For some
6072 # reason, if we set the COLLECT_NAMES environment variable, the problems
6073 # vanish in a puff of smoke.
6074 if test "X${COLLECT_NAMES+set}" != Xset; then
6076 export COLLECT_NAMES
6081 # Sed substitution that helps us do robust quoting. It backslashifies
6082 # metacharacters that are still active within double-quoted strings.
6083 Xsed='sed -e 1s/^X//'
6084 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6086 # Same as above, but do not quote variable references.
6087 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6089 # Sed substitution to delay expansion of an escaped shell variable in a
6090 # double_quote_subst'ed string.
6091 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6093 # Sed substitution to avoid accidental globbing in evaled expressions
6094 no_glob_subst='s/\*/\\\*/g'
6100 default_ofile=libtool
6101 can_build_shared=yes
6103 # All known linkers require a `.a' archive for static linking (except MSVC,
6104 # which needs '.lib').
6106 ltmain="$ac_aux_dir/ltmain.sh"
6107 ofile="$default_ofile"
6108 with_gnu_ld="$lt_cv_prog_gnu_ld"
6110 if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}ar; ac_word=$2
6113 echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6115 if test "${ac_cv_prog_AR+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 if test -n "$AR"; then
6119 ac_cv_prog_AR="$AR" # Let the user override the test.
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_AR="${ac_tool_prefix}ar"
6129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 if test -n "$AR"; then
6139 echo "$as_me:$LINENO: result: $AR" >&5
6140 echo "${ECHO_T}$AR" >&6
6142 echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6
6147 if test -z "$ac_cv_prog_AR"; then
6149 # Extract the first word of "ar", so it can be a program name with args.
6150 set dummy ar; ac_word=$2
6151 echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 if test -n "$ac_ct_AR"; then
6157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_ac_ct_AR="ar"
6167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6176 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6177 if test -n "$ac_ct_AR"; then
6178 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6179 echo "${ECHO_T}$ac_ct_AR" >&6
6181 echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6
6190 if test -n "$ac_tool_prefix"; then
6191 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6192 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6193 echo "$as_me:$LINENO: checking for $ac_word" >&5
6194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6195 if test "${ac_cv_prog_RANLIB+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 if test -n "$RANLIB"; then
6199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 RANLIB=$ac_cv_prog_RANLIB
6218 if test -n "$RANLIB"; then
6219 echo "$as_me:$LINENO: result: $RANLIB" >&5
6220 echo "${ECHO_T}$RANLIB" >&6
6222 echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6
6227 if test -z "$ac_cv_prog_RANLIB"; then
6228 ac_ct_RANLIB=$RANLIB
6229 # Extract the first word of "ranlib", so it can be a program name with args.
6230 set dummy ranlib; ac_word=$2
6231 echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6233 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 if test -n "$ac_ct_RANLIB"; then
6237 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246 ac_cv_prog_ac_ct_RANLIB="ranlib"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6256 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6257 if test -n "$ac_ct_RANLIB"; then
6258 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6259 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6261 echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6
6265 RANLIB=$ac_ct_RANLIB
6267 RANLIB="$ac_cv_prog_RANLIB"
6270 if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6272 set dummy ${ac_tool_prefix}strip; ac_word=$2
6273 echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6275 if test "${ac_cv_prog_STRIP+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 if test -n "$STRIP"; then
6279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 STRIP=$ac_cv_prog_STRIP
6298 if test -n "$STRIP"; then
6299 echo "$as_me:$LINENO: result: $STRIP" >&5
6300 echo "${ECHO_T}$STRIP" >&6
6302 echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6
6307 if test -z "$ac_cv_prog_STRIP"; then
6309 # Extract the first word of "strip", so it can be a program name with args.
6310 set dummy strip; ac_word=$2
6311 echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6313 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 if test -n "$ac_ct_STRIP"; then
6317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_ac_ct_STRIP="strip"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6336 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6337 if test -n "$ac_ct_STRIP"; then
6338 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6339 echo "${ECHO_T}$ac_ct_STRIP" >&6
6341 echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6
6347 STRIP="$ac_cv_prog_STRIP"
6352 old_CFLAGS="$CFLAGS"
6354 # Set sane defaults for various variables
6355 test -z "$AR" && AR=ar
6356 test -z "$AR_FLAGS" && AR_FLAGS=cru
6357 test -z "$AS" && AS=as
6358 test -z "$CC" && CC=cc
6359 test -z "$LTCC" && LTCC=$CC
6360 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6361 test -z "$DLLTOOL" && DLLTOOL=dlltool
6362 test -z "$LD" && LD=ld
6363 test -z "$LN_S" && LN_S="ln -s"
6364 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6365 test -z "$NM" && NM=nm
6366 test -z "$SED" && SED=sed
6367 test -z "$OBJDUMP" && OBJDUMP=objdump
6368 test -z "$RANLIB" && RANLIB=:
6369 test -z "$STRIP" && STRIP=:
6370 test -z "$ac_objext" && ac_objext=o
6372 # Determine commands to create old-style static archives.
6373 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6374 old_postinstall_cmds='chmod 644 $oldlib'
6375 old_postuninstall_cmds=
6377 if test -n "$RANLIB"; then
6380 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6383 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6386 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6389 for cc_temp in $compiler""; do
6391 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6392 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6400 # Only perform the check for file, if the check method requires it
6401 case $deplibs_check_method in
6403 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6404 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6405 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6406 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6414 lt_save_MAGIC_CMD="$MAGIC_CMD"
6415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6417 for ac_dir in $ac_dummy; do
6419 test -z "$ac_dir" && ac_dir=.
6420 if test -f $ac_dir/${ac_tool_prefix}file; then
6421 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6422 if test -n "$file_magic_test_file"; then
6423 case $deplibs_check_method in
6425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6428 $EGREP "$file_magic_regex" > /dev/null; then
6433 *** Warning: the command libtool uses to detect shared libraries,
6434 *** $file_magic_cmd, produces output that libtool cannot recognize.
6435 *** The result is that libtool may fail to recognize shared libraries
6436 *** as such. This will affect the creation of libtool libraries that
6437 *** depend on shared libraries, but programs linked with such libtool
6438 *** libraries will work regardless of this problem. Nevertheless, you
6439 *** may want to report the problem to your system manager and/or to
6440 *** bug-libtool@gnu.org
6450 MAGIC_CMD="$lt_save_MAGIC_CMD"
6455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6456 if test -n "$MAGIC_CMD"; then
6457 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6458 echo "${ECHO_T}$MAGIC_CMD" >&6
6460 echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6
6464 if test -z "$lt_cv_path_MAGIC_CMD"; then
6465 if test -n "$ac_tool_prefix"; then
6466 echo "$as_me:$LINENO: checking for file" >&5
6467 echo $ECHO_N "checking for file... $ECHO_C" >&6
6468 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6476 lt_save_MAGIC_CMD="$MAGIC_CMD"
6477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6478 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6479 for ac_dir in $ac_dummy; do
6481 test -z "$ac_dir" && ac_dir=.
6482 if test -f $ac_dir/file; then
6483 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6484 if test -n "$file_magic_test_file"; then
6485 case $deplibs_check_method in
6487 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6489 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6490 $EGREP "$file_magic_regex" > /dev/null; then
6495 *** Warning: the command libtool uses to detect shared libraries,
6496 *** $file_magic_cmd, produces output that libtool cannot recognize.
6497 *** The result is that libtool may fail to recognize shared libraries
6498 *** as such. This will affect the creation of libtool libraries that
6499 *** depend on shared libraries, but programs linked with such libtool
6500 *** libraries will work regardless of this problem. Nevertheless, you
6501 *** may want to report the problem to your system manager and/or to
6502 *** bug-libtool@gnu.org
6512 MAGIC_CMD="$lt_save_MAGIC_CMD"
6517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6518 if test -n "$MAGIC_CMD"; then
6519 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6520 echo "${ECHO_T}$MAGIC_CMD" >&6
6522 echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6
6536 enable_win32_dll=yes
6538 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6539 if test "${enable_libtool_lock+set}" = set; then
6540 enableval="$enable_libtool_lock"
6543 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6546 # Check whether --with-pic or --without-pic was given.
6547 if test "${with_pic+set}" = set; then
6553 test -z "$pic_mode" && pic_mode=default
6555 # Use C for the default configuration in the libtool script
6559 ac_cpp='$CPP $CPPFLAGS'
6560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565 # Source file extension for C test sources.
6568 # Object file extension for compiled C test sources.
6572 # Code to be used in simple compile tests
6573 lt_simple_compile_test_code="int some_variable = 0;\n"
6575 # Code to be used in simple link tests
6576 lt_simple_link_test_code='int main(){return(0);}\n'
6579 # If no C compiler was specified, use CC.
6582 # If no C compiler flags were specified, use CFLAGS.
6583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6585 # Allow CC to be a program name with arguments.
6589 # save warnings/boilerplate of simple test code
6590 ac_outfile=conftest.$ac_objext
6591 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6592 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6593 _lt_compiler_boilerplate=`cat conftest.err`
6596 ac_outfile=conftest.$ac_objext
6597 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6598 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6599 _lt_linker_boilerplate=`cat conftest.err`
6604 lt_prog_compiler_no_builtin_flag=
6606 if test "$GCC" = yes; then
6607 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6610 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6611 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6612 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 lt_cv_prog_compiler_rtti_exceptions=no
6616 ac_outfile=conftest.$ac_objext
6617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6618 lt_compiler_flag="-fno-rtti -fno-exceptions"
6619 # Insert the option either (1) after the last *FLAGS variable, or
6620 # (2) before a word containing "conftest.", or (3) at the end.
6621 # Note that $ac_compile itself does not contain backslashes and begins
6622 # with a dollar sign (not a hyphen), so the echo should work correctly.
6623 # The option is referenced via a variable to avoid confusing sed.
6624 lt_compile=`echo "$ac_compile" | $SED \
6625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6627 -e 's:$: $lt_compiler_flag:'`
6628 (eval echo "\"\$as_me:6628: $lt_compile\"" >&5)
6629 (eval "$lt_compile" 2>conftest.err)
6631 cat conftest.err >&5
6632 echo "$as_me:6632: \$? = $ac_status" >&5
6633 if (exit $ac_status) && test -s "$ac_outfile"; then
6634 # The compiler can only warn and ignore the option if not recognized
6635 # So say no if there are warnings other than the usual output.
6636 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6639 lt_cv_prog_compiler_rtti_exceptions=yes
6645 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6646 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6649 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6656 lt_prog_compiler_wl=
6657 lt_prog_compiler_pic=
6658 lt_prog_compiler_static=
6660 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6661 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6663 if test "$GCC" = yes; then
6664 lt_prog_compiler_wl='-Wl,'
6665 lt_prog_compiler_static='-static'
6669 # All AIX code is PIC.
6670 if test "$host_cpu" = ia64; then
6671 # AIX 5 now supports IA64 processor
6672 lt_prog_compiler_static='-Bstatic'
6677 # FIXME: we need at least 68020 code to build shared libraries, but
6678 # adding the `-m68020' flag to GCC prevents building anything better,
6680 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6683 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6684 # PIC is the default for these OSes.
6687 mingw* | pw32* | os2*)
6688 # This hack is so that the source file can tell whether it is being
6689 # built for inclusion in a dll (and should export symbols for example).
6690 lt_prog_compiler_pic='-DDLL_EXPORT'
6693 darwin* | rhapsody*)
6694 # PIC is the default on this platform
6695 # Common symbols not allowed in MH_DYLIB files
6696 lt_prog_compiler_pic='-fno-common'
6700 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6701 # Instead, we relocate shared libraries at runtime.
6705 # Just because we use GCC doesn't mean we suddenly get shared libraries
6706 # on systems that don't support them.
6707 lt_prog_compiler_can_build_shared=no
6712 if test -d /usr/nec; then
6713 lt_prog_compiler_pic=-Kconform_pic
6718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6725 lt_prog_compiler_pic='-fPIC'
6731 lt_prog_compiler_pic='-fPIC'
6735 # PORTME Check for flag to pass linker flags through the system compiler.
6738 lt_prog_compiler_wl='-Wl,'
6739 if test "$host_cpu" = ia64; then
6740 # AIX 5 now supports IA64 processor
6741 lt_prog_compiler_static='-Bstatic'
6743 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6747 # PIC is the default on this platform
6748 # Common symbols not allowed in MH_DYLIB files
6749 case $cc_basename in
6751 lt_prog_compiler_pic='-qnocommon'
6752 lt_prog_compiler_wl='-Wl,'
6757 mingw* | pw32* | os2*)
6758 # This hack is so that the source file can tell whether it is being
6759 # built for inclusion in a dll (and should export symbols for example).
6760 lt_prog_compiler_pic='-DDLL_EXPORT'
6763 hpux9* | hpux10* | hpux11*)
6764 lt_prog_compiler_wl='-Wl,'
6765 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6772 lt_prog_compiler_pic='+Z'
6775 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6776 lt_prog_compiler_static='${wl}-a ${wl}archive'
6779 irix5* | irix6* | nonstopux*)
6780 lt_prog_compiler_wl='-Wl,'
6781 # PIC (with -KPIC) is the default.
6782 lt_prog_compiler_static='-non_shared'
6786 lt_prog_compiler_pic='-KPIC'
6787 lt_prog_compiler_static='-Bstatic'
6791 case $cc_basename in
6793 lt_prog_compiler_wl='-Wl,'
6794 lt_prog_compiler_pic='-KPIC'
6795 lt_prog_compiler_static='-static'
6797 pgcc* | pgf77* | pgf90* | pgf95*)
6798 # Portland Group compilers (*not* the Pentium gcc compiler,
6799 # which looks to be a dead project)
6800 lt_prog_compiler_wl='-Wl,'
6801 lt_prog_compiler_pic='-fpic'
6802 lt_prog_compiler_static='-Bstatic'
6805 lt_prog_compiler_wl='-Wl,'
6806 # All Alpha code is PIC.
6807 lt_prog_compiler_static='-non_shared'
6812 osf3* | osf4* | osf5*)
6813 lt_prog_compiler_wl='-Wl,'
6814 # All OSF/1 code is PIC.
6815 lt_prog_compiler_static='-non_shared'
6819 lt_prog_compiler_pic='-KPIC'
6820 lt_prog_compiler_static='-Bstatic'
6821 case $cc_basename in
6823 lt_prog_compiler_wl='-Qoption ld ';;
6825 lt_prog_compiler_wl='-Wl,';;
6830 lt_prog_compiler_wl='-Qoption ld '
6831 lt_prog_compiler_pic='-PIC'
6832 lt_prog_compiler_static='-Bstatic'
6835 sysv4 | sysv4.2uw2* | sysv4.3*)
6836 lt_prog_compiler_wl='-Wl,'
6837 lt_prog_compiler_pic='-KPIC'
6838 lt_prog_compiler_static='-Bstatic'
6842 if test -d /usr/nec ;then
6843 lt_prog_compiler_pic='-Kconform_pic'
6844 lt_prog_compiler_static='-Bstatic'
6848 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6849 lt_prog_compiler_wl='-Wl,'
6850 lt_prog_compiler_pic='-KPIC'
6851 lt_prog_compiler_static='-Bstatic'
6855 lt_prog_compiler_wl='-Wl,'
6856 lt_prog_compiler_can_build_shared=no
6860 lt_prog_compiler_pic='-pic'
6861 lt_prog_compiler_static='-Bstatic'
6865 lt_prog_compiler_can_build_shared=no
6870 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6871 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6874 # Check to make sure the PIC flag actually works.
6876 if test -n "$lt_prog_compiler_pic"; then
6878 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6879 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6880 if test "${lt_prog_compiler_pic_works+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 lt_prog_compiler_pic_works=no
6884 ac_outfile=conftest.$ac_objext
6885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6886 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6887 # Insert the option either (1) after the last *FLAGS variable, or
6888 # (2) before a word containing "conftest.", or (3) at the end.
6889 # Note that $ac_compile itself does not contain backslashes and begins
6890 # with a dollar sign (not a hyphen), so the echo should work correctly.
6891 # The option is referenced via a variable to avoid confusing sed.
6892 lt_compile=`echo "$ac_compile" | $SED \
6893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6895 -e 's:$: $lt_compiler_flag:'`
6896 (eval echo "\"\$as_me:6896: $lt_compile\"" >&5)
6897 (eval "$lt_compile" 2>conftest.err)
6899 cat conftest.err >&5
6900 echo "$as_me:6900: \$? = $ac_status" >&5
6901 if (exit $ac_status) && test -s "$ac_outfile"; then
6902 # The compiler can only warn and ignore the option if not recognized
6903 # So say no if there are warnings other than the usual output.
6904 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6907 lt_prog_compiler_pic_works=yes
6913 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6914 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6916 if test x"$lt_prog_compiler_pic_works" = xyes; then
6917 case $lt_prog_compiler_pic in
6919 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6922 lt_prog_compiler_pic=
6923 lt_prog_compiler_can_build_shared=no
6928 # For platforms which do not support PIC, -DPIC is meaningless:
6930 lt_prog_compiler_pic=
6933 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6938 # Check to make sure the static flag actually works.
6940 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6941 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6942 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6943 if test "${lt_prog_compiler_static_works+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 lt_prog_compiler_static_works=no
6947 save_LDFLAGS="$LDFLAGS"
6948 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6949 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6951 # The linker can only warn and ignore the option if not recognized
6952 # So say no if there are warnings
6953 if test -s conftest.err; then
6954 # Append any errors to the config.log.
6955 cat conftest.err 1>&5
6956 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6958 if diff conftest.exp conftest.er2 >/dev/null; then
6959 lt_prog_compiler_static_works=yes
6962 lt_prog_compiler_static_works=yes
6966 LDFLAGS="$save_LDFLAGS"
6969 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6970 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6972 if test x"$lt_prog_compiler_static_works" = xyes; then
6975 lt_prog_compiler_static=
6979 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6980 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6981 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 lt_cv_prog_compiler_c_o=no
6985 $rm -r conftest 2>/dev/null
6989 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6991 lt_compiler_flag="-o out/conftest2.$ac_objext"
6992 # Insert the option either (1) after the last *FLAGS variable, or
6993 # (2) before a word containing "conftest.", or (3) at the end.
6994 # Note that $ac_compile itself does not contain backslashes and begins
6995 # with a dollar sign (not a hyphen), so the echo should work correctly.
6996 lt_compile=`echo "$ac_compile" | $SED \
6997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6999 -e 's:$: $lt_compiler_flag:'`
7000 (eval echo "\"\$as_me:7000: $lt_compile\"" >&5)
7001 (eval "$lt_compile" 2>out/conftest.err)
7003 cat out/conftest.err >&5
7004 echo "$as_me:7004: \$? = $ac_status" >&5
7005 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7007 # The compiler can only warn and ignore the option if not recognized
7008 # So say no if there are warnings
7009 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7012 lt_cv_prog_compiler_c_o=yes
7017 # SGI C++ compiler will create directory out/ii_files/ for
7018 # template instantiation
7019 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7020 $rm out/* && rmdir out
7026 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7027 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7030 hard_links="nottested"
7031 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7032 # do not overwrite the value of need_locks provided by the user
7033 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7034 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7039 ln conftest.a conftest.b 2>&5 || hard_links=no
7040 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7041 echo "$as_me:$LINENO: result: $hard_links" >&5
7042 echo "${ECHO_T}$hard_links" >&6
7043 if test "$hard_links" = no; then
7044 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7045 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7052 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7053 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7056 allow_undefined_flag=
7057 enable_shared_with_static_runtimes=no
7059 archive_expsym_cmds=
7060 old_archive_From_new_cmds=
7061 old_archive_from_expsyms_cmds=
7062 export_dynamic_flag_spec=
7063 whole_archive_flag_spec=
7064 thread_safe_flag_spec=
7065 hardcode_libdir_flag_spec=
7066 hardcode_libdir_flag_spec_ld=
7067 hardcode_libdir_separator=
7070 hardcode_shlibpath_var=unsupported
7071 link_all_deplibs=unknown
7072 hardcode_automatic=no
7075 always_export_symbols=no
7076 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7077 # include_expsyms should be a list of space-separated symbols to be *always*
7078 # included in the symbol list
7080 # exclude_expsyms can be an extended regexp of symbols to exclude
7081 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7082 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7083 # as well as any symbol that contains `d'.
7084 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7085 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7086 # platforms (ab)use it in PIC code, but their linkers get confused if
7087 # the symbol is explicitly referenced. Since portable code cannot
7088 # rely on this symbol name, it's probably fine to never include it in
7089 # preloaded symbol tables.
7090 extract_expsyms_cmds=
7091 # Just being paranoid about ensuring that cc_basename is set.
7092 for cc_temp in $compiler""; do
7094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7100 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7103 cygwin* | mingw* | pw32*)
7104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7105 # When not using gcc, we currently assume that we are using
7106 # Microsoft Visual C++.
7107 if test "$GCC" != yes; then
7112 # we just hope/assume this is gcc and not c89 (= MSVC++)
7121 if test "$with_gnu_ld" = yes; then
7122 # If archive_cmds runs LD, not CC, wlarc should be empty
7125 # Set some defaults for GNU ld with shared library support. These
7126 # are reset later if shared libraries are not supported. Putting them
7127 # here allows them to be overridden if necessary.
7128 runpath_var=LD_RUN_PATH
7129 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7130 export_dynamic_flag_spec='${wl}--export-dynamic'
7131 # ancient GNU ld didn't support --whole-archive et. al.
7132 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7133 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7135 whole_archive_flag_spec=
7137 supports_anon_versioning=no
7138 case `$LD -v 2>/dev/null` in
7139 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7140 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7141 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7142 *\ 2.11.*) ;; # other 2.11 versions
7143 *) supports_anon_versioning=yes ;;
7146 # See if GNU ld supports shared libraries.
7148 aix3* | aix4* | aix5*)
7149 # On AIX/PPC, the GNU linker is very broken
7150 if test "$host_cpu" != ia64; then
7154 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7155 *** to be unable to reliably create shared libraries on AIX.
7156 *** Therefore, libtool is disabling shared libraries support. If you
7157 *** really care for shared libraries, you may want to modify your PATH
7158 *** so that a non-GNU linker is found, and then restart.
7165 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)'
7166 hardcode_libdir_flag_spec='-L$libdir'
7167 hardcode_minus_L=yes
7169 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7170 # that the semantics of dynamic libraries on AmigaOS, at least up
7171 # to version 4, is to share data among multiple programs linked
7172 # with the same dynamic library. Since this doesn't match the
7173 # behavior of shared libraries on other platforms, we can't use
7179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7180 allow_undefined_flag=unsupported
7181 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7182 # support --undefined. This deserves some investigation. FIXME
7183 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7189 cygwin* | mingw* | pw32*)
7190 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7191 # as there is no search path for DLLs.
7192 hardcode_libdir_flag_spec='-L$libdir'
7193 allow_undefined_flag=unsupported
7194 always_export_symbols=no
7195 enable_shared_with_static_runtimes=yes
7196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7198 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7200 # If the export-symbols file already is a .def file (1st line
7201 # is EXPORTS), use it as is; otherwise, prepend...
7202 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7203 cp $export_symbols $output_objdir/$soname.def;
7205 echo EXPORTS > $output_objdir/$soname.def;
7206 cat $export_symbols >> $output_objdir/$soname.def;
7208 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7216 hardcode_shlibpath_var=no
7217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7218 export_dynamic_flag_spec='${wl}-E'
7219 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7220 # Instead, shared libraries are loaded at an image base (0x10000000 by
7221 # default) and relocated if they conflict, which is a slow very memory
7222 # consuming and fragmenting process. To avoid this, we pick a random,
7223 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7224 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7225 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7226 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7232 case $cc_basename,$host_cpu in
7233 pgcc*) # Portland Group C compiler
7234 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7235 tmp_addflag=' $pic_flag'
7237 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7238 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7239 tmp_addflag=' $pic_flag -Mnomain' ;;
7240 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7241 tmp_addflag=' -i_dynamic' ;;
7242 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7243 tmp_addflag=' -i_dynamic -nofor_main' ;;
7244 ifc* | ifort*) # Intel Fortran compiler
7245 tmp_addflag=' -nofor_main' ;;
7247 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7249 if test $supports_anon_versioning = yes; then
7250 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7252 $echo "local: *; };" >> $output_objdir/$libname.ver~
7253 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7261 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7272 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7277 *** create shared libraries on Solaris systems. Therefore, libtool
7278 *** is disabling shared libraries support. We urge you to upgrade GNU
7279 *** binutils to release 2.9.1 or newer. Another option is to modify
7280 *** your PATH or compiler configuration so that the native linker is
7281 *** used, and then restart.
7284 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7293 case `$LD -v 2>&1` in
7294 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7298 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7299 *** reliably create shared libraries on SCO systems. Therefore, libtool
7300 *** is disabling shared libraries support. We urge you to upgrade GNU
7301 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7302 *** your PATH or compiler configuration so that the native linker is
7303 *** used, and then restart.
7308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7309 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7320 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7323 hardcode_shlibpath_var=no
7327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7336 if test "$ld_shlibs" = no; then
7338 hardcode_libdir_flag_spec=
7339 export_dynamic_flag_spec=
7340 whole_archive_flag_spec=
7343 # PORTME fill in a description of your system's linker (not GNU ld)
7346 allow_undefined_flag=unsupported
7347 always_export_symbols=yes
7348 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'
7349 # Note: this linker hardcodes the directories in LIBPATH if there
7350 # are no directories specified by -L.
7351 hardcode_minus_L=yes
7352 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7353 # Neither direct hardcoding nor static linking is supported with a
7355 hardcode_direct=unsupported
7360 if test "$host_cpu" = ia64; then
7361 # On IA64, the linker does run time linking by default, so we don't
7362 # have to do anything special.
7363 aix_use_runtimelinking=no
7364 exp_sym_flag='-Bexport'
7367 # If we're using GNU nm, then we don't want the "-C" option.
7368 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7369 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7370 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'
7372 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'
7374 aix_use_runtimelinking=no
7376 # Test if we are trying to use run time linking or normal
7377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7378 # need to do runtime linking.
7379 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7380 for ld_flag in $LDFLAGS; do
7381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7382 aix_use_runtimelinking=yes
7389 exp_sym_flag='-bexport'
7390 no_entry_flag='-bnoentry'
7393 # When large executables or shared objects are built, AIX ld can
7394 # have problems creating the table of contents. If linking a library
7395 # or program results in "error TOC overflow" add -mminimal-toc to
7396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7401 hardcode_libdir_separator=':'
7402 link_all_deplibs=yes
7404 if test "$GCC" = yes; then
7405 case $host_os in aix4.[012]|aix4.[012].*)
7406 # We only want to do this on AIX 4.2 and lower, the check
7407 # below for broken collect2 doesn't work under 4.3+
7408 collect2name=`${CC} -print-prog-name=collect2`
7409 if test -f "$collect2name" && \
7410 strings "$collect2name" | grep resolve_lib_name >/dev/null
7412 # We have reworked collect2
7415 # We have old collect2
7416 hardcode_direct=unsupported
7417 # It fails to find uninstalled libraries when the uninstalled
7418 # path is not listed in the libpath. Setting hardcode_minus_L
7419 # to unsupported forces relinking
7420 hardcode_minus_L=yes
7421 hardcode_libdir_flag_spec='-L$libdir'
7422 hardcode_libdir_separator=
7426 shared_flag='-shared'
7427 if test "$aix_use_runtimelinking" = yes; then
7428 shared_flag="$shared_flag "'${wl}-G'
7432 if test "$host_cpu" = ia64; then
7433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7434 # chokes on -Wl,-G. The following line is correct:
7437 if test "$aix_use_runtimelinking" = yes; then
7438 shared_flag='${wl}-G'
7440 shared_flag='${wl}-bM:SRE'
7445 # It seems that -bexpall does not export symbols beginning with
7446 # underscore (_), so it is better to generate a list of symbols to export.
7447 always_export_symbols=yes
7448 if test "$aix_use_runtimelinking" = yes; then
7449 # Warning - without using the other runtime loading flags (-brtl),
7450 # -berok will link without error, but may produce a broken library.
7451 allow_undefined_flag='-berok'
7452 # Determine the default libpath from the value encoded in an empty executable.
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7468 rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7470 (eval $ac_link) 2>conftest.er1
7472 grep -v '^ *+' conftest.er1 >conftest.err
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; } &&
7483 { ac_try='test -s conftest$ac_exeext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7492 # Check for a 64-bit object if we didn't find anything.
7493 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; }
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7500 rm -f conftest.err conftest.$ac_objext \
7501 conftest$ac_exeext conftest.$ac_ext
7502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7504 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7505 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7507 if test "$host_cpu" = ia64; then
7508 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7509 allow_undefined_flag="-z nodefs"
7510 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7512 # Determine the default libpath from the value encoded in an empty executable.
7513 cat >conftest.$ac_ext <<_ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>conftest.er1
7532 grep -v '^ *+' conftest.er1 >conftest.err
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try='test -s conftest$ac_exeext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7552 # Check for a 64-bit object if we didn't find anything.
7553 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; }
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7560 rm -f conftest.err conftest.$ac_objext \
7561 conftest$ac_exeext conftest.$ac_ext
7562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7564 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7565 # Warning - without using the other run time loading flags,
7566 # -berok will link without error, but may produce a broken library.
7567 no_undefined_flag=' ${wl}-bernotok'
7568 allow_undefined_flag=' ${wl}-berok'
7569 # Exported symbols can be pulled into shared objects from archives
7570 whole_archive_flag_spec='$convenience'
7571 archive_cmds_need_lc=yes
7572 # This is similar to how AIX traditionally builds its shared libraries.
7573 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7579 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)'
7580 hardcode_libdir_flag_spec='-L$libdir'
7581 hardcode_minus_L=yes
7582 # see comment about different semantics on the GNU ld section
7587 export_dynamic_flag_spec=-rdynamic
7590 cygwin* | mingw* | pw32*)
7591 # When not using gcc, we currently assume that we are using
7592 # Microsoft Visual C++.
7593 # hardcode_libdir_flag_spec is actually meaningless, as there is
7594 # no search path for DLLs.
7595 hardcode_libdir_flag_spec=' '
7596 allow_undefined_flag=unsupported
7597 # Tell ltmain to make .lib files, not .a files.
7599 # Tell ltmain to make .dll files, not .so files.
7601 # FIXME: Setting linknames here is a bad hack.
7602 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7603 # The linker will automatically build a .lib file if we build a DLL.
7604 old_archive_From_new_cmds='true'
7605 # FIXME: Should let the user specify the lib program.
7606 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7607 fix_srcfile_path='`cygpath -w "$srcfile"`'
7608 enable_shared_with_static_runtimes=yes
7611 darwin* | rhapsody*)
7613 rhapsody* | darwin1.[012])
7614 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7617 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7618 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7620 case ${MACOSX_DEPLOYMENT_TARGET} in
7622 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7625 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7631 archive_cmds_need_lc=no
7633 hardcode_automatic=yes
7634 hardcode_shlibpath_var=unsupported
7635 whole_archive_flag_spec=''
7636 link_all_deplibs=yes
7637 if test "$GCC" = yes ; then
7638 output_verbose_link_cmd='echo'
7639 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7640 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7641 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7642 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}'
7643 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}'
7645 case $cc_basename in
7647 output_verbose_link_cmd='echo'
7648 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7649 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7650 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7651 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7652 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}'
7662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7663 hardcode_libdir_flag_spec='-L$libdir'
7664 hardcode_shlibpath_var=no
7671 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7672 # support. Future versions do this automatically, but an explicit c++rt0.o
7673 # does not break anything, and helps significantly (at the cost of a little
7676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7677 hardcode_libdir_flag_spec='-R$libdir'
7679 hardcode_shlibpath_var=no
7682 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7686 hardcode_minus_L=yes
7687 hardcode_shlibpath_var=no
7690 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7691 freebsd* | dragonfly*)
7692 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7693 hardcode_libdir_flag_spec='-R$libdir'
7695 hardcode_shlibpath_var=no
7698 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7700 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7701 hardcode_libdir_flag_spec='-R$libdir'
7703 hardcode_shlibpath_var=no
7708 if test "$GCC" = yes; then
7709 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'
7711 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'
7713 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7714 hardcode_libdir_separator=:
7717 # hardcode_minus_L: Not really in the search PATH,
7718 # but as the default location of the library.
7719 hardcode_minus_L=yes
7720 export_dynamic_flag_spec='${wl}-E'
7724 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7727 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7729 if test "$with_gnu_ld" = no; then
7730 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7731 hardcode_libdir_separator=:
7734 export_dynamic_flag_spec='${wl}-E'
7736 # hardcode_minus_L: Not really in the search PATH,
7737 # but as the default location of the library.
7738 hardcode_minus_L=yes
7743 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7746 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7749 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7752 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7758 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7761 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7764 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7768 if test "$with_gnu_ld" = no; then
7769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7770 hardcode_libdir_separator=:
7774 hardcode_libdir_flag_spec_ld='+b $libdir'
7776 hardcode_shlibpath_var=no
7780 export_dynamic_flag_spec='${wl}-E'
7782 # hardcode_minus_L: Not really in the search PATH,
7783 # but as the default location of the library.
7784 hardcode_minus_L=yes
7790 irix5* | irix6* | nonstopux*)
7791 if test "$GCC" = yes; then
7792 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'
7794 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'
7795 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7798 hardcode_libdir_separator=:
7799 link_all_deplibs=yes
7802 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7806 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7808 hardcode_libdir_flag_spec='-R$libdir'
7810 hardcode_shlibpath_var=no
7814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7817 hardcode_libdir_separator=:
7818 hardcode_shlibpath_var=no
7823 hardcode_shlibpath_var=no
7824 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7826 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7828 export_dynamic_flag_spec='${wl}-E'
7831 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7833 hardcode_libdir_flag_spec='-R$libdir'
7836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7837 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7844 hardcode_libdir_flag_spec='-L$libdir'
7845 hardcode_minus_L=yes
7846 allow_undefined_flag=unsupported
7847 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'
7848 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7852 if test "$GCC" = yes; then
7853 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7854 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'
7856 allow_undefined_flag=' -expect_unresolved \*'
7857 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'
7859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7860 hardcode_libdir_separator=:
7863 osf4* | osf5*) # as osf3* with the addition of -msym flag
7864 if test "$GCC" = yes; then
7865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7866 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'
7867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7869 allow_undefined_flag=' -expect_unresolved \*'
7870 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'
7871 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7872 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7874 # Both c and cxx compiler support -rpath directly
7875 hardcode_libdir_flag_spec='-rpath $libdir'
7877 hardcode_libdir_separator=:
7881 no_undefined_flag=' -z text'
7882 if test "$GCC" = yes; then
7884 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7885 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7886 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7889 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7890 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7893 hardcode_libdir_flag_spec='-R$libdir'
7894 hardcode_shlibpath_var=no
7896 solaris2.[0-5] | solaris2.[0-5].*) ;;
7898 # The compiler driver will combine linker options so we
7899 # cannot just pass the convience library names through
7900 # without $wl, iff we do not link with $LD.
7901 # Luckily, gcc supports the same syntax we need for Sun Studio.
7902 # Supported since Solaris 2.6 (maybe 2.5.1?)
7905 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7907 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7910 link_all_deplibs=yes
7914 if test "x$host_vendor" = xsequent; then
7915 # Use $CC to link under sequent, because it throws in some extra .o
7916 # files that make .init and .fini sections work.
7917 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7919 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7921 hardcode_libdir_flag_spec='-L$libdir'
7923 hardcode_minus_L=yes
7924 hardcode_shlibpath_var=no
7928 case $host_vendor in
7930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7931 hardcode_direct=yes # is this really true???
7934 ## LD is ld it makes a PLAMLIB
7935 ## CC just makes a GrossModule.
7936 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7937 reload_cmds='$CC -r -o $output$reload_objs'
7941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7942 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7945 runpath_var='LD_RUN_PATH'
7946 hardcode_shlibpath_var=no
7950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7951 hardcode_shlibpath_var=no
7952 export_dynamic_flag_spec='-Bexport'
7956 if test -d /usr/nec; then
7957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7958 hardcode_shlibpath_var=no
7959 runpath_var=LD_RUN_PATH
7960 hardcode_runpath_var=yes
7965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7966 no_undefined_flag='${wl}-z,text'
7967 archive_cmds_need_lc=no
7968 hardcode_shlibpath_var=no
7969 runpath_var='LD_RUN_PATH'
7971 if test "$GCC" = yes; then
7972 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7973 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7975 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7976 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7980 sysv5* | sco3.2v5* | sco5v6*)
7981 # Note: We can NOT use -z defs as we might desire, because we do not
7982 # link with -lc, and that would cause any symbols used from libc to
7983 # always be unresolved, which means just about no library would
7984 # ever link correctly. If we're not using GNU ld we use -z text
7985 # though, which does catch some bad symbols but isn't as heavy-handed
7987 no_undefined_flag='${wl}-z,text'
7988 allow_undefined_flag='${wl}-z,nodefs'
7989 archive_cmds_need_lc=no
7990 hardcode_shlibpath_var=no
7991 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7992 hardcode_libdir_separator=':'
7993 link_all_deplibs=yes
7994 export_dynamic_flag_spec='${wl}-Bexport'
7995 runpath_var='LD_RUN_PATH'
7997 if test "$GCC" = yes; then
7998 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7999 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8001 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8002 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8008 hardcode_libdir_flag_spec='-L$libdir'
8009 hardcode_shlibpath_var=no
8018 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8019 echo "${ECHO_T}$ld_shlibs" >&6
8020 test "$ld_shlibs" = no && can_build_shared=no
8023 # Do we need to explicitly link libc?
8025 case "x$archive_cmds_need_lc" in
8027 # Assume -lc should be added
8028 archive_cmds_need_lc=yes
8030 if test "$enable_shared" = yes && test "$GCC" = yes; then
8031 case $archive_cmds in
8033 # FIXME: we may have to deal with multi-command sequences.
8036 # Test whether the compiler implicitly links with -lc since on some
8037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8038 # to ld, don't add -lc before -lgcc.
8039 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8040 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } 2>conftest.err; then
8051 libobjs=conftest.$ac_objext
8053 wl=$lt_prog_compiler_wl
8054 pic_flag=$lt_prog_compiler_pic
8060 lt_save_allow_undefined_flag=$allow_undefined_flag
8061 allow_undefined_flag=
8062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8063 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }
8068 archive_cmds_need_lc=no
8070 archive_cmds_need_lc=yes
8072 allow_undefined_flag=$lt_save_allow_undefined_flag
8074 cat conftest.err 1>&5
8077 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8078 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8085 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8086 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8088 libname_spec='lib$name'
8096 shlibpath_overrides_runpath=unknown
8098 dynamic_linker="$host_os ld.so"
8099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8100 if test "$GCC" = yes; then
8101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8102 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8103 # if the path contains ";" then we assume it to be the separator
8104 # otherwise default to the standard path separator (i.e. ":") - it is
8105 # assumed that no part of a normal pathname contains ";" but that should
8106 # okay in the real world where ";" in dirpaths is itself problematic.
8107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8112 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8114 need_lib_prefix=unknown
8115 hardcode_into_libs=no
8117 # when you set need_version to no, make sure it does not cause -set_version
8118 # flags to be left without arguments
8119 need_version=unknown
8124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8125 shlibpath_var=LIBPATH
8127 # AIX 3 has no versioning support, so we append a major version to the name.
8128 soname_spec='${libname}${release}${shared_ext}$major'
8135 hardcode_into_libs=yes
8136 if test "$host_cpu" = ia64; then
8137 # AIX 5 supports IA64
8138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8139 shlibpath_var=LD_LIBRARY_PATH
8141 # With GCC up to 2.95.x, collect2 would create an import file
8142 # for dependence libraries. The import file would start with
8143 # the line `#! .'. This would cause the generated library to
8144 # depend on `.', always an invalid library. This was fixed in
8145 # development snapshots of GCC prior to 3.0.
8147 aix4 | aix4.[01] | aix4.[01].*)
8148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8150 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8158 # soname into executable. Probably we can add versioning support to
8159 # collect2, so additional links can be useful in future.
8160 if test "$aix_use_runtimelinking" = yes; then
8161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8162 # instead of lib<name>.a to let people know that these are not
8163 # typical AIX shared libraries.
8164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8166 # We preserve .a as extension for shared libraries through AIX4.2
8167 # and later when we are not doing run time linking.
8168 library_names_spec='${libname}${release}.a $libname.a'
8169 soname_spec='${libname}${release}${shared_ext}$major'
8171 shlibpath_var=LIBPATH
8176 library_names_spec='$libname.ixlibrary $libname.a'
8177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8178 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'
8182 library_names_spec='${libname}${shared_ext}'
8183 dynamic_linker="$host_os ld.so"
8184 shlibpath_var=LIBRARY_PATH
8190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8191 soname_spec='${libname}${release}${shared_ext}$major'
8192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8193 shlibpath_var=LD_LIBRARY_PATH
8194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8196 # the default ld.so.conf also contains /usr/contrib/lib and
8197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8198 # libtool to hard-code these into programs
8201 cygwin* | mingw* | pw32*)
8202 version_type=windows
8207 case $GCC,$host_os in
8208 yes,cygwin* | yes,mingw* | yes,pw32*)
8209 library_names_spec='$libname.dll.a'
8210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8211 postinstall_cmds='base_file=`basename \${file}`~
8212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8213 dldir=$destdir/`dirname \$dlpath`~
8214 test -d \$dldir || mkdir -p \$dldir~
8215 $install_prog $dir/$dlname \$dldir/$dlname~
8216 chmod a+x \$dldir/$dlname'
8217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8218 dlpath=$dir/\$dldll~
8220 shlibpath_overrides_runpath=yes
8224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8226 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8229 # MinGW DLLs use traditional 'lib' prefix
8230 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8231 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8232 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8233 # It is most probably a Windows format PATH printed by
8234 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8235 # path with ; separators, and with drive letters. We can handle the
8236 # drive letters (cygwin fileutils understands them), so leave them,
8237 # especially as we might pass files found there to a mingw objdump,
8238 # which wouldn't understand a cygwinified path. Ahh.
8239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8245 # pw32 DLLs use 'pw' prefix rather than 'lib'
8246 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8252 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8255 dynamic_linker='Win32 ld.exe'
8256 # FIXME: first we should search . and the directory the executable is in
8260 darwin* | rhapsody*)
8261 dynamic_linker="$host_os dyld"
8265 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8266 soname_spec='${libname}${release}${major}$shared_ext'
8267 shlibpath_overrides_runpath=yes
8268 shlibpath_var=DYLD_LIBRARY_PATH
8269 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8270 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8271 if test "$GCC" = yes; then
8272 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"`
8274 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8284 soname_spec='${libname}${release}${shared_ext}$major'
8285 shlibpath_var=LD_LIBRARY_PATH
8296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8297 soname_spec='${libname}${release}${shared_ext}$major'
8298 shlibpath_var=LD_LIBRARY_PATH
8299 shlibpath_overrides_runpath=no
8300 hardcode_into_libs=yes
8301 dynamic_linker='GNU ld.so'
8304 freebsd* | dragonfly*)
8305 # DragonFly does not have aout. When/if they implement a new
8306 # versioning mechanism, adjust this.
8307 if test -x /usr/bin/objformat; then
8308 objformat=`/usr/bin/objformat`
8311 freebsd[123]*) objformat=aout ;;
8315 version_type=freebsd-$objformat
8316 case $version_type in
8318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8327 shlibpath_var=LD_LIBRARY_PATH
8330 shlibpath_overrides_runpath=yes
8332 freebsd3.[01]* | freebsdelf3.[01]*)
8333 shlibpath_overrides_runpath=yes
8334 hardcode_into_libs=yes
8336 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8337 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8338 shlibpath_overrides_runpath=no
8339 hardcode_into_libs=yes
8341 freebsd*) # from 4.6 on
8342 shlibpath_overrides_runpath=yes
8343 hardcode_into_libs=yes
8352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8353 soname_spec='${libname}${release}${shared_ext}$major'
8354 shlibpath_var=LD_LIBRARY_PATH
8355 hardcode_into_libs=yes
8358 hpux9* | hpux10* | hpux11*)
8359 # Give a soname corresponding to the major version so that dld.sl refuses to
8360 # link against other versions.
8367 hardcode_into_libs=yes
8368 dynamic_linker="$host_os dld.so"
8369 shlibpath_var=LD_LIBRARY_PATH
8370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8372 soname_spec='${libname}${release}${shared_ext}$major'
8373 if test "X$HPUX_IA64_MODE" = X32; then
8374 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8382 hardcode_into_libs=yes
8383 dynamic_linker="$host_os dld.sl"
8384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387 soname_spec='${libname}${release}${shared_ext}$major'
8388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8393 dynamic_linker="$host_os dld.sl"
8394 shlibpath_var=SHLIB_PATH
8395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8397 soname_spec='${libname}${release}${shared_ext}$major'
8400 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8401 postinstall_cmds='chmod 555 $lib'
8408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8409 soname_spec='${libname}${release}${shared_ext}$major'
8410 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8411 shlibpath_var=LD_LIBRARY_PATH
8412 shlibpath_overrides_runpath=no
8413 hardcode_into_libs=yes
8416 irix5* | irix6* | nonstopux*)
8418 nonstopux*) version_type=nonstopux ;;
8420 if test "$lt_cv_prog_gnu_ld" = yes; then
8428 soname_spec='${libname}${release}${shared_ext}$major'
8429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8431 irix5* | nonstopux*)
8435 case $LD in # libtool.m4 will add one of these switches to LD
8436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8437 libsuff= shlibsuff= libmagic=32-bit;;
8438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8439 libsuff=32 shlibsuff=N32 libmagic=N32;;
8440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8441 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8442 *) libsuff= shlibsuff= libmagic=never-match;;
8446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8447 shlibpath_overrides_runpath=no
8448 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8449 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8450 hardcode_into_libs=yes
8453 # No shared lib support for Linux oldld, aout, or coff.
8454 linux*oldld* | linux*aout* | linux*coff*)
8458 # This must be Linux ELF.
8463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8464 soname_spec='${libname}${release}${shared_ext}$major'
8465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8466 shlibpath_var=LD_LIBRARY_PATH
8467 shlibpath_overrides_runpath=no
8468 # This implies no fast_install, which is unacceptable.
8469 # Some rework will be needed to allow for fast_install
8470 # before this can be enabled.
8471 hardcode_into_libs=yes
8473 # Append ld.so.conf contents to the search path
8474 if test -f /etc/ld.so.conf; then
8475 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8479 # We used to test for /lib/ld.so.1 and disable shared libraries on
8480 # powerpc, because MkLinux only supported shared libraries with the
8481 # GNU dynamic linker. Since this was broken with cross compilers,
8482 # most powerpc-linux boxes support dynamic linking these days and
8483 # people can always --disable-shared, the test was removed, and we
8484 # assume the GNU/Linux dynamic linker is in use.
8485 dynamic_linker='GNU/Linux ld.so'
8492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8493 soname_spec='${libname}${release}${shared_ext}$major'
8494 shlibpath_var=LD_LIBRARY_PATH
8495 shlibpath_overrides_runpath=no
8496 hardcode_into_libs=yes
8497 dynamic_linker='NetBSD ld.elf_so'
8504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8505 soname_spec='${libname}${release}${shared_ext}$major'
8506 shlibpath_var=LD_LIBRARY_PATH
8507 shlibpath_overrides_runpath=no
8508 hardcode_into_libs=yes
8509 dynamic_linker='GNU ld.so'
8516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8519 dynamic_linker='NetBSD (a.out) ld.so'
8521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8522 soname_spec='${libname}${release}${shared_ext}$major'
8523 dynamic_linker='NetBSD ld.elf_so'
8525 shlibpath_var=LD_LIBRARY_PATH
8526 shlibpath_overrides_runpath=yes
8527 hardcode_into_libs=yes
8532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8533 shlibpath_var=LD_LIBRARY_PATH
8534 shlibpath_overrides_runpath=yes
8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542 soname_spec='${libname}${release}${shared_ext}$major'
8543 shlibpath_var=LD_LIBRARY_PATH
8544 shlibpath_overrides_runpath=yes
8549 sys_lib_dlsearch_path_spec="/usr/lib"
8551 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8553 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8554 *) need_version=no ;;
8556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8558 shlibpath_var=LD_LIBRARY_PATH
8559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8561 openbsd2.[89] | openbsd2.[89].*)
8562 shlibpath_overrides_runpath=no
8565 shlibpath_overrides_runpath=yes
8569 shlibpath_overrides_runpath=yes
8574 libname_spec='$name'
8577 library_names_spec='$libname${shared_ext} $libname.a'
8578 dynamic_linker='OS/2 ld.exe'
8579 shlibpath_var=LIBPATH
8582 osf3* | osf4* | osf5*)
8586 soname_spec='${libname}${release}${shared_ext}$major'
8587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8588 shlibpath_var=LD_LIBRARY_PATH
8589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8598 soname_spec='${libname}${release}${shared_ext}$major'
8599 shlibpath_var=LD_LIBRARY_PATH
8600 shlibpath_overrides_runpath=yes
8601 hardcode_into_libs=yes
8602 # ldd complains unless libraries are executable
8603 postinstall_cmds='chmod +x $lib'
8608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8609 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8610 shlibpath_var=LD_LIBRARY_PATH
8611 shlibpath_overrides_runpath=yes
8612 if test "$with_gnu_ld" = yes; then
8620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8621 soname_spec='${libname}${release}${shared_ext}$major'
8622 shlibpath_var=LD_LIBRARY_PATH
8623 case $host_vendor in
8625 shlibpath_overrides_runpath=no
8627 export_dynamic_flag_spec='${wl}-Blargedynsym'
8628 runpath_var=LD_RUN_PATH
8636 shlibpath_overrides_runpath=no
8637 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8643 if test -d /usr/nec ;then
8645 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8646 soname_spec='$libname${shared_ext}.$major'
8647 shlibpath_var=LD_LIBRARY_PATH
8651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8652 version_type=freebsd-elf
8655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8656 soname_spec='${libname}${release}${shared_ext}$major'
8657 shlibpath_var=LD_LIBRARY_PATH
8658 hardcode_into_libs=yes
8659 if test "$with_gnu_ld" = yes; then
8660 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8661 shlibpath_overrides_runpath=no
8663 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8664 shlibpath_overrides_runpath=yes
8667 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8671 sys_lib_dlsearch_path_spec='/usr/lib'
8676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8677 soname_spec='${libname}${release}${shared_ext}$major'
8678 shlibpath_var=LD_LIBRARY_PATH
8685 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8686 echo "${ECHO_T}$dynamic_linker" >&6
8687 test "$dynamic_linker" = no && can_build_shared=no
8689 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8690 if test "$GCC" = yes; then
8691 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8694 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8695 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8697 if test -n "$hardcode_libdir_flag_spec" || \
8698 test -n "$runpath_var" || \
8699 test "X$hardcode_automatic" = "Xyes" ; then
8701 # We can hardcode non-existant directories.
8702 if test "$hardcode_direct" != no &&
8703 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8704 # have to relink, otherwise we might link with an installed library
8705 # when we should be linking with a yet-to-be-installed one
8706 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8707 test "$hardcode_minus_L" != no; then
8708 # Linking always hardcodes the temporary library directory.
8709 hardcode_action=relink
8711 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8712 hardcode_action=immediate
8715 # We cannot hardcode anything, or else we can only hardcode existing
8717 hardcode_action=unsupported
8719 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8720 echo "${ECHO_T}$hardcode_action" >&6
8722 if test "$hardcode_action" = relink; then
8723 # Fast installation is not supported
8724 enable_fast_install=no
8725 elif test "$shlibpath_overrides_runpath" = yes ||
8726 test "$enable_shared" = no; then
8727 # Fast installation is not necessary
8728 enable_fast_install=needless
8733 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8734 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8735 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8736 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8737 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8738 echo "$as_me:$LINENO: result: yes" >&5
8739 echo "${ECHO_T}yes" >&6
8741 # FIXME - insert some real tests, host_os isn't really good enough
8744 if test -n "$STRIP" ; then
8745 striplib="$STRIP -x"
8746 echo "$as_me:$LINENO: result: yes" >&5
8747 echo "${ECHO_T}yes" >&6
8749 echo "$as_me:$LINENO: result: no" >&5
8750 echo "${ECHO_T}no" >&6
8754 echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6
8760 if test "x$enable_dlopen" != xyes; then
8761 enable_dlopen=unknown
8762 enable_dlopen_self=unknown
8763 enable_dlopen_self_static=unknown
8770 lt_cv_dlopen="load_add_on"
8772 lt_cv_dlopen_self=yes
8776 lt_cv_dlopen="LoadLibrary"
8781 lt_cv_dlopen="dlopen"
8786 # if libdl is installed we need to link against it
8787 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8788 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8789 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 ac_check_lib_save_LIBS=$LIBS
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8801 /* Override any gcc2 internal prototype to avoid an error. */
8805 /* We use char because int might match the return type of a gcc2
8806 builtin and then its argument prototype would still apply. */
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>conftest.er1
8820 grep -v '^ *+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); }; } &&
8831 { ac_try='test -s conftest$ac_exeext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_cv_lib_dl_dlopen=yes
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_cv_lib_dl_dlopen=no
8844 rm -f conftest.err conftest.$ac_objext \
8845 conftest$ac_exeext conftest.$ac_ext
8846 LIBS=$ac_check_lib_save_LIBS
8848 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8850 if test $ac_cv_lib_dl_dlopen = yes; then
8851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8856 lt_cv_dlopen_self=yes
8863 echo "$as_me:$LINENO: checking for shl_load" >&5
8864 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8865 if test "${ac_cv_func_shl_load+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 cat >conftest.$ac_ext <<_ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8874 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8876 #define shl_load innocuous_shl_load
8878 /* System header to define __stub macros and hopefully few prototypes,
8879 which can conflict with char shl_load (); below.
8880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8881 <limits.h> exists even on freestanding compilers. */
8884 # include <limits.h>
8886 # include <assert.h>
8891 /* Override any gcc2 internal prototype to avoid an error. */
8896 /* We use char because int might match the return type of a gcc2
8897 builtin and then its argument prototype would still apply. */
8899 /* The GNU C library defines this for functions which it implements
8900 to always fail with ENOSYS. Some functions are actually named
8901 something starting with __ and the normal name is an alias. */
8902 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8905 char (*f) () = shl_load;
8914 return f != shl_load;
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921 (eval $ac_link) 2>conftest.er1
8923 grep -v '^ *+' conftest.er1 >conftest.err
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest$ac_exeext'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 ac_cv_func_shl_load=yes
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8945 ac_cv_func_shl_load=no
8947 rm -f conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8951 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8952 if test $ac_cv_func_shl_load = yes; then
8953 lt_cv_dlopen="shl_load"
8955 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8956 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8957 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 ac_check_lib_save_LIBS=$LIBS
8962 cat >conftest.$ac_ext <<_ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8969 /* Override any gcc2 internal prototype to avoid an error. */
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>conftest.er1
8988 grep -v '^ *+' conftest.er1 >conftest.err
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; } &&
8999 { ac_try='test -s conftest$ac_exeext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_lib_dld_shl_load=yes
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9010 ac_cv_lib_dld_shl_load=no
9012 rm -f conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9016 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9017 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9018 if test $ac_cv_lib_dld_shl_load = yes; then
9019 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9021 echo "$as_me:$LINENO: checking for dlopen" >&5
9022 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9023 if test "${ac_cv_func_dlopen+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9034 #define dlopen innocuous_dlopen
9036 /* System header to define __stub macros and hopefully few prototypes,
9037 which can conflict with char dlopen (); below.
9038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9039 <limits.h> exists even on freestanding compilers. */
9042 # include <limits.h>
9044 # include <assert.h>
9049 /* Override any gcc2 internal prototype to avoid an error. */
9054 /* We use char because int might match the return type of a gcc2
9055 builtin and then its argument prototype would still apply. */
9057 /* The GNU C library defines this for functions which it implements
9058 to always fail with ENOSYS. Some functions are actually named
9059 something starting with __ and the normal name is an alias. */
9060 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9063 char (*f) () = dlopen;
9077 rm -f conftest.$ac_objext conftest$ac_exeext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079 (eval $ac_link) 2>conftest.er1
9081 grep -v '^ *+' conftest.er1 >conftest.err
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } &&
9086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; } &&
9092 { ac_try='test -s conftest$ac_exeext'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 ac_cv_func_dlopen=yes
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 ac_cv_func_dlopen=no
9105 rm -f conftest.err conftest.$ac_objext \
9106 conftest$ac_exeext conftest.$ac_ext
9108 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9109 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9110 if test $ac_cv_func_dlopen = yes; then
9111 lt_cv_dlopen="dlopen"
9113 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9114 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9115 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 ac_check_lib_save_LIBS=$LIBS
9120 cat >conftest.$ac_ext <<_ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9127 /* Override any gcc2 internal prototype to avoid an error. */
9131 /* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1 >conftest.err
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; } &&
9157 { ac_try='test -s conftest$ac_exeext'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; }; then
9163 ac_cv_lib_dl_dlopen=yes
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 ac_cv_lib_dl_dlopen=no
9170 rm -f conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
9172 LIBS=$ac_check_lib_save_LIBS
9174 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9175 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9176 if test $ac_cv_lib_dl_dlopen = yes; then
9177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9179 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9180 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9181 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 ac_check_lib_save_LIBS=$LIBS
9186 cat >conftest.$ac_ext <<_ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9193 /* Override any gcc2 internal prototype to avoid an error. */
9197 /* We use char because int might match the return type of a gcc2
9198 builtin and then its argument prototype would still apply. */
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9210 (eval $ac_link) 2>conftest.er1
9212 grep -v '^ *+' conftest.er1 >conftest.err
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_lib_svld_dlopen=yes
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_cv_lib_svld_dlopen=no
9236 rm -f conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9241 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9242 if test $ac_cv_lib_svld_dlopen = yes; then
9243 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9245 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9246 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9247 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 ac_check_lib_save_LIBS=$LIBS
9252 cat >conftest.$ac_ext <<_ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9259 /* Override any gcc2 internal prototype to avoid an error. */
9263 /* We use char because int might match the return type of a gcc2
9264 builtin and then its argument prototype would still apply. */
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9276 (eval $ac_link) 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_lib_dld_dld_link=yes
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_cv_lib_dld_dld_link=no
9302 rm -f conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9304 LIBS=$ac_check_lib_save_LIBS
9306 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9308 if test $ac_cv_lib_dld_dld_link = yes; then
9309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9330 if test "x$lt_cv_dlopen" != xno; then
9336 case $lt_cv_dlopen in
9338 save_CPPFLAGS="$CPPFLAGS"
9339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9341 save_LDFLAGS="$LDFLAGS"
9342 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9345 LIBS="$lt_cv_dlopen_libs $LIBS"
9347 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9349 if test "${lt_cv_dlopen_self+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 if test "$cross_compiling" = yes; then :
9353 lt_cv_dlopen_self=cross
9355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9356 lt_status=$lt_dlunknown
9357 cat > conftest.$ac_ext <<EOF
9358 #line 9358 "configure"
9359 #include "confdefs.h"
9368 # define LT_DLGLOBAL RTLD_GLOBAL
9371 # define LT_DLGLOBAL DL_GLOBAL
9373 # define LT_DLGLOBAL 0
9377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9378 find out it does not work in some platform. */
9379 #ifndef LT_DLLAZY_OR_NOW
9381 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9384 # define LT_DLLAZY_OR_NOW DL_LAZY
9387 # define LT_DLLAZY_OR_NOW RTLD_NOW
9390 # define LT_DLLAZY_OR_NOW DL_NOW
9392 # define LT_DLLAZY_OR_NOW 0
9400 extern "C" void exit (int);
9403 void fnord() { int i=42;}
9406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9407 int status = $lt_dlunknown;
9411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9413 /* dlclose (self); */
9421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422 (eval $ac_link) 2>&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9426 (./conftest; exit; ) >&5 2>/dev/null
9429 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9430 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9431 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9434 # compilation failed
9435 lt_cv_dlopen_self=no
9442 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9443 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9445 if test "x$lt_cv_dlopen_self" = xyes; then
9446 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9447 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9448 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9449 if test "${lt_cv_dlopen_self_static+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 if test "$cross_compiling" = yes; then :
9453 lt_cv_dlopen_self_static=cross
9455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9456 lt_status=$lt_dlunknown
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9458 "configure"
9459 #include "confdefs.h"
9468 # define LT_DLGLOBAL RTLD_GLOBAL
9471 # define LT_DLGLOBAL DL_GLOBAL
9473 # define LT_DLGLOBAL 0
9477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9478 find out it does not work in some platform. */
9479 #ifndef LT_DLLAZY_OR_NOW
9481 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9484 # define LT_DLLAZY_OR_NOW DL_LAZY
9487 # define LT_DLLAZY_OR_NOW RTLD_NOW
9490 # define LT_DLLAZY_OR_NOW DL_NOW
9492 # define LT_DLLAZY_OR_NOW 0
9500 extern "C" void exit (int);
9503 void fnord() { int i=42;}
9506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9507 int status = $lt_dlunknown;
9511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9512 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9513 /* dlclose (self); */
9521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9522 (eval $ac_link) 2>&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9526 (./conftest; exit; ) >&5 2>/dev/null
9529 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9530 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9531 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9534 # compilation failed
9535 lt_cv_dlopen_self_static=no
9542 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9543 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9546 CPPFLAGS="$save_CPPFLAGS"
9547 LDFLAGS="$save_LDFLAGS"
9552 case $lt_cv_dlopen_self in
9553 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9554 *) enable_dlopen_self=unknown ;;
9557 case $lt_cv_dlopen_self_static in
9558 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9559 *) enable_dlopen_self_static=unknown ;;
9564 # Report which library types will actually be built
9565 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9566 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9567 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9568 echo "${ECHO_T}$can_build_shared" >&6
9570 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9571 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9572 test "$can_build_shared" = "no" && enable_shared=no
9574 # On AIX, shared libraries and static libraries use the same namespace, and
9575 # are all built from PIC.
9578 test "$enable_shared" = yes && enable_static=no
9579 if test -n "$RANLIB"; then
9580 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9581 postinstall_cmds='$RANLIB $lib'
9586 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9587 test "$enable_shared" = yes && enable_static=no
9591 echo "$as_me:$LINENO: result: $enable_shared" >&5
9592 echo "${ECHO_T}$enable_shared" >&6
9594 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9595 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9596 # Make sure either enable_shared or enable_static is yes.
9597 test "$enable_shared" = yes || enable_static=yes
9598 echo "$as_me:$LINENO: result: $enable_static" >&5
9599 echo "${ECHO_T}$enable_static" >&6
9601 # The else clause should only fire when bootstrapping the
9602 # libtool distribution, otherwise you forgot to ship ltmain.sh
9603 # with your package, and you will get complaints that there are
9604 # no rules to generate ltmain.sh.
9605 if test -f "$ltmain"; then
9606 # See if we are running on zsh, and set the options which allow our commands through
9607 # without removal of \ escapes.
9608 if test -n "${ZSH_VERSION+set}" ; then
9609 setopt NO_GLOB_SUBST
9611 # Now quote all the things that may contain metacharacters while being
9612 # careful not to overquote the AC_SUBSTed values. We take copies of the
9613 # variables and quote the copies for generation of the libtool script.
9614 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9616 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9617 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9618 deplibs_check_method reload_flag reload_cmds need_locks \
9619 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9620 lt_cv_sys_global_symbol_to_c_name_address \
9621 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9622 old_postinstall_cmds old_postuninstall_cmds \
9626 lt_prog_compiler_wl \
9627 lt_prog_compiler_pic \
9628 lt_prog_compiler_static \
9629 lt_prog_compiler_no_builtin_flag \
9630 export_dynamic_flag_spec \
9631 thread_safe_flag_spec \
9632 whole_archive_flag_spec \
9633 enable_shared_with_static_runtimes \
9635 old_archive_from_new_cmds \
9640 compiler_lib_search_path \
9642 archive_expsym_cmds \
9644 postuninstall_cmds \
9645 old_archive_from_expsyms_cmds \
9646 allow_undefined_flag \
9648 export_symbols_cmds \
9649 hardcode_libdir_flag_spec \
9650 hardcode_libdir_flag_spec_ld \
9651 hardcode_libdir_separator \
9652 hardcode_automatic \
9654 module_expsym_cmds \
9655 lt_cv_prog_compiler_c_o \
9660 old_archive_cmds | \
9661 old_archive_from_new_cmds | \
9663 archive_expsym_cmds | \
9665 module_expsym_cmds | \
9666 old_archive_from_expsyms_cmds | \
9667 export_symbols_cmds | \
9668 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9669 postinstall_cmds | postuninstall_cmds | \
9670 old_postinstall_cmds | old_postuninstall_cmds | \
9671 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9672 # Double-quote double-evaled strings.
9673 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9676 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9682 *'\$0 --fallback-echo"')
9683 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9688 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9690 { echo "$as_me:$LINENO: creating $ofile" >&5
9691 echo "$as_me: creating $ofile" >&6;}
9693 cat <<__EOF__ >> "$cfgfile"
9696 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9697 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9698 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9700 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9701 # Free Software Foundation, Inc.
9703 # This file is part of GNU Libtool:
9704 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9706 # This program is free software; you can redistribute it and/or modify
9707 # it under the terms of the GNU General Public License as published by
9708 # the Free Software Foundation; either version 2 of the License, or
9709 # (at your option) any later version.
9711 # This program is distributed in the hope that it will be useful, but
9712 # WITHOUT ANY WARRANTY; without even the implied warranty of
9713 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9714 # General Public License for more details.
9716 # You should have received a copy of the GNU General Public License
9717 # along with this program; if not, write to the Free Software
9718 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9720 # As a special exception to the GNU General Public License, if you
9721 # distribute this file as part of a program that contains a
9722 # configuration script generated by Autoconf, you may include it under
9723 # the same distribution terms that you use for the rest of that program.
9725 # A sed program that does not truncate output.
9728 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9729 Xsed="$SED -e 1s/^X//"
9731 # The HP-UX ksh and POSIX shell print the target directory to stdout
9733 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9735 # The names of the tagged configurations supported by this script.
9738 # ### BEGIN LIBTOOL CONFIG
9740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9742 # Shell to use when invoking shell scripts.
9745 # Whether or not to build shared libraries.
9746 build_libtool_libs=$enable_shared
9748 # Whether or not to build static libraries.
9749 build_old_libs=$enable_static
9751 # Whether or not to add -lc for building shared libraries.
9752 build_libtool_need_lc=$archive_cmds_need_lc
9754 # Whether or not to disallow shared libs when runtime libs are static
9755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9757 # Whether or not to optimize for fast installation.
9758 fast_install=$enable_fast_install
9761 host_alias=$host_alias
9766 build_alias=$build_alias
9770 # An echo program that does not interpret backslashes.
9775 AR_FLAGS=$lt_AR_FLAGS
9780 # LTCC compiler flags.
9781 LTCFLAGS=$lt_LTCFLAGS
9783 # A language-specific compiler.
9786 # Is the compiler the GNU C compiler?
9792 # The linker used to build libraries.
9795 # Whether we need hard or soft links.
9798 # A BSD-compatible nm program.
9801 # A symbol stripping program
9804 # Used to examine libraries when file_magic_cmd begins "file"
9805 MAGIC_CMD=$MAGIC_CMD
9807 # Used on cygwin: DLL creation program.
9810 # Used on cygwin: object dumper.
9813 # Used on cygwin: assembler.
9816 # The name of the directory that contains temporary libtool files.
9819 # How to create reloadable object files.
9820 reload_flag=$lt_reload_flag
9821 reload_cmds=$lt_reload_cmds
9823 # How to pass a linker flag through the compiler.
9824 wl=$lt_lt_prog_compiler_wl
9826 # Object file suffix (normally "o").
9829 # Old archive suffix (normally "a").
9832 # Shared library suffix (normally ".so").
9833 shrext_cmds='$shrext_cmds'
9835 # Executable file suffix (normally "").
9838 # Additional compiler flags for building library objects.
9839 pic_flag=$lt_lt_prog_compiler_pic
9842 # What is the maximum length of a command?
9843 max_cmd_len=$lt_cv_sys_max_cmd_len
9845 # Does compiler simultaneously support -c and -o options?
9846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9848 # Must we lock files when doing compilation?
9849 need_locks=$lt_need_locks
9851 # Do we need the lib prefix for modules?
9852 need_lib_prefix=$need_lib_prefix
9854 # Do we need a version for libraries?
9855 need_version=$need_version
9857 # Whether dlopen is supported.
9858 dlopen_support=$enable_dlopen
9860 # Whether dlopen of programs is supported.
9861 dlopen_self=$enable_dlopen_self
9863 # Whether dlopen of statically linked programs is supported.
9864 dlopen_self_static=$enable_dlopen_self_static
9866 # Compiler flag to prevent dynamic linking.
9867 link_static_flag=$lt_lt_prog_compiler_static
9869 # Compiler flag to turn off builtin functions.
9870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9872 # Compiler flag to allow reflexive dlopens.
9873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9875 # Compiler flag to generate shared objects directly from archives.
9876 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9878 # Compiler flag to generate thread-safe objects.
9879 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9881 # Library versioning type.
9882 version_type=$version_type
9884 # Format of library name prefix.
9885 libname_spec=$lt_libname_spec
9887 # List of archive names. First name is the real one, the rest are links.
9888 # The last name is the one that the linker finds with -lNAME.
9889 library_names_spec=$lt_library_names_spec
9891 # The coded name of the library, if different from the real name.
9892 soname_spec=$lt_soname_spec
9894 # Commands used to build and install an old-style archive.
9896 old_archive_cmds=$lt_old_archive_cmds
9897 old_postinstall_cmds=$lt_old_postinstall_cmds
9898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9900 # Create an old-style archive from a shared archive.
9901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9903 # Create a temporary old-style archive to link instead of a shared archive.
9904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9906 # Commands used to build and install a shared archive.
9907 archive_cmds=$lt_archive_cmds
9908 archive_expsym_cmds=$lt_archive_expsym_cmds
9909 postinstall_cmds=$lt_postinstall_cmds
9910 postuninstall_cmds=$lt_postuninstall_cmds
9912 # Commands used to build a loadable module (assumed same as above if empty)
9913 module_cmds=$lt_module_cmds
9914 module_expsym_cmds=$lt_module_expsym_cmds
9916 # Commands to strip libraries.
9917 old_striplib=$lt_old_striplib
9918 striplib=$lt_striplib
9920 # Dependencies to place before the objects being linked to create a
9922 predep_objects=$lt_predep_objects
9924 # Dependencies to place after the objects being linked to create a
9926 postdep_objects=$lt_postdep_objects
9928 # Dependencies to place before the objects being linked to create a
9932 # Dependencies to place after the objects being linked to create a
9934 postdeps=$lt_postdeps
9936 # The library search path used internally by the compiler when linking
9938 compiler_lib_search_path=$lt_compiler_lib_search_path
9940 # Method to check whether dependent libraries are shared objects.
9941 deplibs_check_method=$lt_deplibs_check_method
9943 # Command to use when deplibs_check_method == file_magic.
9944 file_magic_cmd=$lt_file_magic_cmd
9946 # Flag that allows shared libraries with undefined symbols to be built.
9947 allow_undefined_flag=$lt_allow_undefined_flag
9949 # Flag that forces no undefined symbols.
9950 no_undefined_flag=$lt_no_undefined_flag
9952 # Commands used to finish a libtool library installation in a directory.
9953 finish_cmds=$lt_finish_cmds
9955 # Same as above, but a single script fragment to be evaled but not shown.
9956 finish_eval=$lt_finish_eval
9958 # Take the output of nm and produce a listing of raw symbols and C names.
9959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9961 # Transform the output of nm in a proper C declaration
9962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9964 # Transform the output of nm in a C name address pair
9965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9967 # This is the shared library runtime path variable.
9968 runpath_var=$runpath_var
9970 # This is the shared library path variable.
9971 shlibpath_var=$shlibpath_var
9973 # Is shlibpath searched before the hard-coded library search path?
9974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9976 # How to hardcode a shared library path into an executable.
9977 hardcode_action=$hardcode_action
9979 # Whether we should hardcode library paths into libraries.
9980 hardcode_into_libs=$hardcode_into_libs
9982 # Flag to hardcode \$libdir into a binary during linking.
9983 # This must work even if \$libdir does not exist.
9984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9986 # If ld is used when linking, flag to hardcode \$libdir into
9987 # a binary during linking. This must work even if \$libdir does
9989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9991 # Whether we need a single -rpath flag with a separated argument.
9992 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9996 hardcode_direct=$hardcode_direct
9998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10000 hardcode_minus_L=$hardcode_minus_L
10002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10003 # the resulting binary.
10004 hardcode_shlibpath_var=$hardcode_shlibpath_var
10006 # Set to yes if building a shared library automatically hardcodes DIR into the library
10007 # and all subsequent libraries and executables linked against it.
10008 hardcode_automatic=$hardcode_automatic
10010 # Variables whose values should be saved in libtool wrapper scripts and
10011 # restored at relink time.
10012 variables_saved_for_relink="$variables_saved_for_relink"
10014 # Whether libtool must link a program against all its dependency libraries.
10015 link_all_deplibs=$link_all_deplibs
10017 # Compile-time system search path for libraries
10018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10020 # Run-time system search path for libraries
10021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10023 # Fix the shell variable \$srcfile for the compiler.
10024 fix_srcfile_path="$fix_srcfile_path"
10026 # Set to yes if exported symbols are required.
10027 always_export_symbols=$always_export_symbols
10029 # The commands to list exported symbols.
10030 export_symbols_cmds=$lt_export_symbols_cmds
10032 # The commands to extract the exported symbol list from a shared archive.
10033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10035 # Symbols that should not be listed in the preloaded symbols.
10036 exclude_expsyms=$lt_exclude_expsyms
10038 # Symbols that must always be exported.
10039 include_expsyms=$lt_include_expsyms
10041 # ### END LIBTOOL CONFIG
10048 cat <<\EOF >> "$cfgfile"
10050 # AIX sometimes has problems with the GCC collect2 program. For some
10051 # reason, if we set the COLLECT_NAMES environment variable, the problems
10052 # vanish in a puff of smoke.
10053 if test "X${COLLECT_NAMES+set}" != Xset; then
10055 export COLLECT_NAMES
10061 # We use sed instead of cat because bash on DJGPP gets confused if
10062 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10063 # text mode, it properly converts lines to CR/LF. This bash problem
10064 # is reportedly fixed, but why not run on old versions too?
10065 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10067 mv -f "$cfgfile" "$ofile" || \
10068 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10072 # If there is no Makefile yet, we rely on a make rule to execute
10073 # `config.status --recheck' to rerun these tests and create the
10074 # libtool script then.
10075 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10076 if test -f "$ltmain_in"; then
10077 test -f Makefile && make "$ltmain"
10083 ac_cpp='$CPP $CPPFLAGS'
10084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10091 # Check whether --with-tags or --without-tags was given.
10092 if test "${with_tags+set}" = set; then
10093 withval="$with_tags"
10094 tagnames="$withval"
10097 if test -f "$ltmain" && test -n "$tagnames"; then
10098 if test ! -f "${ofile}"; then
10099 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10100 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10103 if test -z "$LTCC"; then
10104 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10105 if test -z "$LTCC"; then
10106 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10107 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10109 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10110 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10113 if test -z "$LTCFLAGS"; then
10114 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10117 # Extract list of available tagged configurations in $ofile.
10118 # Note that this assumes the entire list is on one line.
10119 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10122 for tagname in $tagnames; do
10124 # Check whether tagname contains only valid characters
10125 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10127 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10128 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10129 { (exit 1); exit 1; }; }
10133 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10135 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10136 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10137 { (exit 1); exit 1; }; }
10140 # Update the list of available tags.
10141 if test -n "$tagname"; then
10142 echo appending configuration tag \"$tagname\" to $ofile
10146 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10147 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10148 (test "X$CXX" != "Xg++"))) ; then
10150 ac_cpp='$CXXCPP $CPPFLAGS'
10151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10158 archive_cmds_need_lc_CXX=no
10159 allow_undefined_flag_CXX=
10160 always_export_symbols_CXX=no
10161 archive_expsym_cmds_CXX=
10162 export_dynamic_flag_spec_CXX=
10163 hardcode_direct_CXX=no
10164 hardcode_libdir_flag_spec_CXX=
10165 hardcode_libdir_flag_spec_ld_CXX=
10166 hardcode_libdir_separator_CXX=
10167 hardcode_minus_L_CXX=no
10168 hardcode_shlibpath_var_CXX=unsupported
10169 hardcode_automatic_CXX=no
10171 module_expsym_cmds_CXX=
10172 link_all_deplibs_CXX=unknown
10173 old_archive_cmds_CXX=$old_archive_cmds
10174 no_undefined_flag_CXX=
10175 whole_archive_flag_spec_CXX=
10176 enable_shared_with_static_runtimes_CXX=no
10178 # Dependencies to place before and after the object being linked:
10179 predep_objects_CXX=
10180 postdep_objects_CXX=
10183 compiler_lib_search_path_CXX=
10185 # Source file extension for C++ test sources.
10188 # Object file extension for compiled C++ test sources.
10192 # Code to be used in simple compile tests
10193 lt_simple_compile_test_code="int some_variable = 0;\n"
10195 # Code to be used in simple link tests
10196 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10198 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10200 # If no C compiler was specified, use CC.
10203 # If no C compiler flags were specified, use CFLAGS.
10204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10206 # Allow CC to be a program name with arguments.
10210 # save warnings/boilerplate of simple test code
10211 ac_outfile=conftest.$ac_objext
10212 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10213 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10214 _lt_compiler_boilerplate=`cat conftest.err`
10217 ac_outfile=conftest.$ac_objext
10218 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10219 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10220 _lt_linker_boilerplate=`cat conftest.err`
10224 # Allow CC to be a program name with arguments.
10229 lt_save_with_gnu_ld=$with_gnu_ld
10230 lt_save_path_LD=$lt_cv_path_LD
10231 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10232 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10234 $as_unset lt_cv_prog_gnu_ld
10236 if test -n "${lt_cv_path_LDCXX+set}"; then
10237 lt_cv_path_LD=$lt_cv_path_LDCXX
10239 $as_unset lt_cv_path_LD
10241 test -z "${LDCXX+set}" || LD=$LDCXX
10245 for cc_temp in $compiler""; do
10247 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10248 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10253 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10256 # We don't want -fno-exception wen compiling C++ code, so set the
10257 # no_builtin_flag separately
10258 if test "$GXX" = yes; then
10259 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10261 lt_prog_compiler_no_builtin_flag_CXX=
10264 if test "$GXX" = yes; then
10265 # Set up default GNU C++ configuration
10268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10269 if test "${with_gnu_ld+set}" = set; then
10270 withval="$with_gnu_ld"
10271 test "$withval" = no || with_gnu_ld=yes
10276 if test "$GCC" = yes; then
10277 # Check if gcc -print-prog-name=ld gives a path.
10278 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10279 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10282 # gcc leaves a trailing carriage return which upsets mingw
10283 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10285 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10288 # Accept absolute paths.
10290 re_direlt='/[^/][^/]*/\.\./'
10291 # Canonicalize the pathname of ld
10292 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10293 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10294 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10296 test -z "$LD" && LD="$ac_prog"
10299 # If it fails, then pretend we aren't using GCC.
10303 # If it is relative, then search for the first ld in PATH.
10304 with_gnu_ld=unknown
10307 elif test "$with_gnu_ld" = yes; then
10308 echo "$as_me:$LINENO: checking for GNU ld" >&5
10309 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10311 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10312 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10314 if test "${lt_cv_path_LD+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 if test -z "$LD"; then
10318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10319 for ac_dir in $PATH; do
10321 test -z "$ac_dir" && ac_dir=.
10322 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10323 lt_cv_path_LD="$ac_dir/$ac_prog"
10324 # Check to see if the program is GNU ld. I'd rather use --version,
10325 # but apparently some variants of GNU ld only accept -v.
10326 # Break only if it was the GNU/non-GNU ld that we prefer.
10327 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10328 *GNU* | *'with BFD'*)
10329 test "$with_gnu_ld" != no && break
10332 test "$with_gnu_ld" != yes && break
10339 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10343 LD="$lt_cv_path_LD"
10344 if test -n "$LD"; then
10345 echo "$as_me:$LINENO: result: $LD" >&5
10346 echo "${ECHO_T}$LD" >&6
10348 echo "$as_me:$LINENO: result: no" >&5
10349 echo "${ECHO_T}no" >&6
10351 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10352 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10353 { (exit 1); exit 1; }; }
10354 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10355 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10356 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10360 case `$LD -v 2>&1 </dev/null` in
10361 *GNU* | *'with BFD'*)
10362 lt_cv_prog_gnu_ld=yes
10365 lt_cv_prog_gnu_ld=no
10369 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10370 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10371 with_gnu_ld=$lt_cv_prog_gnu_ld
10375 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10376 # archiving commands below assume that GNU ld is being used.
10377 if test "$with_gnu_ld" = yes; then
10378 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10379 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'
10381 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10384 # If archive_cmds runs LD, not CC, wlarc should be empty
10385 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10386 # investigate it a little bit more. (MM)
10389 # ancient GNU ld didn't support --whole-archive et. al.
10390 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10391 grep 'no-whole-archive' > /dev/null; then
10392 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10394 whole_archive_flag_spec_CXX=
10400 # A generic and very simple default shared library creation
10401 # command for GNU C++ for the case where it uses the native
10402 # linker, instead of GNU ld. If possible, this setting should
10403 # overridden to take advantage of the native linker features on
10404 # the platform it is being used on.
10405 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10408 # Commands to make compiler produce verbose output that lists
10409 # what "hidden" libraries, object files and flags are used when
10410 # linking a shared library.
10411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10419 # PORTME: fill in a description of your system's C++ link characteristics
10420 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10421 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10425 # FIXME: insert proper C++ library support
10429 if test "$host_cpu" = ia64; then
10430 # On IA64, the linker does run time linking by default, so we don't
10431 # have to do anything special.
10432 aix_use_runtimelinking=no
10433 exp_sym_flag='-Bexport'
10436 aix_use_runtimelinking=no
10438 # Test if we are trying to use run time linking or normal
10439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10440 # need to do runtime linking.
10441 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10442 for ld_flag in $LDFLAGS; do
10445 aix_use_runtimelinking=yes
10453 exp_sym_flag='-bexport'
10454 no_entry_flag='-bnoentry'
10457 # When large executables or shared objects are built, AIX ld can
10458 # have problems creating the table of contents. If linking a library
10459 # or program results in "error TOC overflow" add -mminimal-toc to
10460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10463 archive_cmds_CXX=''
10464 hardcode_direct_CXX=yes
10465 hardcode_libdir_separator_CXX=':'
10466 link_all_deplibs_CXX=yes
10468 if test "$GXX" = yes; then
10469 case $host_os in aix4.[012]|aix4.[012].*)
10470 # We only want to do this on AIX 4.2 and lower, the check
10471 # below for broken collect2 doesn't work under 4.3+
10472 collect2name=`${CC} -print-prog-name=collect2`
10473 if test -f "$collect2name" && \
10474 strings "$collect2name" | grep resolve_lib_name >/dev/null
10476 # We have reworked collect2
10477 hardcode_direct_CXX=yes
10479 # We have old collect2
10480 hardcode_direct_CXX=unsupported
10481 # It fails to find uninstalled libraries when the uninstalled
10482 # path is not listed in the libpath. Setting hardcode_minus_L
10483 # to unsupported forces relinking
10484 hardcode_minus_L_CXX=yes
10485 hardcode_libdir_flag_spec_CXX='-L$libdir'
10486 hardcode_libdir_separator_CXX=
10490 shared_flag='-shared'
10491 if test "$aix_use_runtimelinking" = yes; then
10492 shared_flag="$shared_flag "'${wl}-G'
10496 if test "$host_cpu" = ia64; then
10497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10498 # chokes on -Wl,-G. The following line is correct:
10501 if test "$aix_use_runtimelinking" = yes; then
10502 shared_flag='${wl}-G'
10504 shared_flag='${wl}-bM:SRE'
10509 # It seems that -bexpall does not export symbols beginning with
10510 # underscore (_), so it is better to generate a list of symbols to export.
10511 always_export_symbols_CXX=yes
10512 if test "$aix_use_runtimelinking" = yes; then
10513 # Warning - without using the other runtime loading flags (-brtl),
10514 # -berok will link without error, but may produce a broken library.
10515 allow_undefined_flag_CXX='-berok'
10516 # Determine the default libpath from the value encoded in an empty executable.
10517 cat >conftest.$ac_ext <<_ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>conftest.er1
10536 grep -v '^ *+' conftest.er1 >conftest.err
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } &&
10541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; } &&
10547 { ac_try='test -s conftest$ac_exeext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10556 # Check for a 64-bit object if we didn't find anything.
10557 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; }
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10564 rm -f conftest.err conftest.$ac_objext \
10565 conftest$ac_exeext conftest.$ac_ext
10566 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10568 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10570 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10572 if test "$host_cpu" = ia64; then
10573 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10574 allow_undefined_flag_CXX="-z nodefs"
10575 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10577 # Determine the default libpath from the value encoded in an empty executable.
10578 cat >conftest.$ac_ext <<_ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595 (eval $ac_link) 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10617 # Check for a 64-bit object if we didn't find anything.
10618 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; }
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10625 rm -f conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10629 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10630 # Warning - without using the other run time loading flags,
10631 # -berok will link without error, but may produce a broken library.
10632 no_undefined_flag_CXX=' ${wl}-bernotok'
10633 allow_undefined_flag_CXX=' ${wl}-berok'
10634 # Exported symbols can be pulled into shared objects from archives
10635 whole_archive_flag_spec_CXX='$convenience'
10636 archive_cmds_need_lc_CXX=yes
10637 # This is similar to how AIX traditionally builds its shared libraries.
10638 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10645 allow_undefined_flag_CXX=unsupported
10646 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10647 # support --undefined. This deserves some investigation. FIXME
10648 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10655 case $cc_basename in
10657 # FIXME: insert proper C++ library support
10663 cygwin* | mingw* | pw32*)
10664 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10665 # as there is no search path for DLLs.
10666 hardcode_libdir_flag_spec_CXX='-L$libdir'
10667 allow_undefined_flag_CXX=unsupported
10668 always_export_symbols_CXX=no
10669 enable_shared_with_static_runtimes_CXX=yes
10671 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10672 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10673 # If the export-symbols file already is a .def file (1st line
10674 # is EXPORTS), use it as is; otherwise, prepend...
10675 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10676 cp $export_symbols $output_objdir/$soname.def;
10678 echo EXPORTS > $output_objdir/$soname.def;
10679 cat $export_symbols >> $output_objdir/$soname.def;
10681 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10686 darwin* | rhapsody*)
10688 rhapsody* | darwin1.[012])
10689 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10692 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10693 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10695 case ${MACOSX_DEPLOYMENT_TARGET} in
10697 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10700 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10706 archive_cmds_need_lc_CXX=no
10707 hardcode_direct_CXX=no
10708 hardcode_automatic_CXX=yes
10709 hardcode_shlibpath_var_CXX=unsupported
10710 whole_archive_flag_spec_CXX=''
10711 link_all_deplibs_CXX=yes
10713 if test "$GXX" = yes ; then
10714 lt_int_apple_cc_single_mod=no
10715 output_verbose_link_cmd='echo'
10716 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10717 lt_int_apple_cc_single_mod=yes
10719 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10720 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10722 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10724 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10726 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10727 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}'
10729 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10731 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10733 case $cc_basename in
10735 output_verbose_link_cmd='echo'
10736 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10737 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10738 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10739 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10740 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}'
10750 case $cc_basename in
10752 # FIXME: insert proper C++ library support
10756 # Green Hills C++ Compiler
10757 # FIXME: insert proper C++ library support
10761 # FIXME: insert proper C++ library support
10767 # C++ shared libraries reported to be fairly broken before switch to ELF
10771 archive_cmds_need_lc_CXX=no
10773 freebsd* | kfreebsd*-gnu | dragonfly*)
10774 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10781 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10782 hardcode_libdir_separator_CXX=:
10783 export_dynamic_flag_spec_CXX='${wl}-E'
10784 hardcode_direct_CXX=yes
10785 hardcode_minus_L_CXX=yes # Not in the search PATH,
10786 # but as the default
10787 # location of the library.
10789 case $cc_basename in
10791 # FIXME: insert proper C++ library support
10795 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'
10796 # Commands to make compiler produce verbose output that lists
10797 # what "hidden" libraries, object files and flags are used when
10798 # linking a shared library.
10800 # There doesn't appear to be a way to prevent this compiler from
10801 # explicitly linking system object files so we need to strip them
10802 # from the output so that they don't get included in the library
10804 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'
10807 if test "$GXX" = yes; then
10808 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'
10810 # FIXME: insert proper C++ library support
10817 if test $with_gnu_ld = no; then
10818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10819 hardcode_libdir_separator_CXX=:
10823 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10826 export_dynamic_flag_spec_CXX='${wl}-E'
10832 hardcode_direct_CXX=no
10833 hardcode_shlibpath_var_CXX=no
10836 hardcode_direct_CXX=yes
10837 hardcode_minus_L_CXX=yes # Not in the search PATH,
10838 # but as the default
10839 # location of the library.
10843 case $cc_basename in
10845 # FIXME: insert proper C++ library support
10851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10860 # Commands to make compiler produce verbose output that lists
10861 # what "hidden" libraries, object files and flags are used when
10862 # linking a shared library.
10864 # There doesn't appear to be a way to prevent this compiler from
10865 # explicitly linking system object files so we need to strip them
10866 # from the output so that they don't get included in the library
10868 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'
10871 if test "$GXX" = yes; then
10872 if test $with_gnu_ld = no; then
10875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10878 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10881 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'
10886 # FIXME: insert proper C++ library support
10893 hardcode_direct_CXX=no
10894 hardcode_shlibpath_var_CXX=no
10895 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10896 export_dynamic_flag_spec_CXX='${wl}-E'
10897 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10898 # Instead, shared libraries are loaded at an image base (0x10000000 by
10899 # default) and relocated if they conflict, which is a slow very memory
10900 # consuming and fragmenting process. To avoid this, we pick a random,
10901 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10902 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10903 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10904 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10907 case $cc_basename in
10910 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10912 # Archives containing C++ object files must be created using
10913 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10914 # necessary to make sure instantiated templates are included
10916 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10919 if test "$GXX" = yes; then
10920 if test "$with_gnu_ld" = no; then
10921 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10923 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'
10926 link_all_deplibs_CXX=yes
10929 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10930 hardcode_libdir_separator_CXX=:
10933 case $cc_basename in
10935 # Kuck and Associates, Inc. (KAI) C++ Compiler
10937 # KCC will only create a shared library if the output file
10938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10939 # to its proper name (with version) after linking.
10940 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'
10941 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'
10942 # Commands to make compiler produce verbose output that lists
10943 # what "hidden" libraries, object files and flags are used when
10944 # linking a shared library.
10946 # There doesn't appear to be a way to prevent this compiler from
10947 # explicitly linking system object files so we need to strip them
10948 # from the output so that they don't get included in the library
10950 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'
10952 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10955 # Archives containing C++ object files must be created using
10956 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10957 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10962 # version 8.0 and above of icpc choke on multiply defined symbols
10963 # if we add $predep_objects and $postdep_objects, however 7.1 and
10964 # earlier do not add the objects themselves.
10965 case `$CC -V 2>&1` in
10967 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10968 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'
10970 *) # Version 8.0 or newer
10973 ia64*) tmp_idyn=' -i_dynamic';;
10975 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10976 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10979 archive_cmds_need_lc_CXX=no
10980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10982 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10985 # Portland Group C++ compiler
10986 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10987 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10989 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10991 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10995 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10996 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'
10998 runpath_var=LD_RUN_PATH
10999 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11000 hardcode_libdir_separator_CXX=:
11002 # Commands to make compiler produce verbose output that lists
11003 # what "hidden" libraries, object files and flags are used when
11004 # linking a shared library.
11006 # There doesn't appear to be a way to prevent this compiler from
11007 # explicitly linking system object files so we need to strip them
11008 # from the output so that they don't get included in the library
11010 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'
11015 # FIXME: insert proper C++ library support
11019 # FIXME: insert proper C++ library support
11023 case $cc_basename in
11025 # FIXME: insert proper C++ library support
11029 # FIXME: insert proper C++ library support
11034 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11035 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11036 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11038 hardcode_libdir_flag_spec_CXX='-R$libdir'
11039 hardcode_direct_CXX=yes
11040 hardcode_shlibpath_var_CXX=no
11042 # Workaround some broken pre-1.5 toolchains
11043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11046 # C++ shared libraries are fairly broken
11050 hardcode_direct_CXX=yes
11051 hardcode_shlibpath_var_CXX=no
11052 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11055 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11056 export_dynamic_flag_spec_CXX='${wl}-E'
11057 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11059 output_verbose_link_cmd='echo'
11062 case $cc_basename in
11064 # Kuck and Associates, Inc. (KAI) C++ Compiler
11066 # KCC will only create a shared library if the output file
11067 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11068 # to its proper name (with version) after linking.
11069 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'
11071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11072 hardcode_libdir_separator_CXX=:
11074 # Archives containing C++ object files must be created using
11075 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11076 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11080 # Rational C++ 2.4.1
11081 # FIXME: insert proper C++ library support
11085 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11086 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11088 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11089 hardcode_libdir_separator_CXX=:
11091 # Commands to make compiler produce verbose output that lists
11092 # what "hidden" libraries, object files and flags are used when
11093 # linking a shared library.
11095 # There doesn't appear to be a way to prevent this compiler from
11096 # explicitly linking system object files so we need to strip them
11097 # from the output so that they don't get included in the library
11099 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'
11102 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11103 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11104 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11107 hardcode_libdir_separator_CXX=:
11109 # Commands to make compiler produce verbose output that lists
11110 # what "hidden" libraries, object files and flags are used when
11111 # linking a shared library.
11112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11115 # FIXME: insert proper C++ library support
11122 case $cc_basename in
11124 # Kuck and Associates, Inc. (KAI) C++ Compiler
11126 # KCC will only create a shared library if the output file
11127 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11128 # to its proper name (with version) after linking.
11129 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'
11131 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11132 hardcode_libdir_separator_CXX=:
11134 # Archives containing C++ object files must be created using
11135 # the KAI C++ compiler.
11136 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11139 # Rational C++ 2.4.1
11140 # FIXME: insert proper C++ library support
11144 allow_undefined_flag_CXX=' -expect_unresolved \*'
11145 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11146 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11147 echo "-hidden">> $lib.exp~
11148 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11151 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11152 hardcode_libdir_separator_CXX=:
11154 # Commands to make compiler produce verbose output that lists
11155 # what "hidden" libraries, object files and flags are used when
11156 # linking a shared library.
11158 # There doesn't appear to be a way to prevent this compiler from
11159 # explicitly linking system object files so we need to strip them
11160 # from the output so that they don't get included in the library
11162 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'
11165 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11166 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11167 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11169 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11170 hardcode_libdir_separator_CXX=:
11172 # Commands to make compiler produce verbose output that lists
11173 # what "hidden" libraries, object files and flags are used when
11174 # linking a shared library.
11175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11178 # FIXME: insert proper C++ library support
11185 # FIXME: insert proper C++ library support
11189 case $cc_basename in
11192 # FIXME: insert proper C++ library support
11197 # FIXME: insert proper C++ library support
11201 # FIXME: insert proper C++ library support
11207 case $cc_basename in
11209 # Sun C++ 4.2, 5.x and Centerline C++
11210 archive_cmds_need_lc_CXX=yes
11211 no_undefined_flag_CXX=' -zdefs'
11212 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11213 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11214 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11216 hardcode_libdir_flag_spec_CXX='-R$libdir'
11217 hardcode_shlibpath_var_CXX=no
11219 solaris2.[0-5] | solaris2.[0-5].*) ;;
11221 # The C++ compiler is used as linker so we must use $wl
11222 # flag to pass the commands to the underlying system
11223 # linker. We must also pass each convience library through
11224 # to the system linker between allextract/defaultextract.
11225 # The C++ compiler will combine linker options so we
11226 # cannot just pass the convience library names through
11228 # Supported since Solaris 2.6 (maybe 2.5.1?)
11229 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11232 link_all_deplibs_CXX=yes
11234 output_verbose_link_cmd='echo'
11236 # Archives containing C++ object files must be created using
11237 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11238 # necessary to make sure instantiated templates are included
11240 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11243 # Green Hills C++ Compiler
11244 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11246 # The C++ compiler must be used to create the archive.
11247 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11250 # GNU C++ compiler with Solaris linker
11251 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11252 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11253 if $CC --version | grep -v '^2\.7' > /dev/null; then
11254 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11255 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11256 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11258 # Commands to make compiler produce verbose output that lists
11259 # what "hidden" libraries, object files and flags are used when
11260 # linking a shared library.
11261 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11263 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11265 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11266 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11267 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11269 # Commands to make compiler produce verbose output that lists
11270 # what "hidden" libraries, object files and flags are used when
11271 # linking a shared library.
11272 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11275 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11281 no_undefined_flag_CXX='${wl}-z,text'
11282 archive_cmds_need_lc_CXX=no
11283 hardcode_shlibpath_var_CXX=no
11284 runpath_var='LD_RUN_PATH'
11286 case $cc_basename in
11288 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11289 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11292 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11293 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11297 sysv5* | sco3.2v5* | sco5v6*)
11298 # Note: We can NOT use -z defs as we might desire, because we do not
11299 # link with -lc, and that would cause any symbols used from libc to
11300 # always be unresolved, which means just about no library would
11301 # ever link correctly. If we're not using GNU ld we use -z text
11302 # though, which does catch some bad symbols but isn't as heavy-handed
11304 # For security reasons, it is highly recommended that you always
11305 # use absolute paths for naming shared libraries, and exclude the
11306 # DT_RUNPATH tag from executables and libraries. But doing so
11307 # requires that you compile everything twice, which is a pain.
11308 # So that behaviour is only enabled if SCOABSPATH is set to a
11309 # non-empty value in the environment. Most likely only useful for
11310 # creating official distributions of packages.
11311 # This is a hack until libtool officially supports absolute path
11312 # names for shared libraries.
11313 no_undefined_flag_CXX='${wl}-z,text'
11314 allow_undefined_flag_CXX='${wl}-z,nodefs'
11315 archive_cmds_need_lc_CXX=no
11316 hardcode_shlibpath_var_CXX=no
11317 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11318 hardcode_libdir_separator_CXX=':'
11319 link_all_deplibs_CXX=yes
11320 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11321 runpath_var='LD_RUN_PATH'
11323 case $cc_basename in
11325 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11329 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11335 case $cc_basename in
11337 # NonStop-UX NCC 3.20
11338 # FIXME: insert proper C++ library support
11342 # FIXME: insert proper C++ library support
11348 # FIXME: insert proper C++ library support
11352 # FIXME: insert proper C++ library support
11356 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11357 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11358 test "$ld_shlibs_CXX" = no && can_build_shared=no
11364 cat > conftest.$ac_ext <<EOF
11368 Foo (void) { a = 0; }
11374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11375 (eval $ac_compile) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; then
11379 # Parse the compiler output and extract the necessary
11380 # objects, libraries and library flags.
11382 # Sentinel used to keep track of whether or not we are before
11383 # the conftest object file.
11384 pre_test_object_deps_done=no
11386 # The `*' in the case matches for architectures that use `case' in
11387 # $output_verbose_cmd can trigger glob expansion during the loop
11388 # eval without this substitution.
11389 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11391 for p in `eval $output_verbose_link_cmd`; do
11395 # Some compilers place space between "-{L,R}" and the path.
11396 # Remove the space.
11397 if test $p = "-L" \
11398 || test $p = "-R"; then
11405 if test "$pre_test_object_deps_done" = no; then
11408 # Internal compiler library paths should come after those
11409 # provided the user. The postdeps already come after the
11410 # user supplied libs so there is no need to process them.
11411 if test -z "$compiler_lib_search_path_CXX"; then
11412 compiler_lib_search_path_CXX="${prev}${p}"
11414 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11417 # The "-l" case would never come before the object being
11418 # linked, so don't bother handling this case.
11421 if test -z "$postdeps_CXX"; then
11422 postdeps_CXX="${prev}${p}"
11424 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11430 # This assumes that the test object file only shows up
11431 # once in the compiler output.
11432 if test "$p" = "conftest.$objext"; then
11433 pre_test_object_deps_done=yes
11437 if test "$pre_test_object_deps_done" = no; then
11438 if test -z "$predep_objects_CXX"; then
11439 predep_objects_CXX="$p"
11441 predep_objects_CXX="$predep_objects_CXX $p"
11444 if test -z "$postdep_objects_CXX"; then
11445 postdep_objects_CXX="$p"
11447 postdep_objects_CXX="$postdep_objects_CXX $p"
11452 *) ;; # Ignore the rest.
11460 echo "libtool.m4: error: problem compiling CXX test program"
11463 $rm -f confest.$objext
11465 # PORTME: override above test on systems where it is broken
11468 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11469 # hack all around it, let's just trust "g++" to DTRT.
11470 predep_objects_CXX=
11471 postdep_objects_CXX=
11476 case $cc_basename in
11478 # Adding this requires a known-good setup of shared libraries for
11479 # Sun compiler versions before 5.6, else PIC objects from an old
11480 # archive will be linked into the output, leading to subtle bugs.
11481 postdeps_CXX='-lCstd -lCrun'
11488 case " $postdeps_CXX " in
11489 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11492 lt_prog_compiler_wl_CXX=
11493 lt_prog_compiler_pic_CXX=
11494 lt_prog_compiler_static_CXX=
11496 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11497 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11499 # C++ specific cases for pic, static, wl, etc.
11500 if test "$GXX" = yes; then
11501 lt_prog_compiler_wl_CXX='-Wl,'
11502 lt_prog_compiler_static_CXX='-static'
11506 # All AIX code is PIC.
11507 if test "$host_cpu" = ia64; then
11508 # AIX 5 now supports IA64 processor
11509 lt_prog_compiler_static_CXX='-Bstatic'
11513 # FIXME: we need at least 68020 code to build shared libraries, but
11514 # adding the `-m68020' flag to GCC prevents building anything better,
11516 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11518 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11519 # PIC is the default for these OSes.
11521 mingw* | os2* | pw32*)
11522 # This hack is so that the source file can tell whether it is being
11523 # built for inclusion in a dll (and should export symbols for example).
11524 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11526 darwin* | rhapsody*)
11527 # PIC is the default on this platform
11528 # Common symbols not allowed in MH_DYLIB files
11529 lt_prog_compiler_pic_CXX='-fno-common'
11532 # DJGPP does not support shared libraries at all
11533 lt_prog_compiler_pic_CXX=
11536 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11537 # Instead, we relocate shared libraries at runtime.
11540 if test -d /usr/nec; then
11541 lt_prog_compiler_pic_CXX=-Kconform_pic
11545 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11546 # not for PA HP-UX.
11551 lt_prog_compiler_pic_CXX='-fPIC'
11556 lt_prog_compiler_pic_CXX='-fPIC'
11562 # All AIX code is PIC.
11563 if test "$host_cpu" = ia64; then
11564 # AIX 5 now supports IA64 processor
11565 lt_prog_compiler_static_CXX='-Bstatic'
11567 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11571 case $cc_basename in
11573 # Green Hills C++ Compiler
11574 # _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"
11579 # PIC is the default on this platform
11580 # Common symbols not allowed in MH_DYLIB files
11581 case $cc_basename in
11583 lt_prog_compiler_pic_CXX='-qnocommon'
11584 lt_prog_compiler_wl_CXX='-Wl,'
11589 case $cc_basename in
11591 lt_prog_compiler_pic_CXX='-KPIC'
11594 # Green Hills C++ Compiler
11595 lt_prog_compiler_pic_CXX='-pic'
11601 freebsd* | kfreebsd*-gnu | dragonfly*)
11602 # FreeBSD uses GNU C++
11604 hpux9* | hpux10* | hpux11*)
11605 case $cc_basename in
11607 lt_prog_compiler_wl_CXX='-Wl,'
11608 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11609 if test "$host_cpu" != ia64; then
11610 lt_prog_compiler_pic_CXX='+Z'
11614 lt_prog_compiler_wl_CXX='-Wl,'
11615 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11621 lt_prog_compiler_pic_CXX='+Z'
11630 # This is c89, which is MS Visual C++ (no shared libs)
11631 # Anyone wants to do a port?
11633 irix5* | irix6* | nonstopux*)
11634 case $cc_basename in
11636 lt_prog_compiler_wl_CXX='-Wl,'
11637 lt_prog_compiler_static_CXX='-non_shared'
11638 # CC pic flag -KPIC is the default.
11645 case $cc_basename in
11648 lt_prog_compiler_wl_CXX='--backend -Wl,'
11649 lt_prog_compiler_pic_CXX='-fPIC'
11653 lt_prog_compiler_wl_CXX='-Wl,'
11654 lt_prog_compiler_pic_CXX='-KPIC'
11655 lt_prog_compiler_static_CXX='-static'
11658 # Portland Group C++ compiler.
11659 lt_prog_compiler_wl_CXX='-Wl,'
11660 lt_prog_compiler_pic_CXX='-fpic'
11661 lt_prog_compiler_static_CXX='-Bstatic'
11665 # Make sure the PIC flag is empty. It appears that all Alpha
11666 # Linux and Compaq Tru64 Unix objects are PIC.
11667 lt_prog_compiler_pic_CXX=
11668 lt_prog_compiler_static_CXX='-non_shared'
11679 case $cc_basename in
11681 lt_prog_compiler_pic_CXX='-W c,exportall'
11687 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11689 osf3* | osf4* | osf5*)
11690 case $cc_basename in
11692 lt_prog_compiler_wl_CXX='--backend -Wl,'
11695 # Rational C++ 2.4.1
11696 lt_prog_compiler_pic_CXX='-pic'
11699 # Digital/Compaq C++
11700 lt_prog_compiler_wl_CXX='-Wl,'
11701 # Make sure the PIC flag is empty. It appears that all Alpha
11702 # Linux and Compaq Tru64 Unix objects are PIC.
11703 lt_prog_compiler_pic_CXX=
11704 lt_prog_compiler_static_CXX='-non_shared'
11713 case $cc_basename in
11715 # Sun C++ 4.2, 5.x and Centerline C++
11716 lt_prog_compiler_pic_CXX='-KPIC'
11717 lt_prog_compiler_static_CXX='-Bstatic'
11718 lt_prog_compiler_wl_CXX='-Qoption ld '
11721 # Green Hills C++ Compiler
11722 lt_prog_compiler_pic_CXX='-PIC'
11729 case $cc_basename in
11732 lt_prog_compiler_pic_CXX='-pic'
11733 lt_prog_compiler_static_CXX='-Bstatic'
11737 lt_prog_compiler_pic_CXX='-pic'
11744 case $cc_basename in
11746 # NonStop-UX NCC 3.20
11747 lt_prog_compiler_pic_CXX='-KPIC'
11753 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11754 case $cc_basename in
11756 lt_prog_compiler_wl_CXX='-Wl,'
11757 lt_prog_compiler_pic_CXX='-KPIC'
11758 lt_prog_compiler_static_CXX='-Bstatic'
11765 lt_prog_compiler_can_build_shared_CXX=no
11770 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11771 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11774 # Check to make sure the PIC flag actually works.
11776 if test -n "$lt_prog_compiler_pic_CXX"; then
11778 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11780 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 lt_prog_compiler_pic_works_CXX=no
11784 ac_outfile=conftest.$ac_objext
11785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11786 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11787 # Insert the option either (1) after the last *FLAGS variable, or
11788 # (2) before a word containing "conftest.", or (3) at the end.
11789 # Note that $ac_compile itself does not contain backslashes and begins
11790 # with a dollar sign (not a hyphen), so the echo should work correctly.
11791 # The option is referenced via a variable to avoid confusing sed.
11792 lt_compile=`echo "$ac_compile" | $SED \
11793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11795 -e 's:$: $lt_compiler_flag:'`
11796 (eval echo "\"\$as_me:11796: $lt_compile\"" >&5)
11797 (eval "$lt_compile" 2>conftest.err)
11799 cat conftest.err >&5
11800 echo "$as_me:11800: \$? = $ac_status" >&5
11801 if (exit $ac_status) && test -s "$ac_outfile"; then
11802 # The compiler can only warn and ignore the option if not recognized
11803 # So say no if there are warnings other than the usual output.
11804 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11807 lt_prog_compiler_pic_works_CXX=yes
11813 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11814 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11816 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11817 case $lt_prog_compiler_pic_CXX in
11819 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11822 lt_prog_compiler_pic_CXX=
11823 lt_prog_compiler_can_build_shared_CXX=no
11828 # For platforms which do not support PIC, -DPIC is meaningless:
11830 lt_prog_compiler_pic_CXX=
11833 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11838 # Check to make sure the static flag actually works.
11840 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11841 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11842 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11843 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 lt_prog_compiler_static_works_CXX=no
11847 save_LDFLAGS="$LDFLAGS"
11848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11849 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11851 # The linker can only warn and ignore the option if not recognized
11852 # So say no if there are warnings
11853 if test -s conftest.err; then
11854 # Append any errors to the config.log.
11855 cat conftest.err 1>&5
11856 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11858 if diff conftest.exp conftest.er2 >/dev/null; then
11859 lt_prog_compiler_static_works_CXX=yes
11862 lt_prog_compiler_static_works_CXX=yes
11866 LDFLAGS="$save_LDFLAGS"
11869 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11870 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11872 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11875 lt_prog_compiler_static_CXX=
11879 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11880 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11881 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 lt_cv_prog_compiler_c_o_CXX=no
11885 $rm -r conftest 2>/dev/null
11889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11891 lt_compiler_flag="-o out/conftest2.$ac_objext"
11892 # Insert the option either (1) after the last *FLAGS variable, or
11893 # (2) before a word containing "conftest.", or (3) at the end.
11894 # Note that $ac_compile itself does not contain backslashes and begins
11895 # with a dollar sign (not a hyphen), so the echo should work correctly.
11896 lt_compile=`echo "$ac_compile" | $SED \
11897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11899 -e 's:$: $lt_compiler_flag:'`
11900 (eval echo "\"\$as_me:11900: $lt_compile\"" >&5)
11901 (eval "$lt_compile" 2>out/conftest.err)
11903 cat out/conftest.err >&5
11904 echo "$as_me:11904: \$? = $ac_status" >&5
11905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11907 # The compiler can only warn and ignore the option if not recognized
11908 # So say no if there are warnings
11909 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11912 lt_cv_prog_compiler_c_o_CXX=yes
11917 # SGI C++ compiler will create directory out/ii_files/ for
11918 # template instantiation
11919 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11920 $rm out/* && rmdir out
11926 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11927 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11930 hard_links="nottested"
11931 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11932 # do not overwrite the value of need_locks provided by the user
11933 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11934 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11939 ln conftest.a conftest.b 2>&5 || hard_links=no
11940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11941 echo "$as_me:$LINENO: result: $hard_links" >&5
11942 echo "${ECHO_T}$hard_links" >&6
11943 if test "$hard_links" = no; then
11944 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11945 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11952 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11953 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11958 # If we're using GNU nm, then we don't want the "-C" option.
11959 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11960 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11961 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'
11963 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'
11967 export_symbols_cmds_CXX="$ltdll_cmds"
11970 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11973 link_all_deplibs_CXX=no
11976 link_all_deplibs_CXX=no
11979 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11983 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11984 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11985 test "$ld_shlibs_CXX" = no && can_build_shared=no
11988 # Do we need to explicitly link libc?
11990 case "x$archive_cmds_need_lc_CXX" in
11992 # Assume -lc should be added
11993 archive_cmds_need_lc_CXX=yes
11995 if test "$enable_shared" = yes && test "$GCC" = yes; then
11996 case $archive_cmds_CXX in
11998 # FIXME: we may have to deal with multi-command sequences.
12001 # Test whether the compiler implicitly links with -lc since on some
12002 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12003 # to ld, don't add -lc before -lgcc.
12004 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12005 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12010 (eval $ac_compile) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } 2>conftest.err; then
12016 libobjs=conftest.$ac_objext
12018 wl=$lt_prog_compiler_wl_CXX
12019 pic_flag=$lt_prog_compiler_pic_CXX
12025 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12026 allow_undefined_flag_CXX=
12027 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12028 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }
12033 archive_cmds_need_lc_CXX=no
12035 archive_cmds_need_lc_CXX=yes
12037 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12039 cat conftest.err 1>&5
12042 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12043 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12050 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12051 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12052 library_names_spec=
12053 libname_spec='lib$name'
12057 postuninstall_cmds=
12061 shlibpath_overrides_runpath=unknown
12063 dynamic_linker="$host_os ld.so"
12064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12065 if test "$GCC" = yes; then
12066 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12067 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12068 # if the path contains ";" then we assume it to be the separator
12069 # otherwise default to the standard path separator (i.e. ":") - it is
12070 # assumed that no part of a normal pathname contains ";" but that should
12071 # okay in the real world where ";" in dirpaths is itself problematic.
12072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12079 need_lib_prefix=unknown
12080 hardcode_into_libs=no
12082 # when you set need_version to no, make sure it does not cause -set_version
12083 # flags to be left without arguments
12084 need_version=unknown
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12090 shlibpath_var=LIBPATH
12092 # AIX 3 has no versioning support, so we append a major version to the name.
12093 soname_spec='${libname}${release}${shared_ext}$major'
12100 hardcode_into_libs=yes
12101 if test "$host_cpu" = ia64; then
12102 # AIX 5 supports IA64
12103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12104 shlibpath_var=LD_LIBRARY_PATH
12106 # With GCC up to 2.95.x, collect2 would create an import file
12107 # for dependence libraries. The import file would start with
12108 # the line `#! .'. This would cause the generated library to
12109 # depend on `.', always an invalid library. This was fixed in
12110 # development snapshots of GCC prior to 3.0.
12112 aix4 | aix4.[01] | aix4.[01].*)
12113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12115 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12118 can_build_shared=no
12122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12123 # soname into executable. Probably we can add versioning support to
12124 # collect2, so additional links can be useful in future.
12125 if test "$aix_use_runtimelinking" = yes; then
12126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12127 # instead of lib<name>.a to let people know that these are not
12128 # typical AIX shared libraries.
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12131 # We preserve .a as extension for shared libraries through AIX4.2
12132 # and later when we are not doing run time linking.
12133 library_names_spec='${libname}${release}.a $libname.a'
12134 soname_spec='${libname}${release}${shared_ext}$major'
12136 shlibpath_var=LIBPATH
12141 library_names_spec='$libname.ixlibrary $libname.a'
12142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12143 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'
12147 library_names_spec='${libname}${shared_ext}'
12148 dynamic_linker="$host_os ld.so"
12149 shlibpath_var=LIBRARY_PATH
12155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156 soname_spec='${libname}${release}${shared_ext}$major'
12157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12158 shlibpath_var=LD_LIBRARY_PATH
12159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12161 # the default ld.so.conf also contains /usr/contrib/lib and
12162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12163 # libtool to hard-code these into programs
12166 cygwin* | mingw* | pw32*)
12167 version_type=windows
12172 case $GCC,$host_os in
12173 yes,cygwin* | yes,mingw* | yes,pw32*)
12174 library_names_spec='$libname.dll.a'
12175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12176 postinstall_cmds='base_file=`basename \${file}`~
12177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12178 dldir=$destdir/`dirname \$dlpath`~
12179 test -d \$dldir || mkdir -p \$dldir~
12180 $install_prog $dir/$dlname \$dldir/$dlname~
12181 chmod a+x \$dldir/$dlname'
12182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12183 dlpath=$dir/\$dldll~
12185 shlibpath_overrides_runpath=yes
12189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12194 # MinGW DLLs use traditional 'lib' prefix
12195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12198 # It is most probably a Windows format PATH printed by
12199 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12200 # path with ; separators, and with drive letters. We can handle the
12201 # drive letters (cygwin fileutils understands them), so leave them,
12202 # especially as we might pass files found there to a mingw objdump,
12203 # which wouldn't understand a cygwinified path. Ahh.
12204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12210 # pw32 DLLs use 'pw' prefix rather than 'lib'
12211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12220 dynamic_linker='Win32 ld.exe'
12221 # FIXME: first we should search . and the directory the executable is in
12225 darwin* | rhapsody*)
12226 dynamic_linker="$host_os dyld"
12227 version_type=darwin
12230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12231 soname_spec='${libname}${release}${major}$shared_ext'
12232 shlibpath_overrides_runpath=yes
12233 shlibpath_var=DYLD_LIBRARY_PATH
12234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12235 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12236 if test "$GCC" = yes; then
12237 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"`
12239 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12249 soname_spec='${libname}${release}${shared_ext}$major'
12250 shlibpath_var=LD_LIBRARY_PATH
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12262 soname_spec='${libname}${release}${shared_ext}$major'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=no
12265 hardcode_into_libs=yes
12266 dynamic_linker='GNU ld.so'
12269 freebsd* | dragonfly*)
12270 # DragonFly does not have aout. When/if they implement a new
12271 # versioning mechanism, adjust this.
12272 if test -x /usr/bin/objformat; then
12273 objformat=`/usr/bin/objformat`
12276 freebsd[123]*) objformat=aout ;;
12277 *) objformat=elf ;;
12280 version_type=freebsd-$objformat
12281 case $version_type in
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12292 shlibpath_var=LD_LIBRARY_PATH
12295 shlibpath_overrides_runpath=yes
12297 freebsd3.[01]* | freebsdelf3.[01]*)
12298 shlibpath_overrides_runpath=yes
12299 hardcode_into_libs=yes
12301 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12302 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12303 shlibpath_overrides_runpath=no
12304 hardcode_into_libs=yes
12306 freebsd*) # from 4.6 on
12307 shlibpath_overrides_runpath=yes
12308 hardcode_into_libs=yes
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12318 soname_spec='${libname}${release}${shared_ext}$major'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 hardcode_into_libs=yes
12323 hpux9* | hpux10* | hpux11*)
12324 # Give a soname corresponding to the major version so that dld.sl refuses to
12325 # link against other versions.
12332 hardcode_into_libs=yes
12333 dynamic_linker="$host_os dld.so"
12334 shlibpath_var=LD_LIBRARY_PATH
12335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12337 soname_spec='${libname}${release}${shared_ext}$major'
12338 if test "X$HPUX_IA64_MODE" = X32; then
12339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12347 hardcode_into_libs=yes
12348 dynamic_linker="$host_os dld.sl"
12349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352 soname_spec='${libname}${release}${shared_ext}$major'
12353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12358 dynamic_linker="$host_os dld.sl"
12359 shlibpath_var=SHLIB_PATH
12360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12362 soname_spec='${libname}${release}${shared_ext}$major'
12365 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12366 postinstall_cmds='chmod 555 $lib'
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12374 soname_spec='${libname}${release}${shared_ext}$major'
12375 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 shlibpath_overrides_runpath=no
12378 hardcode_into_libs=yes
12381 irix5* | irix6* | nonstopux*)
12383 nonstopux*) version_type=nonstopux ;;
12385 if test "$lt_cv_prog_gnu_ld" = yes; then
12393 soname_spec='${libname}${release}${shared_ext}$major'
12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12396 irix5* | nonstopux*)
12397 libsuff= shlibsuff=
12400 case $LD in # libtool.m4 will add one of these switches to LD
12401 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12402 libsuff= shlibsuff= libmagic=32-bit;;
12403 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12404 libsuff=32 shlibsuff=N32 libmagic=N32;;
12405 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12406 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12407 *) libsuff= shlibsuff= libmagic=never-match;;
12411 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12412 shlibpath_overrides_runpath=no
12413 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12414 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12415 hardcode_into_libs=yes
12418 # No shared lib support for Linux oldld, aout, or coff.
12419 linux*oldld* | linux*aout* | linux*coff*)
12423 # This must be Linux ELF.
12428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12429 soname_spec='${libname}${release}${shared_ext}$major'
12430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12431 shlibpath_var=LD_LIBRARY_PATH
12432 shlibpath_overrides_runpath=no
12433 # This implies no fast_install, which is unacceptable.
12434 # Some rework will be needed to allow for fast_install
12435 # before this can be enabled.
12436 hardcode_into_libs=yes
12438 # Append ld.so.conf contents to the search path
12439 if test -f /etc/ld.so.conf; then
12440 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12441 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12444 # We used to test for /lib/ld.so.1 and disable shared libraries on
12445 # powerpc, because MkLinux only supported shared libraries with the
12446 # GNU dynamic linker. Since this was broken with cross compilers,
12447 # most powerpc-linux boxes support dynamic linking these days and
12448 # people can always --disable-shared, the test was removed, and we
12449 # assume the GNU/Linux dynamic linker is in use.
12450 dynamic_linker='GNU/Linux ld.so'
12457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12458 soname_spec='${libname}${release}${shared_ext}$major'
12459 shlibpath_var=LD_LIBRARY_PATH
12460 shlibpath_overrides_runpath=no
12461 hardcode_into_libs=yes
12462 dynamic_linker='NetBSD ld.elf_so'
12469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12470 soname_spec='${libname}${release}${shared_ext}$major'
12471 shlibpath_var=LD_LIBRARY_PATH
12472 shlibpath_overrides_runpath=no
12473 hardcode_into_libs=yes
12474 dynamic_linker='GNU ld.so'
12481 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12484 dynamic_linker='NetBSD (a.out) ld.so'
12486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12487 soname_spec='${libname}${release}${shared_ext}$major'
12488 dynamic_linker='NetBSD ld.elf_so'
12490 shlibpath_var=LD_LIBRARY_PATH
12491 shlibpath_overrides_runpath=yes
12492 hardcode_into_libs=yes
12497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12498 shlibpath_var=LD_LIBRARY_PATH
12499 shlibpath_overrides_runpath=yes
12506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507 soname_spec='${libname}${release}${shared_ext}$major'
12508 shlibpath_var=LD_LIBRARY_PATH
12509 shlibpath_overrides_runpath=yes
12514 sys_lib_dlsearch_path_spec="/usr/lib"
12516 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12518 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12519 *) need_version=no ;;
12521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12523 shlibpath_var=LD_LIBRARY_PATH
12524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12526 openbsd2.[89] | openbsd2.[89].*)
12527 shlibpath_overrides_runpath=no
12530 shlibpath_overrides_runpath=yes
12534 shlibpath_overrides_runpath=yes
12539 libname_spec='$name'
12542 library_names_spec='$libname${shared_ext} $libname.a'
12543 dynamic_linker='OS/2 ld.exe'
12544 shlibpath_var=LIBPATH
12547 osf3* | osf4* | osf5*)
12551 soname_spec='${libname}${release}${shared_ext}$major'
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553 shlibpath_var=LD_LIBRARY_PATH
12554 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12555 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12563 soname_spec='${libname}${release}${shared_ext}$major'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 shlibpath_overrides_runpath=yes
12566 hardcode_into_libs=yes
12567 # ldd complains unless libraries are executable
12568 postinstall_cmds='chmod +x $lib'
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12574 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12575 shlibpath_var=LD_LIBRARY_PATH
12576 shlibpath_overrides_runpath=yes
12577 if test "$with_gnu_ld" = yes; then
12585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12586 soname_spec='${libname}${release}${shared_ext}$major'
12587 shlibpath_var=LD_LIBRARY_PATH
12588 case $host_vendor in
12590 shlibpath_overrides_runpath=no
12592 export_dynamic_flag_spec='${wl}-Blargedynsym'
12593 runpath_var=LD_RUN_PATH
12601 shlibpath_overrides_runpath=no
12602 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12608 if test -d /usr/nec ;then
12610 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12611 soname_spec='$libname${shared_ext}.$major'
12612 shlibpath_var=LD_LIBRARY_PATH
12616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12617 version_type=freebsd-elf
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12621 soname_spec='${libname}${release}${shared_ext}$major'
12622 shlibpath_var=LD_LIBRARY_PATH
12623 hardcode_into_libs=yes
12624 if test "$with_gnu_ld" = yes; then
12625 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12626 shlibpath_overrides_runpath=no
12628 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12629 shlibpath_overrides_runpath=yes
12632 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12636 sys_lib_dlsearch_path_spec='/usr/lib'
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12642 soname_spec='${libname}${release}${shared_ext}$major'
12643 shlibpath_var=LD_LIBRARY_PATH
12650 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12651 echo "${ECHO_T}$dynamic_linker" >&6
12652 test "$dynamic_linker" = no && can_build_shared=no
12654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12655 if test "$GCC" = yes; then
12656 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12659 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12660 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12661 hardcode_action_CXX=
12662 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12663 test -n "$runpath_var_CXX" || \
12664 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12666 # We can hardcode non-existant directories.
12667 if test "$hardcode_direct_CXX" != no &&
12668 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12669 # have to relink, otherwise we might link with an installed library
12670 # when we should be linking with a yet-to-be-installed one
12671 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12672 test "$hardcode_minus_L_CXX" != no; then
12673 # Linking always hardcodes the temporary library directory.
12674 hardcode_action_CXX=relink
12676 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12677 hardcode_action_CXX=immediate
12680 # We cannot hardcode anything, or else we can only hardcode existing
12682 hardcode_action_CXX=unsupported
12684 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12685 echo "${ECHO_T}$hardcode_action_CXX" >&6
12687 if test "$hardcode_action_CXX" = relink; then
12688 # Fast installation is not supported
12689 enable_fast_install=no
12690 elif test "$shlibpath_overrides_runpath" = yes ||
12691 test "$enable_shared" = no; then
12692 # Fast installation is not necessary
12693 enable_fast_install=needless
12697 # The else clause should only fire when bootstrapping the
12698 # libtool distribution, otherwise you forgot to ship ltmain.sh
12699 # with your package, and you will get complaints that there are
12700 # no rules to generate ltmain.sh.
12701 if test -f "$ltmain"; then
12702 # See if we are running on zsh, and set the options which allow our commands through
12703 # without removal of \ escapes.
12704 if test -n "${ZSH_VERSION+set}" ; then
12705 setopt NO_GLOB_SUBST
12707 # Now quote all the things that may contain metacharacters while being
12708 # careful not to overquote the AC_SUBSTed values. We take copies of the
12709 # variables and quote the copies for generation of the libtool script.
12710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12712 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12713 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12714 deplibs_check_method reload_flag reload_cmds need_locks \
12715 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12716 lt_cv_sys_global_symbol_to_c_name_address \
12717 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12718 old_postinstall_cmds old_postuninstall_cmds \
12722 lt_prog_compiler_wl_CXX \
12723 lt_prog_compiler_pic_CXX \
12724 lt_prog_compiler_static_CXX \
12725 lt_prog_compiler_no_builtin_flag_CXX \
12726 export_dynamic_flag_spec_CXX \
12727 thread_safe_flag_spec_CXX \
12728 whole_archive_flag_spec_CXX \
12729 enable_shared_with_static_runtimes_CXX \
12730 old_archive_cmds_CXX \
12731 old_archive_from_new_cmds_CXX \
12732 predep_objects_CXX \
12733 postdep_objects_CXX \
12736 compiler_lib_search_path_CXX \
12738 archive_expsym_cmds_CXX \
12739 postinstall_cmds_CXX \
12740 postuninstall_cmds_CXX \
12741 old_archive_from_expsyms_cmds_CXX \
12742 allow_undefined_flag_CXX \
12743 no_undefined_flag_CXX \
12744 export_symbols_cmds_CXX \
12745 hardcode_libdir_flag_spec_CXX \
12746 hardcode_libdir_flag_spec_ld_CXX \
12747 hardcode_libdir_separator_CXX \
12748 hardcode_automatic_CXX \
12750 module_expsym_cmds_CXX \
12751 lt_cv_prog_compiler_c_o_CXX \
12752 exclude_expsyms_CXX \
12753 include_expsyms_CXX; do
12756 old_archive_cmds_CXX | \
12757 old_archive_from_new_cmds_CXX | \
12758 archive_cmds_CXX | \
12759 archive_expsym_cmds_CXX | \
12760 module_cmds_CXX | \
12761 module_expsym_cmds_CXX | \
12762 old_archive_from_expsyms_cmds_CXX | \
12763 export_symbols_cmds_CXX | \
12764 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12765 postinstall_cmds | postuninstall_cmds | \
12766 old_postinstall_cmds | old_postuninstall_cmds | \
12767 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12768 # Double-quote double-evaled strings.
12769 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12778 *'\$0 --fallback-echo"')
12779 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12785 cat <<__EOF__ >> "$cfgfile"
12786 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12788 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12790 # Shell to use when invoking shell scripts.
12793 # Whether or not to build shared libraries.
12794 build_libtool_libs=$enable_shared
12796 # Whether or not to build static libraries.
12797 build_old_libs=$enable_static
12799 # Whether or not to add -lc for building shared libraries.
12800 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12802 # Whether or not to disallow shared libs when runtime libs are static
12803 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12805 # Whether or not to optimize for fast installation.
12806 fast_install=$enable_fast_install
12809 host_alias=$host_alias
12813 # The build system.
12814 build_alias=$build_alias
12818 # An echo program that does not interpret backslashes.
12823 AR_FLAGS=$lt_AR_FLAGS
12828 # LTCC compiler flags.
12829 LTCFLAGS=$lt_LTCFLAGS
12831 # A language-specific compiler.
12832 CC=$lt_compiler_CXX
12834 # Is the compiler the GNU C compiler?
12840 # The linker used to build libraries.
12843 # Whether we need hard or soft links.
12846 # A BSD-compatible nm program.
12849 # A symbol stripping program
12852 # Used to examine libraries when file_magic_cmd begins "file"
12853 MAGIC_CMD=$MAGIC_CMD
12855 # Used on cygwin: DLL creation program.
12858 # Used on cygwin: object dumper.
12861 # Used on cygwin: assembler.
12864 # The name of the directory that contains temporary libtool files.
12867 # How to create reloadable object files.
12868 reload_flag=$lt_reload_flag
12869 reload_cmds=$lt_reload_cmds
12871 # How to pass a linker flag through the compiler.
12872 wl=$lt_lt_prog_compiler_wl_CXX
12874 # Object file suffix (normally "o").
12875 objext="$ac_objext"
12877 # Old archive suffix (normally "a").
12880 # Shared library suffix (normally ".so").
12881 shrext_cmds='$shrext_cmds'
12883 # Executable file suffix (normally "").
12886 # Additional compiler flags for building library objects.
12887 pic_flag=$lt_lt_prog_compiler_pic_CXX
12890 # What is the maximum length of a command?
12891 max_cmd_len=$lt_cv_sys_max_cmd_len
12893 # Does compiler simultaneously support -c and -o options?
12894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12896 # Must we lock files when doing compilation?
12897 need_locks=$lt_need_locks
12899 # Do we need the lib prefix for modules?
12900 need_lib_prefix=$need_lib_prefix
12902 # Do we need a version for libraries?
12903 need_version=$need_version
12905 # Whether dlopen is supported.
12906 dlopen_support=$enable_dlopen
12908 # Whether dlopen of programs is supported.
12909 dlopen_self=$enable_dlopen_self
12911 # Whether dlopen of statically linked programs is supported.
12912 dlopen_self_static=$enable_dlopen_self_static
12914 # Compiler flag to prevent dynamic linking.
12915 link_static_flag=$lt_lt_prog_compiler_static_CXX
12917 # Compiler flag to turn off builtin functions.
12918 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12920 # Compiler flag to allow reflexive dlopens.
12921 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12923 # Compiler flag to generate shared objects directly from archives.
12924 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12926 # Compiler flag to generate thread-safe objects.
12927 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12929 # Library versioning type.
12930 version_type=$version_type
12932 # Format of library name prefix.
12933 libname_spec=$lt_libname_spec
12935 # List of archive names. First name is the real one, the rest are links.
12936 # The last name is the one that the linker finds with -lNAME.
12937 library_names_spec=$lt_library_names_spec
12939 # The coded name of the library, if different from the real name.
12940 soname_spec=$lt_soname_spec
12942 # Commands used to build and install an old-style archive.
12944 old_archive_cmds=$lt_old_archive_cmds_CXX
12945 old_postinstall_cmds=$lt_old_postinstall_cmds
12946 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12948 # Create an old-style archive from a shared archive.
12949 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12951 # Create a temporary old-style archive to link instead of a shared archive.
12952 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12954 # Commands used to build and install a shared archive.
12955 archive_cmds=$lt_archive_cmds_CXX
12956 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12957 postinstall_cmds=$lt_postinstall_cmds
12958 postuninstall_cmds=$lt_postuninstall_cmds
12960 # Commands used to build a loadable module (assumed same as above if empty)
12961 module_cmds=$lt_module_cmds_CXX
12962 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12964 # Commands to strip libraries.
12965 old_striplib=$lt_old_striplib
12966 striplib=$lt_striplib
12968 # Dependencies to place before the objects being linked to create a
12970 predep_objects=$lt_predep_objects_CXX
12972 # Dependencies to place after the objects being linked to create a
12974 postdep_objects=$lt_postdep_objects_CXX
12976 # Dependencies to place before the objects being linked to create a
12978 predeps=$lt_predeps_CXX
12980 # Dependencies to place after the objects being linked to create a
12982 postdeps=$lt_postdeps_CXX
12984 # The library search path used internally by the compiler when linking
12985 # a shared library.
12986 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12988 # Method to check whether dependent libraries are shared objects.
12989 deplibs_check_method=$lt_deplibs_check_method
12991 # Command to use when deplibs_check_method == file_magic.
12992 file_magic_cmd=$lt_file_magic_cmd
12994 # Flag that allows shared libraries with undefined symbols to be built.
12995 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12997 # Flag that forces no undefined symbols.
12998 no_undefined_flag=$lt_no_undefined_flag_CXX
13000 # Commands used to finish a libtool library installation in a directory.
13001 finish_cmds=$lt_finish_cmds
13003 # Same as above, but a single script fragment to be evaled but not shown.
13004 finish_eval=$lt_finish_eval
13006 # Take the output of nm and produce a listing of raw symbols and C names.
13007 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13009 # Transform the output of nm in a proper C declaration
13010 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13012 # Transform the output of nm in a C name address pair
13013 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13015 # This is the shared library runtime path variable.
13016 runpath_var=$runpath_var
13018 # This is the shared library path variable.
13019 shlibpath_var=$shlibpath_var
13021 # Is shlibpath searched before the hard-coded library search path?
13022 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13024 # How to hardcode a shared library path into an executable.
13025 hardcode_action=$hardcode_action_CXX
13027 # Whether we should hardcode library paths into libraries.
13028 hardcode_into_libs=$hardcode_into_libs
13030 # Flag to hardcode \$libdir into a binary during linking.
13031 # This must work even if \$libdir does not exist.
13032 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13034 # If ld is used when linking, flag to hardcode \$libdir into
13035 # a binary during linking. This must work even if \$libdir does
13037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13039 # Whether we need a single -rpath flag with a separated argument.
13040 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13042 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13043 # resulting binary.
13044 hardcode_direct=$hardcode_direct_CXX
13046 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13047 # resulting binary.
13048 hardcode_minus_L=$hardcode_minus_L_CXX
13050 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13051 # the resulting binary.
13052 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13054 # Set to yes if building a shared library automatically hardcodes DIR into the library
13055 # and all subsequent libraries and executables linked against it.
13056 hardcode_automatic=$hardcode_automatic_CXX
13058 # Variables whose values should be saved in libtool wrapper scripts and
13059 # restored at relink time.
13060 variables_saved_for_relink="$variables_saved_for_relink"
13062 # Whether libtool must link a program against all its dependency libraries.
13063 link_all_deplibs=$link_all_deplibs_CXX
13065 # Compile-time system search path for libraries
13066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13068 # Run-time system search path for libraries
13069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13071 # Fix the shell variable \$srcfile for the compiler.
13072 fix_srcfile_path="$fix_srcfile_path_CXX"
13074 # Set to yes if exported symbols are required.
13075 always_export_symbols=$always_export_symbols_CXX
13077 # The commands to list exported symbols.
13078 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13080 # The commands to extract the exported symbol list from a shared archive.
13081 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13083 # Symbols that should not be listed in the preloaded symbols.
13084 exclude_expsyms=$lt_exclude_expsyms_CXX
13086 # Symbols that must always be exported.
13087 include_expsyms=$lt_include_expsyms_CXX
13089 # ### END LIBTOOL TAG CONFIG: $tagname
13095 # If there is no Makefile yet, we rely on a make rule to execute
13096 # `config.status --recheck' to rerun these tests and create the
13097 # libtool script then.
13098 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13099 if test -f "$ltmain_in"; then
13100 test -f Makefile && make "$ltmain"
13106 ac_cpp='$CPP $CPPFLAGS'
13107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13115 with_gnu_ldcxx=$with_gnu_ld
13116 with_gnu_ld=$lt_save_with_gnu_ld
13117 lt_cv_path_LDCXX=$lt_cv_path_LD
13118 lt_cv_path_LD=$lt_save_path_LD
13119 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13120 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13128 if test -n "$F77" && test "X$F77" != "Xno"; then
13131 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13132 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13136 archive_cmds_need_lc_F77=no
13137 allow_undefined_flag_F77=
13138 always_export_symbols_F77=no
13139 archive_expsym_cmds_F77=
13140 export_dynamic_flag_spec_F77=
13141 hardcode_direct_F77=no
13142 hardcode_libdir_flag_spec_F77=
13143 hardcode_libdir_flag_spec_ld_F77=
13144 hardcode_libdir_separator_F77=
13145 hardcode_minus_L_F77=no
13146 hardcode_automatic_F77=no
13148 module_expsym_cmds_F77=
13149 link_all_deplibs_F77=unknown
13150 old_archive_cmds_F77=$old_archive_cmds
13151 no_undefined_flag_F77=
13152 whole_archive_flag_spec_F77=
13153 enable_shared_with_static_runtimes_F77=no
13155 # Source file extension for f77 test sources.
13158 # Object file extension for compiled f77 test sources.
13162 # Code to be used in simple compile tests
13163 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13165 # Code to be used in simple link tests
13166 lt_simple_link_test_code=" program t\n end\n"
13168 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13170 # If no C compiler was specified, use CC.
13173 # If no C compiler flags were specified, use CFLAGS.
13174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13176 # Allow CC to be a program name with arguments.
13180 # save warnings/boilerplate of simple test code
13181 ac_outfile=conftest.$ac_objext
13182 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13183 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13184 _lt_compiler_boilerplate=`cat conftest.err`
13187 ac_outfile=conftest.$ac_objext
13188 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13189 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13190 _lt_linker_boilerplate=`cat conftest.err`
13194 # Allow CC to be a program name with arguments.
13199 for cc_temp in $compiler""; do
13201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13207 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13210 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13211 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13212 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13213 echo "${ECHO_T}$can_build_shared" >&6
13215 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13216 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13217 test "$can_build_shared" = "no" && enable_shared=no
13219 # On AIX, shared libraries and static libraries use the same namespace, and
13220 # are all built from PIC.
13223 test "$enable_shared" = yes && enable_static=no
13224 if test -n "$RANLIB"; then
13225 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13226 postinstall_cmds='$RANLIB $lib'
13230 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13231 test "$enable_shared" = yes && enable_static=no
13235 echo "$as_me:$LINENO: result: $enable_shared" >&5
13236 echo "${ECHO_T}$enable_shared" >&6
13238 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13239 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13240 # Make sure either enable_shared or enable_static is yes.
13241 test "$enable_shared" = yes || enable_static=yes
13242 echo "$as_me:$LINENO: result: $enable_static" >&5
13243 echo "${ECHO_T}$enable_static" >&6
13248 lt_prog_compiler_wl_F77=
13249 lt_prog_compiler_pic_F77=
13250 lt_prog_compiler_static_F77=
13252 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13253 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13255 if test "$GCC" = yes; then
13256 lt_prog_compiler_wl_F77='-Wl,'
13257 lt_prog_compiler_static_F77='-static'
13261 # All AIX code is PIC.
13262 if test "$host_cpu" = ia64; then
13263 # AIX 5 now supports IA64 processor
13264 lt_prog_compiler_static_F77='-Bstatic'
13269 # FIXME: we need at least 68020 code to build shared libraries, but
13270 # adding the `-m68020' flag to GCC prevents building anything better,
13272 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13275 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13276 # PIC is the default for these OSes.
13279 mingw* | pw32* | os2*)
13280 # This hack is so that the source file can tell whether it is being
13281 # built for inclusion in a dll (and should export symbols for example).
13282 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13285 darwin* | rhapsody*)
13286 # PIC is the default on this platform
13287 # Common symbols not allowed in MH_DYLIB files
13288 lt_prog_compiler_pic_F77='-fno-common'
13292 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13293 # Instead, we relocate shared libraries at runtime.
13297 # Just because we use GCC doesn't mean we suddenly get shared libraries
13298 # on systems that don't support them.
13299 lt_prog_compiler_can_build_shared_F77=no
13304 if test -d /usr/nec; then
13305 lt_prog_compiler_pic_F77=-Kconform_pic
13310 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13311 # not for PA HP-UX.
13317 lt_prog_compiler_pic_F77='-fPIC'
13323 lt_prog_compiler_pic_F77='-fPIC'
13327 # PORTME Check for flag to pass linker flags through the system compiler.
13330 lt_prog_compiler_wl_F77='-Wl,'
13331 if test "$host_cpu" = ia64; then
13332 # AIX 5 now supports IA64 processor
13333 lt_prog_compiler_static_F77='-Bstatic'
13335 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13339 # PIC is the default on this platform
13340 # Common symbols not allowed in MH_DYLIB files
13341 case $cc_basename in
13343 lt_prog_compiler_pic_F77='-qnocommon'
13344 lt_prog_compiler_wl_F77='-Wl,'
13349 mingw* | pw32* | os2*)
13350 # This hack is so that the source file can tell whether it is being
13351 # built for inclusion in a dll (and should export symbols for example).
13352 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13355 hpux9* | hpux10* | hpux11*)
13356 lt_prog_compiler_wl_F77='-Wl,'
13357 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13358 # not for PA HP-UX.
13364 lt_prog_compiler_pic_F77='+Z'
13367 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13368 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13371 irix5* | irix6* | nonstopux*)
13372 lt_prog_compiler_wl_F77='-Wl,'
13373 # PIC (with -KPIC) is the default.
13374 lt_prog_compiler_static_F77='-non_shared'
13378 lt_prog_compiler_pic_F77='-KPIC'
13379 lt_prog_compiler_static_F77='-Bstatic'
13383 case $cc_basename in
13385 lt_prog_compiler_wl_F77='-Wl,'
13386 lt_prog_compiler_pic_F77='-KPIC'
13387 lt_prog_compiler_static_F77='-static'
13389 pgcc* | pgf77* | pgf90* | pgf95*)
13390 # Portland Group compilers (*not* the Pentium gcc compiler,
13391 # which looks to be a dead project)
13392 lt_prog_compiler_wl_F77='-Wl,'
13393 lt_prog_compiler_pic_F77='-fpic'
13394 lt_prog_compiler_static_F77='-Bstatic'
13397 lt_prog_compiler_wl_F77='-Wl,'
13398 # All Alpha code is PIC.
13399 lt_prog_compiler_static_F77='-non_shared'
13404 osf3* | osf4* | osf5*)
13405 lt_prog_compiler_wl_F77='-Wl,'
13406 # All OSF/1 code is PIC.
13407 lt_prog_compiler_static_F77='-non_shared'
13411 lt_prog_compiler_pic_F77='-KPIC'
13412 lt_prog_compiler_static_F77='-Bstatic'
13413 case $cc_basename in
13414 f77* | f90* | f95*)
13415 lt_prog_compiler_wl_F77='-Qoption ld ';;
13417 lt_prog_compiler_wl_F77='-Wl,';;
13422 lt_prog_compiler_wl_F77='-Qoption ld '
13423 lt_prog_compiler_pic_F77='-PIC'
13424 lt_prog_compiler_static_F77='-Bstatic'
13427 sysv4 | sysv4.2uw2* | sysv4.3*)
13428 lt_prog_compiler_wl_F77='-Wl,'
13429 lt_prog_compiler_pic_F77='-KPIC'
13430 lt_prog_compiler_static_F77='-Bstatic'
13434 if test -d /usr/nec ;then
13435 lt_prog_compiler_pic_F77='-Kconform_pic'
13436 lt_prog_compiler_static_F77='-Bstatic'
13440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13441 lt_prog_compiler_wl_F77='-Wl,'
13442 lt_prog_compiler_pic_F77='-KPIC'
13443 lt_prog_compiler_static_F77='-Bstatic'
13447 lt_prog_compiler_wl_F77='-Wl,'
13448 lt_prog_compiler_can_build_shared_F77=no
13452 lt_prog_compiler_pic_F77='-pic'
13453 lt_prog_compiler_static_F77='-Bstatic'
13457 lt_prog_compiler_can_build_shared_F77=no
13462 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13463 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13466 # Check to make sure the PIC flag actually works.
13468 if test -n "$lt_prog_compiler_pic_F77"; then
13470 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13472 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 lt_prog_compiler_pic_works_F77=no
13476 ac_outfile=conftest.$ac_objext
13477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13478 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13479 # Insert the option either (1) after the last *FLAGS variable, or
13480 # (2) before a word containing "conftest.", or (3) at the end.
13481 # Note that $ac_compile itself does not contain backslashes and begins
13482 # with a dollar sign (not a hyphen), so the echo should work correctly.
13483 # The option is referenced via a variable to avoid confusing sed.
13484 lt_compile=`echo "$ac_compile" | $SED \
13485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13487 -e 's:$: $lt_compiler_flag:'`
13488 (eval echo "\"\$as_me:13488: $lt_compile\"" >&5)
13489 (eval "$lt_compile" 2>conftest.err)
13491 cat conftest.err >&5
13492 echo "$as_me:13492: \$? = $ac_status" >&5
13493 if (exit $ac_status) && test -s "$ac_outfile"; then
13494 # The compiler can only warn and ignore the option if not recognized
13495 # So say no if there are warnings other than the usual output.
13496 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13499 lt_prog_compiler_pic_works_F77=yes
13505 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13506 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13508 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13509 case $lt_prog_compiler_pic_F77 in
13511 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13514 lt_prog_compiler_pic_F77=
13515 lt_prog_compiler_can_build_shared_F77=no
13520 # For platforms which do not support PIC, -DPIC is meaningless:
13522 lt_prog_compiler_pic_F77=
13525 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13530 # Check to make sure the static flag actually works.
13532 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13533 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13534 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13535 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 lt_prog_compiler_static_works_F77=no
13539 save_LDFLAGS="$LDFLAGS"
13540 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13541 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13542 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13543 # The linker can only warn and ignore the option if not recognized
13544 # So say no if there are warnings
13545 if test -s conftest.err; then
13546 # Append any errors to the config.log.
13547 cat conftest.err 1>&5
13548 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13550 if diff conftest.exp conftest.er2 >/dev/null; then
13551 lt_prog_compiler_static_works_F77=yes
13554 lt_prog_compiler_static_works_F77=yes
13558 LDFLAGS="$save_LDFLAGS"
13561 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13562 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13564 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13567 lt_prog_compiler_static_F77=
13571 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13572 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13573 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 lt_cv_prog_compiler_c_o_F77=no
13577 $rm -r conftest 2>/dev/null
13581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13583 lt_compiler_flag="-o out/conftest2.$ac_objext"
13584 # Insert the option either (1) after the last *FLAGS variable, or
13585 # (2) before a word containing "conftest.", or (3) at the end.
13586 # Note that $ac_compile itself does not contain backslashes and begins
13587 # with a dollar sign (not a hyphen), so the echo should work correctly.
13588 lt_compile=`echo "$ac_compile" | $SED \
13589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13591 -e 's:$: $lt_compiler_flag:'`
13592 (eval echo "\"\$as_me:13592: $lt_compile\"" >&5)
13593 (eval "$lt_compile" 2>out/conftest.err)
13595 cat out/conftest.err >&5
13596 echo "$as_me:13596: \$? = $ac_status" >&5
13597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13599 # The compiler can only warn and ignore the option if not recognized
13600 # So say no if there are warnings
13601 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13604 lt_cv_prog_compiler_c_o_F77=yes
13609 # SGI C++ compiler will create directory out/ii_files/ for
13610 # template instantiation
13611 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13612 $rm out/* && rmdir out
13618 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13619 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13622 hard_links="nottested"
13623 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13624 # do not overwrite the value of need_locks provided by the user
13625 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13626 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13631 ln conftest.a conftest.b 2>&5 || hard_links=no
13632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13633 echo "$as_me:$LINENO: result: $hard_links" >&5
13634 echo "${ECHO_T}$hard_links" >&6
13635 if test "$hard_links" = no; then
13636 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13637 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13644 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13645 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13648 allow_undefined_flag_F77=
13649 enable_shared_with_static_runtimes_F77=no
13651 archive_expsym_cmds_F77=
13652 old_archive_From_new_cmds_F77=
13653 old_archive_from_expsyms_cmds_F77=
13654 export_dynamic_flag_spec_F77=
13655 whole_archive_flag_spec_F77=
13656 thread_safe_flag_spec_F77=
13657 hardcode_libdir_flag_spec_F77=
13658 hardcode_libdir_flag_spec_ld_F77=
13659 hardcode_libdir_separator_F77=
13660 hardcode_direct_F77=no
13661 hardcode_minus_L_F77=no
13662 hardcode_shlibpath_var_F77=unsupported
13663 link_all_deplibs_F77=unknown
13664 hardcode_automatic_F77=no
13666 module_expsym_cmds_F77=
13667 always_export_symbols_F77=no
13668 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13669 # include_expsyms should be a list of space-separated symbols to be *always*
13670 # included in the symbol list
13671 include_expsyms_F77=
13672 # exclude_expsyms can be an extended regexp of symbols to exclude
13673 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13674 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13675 # as well as any symbol that contains `d'.
13676 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13677 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13678 # platforms (ab)use it in PIC code, but their linkers get confused if
13679 # the symbol is explicitly referenced. Since portable code cannot
13680 # rely on this symbol name, it's probably fine to never include it in
13681 # preloaded symbol tables.
13682 extract_expsyms_cmds=
13683 # Just being paranoid about ensuring that cc_basename is set.
13684 for cc_temp in $compiler""; do
13686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13692 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13695 cygwin* | mingw* | pw32*)
13696 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13697 # When not using gcc, we currently assume that we are using
13698 # Microsoft Visual C++.
13699 if test "$GCC" != yes; then
13704 # we just hope/assume this is gcc and not c89 (= MSVC++)
13713 if test "$with_gnu_ld" = yes; then
13714 # If archive_cmds runs LD, not CC, wlarc should be empty
13717 # Set some defaults for GNU ld with shared library support. These
13718 # are reset later if shared libraries are not supported. Putting them
13719 # here allows them to be overridden if necessary.
13720 runpath_var=LD_RUN_PATH
13721 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13722 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13723 # ancient GNU ld didn't support --whole-archive et. al.
13724 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13725 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13727 whole_archive_flag_spec_F77=
13729 supports_anon_versioning=no
13730 case `$LD -v 2>/dev/null` in
13731 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13732 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13733 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13734 *\ 2.11.*) ;; # other 2.11 versions
13735 *) supports_anon_versioning=yes ;;
13738 # See if GNU ld supports shared libraries.
13740 aix3* | aix4* | aix5*)
13741 # On AIX/PPC, the GNU linker is very broken
13742 if test "$host_cpu" != ia64; then
13746 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13747 *** to be unable to reliably create shared libraries on AIX.
13748 *** Therefore, libtool is disabling shared libraries support. If you
13749 *** really care for shared libraries, you may want to modify your PATH
13750 *** so that a non-GNU linker is found, and then restart.
13757 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)'
13758 hardcode_libdir_flag_spec_F77='-L$libdir'
13759 hardcode_minus_L_F77=yes
13761 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13762 # that the semantics of dynamic libraries on AmigaOS, at least up
13763 # to version 4, is to share data among multiple programs linked
13764 # with the same dynamic library. Since this doesn't match the
13765 # behavior of shared libraries on other platforms, we can't use
13771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13772 allow_undefined_flag_F77=unsupported
13773 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13774 # support --undefined. This deserves some investigation. FIXME
13775 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13781 cygwin* | mingw* | pw32*)
13782 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13783 # as there is no search path for DLLs.
13784 hardcode_libdir_flag_spec_F77='-L$libdir'
13785 allow_undefined_flag_F77=unsupported
13786 always_export_symbols_F77=no
13787 enable_shared_with_static_runtimes_F77=yes
13788 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13790 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13791 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13792 # If the export-symbols file already is a .def file (1st line
13793 # is EXPORTS), use it as is; otherwise, prepend...
13794 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13795 cp $export_symbols $output_objdir/$soname.def;
13797 echo EXPORTS > $output_objdir/$soname.def;
13798 cat $export_symbols >> $output_objdir/$soname.def;
13800 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13807 hardcode_direct_F77=no
13808 hardcode_shlibpath_var_F77=no
13809 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13810 export_dynamic_flag_spec_F77='${wl}-E'
13811 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13812 # Instead, shared libraries are loaded at an image base (0x10000000 by
13813 # default) and relocated if they conflict, which is a slow very memory
13814 # consuming and fragmenting process. To avoid this, we pick a random,
13815 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13816 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13817 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13818 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13824 case $cc_basename,$host_cpu in
13825 pgcc*) # Portland Group C compiler
13826 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13827 tmp_addflag=' $pic_flag'
13829 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13830 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13831 tmp_addflag=' $pic_flag -Mnomain' ;;
13832 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13833 tmp_addflag=' -i_dynamic' ;;
13834 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13835 tmp_addflag=' -i_dynamic -nofor_main' ;;
13836 ifc* | ifort*) # Intel Fortran compiler
13837 tmp_addflag=' -nofor_main' ;;
13839 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13841 if test $supports_anon_versioning = yes; then
13842 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13844 $echo "local: *; };" >> $output_objdir/$libname.ver~
13845 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13847 link_all_deplibs_F77=no
13853 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13854 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13855 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13858 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13859 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13864 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13868 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13869 *** create shared libraries on Solaris systems. Therefore, libtool
13870 *** is disabling shared libraries support. We urge you to upgrade GNU
13871 *** binutils to release 2.9.1 or newer. Another option is to modify
13872 *** your PATH or compiler configuration so that the native linker is
13873 *** used, and then restart.
13876 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13877 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13878 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13885 case `$LD -v 2>&1` in
13886 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13890 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13891 *** reliably create shared libraries on SCO systems. Therefore, libtool
13892 *** is disabling shared libraries support. We urge you to upgrade GNU
13893 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13894 *** your PATH or compiler configuration so that the native linker is
13895 *** used, and then restart.
13900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13901 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13902 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13903 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13912 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13914 hardcode_direct_F77=yes
13915 hardcode_shlibpath_var_F77=no
13919 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13920 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13928 if test "$ld_shlibs_F77" = no; then
13930 hardcode_libdir_flag_spec_F77=
13931 export_dynamic_flag_spec_F77=
13932 whole_archive_flag_spec_F77=
13935 # PORTME fill in a description of your system's linker (not GNU ld)
13938 allow_undefined_flag_F77=unsupported
13939 always_export_symbols_F77=yes
13940 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'
13941 # Note: this linker hardcodes the directories in LIBPATH if there
13942 # are no directories specified by -L.
13943 hardcode_minus_L_F77=yes
13944 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13945 # Neither direct hardcoding nor static linking is supported with a
13947 hardcode_direct_F77=unsupported
13952 if test "$host_cpu" = ia64; then
13953 # On IA64, the linker does run time linking by default, so we don't
13954 # have to do anything special.
13955 aix_use_runtimelinking=no
13956 exp_sym_flag='-Bexport'
13959 # If we're using GNU nm, then we don't want the "-C" option.
13960 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13961 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13962 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'
13964 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'
13966 aix_use_runtimelinking=no
13968 # Test if we are trying to use run time linking or normal
13969 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13970 # need to do runtime linking.
13971 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13972 for ld_flag in $LDFLAGS; do
13973 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13974 aix_use_runtimelinking=yes
13981 exp_sym_flag='-bexport'
13982 no_entry_flag='-bnoentry'
13985 # When large executables or shared objects are built, AIX ld can
13986 # have problems creating the table of contents. If linking a library
13987 # or program results in "error TOC overflow" add -mminimal-toc to
13988 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13989 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13991 archive_cmds_F77=''
13992 hardcode_direct_F77=yes
13993 hardcode_libdir_separator_F77=':'
13994 link_all_deplibs_F77=yes
13996 if test "$GCC" = yes; then
13997 case $host_os in aix4.[012]|aix4.[012].*)
13998 # We only want to do this on AIX 4.2 and lower, the check
13999 # below for broken collect2 doesn't work under 4.3+
14000 collect2name=`${CC} -print-prog-name=collect2`
14001 if test -f "$collect2name" && \
14002 strings "$collect2name" | grep resolve_lib_name >/dev/null
14004 # We have reworked collect2
14005 hardcode_direct_F77=yes
14007 # We have old collect2
14008 hardcode_direct_F77=unsupported
14009 # It fails to find uninstalled libraries when the uninstalled
14010 # path is not listed in the libpath. Setting hardcode_minus_L
14011 # to unsupported forces relinking
14012 hardcode_minus_L_F77=yes
14013 hardcode_libdir_flag_spec_F77='-L$libdir'
14014 hardcode_libdir_separator_F77=
14018 shared_flag='-shared'
14019 if test "$aix_use_runtimelinking" = yes; then
14020 shared_flag="$shared_flag "'${wl}-G'
14024 if test "$host_cpu" = ia64; then
14025 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14026 # chokes on -Wl,-G. The following line is correct:
14029 if test "$aix_use_runtimelinking" = yes; then
14030 shared_flag='${wl}-G'
14032 shared_flag='${wl}-bM:SRE'
14037 # It seems that -bexpall does not export symbols beginning with
14038 # underscore (_), so it is better to generate a list of symbols to export.
14039 always_export_symbols_F77=yes
14040 if test "$aix_use_runtimelinking" = yes; then
14041 # Warning - without using the other runtime loading flags (-brtl),
14042 # -berok will link without error, but may produce a broken library.
14043 allow_undefined_flag_F77='-berok'
14044 # Determine the default libpath from the value encoded in an empty executable.
14045 cat >conftest.$ac_ext <<_ACEOF
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14052 (eval $ac_link) 2>conftest.er1
14054 grep -v '^ *+' conftest.er1 >conftest.err
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; } &&
14065 { ac_try='test -s conftest$ac_exeext'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14074 # Check for a 64-bit object if we didn't find anything.
14075 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; }
14078 echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14082 rm -f conftest.err conftest.$ac_objext \
14083 conftest$ac_exeext conftest.$ac_ext
14084 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14086 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14087 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14089 if test "$host_cpu" = ia64; then
14090 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14091 allow_undefined_flag_F77="-z nodefs"
14092 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14094 # Determine the default libpath from the value encoded in an empty executable.
14095 cat >conftest.$ac_ext <<_ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14102 (eval $ac_link) 2>conftest.er1
14104 grep -v '^ *+' conftest.er1 >conftest.err
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14124 # Check for a 64-bit object if we didn't find anything.
14125 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; }
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14132 rm -f conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14136 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14137 # Warning - without using the other run time loading flags,
14138 # -berok will link without error, but may produce a broken library.
14139 no_undefined_flag_F77=' ${wl}-bernotok'
14140 allow_undefined_flag_F77=' ${wl}-berok'
14141 # Exported symbols can be pulled into shared objects from archives
14142 whole_archive_flag_spec_F77='$convenience'
14143 archive_cmds_need_lc_F77=yes
14144 # This is similar to how AIX traditionally builds its shared libraries.
14145 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14151 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)'
14152 hardcode_libdir_flag_spec_F77='-L$libdir'
14153 hardcode_minus_L_F77=yes
14154 # see comment about different semantics on the GNU ld section
14159 export_dynamic_flag_spec_F77=-rdynamic
14162 cygwin* | mingw* | pw32*)
14163 # When not using gcc, we currently assume that we are using
14164 # Microsoft Visual C++.
14165 # hardcode_libdir_flag_spec is actually meaningless, as there is
14166 # no search path for DLLs.
14167 hardcode_libdir_flag_spec_F77=' '
14168 allow_undefined_flag_F77=unsupported
14169 # Tell ltmain to make .lib files, not .a files.
14171 # Tell ltmain to make .dll files, not .so files.
14173 # FIXME: Setting linknames here is a bad hack.
14174 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14175 # The linker will automatically build a .lib file if we build a DLL.
14176 old_archive_From_new_cmds_F77='true'
14177 # FIXME: Should let the user specify the lib program.
14178 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14179 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14180 enable_shared_with_static_runtimes_F77=yes
14183 darwin* | rhapsody*)
14185 rhapsody* | darwin1.[012])
14186 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14190 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14192 case ${MACOSX_DEPLOYMENT_TARGET} in
14194 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14197 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14203 archive_cmds_need_lc_F77=no
14204 hardcode_direct_F77=no
14205 hardcode_automatic_F77=yes
14206 hardcode_shlibpath_var_F77=unsupported
14207 whole_archive_flag_spec_F77=''
14208 link_all_deplibs_F77=yes
14209 if test "$GCC" = yes ; then
14210 output_verbose_link_cmd='echo'
14211 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14212 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14214 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14215 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}'
14217 case $cc_basename in
14219 output_verbose_link_cmd='echo'
14220 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14221 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14223 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14224 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}'
14234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14235 hardcode_libdir_flag_spec_F77='-L$libdir'
14236 hardcode_shlibpath_var_F77=no
14243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14244 # support. Future versions do this automatically, but an explicit c++rt0.o
14245 # does not break anything, and helps significantly (at the cost of a little
14248 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14249 hardcode_libdir_flag_spec_F77='-R$libdir'
14250 hardcode_direct_F77=yes
14251 hardcode_shlibpath_var_F77=no
14254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14256 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14257 hardcode_direct_F77=yes
14258 hardcode_minus_L_F77=yes
14259 hardcode_shlibpath_var_F77=no
14262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14263 freebsd* | dragonfly*)
14264 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14265 hardcode_libdir_flag_spec_F77='-R$libdir'
14266 hardcode_direct_F77=yes
14267 hardcode_shlibpath_var_F77=no
14270 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14272 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14273 hardcode_libdir_flag_spec_F77='-R$libdir'
14274 hardcode_direct_F77=yes
14275 hardcode_shlibpath_var_F77=no
14276 link_all_deplibs_F77=no
14280 if test "$GCC" = yes; then
14281 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'
14283 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'
14285 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14286 hardcode_libdir_separator_F77=:
14287 hardcode_direct_F77=yes
14289 # hardcode_minus_L: Not really in the search PATH,
14290 # but as the default location of the library.
14291 hardcode_minus_L_F77=yes
14292 export_dynamic_flag_spec_F77='${wl}-E'
14296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14297 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14299 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14301 if test "$with_gnu_ld" = no; then
14302 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14303 hardcode_libdir_separator_F77=:
14305 hardcode_direct_F77=yes
14306 export_dynamic_flag_spec_F77='${wl}-E'
14308 # hardcode_minus_L: Not really in the search PATH,
14309 # but as the default location of the library.
14310 hardcode_minus_L_F77=yes
14315 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14318 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14321 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14324 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14330 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14333 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14336 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14340 if test "$with_gnu_ld" = no; then
14341 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14342 hardcode_libdir_separator_F77=:
14346 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14347 hardcode_direct_F77=no
14348 hardcode_shlibpath_var_F77=no
14351 hardcode_direct_F77=yes
14352 export_dynamic_flag_spec_F77='${wl}-E'
14354 # hardcode_minus_L: Not really in the search PATH,
14355 # but as the default location of the library.
14356 hardcode_minus_L_F77=yes
14362 irix5* | irix6* | nonstopux*)
14363 if test "$GCC" = yes; then
14364 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'
14366 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'
14367 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14369 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14370 hardcode_libdir_separator_F77=:
14371 link_all_deplibs_F77=yes
14374 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14376 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14378 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14380 hardcode_libdir_flag_spec_F77='-R$libdir'
14381 hardcode_direct_F77=yes
14382 hardcode_shlibpath_var_F77=no
14386 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14387 hardcode_direct_F77=yes
14388 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14389 hardcode_libdir_separator_F77=:
14390 hardcode_shlibpath_var_F77=no
14394 hardcode_direct_F77=yes
14395 hardcode_shlibpath_var_F77=no
14396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14397 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14398 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14399 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14400 export_dynamic_flag_spec_F77='${wl}-E'
14403 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14404 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14405 hardcode_libdir_flag_spec_F77='-R$libdir'
14408 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14409 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14416 hardcode_libdir_flag_spec_F77='-L$libdir'
14417 hardcode_minus_L_F77=yes
14418 allow_undefined_flag_F77=unsupported
14419 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'
14420 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14424 if test "$GCC" = yes; then
14425 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14426 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'
14428 allow_undefined_flag_F77=' -expect_unresolved \*'
14429 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'
14431 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14432 hardcode_libdir_separator_F77=:
14435 osf4* | osf5*) # as osf3* with the addition of -msym flag
14436 if test "$GCC" = yes; then
14437 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14438 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'
14439 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14441 allow_undefined_flag_F77=' -expect_unresolved \*'
14442 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'
14443 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~
14444 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14446 # Both c and cxx compiler support -rpath directly
14447 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14449 hardcode_libdir_separator_F77=:
14453 no_undefined_flag_F77=' -z text'
14454 if test "$GCC" = yes; then
14456 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14457 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14458 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14461 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14462 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14463 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14465 hardcode_libdir_flag_spec_F77='-R$libdir'
14466 hardcode_shlibpath_var_F77=no
14468 solaris2.[0-5] | solaris2.[0-5].*) ;;
14470 # The compiler driver will combine linker options so we
14471 # cannot just pass the convience library names through
14472 # without $wl, iff we do not link with $LD.
14473 # Luckily, gcc supports the same syntax we need for Sun Studio.
14474 # Supported since Solaris 2.6 (maybe 2.5.1?)
14477 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14479 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14482 link_all_deplibs_F77=yes
14486 if test "x$host_vendor" = xsequent; then
14487 # Use $CC to link under sequent, because it throws in some extra .o
14488 # files that make .init and .fini sections work.
14489 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14491 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14493 hardcode_libdir_flag_spec_F77='-L$libdir'
14494 hardcode_direct_F77=yes
14495 hardcode_minus_L_F77=yes
14496 hardcode_shlibpath_var_F77=no
14500 case $host_vendor in
14502 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14503 hardcode_direct_F77=yes # is this really true???
14506 ## LD is ld it makes a PLAMLIB
14507 ## CC just makes a GrossModule.
14508 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14509 reload_cmds_F77='$CC -r -o $output$reload_objs'
14510 hardcode_direct_F77=no
14513 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14514 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14517 runpath_var='LD_RUN_PATH'
14518 hardcode_shlibpath_var_F77=no
14522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523 hardcode_shlibpath_var_F77=no
14524 export_dynamic_flag_spec_F77='-Bexport'
14528 if test -d /usr/nec; then
14529 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14530 hardcode_shlibpath_var_F77=no
14531 runpath_var=LD_RUN_PATH
14532 hardcode_runpath_var=yes
14537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14538 no_undefined_flag_F77='${wl}-z,text'
14539 archive_cmds_need_lc_F77=no
14540 hardcode_shlibpath_var_F77=no
14541 runpath_var='LD_RUN_PATH'
14543 if test "$GCC" = yes; then
14544 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14545 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14552 sysv5* | sco3.2v5* | sco5v6*)
14553 # Note: We can NOT use -z defs as we might desire, because we do not
14554 # link with -lc, and that would cause any symbols used from libc to
14555 # always be unresolved, which means just about no library would
14556 # ever link correctly. If we're not using GNU ld we use -z text
14557 # though, which does catch some bad symbols but isn't as heavy-handed
14559 no_undefined_flag_F77='${wl}-z,text'
14560 allow_undefined_flag_F77='${wl}-z,nodefs'
14561 archive_cmds_need_lc_F77=no
14562 hardcode_shlibpath_var_F77=no
14563 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14564 hardcode_libdir_separator_F77=':'
14565 link_all_deplibs_F77=yes
14566 export_dynamic_flag_spec_F77='${wl}-Bexport'
14567 runpath_var='LD_RUN_PATH'
14569 if test "$GCC" = yes; then
14570 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14571 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14573 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14574 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14579 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14580 hardcode_libdir_flag_spec_F77='-L$libdir'
14581 hardcode_shlibpath_var_F77=no
14590 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14591 echo "${ECHO_T}$ld_shlibs_F77" >&6
14592 test "$ld_shlibs_F77" = no && can_build_shared=no
14595 # Do we need to explicitly link libc?
14597 case "x$archive_cmds_need_lc_F77" in
14599 # Assume -lc should be added
14600 archive_cmds_need_lc_F77=yes
14602 if test "$enable_shared" = yes && test "$GCC" = yes; then
14603 case $archive_cmds_F77 in
14605 # FIXME: we may have to deal with multi-command sequences.
14608 # Test whether the compiler implicitly links with -lc since on some
14609 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14610 # to ld, don't add -lc before -lgcc.
14611 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14612 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14617 (eval $ac_compile) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } 2>conftest.err; then
14623 libobjs=conftest.$ac_objext
14625 wl=$lt_prog_compiler_wl_F77
14626 pic_flag=$lt_prog_compiler_pic_F77
14632 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14633 allow_undefined_flag_F77=
14634 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14635 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }
14640 archive_cmds_need_lc_F77=no
14642 archive_cmds_need_lc_F77=yes
14644 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14646 cat conftest.err 1>&5
14649 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14650 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14657 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14658 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14659 library_names_spec=
14660 libname_spec='lib$name'
14664 postuninstall_cmds=
14668 shlibpath_overrides_runpath=unknown
14670 dynamic_linker="$host_os ld.so"
14671 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14672 if test "$GCC" = yes; then
14673 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14674 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14675 # if the path contains ";" then we assume it to be the separator
14676 # otherwise default to the standard path separator (i.e. ":") - it is
14677 # assumed that no part of a normal pathname contains ";" but that should
14678 # okay in the real world where ";" in dirpaths is itself problematic.
14679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14684 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14686 need_lib_prefix=unknown
14687 hardcode_into_libs=no
14689 # when you set need_version to no, make sure it does not cause -set_version
14690 # flags to be left without arguments
14691 need_version=unknown
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14697 shlibpath_var=LIBPATH
14699 # AIX 3 has no versioning support, so we append a major version to the name.
14700 soname_spec='${libname}${release}${shared_ext}$major'
14707 hardcode_into_libs=yes
14708 if test "$host_cpu" = ia64; then
14709 # AIX 5 supports IA64
14710 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14711 shlibpath_var=LD_LIBRARY_PATH
14713 # With GCC up to 2.95.x, collect2 would create an import file
14714 # for dependence libraries. The import file would start with
14715 # the line `#! .'. This would cause the generated library to
14716 # depend on `.', always an invalid library. This was fixed in
14717 # development snapshots of GCC prior to 3.0.
14719 aix4 | aix4.[01] | aix4.[01].*)
14720 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14722 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14725 can_build_shared=no
14729 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14730 # soname into executable. Probably we can add versioning support to
14731 # collect2, so additional links can be useful in future.
14732 if test "$aix_use_runtimelinking" = yes; then
14733 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14734 # instead of lib<name>.a to let people know that these are not
14735 # typical AIX shared libraries.
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 # We preserve .a as extension for shared libraries through AIX4.2
14739 # and later when we are not doing run time linking.
14740 library_names_spec='${libname}${release}.a $libname.a'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14743 shlibpath_var=LIBPATH
14748 library_names_spec='$libname.ixlibrary $libname.a'
14749 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14750 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'
14754 library_names_spec='${libname}${shared_ext}'
14755 dynamic_linker="$host_os ld.so"
14756 shlibpath_var=LIBRARY_PATH
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14765 shlibpath_var=LD_LIBRARY_PATH
14766 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14767 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14768 # the default ld.so.conf also contains /usr/contrib/lib and
14769 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14770 # libtool to hard-code these into programs
14773 cygwin* | mingw* | pw32*)
14774 version_type=windows
14779 case $GCC,$host_os in
14780 yes,cygwin* | yes,mingw* | yes,pw32*)
14781 library_names_spec='$libname.dll.a'
14782 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14783 postinstall_cmds='base_file=`basename \${file}`~
14784 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14785 dldir=$destdir/`dirname \$dlpath`~
14786 test -d \$dldir || mkdir -p \$dldir~
14787 $install_prog $dir/$dlname \$dldir/$dlname~
14788 chmod a+x \$dldir/$dlname'
14789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14790 dlpath=$dir/\$dldll~
14792 shlibpath_overrides_runpath=yes
14796 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14797 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14798 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14801 # MinGW DLLs use traditional 'lib' prefix
14802 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14803 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14804 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14805 # It is most probably a Windows format PATH printed by
14806 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14807 # path with ; separators, and with drive letters. We can handle the
14808 # drive letters (cygwin fileutils understands them), so leave them,
14809 # especially as we might pass files found there to a mingw objdump,
14810 # which wouldn't understand a cygwinified path. Ahh.
14811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14817 # pw32 DLLs use 'pw' prefix rather than 'lib'
14818 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14827 dynamic_linker='Win32 ld.exe'
14828 # FIXME: first we should search . and the directory the executable is in
14832 darwin* | rhapsody*)
14833 dynamic_linker="$host_os dyld"
14834 version_type=darwin
14837 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14838 soname_spec='${libname}${release}${major}$shared_ext'
14839 shlibpath_overrides_runpath=yes
14840 shlibpath_var=DYLD_LIBRARY_PATH
14841 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14842 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14843 if test "$GCC" = yes; then
14844 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"`
14846 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14856 soname_spec='${libname}${release}${shared_ext}$major'
14857 shlibpath_var=LD_LIBRARY_PATH
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath=no
14872 hardcode_into_libs=yes
14873 dynamic_linker='GNU ld.so'
14876 freebsd* | dragonfly*)
14877 # DragonFly does not have aout. When/if they implement a new
14878 # versioning mechanism, adjust this.
14879 if test -x /usr/bin/objformat; then
14880 objformat=`/usr/bin/objformat`
14883 freebsd[123]*) objformat=aout ;;
14884 *) objformat=elf ;;
14887 version_type=freebsd-$objformat
14888 case $version_type in
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14899 shlibpath_var=LD_LIBRARY_PATH
14902 shlibpath_overrides_runpath=yes
14904 freebsd3.[01]* | freebsdelf3.[01]*)
14905 shlibpath_overrides_runpath=yes
14906 hardcode_into_libs=yes
14908 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14909 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14910 shlibpath_overrides_runpath=no
14911 hardcode_into_libs=yes
14913 freebsd*) # from 4.6 on
14914 shlibpath_overrides_runpath=yes
14915 hardcode_into_libs=yes
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14925 soname_spec='${libname}${release}${shared_ext}$major'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 hardcode_into_libs=yes
14930 hpux9* | hpux10* | hpux11*)
14931 # Give a soname corresponding to the major version so that dld.sl refuses to
14932 # link against other versions.
14939 hardcode_into_libs=yes
14940 dynamic_linker="$host_os dld.so"
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944 soname_spec='${libname}${release}${shared_ext}$major'
14945 if test "X$HPUX_IA64_MODE" = X32; then
14946 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14948 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14954 hardcode_into_libs=yes
14955 dynamic_linker="$host_os dld.sl"
14956 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14965 dynamic_linker="$host_os dld.sl"
14966 shlibpath_var=SHLIB_PATH
14967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14972 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14973 postinstall_cmds='chmod 555 $lib'
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14983 shlibpath_var=LD_LIBRARY_PATH
14984 shlibpath_overrides_runpath=no
14985 hardcode_into_libs=yes
14988 irix5* | irix6* | nonstopux*)
14990 nonstopux*) version_type=nonstopux ;;
14992 if test "$lt_cv_prog_gnu_ld" = yes; then
15000 soname_spec='${libname}${release}${shared_ext}$major'
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15003 irix5* | nonstopux*)
15004 libsuff= shlibsuff=
15007 case $LD in # libtool.m4 will add one of these switches to LD
15008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15009 libsuff= shlibsuff= libmagic=32-bit;;
15010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15011 libsuff=32 shlibsuff=N32 libmagic=N32;;
15012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15014 *) libsuff= shlibsuff= libmagic=never-match;;
15018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15019 shlibpath_overrides_runpath=no
15020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15022 hardcode_into_libs=yes
15025 # No shared lib support for Linux oldld, aout, or coff.
15026 linux*oldld* | linux*aout* | linux*coff*)
15030 # This must be Linux ELF.
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=no
15040 # This implies no fast_install, which is unacceptable.
15041 # Some rework will be needed to allow for fast_install
15042 # before this can be enabled.
15043 hardcode_into_libs=yes
15045 # Append ld.so.conf contents to the search path
15046 if test -f /etc/ld.so.conf; then
15047 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15048 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15051 # We used to test for /lib/ld.so.1 and disable shared libraries on
15052 # powerpc, because MkLinux only supported shared libraries with the
15053 # GNU dynamic linker. Since this was broken with cross compilers,
15054 # most powerpc-linux boxes support dynamic linking these days and
15055 # people can always --disable-shared, the test was removed, and we
15056 # assume the GNU/Linux dynamic linker is in use.
15057 dynamic_linker='GNU/Linux ld.so'
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15065 soname_spec='${libname}${release}${shared_ext}$major'
15066 shlibpath_var=LD_LIBRARY_PATH
15067 shlibpath_overrides_runpath=no
15068 hardcode_into_libs=yes
15069 dynamic_linker='NetBSD ld.elf_so'
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15077 soname_spec='${libname}${release}${shared_ext}$major'
15078 shlibpath_var=LD_LIBRARY_PATH
15079 shlibpath_overrides_runpath=no
15080 hardcode_into_libs=yes
15081 dynamic_linker='GNU ld.so'
15088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15091 dynamic_linker='NetBSD (a.out) ld.so'
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 dynamic_linker='NetBSD ld.elf_so'
15097 shlibpath_var=LD_LIBRARY_PATH
15098 shlibpath_overrides_runpath=yes
15099 hardcode_into_libs=yes
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 shlibpath_var=LD_LIBRARY_PATH
15106 shlibpath_overrides_runpath=yes
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114 soname_spec='${libname}${release}${shared_ext}$major'
15115 shlibpath_var=LD_LIBRARY_PATH
15116 shlibpath_overrides_runpath=yes
15121 sys_lib_dlsearch_path_spec="/usr/lib"
15123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15126 *) need_version=no ;;
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15130 shlibpath_var=LD_LIBRARY_PATH
15131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15133 openbsd2.[89] | openbsd2.[89].*)
15134 shlibpath_overrides_runpath=no
15137 shlibpath_overrides_runpath=yes
15141 shlibpath_overrides_runpath=yes
15146 libname_spec='$name'
15149 library_names_spec='$libname${shared_ext} $libname.a'
15150 dynamic_linker='OS/2 ld.exe'
15151 shlibpath_var=LIBPATH
15154 osf3* | osf4* | osf5*)
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 shlibpath_var=LD_LIBRARY_PATH
15172 shlibpath_overrides_runpath=yes
15173 hardcode_into_libs=yes
15174 # ldd complains unless libraries are executable
15175 postinstall_cmds='chmod +x $lib'
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 shlibpath_overrides_runpath=yes
15184 if test "$with_gnu_ld" = yes; then
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 case $host_vendor in
15197 shlibpath_overrides_runpath=no
15199 export_dynamic_flag_spec='${wl}-Blargedynsym'
15200 runpath_var=LD_RUN_PATH
15208 shlibpath_overrides_runpath=no
15209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15215 if test -d /usr/nec ;then
15217 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15218 soname_spec='$libname${shared_ext}.$major'
15219 shlibpath_var=LD_LIBRARY_PATH
15223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15224 version_type=freebsd-elf
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 shlibpath_var=LD_LIBRARY_PATH
15230 hardcode_into_libs=yes
15231 if test "$with_gnu_ld" = yes; then
15232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15233 shlibpath_overrides_runpath=no
15235 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15236 shlibpath_overrides_runpath=yes
15239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15243 sys_lib_dlsearch_path_spec='/usr/lib'
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 shlibpath_var=LD_LIBRARY_PATH
15257 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15258 echo "${ECHO_T}$dynamic_linker" >&6
15259 test "$dynamic_linker" = no && can_build_shared=no
15261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15262 if test "$GCC" = yes; then
15263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15266 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15267 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15268 hardcode_action_F77=
15269 if test -n "$hardcode_libdir_flag_spec_F77" || \
15270 test -n "$runpath_var_F77" || \
15271 test "X$hardcode_automatic_F77" = "Xyes" ; then
15273 # We can hardcode non-existant directories.
15274 if test "$hardcode_direct_F77" != no &&
15275 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15276 # have to relink, otherwise we might link with an installed library
15277 # when we should be linking with a yet-to-be-installed one
15278 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15279 test "$hardcode_minus_L_F77" != no; then
15280 # Linking always hardcodes the temporary library directory.
15281 hardcode_action_F77=relink
15283 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15284 hardcode_action_F77=immediate
15287 # We cannot hardcode anything, or else we can only hardcode existing
15289 hardcode_action_F77=unsupported
15291 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15292 echo "${ECHO_T}$hardcode_action_F77" >&6
15294 if test "$hardcode_action_F77" = relink; then
15295 # Fast installation is not supported
15296 enable_fast_install=no
15297 elif test "$shlibpath_overrides_runpath" = yes ||
15298 test "$enable_shared" = no; then
15299 # Fast installation is not necessary
15300 enable_fast_install=needless
15304 # The else clause should only fire when bootstrapping the
15305 # libtool distribution, otherwise you forgot to ship ltmain.sh
15306 # with your package, and you will get complaints that there are
15307 # no rules to generate ltmain.sh.
15308 if test -f "$ltmain"; then
15309 # See if we are running on zsh, and set the options which allow our commands through
15310 # without removal of \ escapes.
15311 if test -n "${ZSH_VERSION+set}" ; then
15312 setopt NO_GLOB_SUBST
15314 # Now quote all the things that may contain metacharacters while being
15315 # careful not to overquote the AC_SUBSTed values. We take copies of the
15316 # variables and quote the copies for generation of the libtool script.
15317 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15319 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15320 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15321 deplibs_check_method reload_flag reload_cmds need_locks \
15322 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15323 lt_cv_sys_global_symbol_to_c_name_address \
15324 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15325 old_postinstall_cmds old_postuninstall_cmds \
15329 lt_prog_compiler_wl_F77 \
15330 lt_prog_compiler_pic_F77 \
15331 lt_prog_compiler_static_F77 \
15332 lt_prog_compiler_no_builtin_flag_F77 \
15333 export_dynamic_flag_spec_F77 \
15334 thread_safe_flag_spec_F77 \
15335 whole_archive_flag_spec_F77 \
15336 enable_shared_with_static_runtimes_F77 \
15337 old_archive_cmds_F77 \
15338 old_archive_from_new_cmds_F77 \
15339 predep_objects_F77 \
15340 postdep_objects_F77 \
15343 compiler_lib_search_path_F77 \
15345 archive_expsym_cmds_F77 \
15346 postinstall_cmds_F77 \
15347 postuninstall_cmds_F77 \
15348 old_archive_from_expsyms_cmds_F77 \
15349 allow_undefined_flag_F77 \
15350 no_undefined_flag_F77 \
15351 export_symbols_cmds_F77 \
15352 hardcode_libdir_flag_spec_F77 \
15353 hardcode_libdir_flag_spec_ld_F77 \
15354 hardcode_libdir_separator_F77 \
15355 hardcode_automatic_F77 \
15357 module_expsym_cmds_F77 \
15358 lt_cv_prog_compiler_c_o_F77 \
15359 exclude_expsyms_F77 \
15360 include_expsyms_F77; do
15363 old_archive_cmds_F77 | \
15364 old_archive_from_new_cmds_F77 | \
15365 archive_cmds_F77 | \
15366 archive_expsym_cmds_F77 | \
15367 module_cmds_F77 | \
15368 module_expsym_cmds_F77 | \
15369 old_archive_from_expsyms_cmds_F77 | \
15370 export_symbols_cmds_F77 | \
15371 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15372 postinstall_cmds | postuninstall_cmds | \
15373 old_postinstall_cmds | old_postuninstall_cmds | \
15374 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15375 # Double-quote double-evaled strings.
15376 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15379 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15385 *'\$0 --fallback-echo"')
15386 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15392 cat <<__EOF__ >> "$cfgfile"
15393 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15395 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15397 # Shell to use when invoking shell scripts.
15400 # Whether or not to build shared libraries.
15401 build_libtool_libs=$enable_shared
15403 # Whether or not to build static libraries.
15404 build_old_libs=$enable_static
15406 # Whether or not to add -lc for building shared libraries.
15407 build_libtool_need_lc=$archive_cmds_need_lc_F77
15409 # Whether or not to disallow shared libs when runtime libs are static
15410 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15412 # Whether or not to optimize for fast installation.
15413 fast_install=$enable_fast_install
15416 host_alias=$host_alias
15420 # The build system.
15421 build_alias=$build_alias
15425 # An echo program that does not interpret backslashes.
15430 AR_FLAGS=$lt_AR_FLAGS
15435 # LTCC compiler flags.
15436 LTCFLAGS=$lt_LTCFLAGS
15438 # A language-specific compiler.
15439 CC=$lt_compiler_F77
15441 # Is the compiler the GNU C compiler?
15447 # The linker used to build libraries.
15450 # Whether we need hard or soft links.
15453 # A BSD-compatible nm program.
15456 # A symbol stripping program
15459 # Used to examine libraries when file_magic_cmd begins "file"
15460 MAGIC_CMD=$MAGIC_CMD
15462 # Used on cygwin: DLL creation program.
15465 # Used on cygwin: object dumper.
15468 # Used on cygwin: assembler.
15471 # The name of the directory that contains temporary libtool files.
15474 # How to create reloadable object files.
15475 reload_flag=$lt_reload_flag
15476 reload_cmds=$lt_reload_cmds
15478 # How to pass a linker flag through the compiler.
15479 wl=$lt_lt_prog_compiler_wl_F77
15481 # Object file suffix (normally "o").
15482 objext="$ac_objext"
15484 # Old archive suffix (normally "a").
15487 # Shared library suffix (normally ".so").
15488 shrext_cmds='$shrext_cmds'
15490 # Executable file suffix (normally "").
15493 # Additional compiler flags for building library objects.
15494 pic_flag=$lt_lt_prog_compiler_pic_F77
15497 # What is the maximum length of a command?
15498 max_cmd_len=$lt_cv_sys_max_cmd_len
15500 # Does compiler simultaneously support -c and -o options?
15501 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15503 # Must we lock files when doing compilation?
15504 need_locks=$lt_need_locks
15506 # Do we need the lib prefix for modules?
15507 need_lib_prefix=$need_lib_prefix
15509 # Do we need a version for libraries?
15510 need_version=$need_version
15512 # Whether dlopen is supported.
15513 dlopen_support=$enable_dlopen
15515 # Whether dlopen of programs is supported.
15516 dlopen_self=$enable_dlopen_self
15518 # Whether dlopen of statically linked programs is supported.
15519 dlopen_self_static=$enable_dlopen_self_static
15521 # Compiler flag to prevent dynamic linking.
15522 link_static_flag=$lt_lt_prog_compiler_static_F77
15524 # Compiler flag to turn off builtin functions.
15525 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15527 # Compiler flag to allow reflexive dlopens.
15528 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15530 # Compiler flag to generate shared objects directly from archives.
15531 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15533 # Compiler flag to generate thread-safe objects.
15534 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15536 # Library versioning type.
15537 version_type=$version_type
15539 # Format of library name prefix.
15540 libname_spec=$lt_libname_spec
15542 # List of archive names. First name is the real one, the rest are links.
15543 # The last name is the one that the linker finds with -lNAME.
15544 library_names_spec=$lt_library_names_spec
15546 # The coded name of the library, if different from the real name.
15547 soname_spec=$lt_soname_spec
15549 # Commands used to build and install an old-style archive.
15551 old_archive_cmds=$lt_old_archive_cmds_F77
15552 old_postinstall_cmds=$lt_old_postinstall_cmds
15553 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15555 # Create an old-style archive from a shared archive.
15556 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15558 # Create a temporary old-style archive to link instead of a shared archive.
15559 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15561 # Commands used to build and install a shared archive.
15562 archive_cmds=$lt_archive_cmds_F77
15563 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15564 postinstall_cmds=$lt_postinstall_cmds
15565 postuninstall_cmds=$lt_postuninstall_cmds
15567 # Commands used to build a loadable module (assumed same as above if empty)
15568 module_cmds=$lt_module_cmds_F77
15569 module_expsym_cmds=$lt_module_expsym_cmds_F77
15571 # Commands to strip libraries.
15572 old_striplib=$lt_old_striplib
15573 striplib=$lt_striplib
15575 # Dependencies to place before the objects being linked to create a
15577 predep_objects=$lt_predep_objects_F77
15579 # Dependencies to place after the objects being linked to create a
15581 postdep_objects=$lt_postdep_objects_F77
15583 # Dependencies to place before the objects being linked to create a
15585 predeps=$lt_predeps_F77
15587 # Dependencies to place after the objects being linked to create a
15589 postdeps=$lt_postdeps_F77
15591 # The library search path used internally by the compiler when linking
15592 # a shared library.
15593 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15595 # Method to check whether dependent libraries are shared objects.
15596 deplibs_check_method=$lt_deplibs_check_method
15598 # Command to use when deplibs_check_method == file_magic.
15599 file_magic_cmd=$lt_file_magic_cmd
15601 # Flag that allows shared libraries with undefined symbols to be built.
15602 allow_undefined_flag=$lt_allow_undefined_flag_F77
15604 # Flag that forces no undefined symbols.
15605 no_undefined_flag=$lt_no_undefined_flag_F77
15607 # Commands used to finish a libtool library installation in a directory.
15608 finish_cmds=$lt_finish_cmds
15610 # Same as above, but a single script fragment to be evaled but not shown.
15611 finish_eval=$lt_finish_eval
15613 # Take the output of nm and produce a listing of raw symbols and C names.
15614 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15616 # Transform the output of nm in a proper C declaration
15617 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15619 # Transform the output of nm in a C name address pair
15620 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15622 # This is the shared library runtime path variable.
15623 runpath_var=$runpath_var
15625 # This is the shared library path variable.
15626 shlibpath_var=$shlibpath_var
15628 # Is shlibpath searched before the hard-coded library search path?
15629 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15631 # How to hardcode a shared library path into an executable.
15632 hardcode_action=$hardcode_action_F77
15634 # Whether we should hardcode library paths into libraries.
15635 hardcode_into_libs=$hardcode_into_libs
15637 # Flag to hardcode \$libdir into a binary during linking.
15638 # This must work even if \$libdir does not exist.
15639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15641 # If ld is used when linking, flag to hardcode \$libdir into
15642 # a binary during linking. This must work even if \$libdir does
15644 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15646 # Whether we need a single -rpath flag with a separated argument.
15647 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15649 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15650 # resulting binary.
15651 hardcode_direct=$hardcode_direct_F77
15653 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15654 # resulting binary.
15655 hardcode_minus_L=$hardcode_minus_L_F77
15657 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15658 # the resulting binary.
15659 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15661 # Set to yes if building a shared library automatically hardcodes DIR into the library
15662 # and all subsequent libraries and executables linked against it.
15663 hardcode_automatic=$hardcode_automatic_F77
15665 # Variables whose values should be saved in libtool wrapper scripts and
15666 # restored at relink time.
15667 variables_saved_for_relink="$variables_saved_for_relink"
15669 # Whether libtool must link a program against all its dependency libraries.
15670 link_all_deplibs=$link_all_deplibs_F77
15672 # Compile-time system search path for libraries
15673 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15675 # Run-time system search path for libraries
15676 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15678 # Fix the shell variable \$srcfile for the compiler.
15679 fix_srcfile_path="$fix_srcfile_path_F77"
15681 # Set to yes if exported symbols are required.
15682 always_export_symbols=$always_export_symbols_F77
15684 # The commands to list exported symbols.
15685 export_symbols_cmds=$lt_export_symbols_cmds_F77
15687 # The commands to extract the exported symbol list from a shared archive.
15688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15690 # Symbols that should not be listed in the preloaded symbols.
15691 exclude_expsyms=$lt_exclude_expsyms_F77
15693 # Symbols that must always be exported.
15694 include_expsyms=$lt_include_expsyms_F77
15696 # ### END LIBTOOL TAG CONFIG: $tagname
15702 # If there is no Makefile yet, we rely on a make rule to execute
15703 # `config.status --recheck' to rerun these tests and create the
15704 # libtool script then.
15705 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15706 if test -f "$ltmain_in"; then
15707 test -f Makefile && make "$ltmain"
15713 ac_cpp='$CPP $CPPFLAGS'
15714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15726 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15730 # Source file extension for Java test sources.
15733 # Object file extension for compiled Java test sources.
15737 # Code to be used in simple compile tests
15738 lt_simple_compile_test_code="class foo {}\n"
15740 # Code to be used in simple link tests
15741 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15743 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15745 # If no C compiler was specified, use CC.
15748 # If no C compiler flags were specified, use CFLAGS.
15749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15751 # Allow CC to be a program name with arguments.
15755 # save warnings/boilerplate of simple test code
15756 ac_outfile=conftest.$ac_objext
15757 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15758 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15759 _lt_compiler_boilerplate=`cat conftest.err`
15762 ac_outfile=conftest.$ac_objext
15763 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15764 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15765 _lt_linker_boilerplate=`cat conftest.err`
15769 # Allow CC to be a program name with arguments.
15774 for cc_temp in $compiler""; do
15776 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15777 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15782 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15785 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15786 archive_cmds_need_lc_GCJ=no
15788 old_archive_cmds_GCJ=$old_archive_cmds
15791 lt_prog_compiler_no_builtin_flag_GCJ=
15793 if test "$GCC" = yes; then
15794 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15797 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15798 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15799 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 lt_cv_prog_compiler_rtti_exceptions=no
15803 ac_outfile=conftest.$ac_objext
15804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15805 lt_compiler_flag="-fno-rtti -fno-exceptions"
15806 # Insert the option either (1) after the last *FLAGS variable, or
15807 # (2) before a word containing "conftest.", or (3) at the end.
15808 # Note that $ac_compile itself does not contain backslashes and begins
15809 # with a dollar sign (not a hyphen), so the echo should work correctly.
15810 # The option is referenced via a variable to avoid confusing sed.
15811 lt_compile=`echo "$ac_compile" | $SED \
15812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15814 -e 's:$: $lt_compiler_flag:'`
15815 (eval echo "\"\$as_me:15815: $lt_compile\"" >&5)
15816 (eval "$lt_compile" 2>conftest.err)
15818 cat conftest.err >&5
15819 echo "$as_me:15819: \$? = $ac_status" >&5
15820 if (exit $ac_status) && test -s "$ac_outfile"; then
15821 # The compiler can only warn and ignore the option if not recognized
15822 # So say no if there are warnings other than the usual output.
15823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15826 lt_cv_prog_compiler_rtti_exceptions=yes
15832 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15833 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15835 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15836 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15843 lt_prog_compiler_wl_GCJ=
15844 lt_prog_compiler_pic_GCJ=
15845 lt_prog_compiler_static_GCJ=
15847 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15848 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15850 if test "$GCC" = yes; then
15851 lt_prog_compiler_wl_GCJ='-Wl,'
15852 lt_prog_compiler_static_GCJ='-static'
15856 # All AIX code is PIC.
15857 if test "$host_cpu" = ia64; then
15858 # AIX 5 now supports IA64 processor
15859 lt_prog_compiler_static_GCJ='-Bstatic'
15864 # FIXME: we need at least 68020 code to build shared libraries, but
15865 # adding the `-m68020' flag to GCC prevents building anything better,
15867 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15870 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15871 # PIC is the default for these OSes.
15874 mingw* | pw32* | os2*)
15875 # This hack is so that the source file can tell whether it is being
15876 # built for inclusion in a dll (and should export symbols for example).
15877 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15880 darwin* | rhapsody*)
15881 # PIC is the default on this platform
15882 # Common symbols not allowed in MH_DYLIB files
15883 lt_prog_compiler_pic_GCJ='-fno-common'
15887 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15888 # Instead, we relocate shared libraries at runtime.
15892 # Just because we use GCC doesn't mean we suddenly get shared libraries
15893 # on systems that don't support them.
15894 lt_prog_compiler_can_build_shared_GCJ=no
15899 if test -d /usr/nec; then
15900 lt_prog_compiler_pic_GCJ=-Kconform_pic
15905 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15906 # not for PA HP-UX.
15912 lt_prog_compiler_pic_GCJ='-fPIC'
15918 lt_prog_compiler_pic_GCJ='-fPIC'
15922 # PORTME Check for flag to pass linker flags through the system compiler.
15925 lt_prog_compiler_wl_GCJ='-Wl,'
15926 if test "$host_cpu" = ia64; then
15927 # AIX 5 now supports IA64 processor
15928 lt_prog_compiler_static_GCJ='-Bstatic'
15930 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15934 # PIC is the default on this platform
15935 # Common symbols not allowed in MH_DYLIB files
15936 case $cc_basename in
15938 lt_prog_compiler_pic_GCJ='-qnocommon'
15939 lt_prog_compiler_wl_GCJ='-Wl,'
15944 mingw* | pw32* | os2*)
15945 # This hack is so that the source file can tell whether it is being
15946 # built for inclusion in a dll (and should export symbols for example).
15947 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15950 hpux9* | hpux10* | hpux11*)
15951 lt_prog_compiler_wl_GCJ='-Wl,'
15952 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15953 # not for PA HP-UX.
15959 lt_prog_compiler_pic_GCJ='+Z'
15962 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15963 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15966 irix5* | irix6* | nonstopux*)
15967 lt_prog_compiler_wl_GCJ='-Wl,'
15968 # PIC (with -KPIC) is the default.
15969 lt_prog_compiler_static_GCJ='-non_shared'
15973 lt_prog_compiler_pic_GCJ='-KPIC'
15974 lt_prog_compiler_static_GCJ='-Bstatic'
15978 case $cc_basename in
15980 lt_prog_compiler_wl_GCJ='-Wl,'
15981 lt_prog_compiler_pic_GCJ='-KPIC'
15982 lt_prog_compiler_static_GCJ='-static'
15984 pgcc* | pgf77* | pgf90* | pgf95*)
15985 # Portland Group compilers (*not* the Pentium gcc compiler,
15986 # which looks to be a dead project)
15987 lt_prog_compiler_wl_GCJ='-Wl,'
15988 lt_prog_compiler_pic_GCJ='-fpic'
15989 lt_prog_compiler_static_GCJ='-Bstatic'
15992 lt_prog_compiler_wl_GCJ='-Wl,'
15993 # All Alpha code is PIC.
15994 lt_prog_compiler_static_GCJ='-non_shared'
15999 osf3* | osf4* | osf5*)
16000 lt_prog_compiler_wl_GCJ='-Wl,'
16001 # All OSF/1 code is PIC.
16002 lt_prog_compiler_static_GCJ='-non_shared'
16006 lt_prog_compiler_pic_GCJ='-KPIC'
16007 lt_prog_compiler_static_GCJ='-Bstatic'
16008 case $cc_basename in
16009 f77* | f90* | f95*)
16010 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16012 lt_prog_compiler_wl_GCJ='-Wl,';;
16017 lt_prog_compiler_wl_GCJ='-Qoption ld '
16018 lt_prog_compiler_pic_GCJ='-PIC'
16019 lt_prog_compiler_static_GCJ='-Bstatic'
16022 sysv4 | sysv4.2uw2* | sysv4.3*)
16023 lt_prog_compiler_wl_GCJ='-Wl,'
16024 lt_prog_compiler_pic_GCJ='-KPIC'
16025 lt_prog_compiler_static_GCJ='-Bstatic'
16029 if test -d /usr/nec ;then
16030 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16031 lt_prog_compiler_static_GCJ='-Bstatic'
16035 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16036 lt_prog_compiler_wl_GCJ='-Wl,'
16037 lt_prog_compiler_pic_GCJ='-KPIC'
16038 lt_prog_compiler_static_GCJ='-Bstatic'
16042 lt_prog_compiler_wl_GCJ='-Wl,'
16043 lt_prog_compiler_can_build_shared_GCJ=no
16047 lt_prog_compiler_pic_GCJ='-pic'
16048 lt_prog_compiler_static_GCJ='-Bstatic'
16052 lt_prog_compiler_can_build_shared_GCJ=no
16057 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16058 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16061 # Check to make sure the PIC flag actually works.
16063 if test -n "$lt_prog_compiler_pic_GCJ"; then
16065 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16066 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16067 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 lt_prog_compiler_pic_works_GCJ=no
16071 ac_outfile=conftest.$ac_objext
16072 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16073 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16074 # Insert the option either (1) after the last *FLAGS variable, or
16075 # (2) before a word containing "conftest.", or (3) at the end.
16076 # Note that $ac_compile itself does not contain backslashes and begins
16077 # with a dollar sign (not a hyphen), so the echo should work correctly.
16078 # The option is referenced via a variable to avoid confusing sed.
16079 lt_compile=`echo "$ac_compile" | $SED \
16080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16082 -e 's:$: $lt_compiler_flag:'`
16083 (eval echo "\"\$as_me:16083: $lt_compile\"" >&5)
16084 (eval "$lt_compile" 2>conftest.err)
16086 cat conftest.err >&5
16087 echo "$as_me:16087: \$? = $ac_status" >&5
16088 if (exit $ac_status) && test -s "$ac_outfile"; then
16089 # The compiler can only warn and ignore the option if not recognized
16090 # So say no if there are warnings other than the usual output.
16091 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16094 lt_prog_compiler_pic_works_GCJ=yes
16100 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16101 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16103 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16104 case $lt_prog_compiler_pic_GCJ in
16106 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16109 lt_prog_compiler_pic_GCJ=
16110 lt_prog_compiler_can_build_shared_GCJ=no
16115 # For platforms which do not support PIC, -DPIC is meaningless:
16117 lt_prog_compiler_pic_GCJ=
16120 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16125 # Check to make sure the static flag actually works.
16127 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16128 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16129 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16130 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 lt_prog_compiler_static_works_GCJ=no
16134 save_LDFLAGS="$LDFLAGS"
16135 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16136 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16137 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16138 # The linker can only warn and ignore the option if not recognized
16139 # So say no if there are warnings
16140 if test -s conftest.err; then
16141 # Append any errors to the config.log.
16142 cat conftest.err 1>&5
16143 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16145 if diff conftest.exp conftest.er2 >/dev/null; then
16146 lt_prog_compiler_static_works_GCJ=yes
16149 lt_prog_compiler_static_works_GCJ=yes
16153 LDFLAGS="$save_LDFLAGS"
16156 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16157 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16159 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16162 lt_prog_compiler_static_GCJ=
16166 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16167 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16168 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 lt_cv_prog_compiler_c_o_GCJ=no
16172 $rm -r conftest 2>/dev/null
16176 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16178 lt_compiler_flag="-o out/conftest2.$ac_objext"
16179 # Insert the option either (1) after the last *FLAGS variable, or
16180 # (2) before a word containing "conftest.", or (3) at the end.
16181 # Note that $ac_compile itself does not contain backslashes and begins
16182 # with a dollar sign (not a hyphen), so the echo should work correctly.
16183 lt_compile=`echo "$ac_compile" | $SED \
16184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16186 -e 's:$: $lt_compiler_flag:'`
16187 (eval echo "\"\$as_me:16187: $lt_compile\"" >&5)
16188 (eval "$lt_compile" 2>out/conftest.err)
16190 cat out/conftest.err >&5
16191 echo "$as_me:16191: \$? = $ac_status" >&5
16192 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16194 # The compiler can only warn and ignore the option if not recognized
16195 # So say no if there are warnings
16196 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16197 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16198 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16199 lt_cv_prog_compiler_c_o_GCJ=yes
16204 # SGI C++ compiler will create directory out/ii_files/ for
16205 # template instantiation
16206 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16207 $rm out/* && rmdir out
16213 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16217 hard_links="nottested"
16218 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16219 # do not overwrite the value of need_locks provided by the user
16220 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16221 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16226 ln conftest.a conftest.b 2>&5 || hard_links=no
16227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16228 echo "$as_me:$LINENO: result: $hard_links" >&5
16229 echo "${ECHO_T}$hard_links" >&6
16230 if test "$hard_links" = no; then
16231 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16232 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16239 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16240 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16243 allow_undefined_flag_GCJ=
16244 enable_shared_with_static_runtimes_GCJ=no
16246 archive_expsym_cmds_GCJ=
16247 old_archive_From_new_cmds_GCJ=
16248 old_archive_from_expsyms_cmds_GCJ=
16249 export_dynamic_flag_spec_GCJ=
16250 whole_archive_flag_spec_GCJ=
16251 thread_safe_flag_spec_GCJ=
16252 hardcode_libdir_flag_spec_GCJ=
16253 hardcode_libdir_flag_spec_ld_GCJ=
16254 hardcode_libdir_separator_GCJ=
16255 hardcode_direct_GCJ=no
16256 hardcode_minus_L_GCJ=no
16257 hardcode_shlibpath_var_GCJ=unsupported
16258 link_all_deplibs_GCJ=unknown
16259 hardcode_automatic_GCJ=no
16261 module_expsym_cmds_GCJ=
16262 always_export_symbols_GCJ=no
16263 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16264 # include_expsyms should be a list of space-separated symbols to be *always*
16265 # included in the symbol list
16266 include_expsyms_GCJ=
16267 # exclude_expsyms can be an extended regexp of symbols to exclude
16268 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16269 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16270 # as well as any symbol that contains `d'.
16271 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16272 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16273 # platforms (ab)use it in PIC code, but their linkers get confused if
16274 # the symbol is explicitly referenced. Since portable code cannot
16275 # rely on this symbol name, it's probably fine to never include it in
16276 # preloaded symbol tables.
16277 extract_expsyms_cmds=
16278 # Just being paranoid about ensuring that cc_basename is set.
16279 for cc_temp in $compiler""; do
16281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16287 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16290 cygwin* | mingw* | pw32*)
16291 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16292 # When not using gcc, we currently assume that we are using
16293 # Microsoft Visual C++.
16294 if test "$GCC" != yes; then
16299 # we just hope/assume this is gcc and not c89 (= MSVC++)
16308 if test "$with_gnu_ld" = yes; then
16309 # If archive_cmds runs LD, not CC, wlarc should be empty
16312 # Set some defaults for GNU ld with shared library support. These
16313 # are reset later if shared libraries are not supported. Putting them
16314 # here allows them to be overridden if necessary.
16315 runpath_var=LD_RUN_PATH
16316 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16317 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16318 # ancient GNU ld didn't support --whole-archive et. al.
16319 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16320 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16322 whole_archive_flag_spec_GCJ=
16324 supports_anon_versioning=no
16325 case `$LD -v 2>/dev/null` in
16326 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16327 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16328 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16329 *\ 2.11.*) ;; # other 2.11 versions
16330 *) supports_anon_versioning=yes ;;
16333 # See if GNU ld supports shared libraries.
16335 aix3* | aix4* | aix5*)
16336 # On AIX/PPC, the GNU linker is very broken
16337 if test "$host_cpu" != ia64; then
16341 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16342 *** to be unable to reliably create shared libraries on AIX.
16343 *** Therefore, libtool is disabling shared libraries support. If you
16344 *** really care for shared libraries, you may want to modify your PATH
16345 *** so that a non-GNU linker is found, and then restart.
16352 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)'
16353 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16354 hardcode_minus_L_GCJ=yes
16356 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16357 # that the semantics of dynamic libraries on AmigaOS, at least up
16358 # to version 4, is to share data among multiple programs linked
16359 # with the same dynamic library. Since this doesn't match the
16360 # behavior of shared libraries on other platforms, we can't use
16366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16367 allow_undefined_flag_GCJ=unsupported
16368 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16369 # support --undefined. This deserves some investigation. FIXME
16370 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16376 cygwin* | mingw* | pw32*)
16377 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16378 # as there is no search path for DLLs.
16379 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16380 allow_undefined_flag_GCJ=unsupported
16381 always_export_symbols_GCJ=no
16382 enable_shared_with_static_runtimes_GCJ=yes
16383 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16385 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16386 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16387 # If the export-symbols file already is a .def file (1st line
16388 # is EXPORTS), use it as is; otherwise, prepend...
16389 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16390 cp $export_symbols $output_objdir/$soname.def;
16392 echo EXPORTS > $output_objdir/$soname.def;
16393 cat $export_symbols >> $output_objdir/$soname.def;
16395 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16402 hardcode_direct_GCJ=no
16403 hardcode_shlibpath_var_GCJ=no
16404 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16405 export_dynamic_flag_spec_GCJ='${wl}-E'
16406 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16407 # Instead, shared libraries are loaded at an image base (0x10000000 by
16408 # default) and relocated if they conflict, which is a slow very memory
16409 # consuming and fragmenting process. To avoid this, we pick a random,
16410 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16411 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16412 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16413 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16419 case $cc_basename,$host_cpu in
16420 pgcc*) # Portland Group C compiler
16421 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16422 tmp_addflag=' $pic_flag'
16424 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16425 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16426 tmp_addflag=' $pic_flag -Mnomain' ;;
16427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16428 tmp_addflag=' -i_dynamic' ;;
16429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16430 tmp_addflag=' -i_dynamic -nofor_main' ;;
16431 ifc* | ifort*) # Intel Fortran compiler
16432 tmp_addflag=' -nofor_main' ;;
16434 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16436 if test $supports_anon_versioning = yes; then
16437 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16439 $echo "local: *; };" >> $output_objdir/$libname.ver~
16440 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16442 link_all_deplibs_GCJ=no
16448 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16450 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16459 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16464 *** create shared libraries on Solaris systems. Therefore, libtool
16465 *** is disabling shared libraries support. We urge you to upgrade GNU
16466 *** binutils to release 2.9.1 or newer. Another option is to modify
16467 *** your PATH or compiler configuration so that the native linker is
16468 *** used, and then restart.
16471 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16473 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16480 case `$LD -v 2>&1` in
16481 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16485 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16486 *** reliably create shared libraries on SCO systems. Therefore, libtool
16487 *** is disabling shared libraries support. We urge you to upgrade GNU
16488 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16489 *** your PATH or compiler configuration so that the native linker is
16490 *** used, and then restart.
16495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16496 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16507 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16509 hardcode_direct_GCJ=yes
16510 hardcode_shlibpath_var_GCJ=no
16514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16515 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16516 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16523 if test "$ld_shlibs_GCJ" = no; then
16525 hardcode_libdir_flag_spec_GCJ=
16526 export_dynamic_flag_spec_GCJ=
16527 whole_archive_flag_spec_GCJ=
16530 # PORTME fill in a description of your system's linker (not GNU ld)
16533 allow_undefined_flag_GCJ=unsupported
16534 always_export_symbols_GCJ=yes
16535 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16536 # Note: this linker hardcodes the directories in LIBPATH if there
16537 # are no directories specified by -L.
16538 hardcode_minus_L_GCJ=yes
16539 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16540 # Neither direct hardcoding nor static linking is supported with a
16542 hardcode_direct_GCJ=unsupported
16547 if test "$host_cpu" = ia64; then
16548 # On IA64, the linker does run time linking by default, so we don't
16549 # have to do anything special.
16550 aix_use_runtimelinking=no
16551 exp_sym_flag='-Bexport'
16554 # If we're using GNU nm, then we don't want the "-C" option.
16555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16556 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16557 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16559 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16561 aix_use_runtimelinking=no
16563 # Test if we are trying to use run time linking or normal
16564 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16565 # need to do runtime linking.
16566 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16567 for ld_flag in $LDFLAGS; do
16568 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16569 aix_use_runtimelinking=yes
16576 exp_sym_flag='-bexport'
16577 no_entry_flag='-bnoentry'
16580 # When large executables or shared objects are built, AIX ld can
16581 # have problems creating the table of contents. If linking a library
16582 # or program results in "error TOC overflow" add -mminimal-toc to
16583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16586 archive_cmds_GCJ=''
16587 hardcode_direct_GCJ=yes
16588 hardcode_libdir_separator_GCJ=':'
16589 link_all_deplibs_GCJ=yes
16591 if test "$GCC" = yes; then
16592 case $host_os in aix4.[012]|aix4.[012].*)
16593 # We only want to do this on AIX 4.2 and lower, the check
16594 # below for broken collect2 doesn't work under 4.3+
16595 collect2name=`${CC} -print-prog-name=collect2`
16596 if test -f "$collect2name" && \
16597 strings "$collect2name" | grep resolve_lib_name >/dev/null
16599 # We have reworked collect2
16600 hardcode_direct_GCJ=yes
16602 # We have old collect2
16603 hardcode_direct_GCJ=unsupported
16604 # It fails to find uninstalled libraries when the uninstalled
16605 # path is not listed in the libpath. Setting hardcode_minus_L
16606 # to unsupported forces relinking
16607 hardcode_minus_L_GCJ=yes
16608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16609 hardcode_libdir_separator_GCJ=
16613 shared_flag='-shared'
16614 if test "$aix_use_runtimelinking" = yes; then
16615 shared_flag="$shared_flag "'${wl}-G'
16619 if test "$host_cpu" = ia64; then
16620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16621 # chokes on -Wl,-G. The following line is correct:
16624 if test "$aix_use_runtimelinking" = yes; then
16625 shared_flag='${wl}-G'
16627 shared_flag='${wl}-bM:SRE'
16632 # It seems that -bexpall does not export symbols beginning with
16633 # underscore (_), so it is better to generate a list of symbols to export.
16634 always_export_symbols_GCJ=yes
16635 if test "$aix_use_runtimelinking" = yes; then
16636 # Warning - without using the other runtime loading flags (-brtl),
16637 # -berok will link without error, but may produce a broken library.
16638 allow_undefined_flag_GCJ='-berok'
16639 # Determine the default libpath from the value encoded in an empty executable.
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657 (eval $ac_link) 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16677 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16679 # Check for a 64-bit object if we didn't find anything.
16680 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; }
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16687 rm -f conftest.err conftest.$ac_objext \
16688 conftest$ac_exeext conftest.$ac_ext
16689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16691 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16692 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16694 if test "$host_cpu" = ia64; then
16695 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16696 allow_undefined_flag_GCJ="-z nodefs"
16697 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16699 # Determine the default libpath from the value encoded in an empty executable.
16700 cat >conftest.$ac_ext <<_ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16717 (eval $ac_link) 2>conftest.er1
16719 grep -v '^ *+' conftest.er1 >conftest.err
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest$ac_exeext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16739 # Check for a 64-bit object if we didn't find anything.
16740 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; }
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16747 rm -f conftest.err conftest.$ac_objext \
16748 conftest$ac_exeext conftest.$ac_ext
16749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16751 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16752 # Warning - without using the other run time loading flags,
16753 # -berok will link without error, but may produce a broken library.
16754 no_undefined_flag_GCJ=' ${wl}-bernotok'
16755 allow_undefined_flag_GCJ=' ${wl}-berok'
16756 # Exported symbols can be pulled into shared objects from archives
16757 whole_archive_flag_spec_GCJ='$convenience'
16758 archive_cmds_need_lc_GCJ=yes
16759 # This is similar to how AIX traditionally builds its shared libraries.
16760 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16766 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)'
16767 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16768 hardcode_minus_L_GCJ=yes
16769 # see comment about different semantics on the GNU ld section
16774 export_dynamic_flag_spec_GCJ=-rdynamic
16777 cygwin* | mingw* | pw32*)
16778 # When not using gcc, we currently assume that we are using
16779 # Microsoft Visual C++.
16780 # hardcode_libdir_flag_spec is actually meaningless, as there is
16781 # no search path for DLLs.
16782 hardcode_libdir_flag_spec_GCJ=' '
16783 allow_undefined_flag_GCJ=unsupported
16784 # Tell ltmain to make .lib files, not .a files.
16786 # Tell ltmain to make .dll files, not .so files.
16788 # FIXME: Setting linknames here is a bad hack.
16789 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16790 # The linker will automatically build a .lib file if we build a DLL.
16791 old_archive_From_new_cmds_GCJ='true'
16792 # FIXME: Should let the user specify the lib program.
16793 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16794 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16795 enable_shared_with_static_runtimes_GCJ=yes
16798 darwin* | rhapsody*)
16800 rhapsody* | darwin1.[012])
16801 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16804 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16805 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16807 case ${MACOSX_DEPLOYMENT_TARGET} in
16809 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16812 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16818 archive_cmds_need_lc_GCJ=no
16819 hardcode_direct_GCJ=no
16820 hardcode_automatic_GCJ=yes
16821 hardcode_shlibpath_var_GCJ=unsupported
16822 whole_archive_flag_spec_GCJ=''
16823 link_all_deplibs_GCJ=yes
16824 if test "$GCC" = yes ; then
16825 output_verbose_link_cmd='echo'
16826 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16827 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16829 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16830 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}'
16832 case $cc_basename in
16834 output_verbose_link_cmd='echo'
16835 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16836 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16837 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16838 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16839 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}'
16849 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16850 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16851 hardcode_shlibpath_var_GCJ=no
16858 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16859 # support. Future versions do this automatically, but an explicit c++rt0.o
16860 # does not break anything, and helps significantly (at the cost of a little
16863 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16864 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16865 hardcode_direct_GCJ=yes
16866 hardcode_shlibpath_var_GCJ=no
16869 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16871 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16872 hardcode_direct_GCJ=yes
16873 hardcode_minus_L_GCJ=yes
16874 hardcode_shlibpath_var_GCJ=no
16877 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16878 freebsd* | dragonfly*)
16879 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16880 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16881 hardcode_direct_GCJ=yes
16882 hardcode_shlibpath_var_GCJ=no
16885 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16887 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16888 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16889 hardcode_direct_GCJ=yes
16890 hardcode_shlibpath_var_GCJ=no
16891 link_all_deplibs_GCJ=no
16895 if test "$GCC" = yes; then
16896 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'
16898 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'
16900 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16901 hardcode_libdir_separator_GCJ=:
16902 hardcode_direct_GCJ=yes
16904 # hardcode_minus_L: Not really in the search PATH,
16905 # but as the default location of the library.
16906 hardcode_minus_L_GCJ=yes
16907 export_dynamic_flag_spec_GCJ='${wl}-E'
16911 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16912 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16914 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16916 if test "$with_gnu_ld" = no; then
16917 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16918 hardcode_libdir_separator_GCJ=:
16920 hardcode_direct_GCJ=yes
16921 export_dynamic_flag_spec_GCJ='${wl}-E'
16923 # hardcode_minus_L: Not really in the search PATH,
16924 # but as the default location of the library.
16925 hardcode_minus_L_GCJ=yes
16930 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16933 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16936 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16939 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16945 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16948 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16951 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16955 if test "$with_gnu_ld" = no; then
16956 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16957 hardcode_libdir_separator_GCJ=:
16961 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16962 hardcode_direct_GCJ=no
16963 hardcode_shlibpath_var_GCJ=no
16966 hardcode_direct_GCJ=yes
16967 export_dynamic_flag_spec_GCJ='${wl}-E'
16969 # hardcode_minus_L: Not really in the search PATH,
16970 # but as the default location of the library.
16971 hardcode_minus_L_GCJ=yes
16977 irix5* | irix6* | nonstopux*)
16978 if test "$GCC" = yes; then
16979 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'
16981 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'
16982 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16985 hardcode_libdir_separator_GCJ=:
16986 link_all_deplibs_GCJ=yes
16989 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16991 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16993 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16995 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16996 hardcode_direct_GCJ=yes
16997 hardcode_shlibpath_var_GCJ=no
17001 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17002 hardcode_direct_GCJ=yes
17003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17004 hardcode_libdir_separator_GCJ=:
17005 hardcode_shlibpath_var_GCJ=no
17009 hardcode_direct_GCJ=yes
17010 hardcode_shlibpath_var_GCJ=no
17011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17012 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17013 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17015 export_dynamic_flag_spec_GCJ='${wl}-E'
17018 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17019 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17020 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17023 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17032 hardcode_minus_L_GCJ=yes
17033 allow_undefined_flag_GCJ=unsupported
17034 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'
17035 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17039 if test "$GCC" = yes; then
17040 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17041 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'
17043 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17044 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'
17046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17047 hardcode_libdir_separator_GCJ=:
17050 osf4* | osf5*) # as osf3* with the addition of -msym flag
17051 if test "$GCC" = yes; then
17052 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17053 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'
17054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17056 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17057 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'
17058 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~
17059 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17061 # Both c and cxx compiler support -rpath directly
17062 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17064 hardcode_libdir_separator_GCJ=:
17068 no_undefined_flag_GCJ=' -z text'
17069 if test "$GCC" = yes; then
17071 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17072 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17073 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17076 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17077 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17078 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17080 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17081 hardcode_shlibpath_var_GCJ=no
17083 solaris2.[0-5] | solaris2.[0-5].*) ;;
17085 # The compiler driver will combine linker options so we
17086 # cannot just pass the convience library names through
17087 # without $wl, iff we do not link with $LD.
17088 # Luckily, gcc supports the same syntax we need for Sun Studio.
17089 # Supported since Solaris 2.6 (maybe 2.5.1?)
17092 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17094 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17097 link_all_deplibs_GCJ=yes
17101 if test "x$host_vendor" = xsequent; then
17102 # Use $CC to link under sequent, because it throws in some extra .o
17103 # files that make .init and .fini sections work.
17104 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17106 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17108 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17109 hardcode_direct_GCJ=yes
17110 hardcode_minus_L_GCJ=yes
17111 hardcode_shlibpath_var_GCJ=no
17115 case $host_vendor in
17117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17118 hardcode_direct_GCJ=yes # is this really true???
17121 ## LD is ld it makes a PLAMLIB
17122 ## CC just makes a GrossModule.
17123 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17124 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17125 hardcode_direct_GCJ=no
17128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17129 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17132 runpath_var='LD_RUN_PATH'
17133 hardcode_shlibpath_var_GCJ=no
17137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17138 hardcode_shlibpath_var_GCJ=no
17139 export_dynamic_flag_spec_GCJ='-Bexport'
17143 if test -d /usr/nec; then
17144 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145 hardcode_shlibpath_var_GCJ=no
17146 runpath_var=LD_RUN_PATH
17147 hardcode_runpath_var=yes
17152 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17153 no_undefined_flag_GCJ='${wl}-z,text'
17154 archive_cmds_need_lc_GCJ=no
17155 hardcode_shlibpath_var_GCJ=no
17156 runpath_var='LD_RUN_PATH'
17158 if test "$GCC" = yes; then
17159 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17160 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17162 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17163 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17167 sysv5* | sco3.2v5* | sco5v6*)
17168 # Note: We can NOT use -z defs as we might desire, because we do not
17169 # link with -lc, and that would cause any symbols used from libc to
17170 # always be unresolved, which means just about no library would
17171 # ever link correctly. If we're not using GNU ld we use -z text
17172 # though, which does catch some bad symbols but isn't as heavy-handed
17174 no_undefined_flag_GCJ='${wl}-z,text'
17175 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17176 archive_cmds_need_lc_GCJ=no
17177 hardcode_shlibpath_var_GCJ=no
17178 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17179 hardcode_libdir_separator_GCJ=':'
17180 link_all_deplibs_GCJ=yes
17181 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17182 runpath_var='LD_RUN_PATH'
17184 if test "$GCC" = yes; then
17185 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17186 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17188 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17189 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17194 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17195 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17196 hardcode_shlibpath_var_GCJ=no
17205 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17206 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17207 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17210 # Do we need to explicitly link libc?
17212 case "x$archive_cmds_need_lc_GCJ" in
17214 # Assume -lc should be added
17215 archive_cmds_need_lc_GCJ=yes
17217 if test "$enable_shared" = yes && test "$GCC" = yes; then
17218 case $archive_cmds_GCJ in
17220 # FIXME: we may have to deal with multi-command sequences.
17223 # Test whether the compiler implicitly links with -lc since on some
17224 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17225 # to ld, don't add -lc before -lgcc.
17226 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17227 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17229 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17232 (eval $ac_compile) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } 2>conftest.err; then
17238 libobjs=conftest.$ac_objext
17240 wl=$lt_prog_compiler_wl_GCJ
17241 pic_flag=$lt_prog_compiler_pic_GCJ
17247 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17248 allow_undefined_flag_GCJ=
17249 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17250 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }
17255 archive_cmds_need_lc_GCJ=no
17257 archive_cmds_need_lc_GCJ=yes
17259 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17261 cat conftest.err 1>&5
17264 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17265 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17272 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17273 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17274 library_names_spec=
17275 libname_spec='lib$name'
17279 postuninstall_cmds=
17283 shlibpath_overrides_runpath=unknown
17285 dynamic_linker="$host_os ld.so"
17286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17287 if test "$GCC" = yes; then
17288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17289 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17290 # if the path contains ";" then we assume it to be the separator
17291 # otherwise default to the standard path separator (i.e. ":") - it is
17292 # assumed that no part of a normal pathname contains ";" but that should
17293 # okay in the real world where ";" in dirpaths is itself problematic.
17294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17301 need_lib_prefix=unknown
17302 hardcode_into_libs=no
17304 # when you set need_version to no, make sure it does not cause -set_version
17305 # flags to be left without arguments
17306 need_version=unknown
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17312 shlibpath_var=LIBPATH
17314 # AIX 3 has no versioning support, so we append a major version to the name.
17315 soname_spec='${libname}${release}${shared_ext}$major'
17322 hardcode_into_libs=yes
17323 if test "$host_cpu" = ia64; then
17324 # AIX 5 supports IA64
17325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17326 shlibpath_var=LD_LIBRARY_PATH
17328 # With GCC up to 2.95.x, collect2 would create an import file
17329 # for dependence libraries. The import file would start with
17330 # the line `#! .'. This would cause the generated library to
17331 # depend on `.', always an invalid library. This was fixed in
17332 # development snapshots of GCC prior to 3.0.
17334 aix4 | aix4.[01] | aix4.[01].*)
17335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17337 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17340 can_build_shared=no
17344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17345 # soname into executable. Probably we can add versioning support to
17346 # collect2, so additional links can be useful in future.
17347 if test "$aix_use_runtimelinking" = yes; then
17348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17349 # instead of lib<name>.a to let people know that these are not
17350 # typical AIX shared libraries.
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 # We preserve .a as extension for shared libraries through AIX4.2
17354 # and later when we are not doing run time linking.
17355 library_names_spec='${libname}${release}.a $libname.a'
17356 soname_spec='${libname}${release}${shared_ext}$major'
17358 shlibpath_var=LIBPATH
17363 library_names_spec='$libname.ixlibrary $libname.a'
17364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17365 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'
17369 library_names_spec='${libname}${shared_ext}'
17370 dynamic_linker="$host_os ld.so"
17371 shlibpath_var=LIBRARY_PATH
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17380 shlibpath_var=LD_LIBRARY_PATH
17381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17383 # the default ld.so.conf also contains /usr/contrib/lib and
17384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17385 # libtool to hard-code these into programs
17388 cygwin* | mingw* | pw32*)
17389 version_type=windows
17394 case $GCC,$host_os in
17395 yes,cygwin* | yes,mingw* | yes,pw32*)
17396 library_names_spec='$libname.dll.a'
17397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17398 postinstall_cmds='base_file=`basename \${file}`~
17399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17400 dldir=$destdir/`dirname \$dlpath`~
17401 test -d \$dldir || mkdir -p \$dldir~
17402 $install_prog $dir/$dlname \$dldir/$dlname~
17403 chmod a+x \$dldir/$dlname'
17404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17405 dlpath=$dir/\$dldll~
17407 shlibpath_overrides_runpath=yes
17411 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17412 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17413 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17416 # MinGW DLLs use traditional 'lib' prefix
17417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17418 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17419 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17420 # It is most probably a Windows format PATH printed by
17421 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17422 # path with ; separators, and with drive letters. We can handle the
17423 # drive letters (cygwin fileutils understands them), so leave them,
17424 # especially as we might pass files found there to a mingw objdump,
17425 # which wouldn't understand a cygwinified path. Ahh.
17426 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17432 # pw32 DLLs use 'pw' prefix rather than 'lib'
17433 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17439 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17442 dynamic_linker='Win32 ld.exe'
17443 # FIXME: first we should search . and the directory the executable is in
17447 darwin* | rhapsody*)
17448 dynamic_linker="$host_os dyld"
17449 version_type=darwin
17452 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17453 soname_spec='${libname}${release}${major}$shared_ext'
17454 shlibpath_overrides_runpath=yes
17455 shlibpath_var=DYLD_LIBRARY_PATH
17456 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17457 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17458 if test "$GCC" = yes; then
17459 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"`
17461 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17463 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17471 soname_spec='${libname}${release}${shared_ext}$major'
17472 shlibpath_var=LD_LIBRARY_PATH
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17484 soname_spec='${libname}${release}${shared_ext}$major'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 shlibpath_overrides_runpath=no
17487 hardcode_into_libs=yes
17488 dynamic_linker='GNU ld.so'
17491 freebsd* | dragonfly*)
17492 # DragonFly does not have aout. When/if they implement a new
17493 # versioning mechanism, adjust this.
17494 if test -x /usr/bin/objformat; then
17495 objformat=`/usr/bin/objformat`
17498 freebsd[123]*) objformat=aout ;;
17499 *) objformat=elf ;;
17502 version_type=freebsd-$objformat
17503 case $version_type in
17505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17514 shlibpath_var=LD_LIBRARY_PATH
17517 shlibpath_overrides_runpath=yes
17519 freebsd3.[01]* | freebsdelf3.[01]*)
17520 shlibpath_overrides_runpath=yes
17521 hardcode_into_libs=yes
17523 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17524 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17525 shlibpath_overrides_runpath=no
17526 hardcode_into_libs=yes
17528 freebsd*) # from 4.6 on
17529 shlibpath_overrides_runpath=yes
17530 hardcode_into_libs=yes
17539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17540 soname_spec='${libname}${release}${shared_ext}$major'
17541 shlibpath_var=LD_LIBRARY_PATH
17542 hardcode_into_libs=yes
17545 hpux9* | hpux10* | hpux11*)
17546 # Give a soname corresponding to the major version so that dld.sl refuses to
17547 # link against other versions.
17554 hardcode_into_libs=yes
17555 dynamic_linker="$host_os dld.so"
17556 shlibpath_var=LD_LIBRARY_PATH
17557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17559 soname_spec='${libname}${release}${shared_ext}$major'
17560 if test "X$HPUX_IA64_MODE" = X32; then
17561 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17563 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17569 hardcode_into_libs=yes
17570 dynamic_linker="$host_os dld.sl"
17571 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17572 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17574 soname_spec='${libname}${release}${shared_ext}$major'
17575 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17580 dynamic_linker="$host_os dld.sl"
17581 shlibpath_var=SHLIB_PATH
17582 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584 soname_spec='${libname}${release}${shared_ext}$major'
17587 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17588 postinstall_cmds='chmod 555 $lib'
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17596 soname_spec='${libname}${release}${shared_ext}$major'
17597 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 shlibpath_overrides_runpath=no
17600 hardcode_into_libs=yes
17603 irix5* | irix6* | nonstopux*)
17605 nonstopux*) version_type=nonstopux ;;
17607 if test "$lt_cv_prog_gnu_ld" = yes; then
17615 soname_spec='${libname}${release}${shared_ext}$major'
17616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17618 irix5* | nonstopux*)
17619 libsuff= shlibsuff=
17622 case $LD in # libtool.m4 will add one of these switches to LD
17623 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17624 libsuff= shlibsuff= libmagic=32-bit;;
17625 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17626 libsuff=32 shlibsuff=N32 libmagic=N32;;
17627 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17628 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17629 *) libsuff= shlibsuff= libmagic=never-match;;
17633 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17634 shlibpath_overrides_runpath=no
17635 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17636 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17637 hardcode_into_libs=yes
17640 # No shared lib support for Linux oldld, aout, or coff.
17641 linux*oldld* | linux*aout* | linux*coff*)
17645 # This must be Linux ELF.
17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17651 soname_spec='${libname}${release}${shared_ext}$major'
17652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 shlibpath_overrides_runpath=no
17655 # This implies no fast_install, which is unacceptable.
17656 # Some rework will be needed to allow for fast_install
17657 # before this can be enabled.
17658 hardcode_into_libs=yes
17660 # Append ld.so.conf contents to the search path
17661 if test -f /etc/ld.so.conf; then
17662 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17663 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17666 # We used to test for /lib/ld.so.1 and disable shared libraries on
17667 # powerpc, because MkLinux only supported shared libraries with the
17668 # GNU dynamic linker. Since this was broken with cross compilers,
17669 # most powerpc-linux boxes support dynamic linking these days and
17670 # people can always --disable-shared, the test was removed, and we
17671 # assume the GNU/Linux dynamic linker is in use.
17672 dynamic_linker='GNU/Linux ld.so'
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 shlibpath_overrides_runpath=no
17683 hardcode_into_libs=yes
17684 dynamic_linker='NetBSD ld.elf_so'
17691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17692 soname_spec='${libname}${release}${shared_ext}$major'
17693 shlibpath_var=LD_LIBRARY_PATH
17694 shlibpath_overrides_runpath=no
17695 hardcode_into_libs=yes
17696 dynamic_linker='GNU ld.so'
17703 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17706 dynamic_linker='NetBSD (a.out) ld.so'
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17709 soname_spec='${libname}${release}${shared_ext}$major'
17710 dynamic_linker='NetBSD ld.elf_so'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 shlibpath_overrides_runpath=yes
17714 hardcode_into_libs=yes
17719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720 shlibpath_var=LD_LIBRARY_PATH
17721 shlibpath_overrides_runpath=yes
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 shlibpath_var=LD_LIBRARY_PATH
17731 shlibpath_overrides_runpath=yes
17736 sys_lib_dlsearch_path_spec="/usr/lib"
17738 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17740 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17741 *) need_version=no ;;
17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17745 shlibpath_var=LD_LIBRARY_PATH
17746 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17748 openbsd2.[89] | openbsd2.[89].*)
17749 shlibpath_overrides_runpath=no
17752 shlibpath_overrides_runpath=yes
17756 shlibpath_overrides_runpath=yes
17761 libname_spec='$name'
17764 library_names_spec='$libname${shared_ext} $libname.a'
17765 dynamic_linker='OS/2 ld.exe'
17766 shlibpath_var=LIBPATH
17769 osf3* | osf4* | osf5*)
17773 soname_spec='${libname}${release}${shared_ext}$major'
17774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17777 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17785 soname_spec='${libname}${release}${shared_ext}$major'
17786 shlibpath_var=LD_LIBRARY_PATH
17787 shlibpath_overrides_runpath=yes
17788 hardcode_into_libs=yes
17789 # ldd complains unless libraries are executable
17790 postinstall_cmds='chmod +x $lib'
17795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17797 shlibpath_var=LD_LIBRARY_PATH
17798 shlibpath_overrides_runpath=yes
17799 if test "$with_gnu_ld" = yes; then
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808 soname_spec='${libname}${release}${shared_ext}$major'
17809 shlibpath_var=LD_LIBRARY_PATH
17810 case $host_vendor in
17812 shlibpath_overrides_runpath=no
17814 export_dynamic_flag_spec='${wl}-Blargedynsym'
17815 runpath_var=LD_RUN_PATH
17823 shlibpath_overrides_runpath=no
17824 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17830 if test -d /usr/nec ;then
17832 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17833 soname_spec='$libname${shared_ext}.$major'
17834 shlibpath_var=LD_LIBRARY_PATH
17838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17839 version_type=freebsd-elf
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17843 soname_spec='${libname}${release}${shared_ext}$major'
17844 shlibpath_var=LD_LIBRARY_PATH
17845 hardcode_into_libs=yes
17846 if test "$with_gnu_ld" = yes; then
17847 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17848 shlibpath_overrides_runpath=no
17850 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17851 shlibpath_overrides_runpath=yes
17854 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17858 sys_lib_dlsearch_path_spec='/usr/lib'
17863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864 soname_spec='${libname}${release}${shared_ext}$major'
17865 shlibpath_var=LD_LIBRARY_PATH
17872 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17873 echo "${ECHO_T}$dynamic_linker" >&6
17874 test "$dynamic_linker" = no && can_build_shared=no
17876 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17877 if test "$GCC" = yes; then
17878 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17881 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17882 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17883 hardcode_action_GCJ=
17884 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17885 test -n "$runpath_var_GCJ" || \
17886 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17888 # We can hardcode non-existant directories.
17889 if test "$hardcode_direct_GCJ" != no &&
17890 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17891 # have to relink, otherwise we might link with an installed library
17892 # when we should be linking with a yet-to-be-installed one
17893 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17894 test "$hardcode_minus_L_GCJ" != no; then
17895 # Linking always hardcodes the temporary library directory.
17896 hardcode_action_GCJ=relink
17898 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17899 hardcode_action_GCJ=immediate
17902 # We cannot hardcode anything, or else we can only hardcode existing
17904 hardcode_action_GCJ=unsupported
17906 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17907 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17909 if test "$hardcode_action_GCJ" = relink; then
17910 # Fast installation is not supported
17911 enable_fast_install=no
17912 elif test "$shlibpath_overrides_runpath" = yes ||
17913 test "$enable_shared" = no; then
17914 # Fast installation is not necessary
17915 enable_fast_install=needless
17919 # The else clause should only fire when bootstrapping the
17920 # libtool distribution, otherwise you forgot to ship ltmain.sh
17921 # with your package, and you will get complaints that there are
17922 # no rules to generate ltmain.sh.
17923 if test -f "$ltmain"; then
17924 # See if we are running on zsh, and set the options which allow our commands through
17925 # without removal of \ escapes.
17926 if test -n "${ZSH_VERSION+set}" ; then
17927 setopt NO_GLOB_SUBST
17929 # Now quote all the things that may contain metacharacters while being
17930 # careful not to overquote the AC_SUBSTed values. We take copies of the
17931 # variables and quote the copies for generation of the libtool script.
17932 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17934 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17935 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17936 deplibs_check_method reload_flag reload_cmds need_locks \
17937 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17938 lt_cv_sys_global_symbol_to_c_name_address \
17939 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17940 old_postinstall_cmds old_postuninstall_cmds \
17944 lt_prog_compiler_wl_GCJ \
17945 lt_prog_compiler_pic_GCJ \
17946 lt_prog_compiler_static_GCJ \
17947 lt_prog_compiler_no_builtin_flag_GCJ \
17948 export_dynamic_flag_spec_GCJ \
17949 thread_safe_flag_spec_GCJ \
17950 whole_archive_flag_spec_GCJ \
17951 enable_shared_with_static_runtimes_GCJ \
17952 old_archive_cmds_GCJ \
17953 old_archive_from_new_cmds_GCJ \
17954 predep_objects_GCJ \
17955 postdep_objects_GCJ \
17958 compiler_lib_search_path_GCJ \
17960 archive_expsym_cmds_GCJ \
17961 postinstall_cmds_GCJ \
17962 postuninstall_cmds_GCJ \
17963 old_archive_from_expsyms_cmds_GCJ \
17964 allow_undefined_flag_GCJ \
17965 no_undefined_flag_GCJ \
17966 export_symbols_cmds_GCJ \
17967 hardcode_libdir_flag_spec_GCJ \
17968 hardcode_libdir_flag_spec_ld_GCJ \
17969 hardcode_libdir_separator_GCJ \
17970 hardcode_automatic_GCJ \
17972 module_expsym_cmds_GCJ \
17973 lt_cv_prog_compiler_c_o_GCJ \
17974 exclude_expsyms_GCJ \
17975 include_expsyms_GCJ; do
17978 old_archive_cmds_GCJ | \
17979 old_archive_from_new_cmds_GCJ | \
17980 archive_cmds_GCJ | \
17981 archive_expsym_cmds_GCJ | \
17982 module_cmds_GCJ | \
17983 module_expsym_cmds_GCJ | \
17984 old_archive_from_expsyms_cmds_GCJ | \
17985 export_symbols_cmds_GCJ | \
17986 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17987 postinstall_cmds | postuninstall_cmds | \
17988 old_postinstall_cmds | old_postuninstall_cmds | \
17989 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17990 # Double-quote double-evaled strings.
17991 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17994 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18000 *'\$0 --fallback-echo"')
18001 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18007 cat <<__EOF__ >> "$cfgfile"
18008 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18010 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18012 # Shell to use when invoking shell scripts.
18015 # Whether or not to build shared libraries.
18016 build_libtool_libs=$enable_shared
18018 # Whether or not to build static libraries.
18019 build_old_libs=$enable_static
18021 # Whether or not to add -lc for building shared libraries.
18022 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18024 # Whether or not to disallow shared libs when runtime libs are static
18025 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18027 # Whether or not to optimize for fast installation.
18028 fast_install=$enable_fast_install
18031 host_alias=$host_alias
18035 # The build system.
18036 build_alias=$build_alias
18040 # An echo program that does not interpret backslashes.
18045 AR_FLAGS=$lt_AR_FLAGS
18050 # LTCC compiler flags.
18051 LTCFLAGS=$lt_LTCFLAGS
18053 # A language-specific compiler.
18054 CC=$lt_compiler_GCJ
18056 # Is the compiler the GNU C compiler?
18062 # The linker used to build libraries.
18065 # Whether we need hard or soft links.
18068 # A BSD-compatible nm program.
18071 # A symbol stripping program
18074 # Used to examine libraries when file_magic_cmd begins "file"
18075 MAGIC_CMD=$MAGIC_CMD
18077 # Used on cygwin: DLL creation program.
18080 # Used on cygwin: object dumper.
18083 # Used on cygwin: assembler.
18086 # The name of the directory that contains temporary libtool files.
18089 # How to create reloadable object files.
18090 reload_flag=$lt_reload_flag
18091 reload_cmds=$lt_reload_cmds
18093 # How to pass a linker flag through the compiler.
18094 wl=$lt_lt_prog_compiler_wl_GCJ
18096 # Object file suffix (normally "o").
18097 objext="$ac_objext"
18099 # Old archive suffix (normally "a").
18102 # Shared library suffix (normally ".so").
18103 shrext_cmds='$shrext_cmds'
18105 # Executable file suffix (normally "").
18108 # Additional compiler flags for building library objects.
18109 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18112 # What is the maximum length of a command?
18113 max_cmd_len=$lt_cv_sys_max_cmd_len
18115 # Does compiler simultaneously support -c and -o options?
18116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18118 # Must we lock files when doing compilation?
18119 need_locks=$lt_need_locks
18121 # Do we need the lib prefix for modules?
18122 need_lib_prefix=$need_lib_prefix
18124 # Do we need a version for libraries?
18125 need_version=$need_version
18127 # Whether dlopen is supported.
18128 dlopen_support=$enable_dlopen
18130 # Whether dlopen of programs is supported.
18131 dlopen_self=$enable_dlopen_self
18133 # Whether dlopen of statically linked programs is supported.
18134 dlopen_self_static=$enable_dlopen_self_static
18136 # Compiler flag to prevent dynamic linking.
18137 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18139 # Compiler flag to turn off builtin functions.
18140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18142 # Compiler flag to allow reflexive dlopens.
18143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18145 # Compiler flag to generate shared objects directly from archives.
18146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18148 # Compiler flag to generate thread-safe objects.
18149 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18151 # Library versioning type.
18152 version_type=$version_type
18154 # Format of library name prefix.
18155 libname_spec=$lt_libname_spec
18157 # List of archive names. First name is the real one, the rest are links.
18158 # The last name is the one that the linker finds with -lNAME.
18159 library_names_spec=$lt_library_names_spec
18161 # The coded name of the library, if different from the real name.
18162 soname_spec=$lt_soname_spec
18164 # Commands used to build and install an old-style archive.
18166 old_archive_cmds=$lt_old_archive_cmds_GCJ
18167 old_postinstall_cmds=$lt_old_postinstall_cmds
18168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18170 # Create an old-style archive from a shared archive.
18171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18173 # Create a temporary old-style archive to link instead of a shared archive.
18174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18176 # Commands used to build and install a shared archive.
18177 archive_cmds=$lt_archive_cmds_GCJ
18178 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18179 postinstall_cmds=$lt_postinstall_cmds
18180 postuninstall_cmds=$lt_postuninstall_cmds
18182 # Commands used to build a loadable module (assumed same as above if empty)
18183 module_cmds=$lt_module_cmds_GCJ
18184 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18186 # Commands to strip libraries.
18187 old_striplib=$lt_old_striplib
18188 striplib=$lt_striplib
18190 # Dependencies to place before the objects being linked to create a
18192 predep_objects=$lt_predep_objects_GCJ
18194 # Dependencies to place after the objects being linked to create a
18196 postdep_objects=$lt_postdep_objects_GCJ
18198 # Dependencies to place before the objects being linked to create a
18200 predeps=$lt_predeps_GCJ
18202 # Dependencies to place after the objects being linked to create a
18204 postdeps=$lt_postdeps_GCJ
18206 # The library search path used internally by the compiler when linking
18207 # a shared library.
18208 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18210 # Method to check whether dependent libraries are shared objects.
18211 deplibs_check_method=$lt_deplibs_check_method
18213 # Command to use when deplibs_check_method == file_magic.
18214 file_magic_cmd=$lt_file_magic_cmd
18216 # Flag that allows shared libraries with undefined symbols to be built.
18217 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18219 # Flag that forces no undefined symbols.
18220 no_undefined_flag=$lt_no_undefined_flag_GCJ
18222 # Commands used to finish a libtool library installation in a directory.
18223 finish_cmds=$lt_finish_cmds
18225 # Same as above, but a single script fragment to be evaled but not shown.
18226 finish_eval=$lt_finish_eval
18228 # Take the output of nm and produce a listing of raw symbols and C names.
18229 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18231 # Transform the output of nm in a proper C declaration
18232 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18234 # Transform the output of nm in a C name address pair
18235 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18237 # This is the shared library runtime path variable.
18238 runpath_var=$runpath_var
18240 # This is the shared library path variable.
18241 shlibpath_var=$shlibpath_var
18243 # Is shlibpath searched before the hard-coded library search path?
18244 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18246 # How to hardcode a shared library path into an executable.
18247 hardcode_action=$hardcode_action_GCJ
18249 # Whether we should hardcode library paths into libraries.
18250 hardcode_into_libs=$hardcode_into_libs
18252 # Flag to hardcode \$libdir into a binary during linking.
18253 # This must work even if \$libdir does not exist.
18254 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18256 # If ld is used when linking, flag to hardcode \$libdir into
18257 # a binary during linking. This must work even if \$libdir does
18259 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18261 # Whether we need a single -rpath flag with a separated argument.
18262 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18264 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18265 # resulting binary.
18266 hardcode_direct=$hardcode_direct_GCJ
18268 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18269 # resulting binary.
18270 hardcode_minus_L=$hardcode_minus_L_GCJ
18272 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18273 # the resulting binary.
18274 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18276 # Set to yes if building a shared library automatically hardcodes DIR into the library
18277 # and all subsequent libraries and executables linked against it.
18278 hardcode_automatic=$hardcode_automatic_GCJ
18280 # Variables whose values should be saved in libtool wrapper scripts and
18281 # restored at relink time.
18282 variables_saved_for_relink="$variables_saved_for_relink"
18284 # Whether libtool must link a program against all its dependency libraries.
18285 link_all_deplibs=$link_all_deplibs_GCJ
18287 # Compile-time system search path for libraries
18288 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18290 # Run-time system search path for libraries
18291 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18293 # Fix the shell variable \$srcfile for the compiler.
18294 fix_srcfile_path="$fix_srcfile_path_GCJ"
18296 # Set to yes if exported symbols are required.
18297 always_export_symbols=$always_export_symbols_GCJ
18299 # The commands to list exported symbols.
18300 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18302 # The commands to extract the exported symbol list from a shared archive.
18303 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18305 # Symbols that should not be listed in the preloaded symbols.
18306 exclude_expsyms=$lt_exclude_expsyms_GCJ
18308 # Symbols that must always be exported.
18309 include_expsyms=$lt_include_expsyms_GCJ
18311 # ### END LIBTOOL TAG CONFIG: $tagname
18317 # If there is no Makefile yet, we rely on a make rule to execute
18318 # `config.status --recheck' to rerun these tests and create the
18319 # libtool script then.
18320 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18321 if test -f "$ltmain_in"; then
18322 test -f Makefile && make "$ltmain"
18328 ac_cpp='$CPP $CPPFLAGS'
18329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18344 # Source file extension for RC test sources.
18347 # Object file extension for compiled RC test sources.
18351 # Code to be used in simple compile tests
18352 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18354 # Code to be used in simple link tests
18355 lt_simple_link_test_code="$lt_simple_compile_test_code"
18357 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18359 # If no C compiler was specified, use CC.
18362 # If no C compiler flags were specified, use CFLAGS.
18363 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18365 # Allow CC to be a program name with arguments.
18369 # save warnings/boilerplate of simple test code
18370 ac_outfile=conftest.$ac_objext
18371 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18372 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18373 _lt_compiler_boilerplate=`cat conftest.err`
18376 ac_outfile=conftest.$ac_objext
18377 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18378 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18379 _lt_linker_boilerplate=`cat conftest.err`
18383 # Allow CC to be a program name with arguments.
18388 for cc_temp in $compiler""; do
18390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18396 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18398 lt_cv_prog_compiler_c_o_RC=yes
18400 # The else clause should only fire when bootstrapping the
18401 # libtool distribution, otherwise you forgot to ship ltmain.sh
18402 # with your package, and you will get complaints that there are
18403 # no rules to generate ltmain.sh.
18404 if test -f "$ltmain"; then
18405 # See if we are running on zsh, and set the options which allow our commands through
18406 # without removal of \ escapes.
18407 if test -n "${ZSH_VERSION+set}" ; then
18408 setopt NO_GLOB_SUBST
18410 # Now quote all the things that may contain metacharacters while being
18411 # careful not to overquote the AC_SUBSTed values. We take copies of the
18412 # variables and quote the copies for generation of the libtool script.
18413 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18415 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18416 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18417 deplibs_check_method reload_flag reload_cmds need_locks \
18418 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18419 lt_cv_sys_global_symbol_to_c_name_address \
18420 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18421 old_postinstall_cmds old_postuninstall_cmds \
18425 lt_prog_compiler_wl_RC \
18426 lt_prog_compiler_pic_RC \
18427 lt_prog_compiler_static_RC \
18428 lt_prog_compiler_no_builtin_flag_RC \
18429 export_dynamic_flag_spec_RC \
18430 thread_safe_flag_spec_RC \
18431 whole_archive_flag_spec_RC \
18432 enable_shared_with_static_runtimes_RC \
18433 old_archive_cmds_RC \
18434 old_archive_from_new_cmds_RC \
18435 predep_objects_RC \
18436 postdep_objects_RC \
18439 compiler_lib_search_path_RC \
18441 archive_expsym_cmds_RC \
18442 postinstall_cmds_RC \
18443 postuninstall_cmds_RC \
18444 old_archive_from_expsyms_cmds_RC \
18445 allow_undefined_flag_RC \
18446 no_undefined_flag_RC \
18447 export_symbols_cmds_RC \
18448 hardcode_libdir_flag_spec_RC \
18449 hardcode_libdir_flag_spec_ld_RC \
18450 hardcode_libdir_separator_RC \
18451 hardcode_automatic_RC \
18453 module_expsym_cmds_RC \
18454 lt_cv_prog_compiler_c_o_RC \
18455 exclude_expsyms_RC \
18456 include_expsyms_RC; do
18459 old_archive_cmds_RC | \
18460 old_archive_from_new_cmds_RC | \
18461 archive_cmds_RC | \
18462 archive_expsym_cmds_RC | \
18464 module_expsym_cmds_RC | \
18465 old_archive_from_expsyms_cmds_RC | \
18466 export_symbols_cmds_RC | \
18467 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18468 postinstall_cmds | postuninstall_cmds | \
18469 old_postinstall_cmds | old_postuninstall_cmds | \
18470 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18471 # Double-quote double-evaled strings.
18472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18481 *'\$0 --fallback-echo"')
18482 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18488 cat <<__EOF__ >> "$cfgfile"
18489 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18493 # Shell to use when invoking shell scripts.
18496 # Whether or not to build shared libraries.
18497 build_libtool_libs=$enable_shared
18499 # Whether or not to build static libraries.
18500 build_old_libs=$enable_static
18502 # Whether or not to add -lc for building shared libraries.
18503 build_libtool_need_lc=$archive_cmds_need_lc_RC
18505 # Whether or not to disallow shared libs when runtime libs are static
18506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18508 # Whether or not to optimize for fast installation.
18509 fast_install=$enable_fast_install
18512 host_alias=$host_alias
18516 # The build system.
18517 build_alias=$build_alias
18521 # An echo program that does not interpret backslashes.
18526 AR_FLAGS=$lt_AR_FLAGS
18531 # LTCC compiler flags.
18532 LTCFLAGS=$lt_LTCFLAGS
18534 # A language-specific compiler.
18537 # Is the compiler the GNU C compiler?
18543 # The linker used to build libraries.
18546 # Whether we need hard or soft links.
18549 # A BSD-compatible nm program.
18552 # A symbol stripping program
18555 # Used to examine libraries when file_magic_cmd begins "file"
18556 MAGIC_CMD=$MAGIC_CMD
18558 # Used on cygwin: DLL creation program.
18561 # Used on cygwin: object dumper.
18564 # Used on cygwin: assembler.
18567 # The name of the directory that contains temporary libtool files.
18570 # How to create reloadable object files.
18571 reload_flag=$lt_reload_flag
18572 reload_cmds=$lt_reload_cmds
18574 # How to pass a linker flag through the compiler.
18575 wl=$lt_lt_prog_compiler_wl_RC
18577 # Object file suffix (normally "o").
18578 objext="$ac_objext"
18580 # Old archive suffix (normally "a").
18583 # Shared library suffix (normally ".so").
18584 shrext_cmds='$shrext_cmds'
18586 # Executable file suffix (normally "").
18589 # Additional compiler flags for building library objects.
18590 pic_flag=$lt_lt_prog_compiler_pic_RC
18593 # What is the maximum length of a command?
18594 max_cmd_len=$lt_cv_sys_max_cmd_len
18596 # Does compiler simultaneously support -c and -o options?
18597 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18599 # Must we lock files when doing compilation?
18600 need_locks=$lt_need_locks
18602 # Do we need the lib prefix for modules?
18603 need_lib_prefix=$need_lib_prefix
18605 # Do we need a version for libraries?
18606 need_version=$need_version
18608 # Whether dlopen is supported.
18609 dlopen_support=$enable_dlopen
18611 # Whether dlopen of programs is supported.
18612 dlopen_self=$enable_dlopen_self
18614 # Whether dlopen of statically linked programs is supported.
18615 dlopen_self_static=$enable_dlopen_self_static
18617 # Compiler flag to prevent dynamic linking.
18618 link_static_flag=$lt_lt_prog_compiler_static_RC
18620 # Compiler flag to turn off builtin functions.
18621 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18623 # Compiler flag to allow reflexive dlopens.
18624 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18626 # Compiler flag to generate shared objects directly from archives.
18627 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18629 # Compiler flag to generate thread-safe objects.
18630 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18632 # Library versioning type.
18633 version_type=$version_type
18635 # Format of library name prefix.
18636 libname_spec=$lt_libname_spec
18638 # List of archive names. First name is the real one, the rest are links.
18639 # The last name is the one that the linker finds with -lNAME.
18640 library_names_spec=$lt_library_names_spec
18642 # The coded name of the library, if different from the real name.
18643 soname_spec=$lt_soname_spec
18645 # Commands used to build and install an old-style archive.
18647 old_archive_cmds=$lt_old_archive_cmds_RC
18648 old_postinstall_cmds=$lt_old_postinstall_cmds
18649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18651 # Create an old-style archive from a shared archive.
18652 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18654 # Create a temporary old-style archive to link instead of a shared archive.
18655 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18657 # Commands used to build and install a shared archive.
18658 archive_cmds=$lt_archive_cmds_RC
18659 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18660 postinstall_cmds=$lt_postinstall_cmds
18661 postuninstall_cmds=$lt_postuninstall_cmds
18663 # Commands used to build a loadable module (assumed same as above if empty)
18664 module_cmds=$lt_module_cmds_RC
18665 module_expsym_cmds=$lt_module_expsym_cmds_RC
18667 # Commands to strip libraries.
18668 old_striplib=$lt_old_striplib
18669 striplib=$lt_striplib
18671 # Dependencies to place before the objects being linked to create a
18673 predep_objects=$lt_predep_objects_RC
18675 # Dependencies to place after the objects being linked to create a
18677 postdep_objects=$lt_postdep_objects_RC
18679 # Dependencies to place before the objects being linked to create a
18681 predeps=$lt_predeps_RC
18683 # Dependencies to place after the objects being linked to create a
18685 postdeps=$lt_postdeps_RC
18687 # The library search path used internally by the compiler when linking
18688 # a shared library.
18689 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18691 # Method to check whether dependent libraries are shared objects.
18692 deplibs_check_method=$lt_deplibs_check_method
18694 # Command to use when deplibs_check_method == file_magic.
18695 file_magic_cmd=$lt_file_magic_cmd
18697 # Flag that allows shared libraries with undefined symbols to be built.
18698 allow_undefined_flag=$lt_allow_undefined_flag_RC
18700 # Flag that forces no undefined symbols.
18701 no_undefined_flag=$lt_no_undefined_flag_RC
18703 # Commands used to finish a libtool library installation in a directory.
18704 finish_cmds=$lt_finish_cmds
18706 # Same as above, but a single script fragment to be evaled but not shown.
18707 finish_eval=$lt_finish_eval
18709 # Take the output of nm and produce a listing of raw symbols and C names.
18710 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18712 # Transform the output of nm in a proper C declaration
18713 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18715 # Transform the output of nm in a C name address pair
18716 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18718 # This is the shared library runtime path variable.
18719 runpath_var=$runpath_var
18721 # This is the shared library path variable.
18722 shlibpath_var=$shlibpath_var
18724 # Is shlibpath searched before the hard-coded library search path?
18725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18727 # How to hardcode a shared library path into an executable.
18728 hardcode_action=$hardcode_action_RC
18730 # Whether we should hardcode library paths into libraries.
18731 hardcode_into_libs=$hardcode_into_libs
18733 # Flag to hardcode \$libdir into a binary during linking.
18734 # This must work even if \$libdir does not exist.
18735 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18737 # If ld is used when linking, flag to hardcode \$libdir into
18738 # a binary during linking. This must work even if \$libdir does
18740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18742 # Whether we need a single -rpath flag with a separated argument.
18743 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18745 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18746 # resulting binary.
18747 hardcode_direct=$hardcode_direct_RC
18749 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18750 # resulting binary.
18751 hardcode_minus_L=$hardcode_minus_L_RC
18753 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18754 # the resulting binary.
18755 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18757 # Set to yes if building a shared library automatically hardcodes DIR into the library
18758 # and all subsequent libraries and executables linked against it.
18759 hardcode_automatic=$hardcode_automatic_RC
18761 # Variables whose values should be saved in libtool wrapper scripts and
18762 # restored at relink time.
18763 variables_saved_for_relink="$variables_saved_for_relink"
18765 # Whether libtool must link a program against all its dependency libraries.
18766 link_all_deplibs=$link_all_deplibs_RC
18768 # Compile-time system search path for libraries
18769 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18771 # Run-time system search path for libraries
18772 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18774 # Fix the shell variable \$srcfile for the compiler.
18775 fix_srcfile_path="$fix_srcfile_path_RC"
18777 # Set to yes if exported symbols are required.
18778 always_export_symbols=$always_export_symbols_RC
18780 # The commands to list exported symbols.
18781 export_symbols_cmds=$lt_export_symbols_cmds_RC
18783 # The commands to extract the exported symbol list from a shared archive.
18784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18786 # Symbols that should not be listed in the preloaded symbols.
18787 exclude_expsyms=$lt_exclude_expsyms_RC
18789 # Symbols that must always be exported.
18790 include_expsyms=$lt_include_expsyms_RC
18792 # ### END LIBTOOL TAG CONFIG: $tagname
18798 # If there is no Makefile yet, we rely on a make rule to execute
18799 # `config.status --recheck' to rerun these tests and create the
18800 # libtool script then.
18801 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18802 if test -f "$ltmain_in"; then
18803 test -f Makefile && make "$ltmain"
18809 ac_cpp='$CPP $CPPFLAGS'
18810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18819 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18820 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18821 { (exit 1); exit 1; }; }
18825 # Append the new tag name to the list of available tags.
18826 if test -n "$tagname" ; then
18827 available_tags="$available_tags $tagname"
18833 # Now substitute the updated list of available tags.
18834 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18835 mv "${ofile}T" "$ofile"
18839 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18840 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18841 { (exit 1); exit 1; }; }
18847 # This can be used to rebuild libtool when needed
18848 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18850 # Always use our own libtool.
18851 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18853 # Prevent multiple expansion
18879 echo "$as_me:$LINENO: result: " >&5
18880 echo "${ECHO_T}" >&6
18881 echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
18882 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6
18885 ac_cpp='$CPP $CPPFLAGS'
18886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18889 if test -n "$ac_tool_prefix"; then
18890 for ac_prog in xlC gcc cc
18892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18894 echo "$as_me:$LINENO: checking for $ac_word" >&5
18895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18896 if test "${ac_cv_prog_CC+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 if test -n "$CC"; then
18900 ac_cv_prog_CC="$CC" # Let the user override the test.
18902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18903 for as_dir in $PATH
18906 test -z "$as_dir" && as_dir=.
18907 for ac_exec_ext in '' $ac_executable_extensions; do
18908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18919 if test -n "$CC"; then
18920 echo "$as_me:$LINENO: result: $CC" >&5
18921 echo "${ECHO_T}$CC" >&6
18923 echo "$as_me:$LINENO: result: no" >&5
18924 echo "${ECHO_T}no" >&6
18927 test -n "$CC" && break
18930 if test -z "$CC"; then
18932 for ac_prog in xlC gcc cc
18934 # Extract the first word of "$ac_prog", so it can be a program name with args.
18935 set dummy $ac_prog; ac_word=$2
18936 echo "$as_me:$LINENO: checking for $ac_word" >&5
18937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 if test -n "$ac_ct_CC"; then
18942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18945 for as_dir in $PATH
18948 test -z "$as_dir" && as_dir=.
18949 for ac_exec_ext in '' $ac_executable_extensions; do
18950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18951 ac_cv_prog_ac_ct_CC="$ac_prog"
18952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18961 if test -n "$ac_ct_CC"; then
18962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18963 echo "${ECHO_T}$ac_ct_CC" >&6
18965 echo "$as_me:$LINENO: result: no" >&5
18966 echo "${ECHO_T}no" >&6
18969 test -n "$ac_ct_CC" && break
18976 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18977 See \`config.log' for more details." >&5
18978 echo "$as_me: error: no acceptable C compiler found in \$PATH
18979 See \`config.log' for more details." >&2;}
18980 { (exit 1); exit 1; }; }
18982 # Provide some information about the compiler.
18983 echo "$as_me:$LINENO:" \
18984 "checking for C compiler version" >&5
18985 ac_compiler=`set X $ac_compile; echo $2`
18986 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18987 (eval $ac_compiler --version </dev/null >&5) 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }
18991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18992 (eval $ac_compiler -v </dev/null >&5) 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }
18996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18997 (eval $ac_compiler -V </dev/null >&5) 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }
19002 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19003 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19004 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19005 echo $ECHO_N "(cached) $ECHO_C" >&6
19007 cat >conftest.$ac_ext <<_ACEOF
19010 cat confdefs.h >>conftest.$ac_ext
19011 cat >>conftest.$ac_ext <<_ACEOF
19012 /* end confdefs.h. */
19025 rm -f conftest.$ac_objext
19026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19027 (eval $ac_compile) 2>conftest.er1
19029 grep -v '^ *+' conftest.er1 >conftest.err
19031 cat conftest.err >&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } &&
19034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest.$ac_objext'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
19046 ac_compiler_gnu=yes
19048 echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19059 GCC=`test $ac_compiler_gnu = yes && echo yes`
19060 ac_test_CFLAGS=${CFLAGS+set}
19061 ac_save_CFLAGS=$CFLAGS
19063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19065 if test "${ac_cv_prog_cc_g+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 cat >conftest.$ac_ext <<_ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19083 rm -f conftest.$ac_objext
19084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19085 (eval $ac_compile) 2>conftest.er1
19087 grep -v '^ *+' conftest.er1 >conftest.err
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } &&
19092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; } &&
19098 { ac_try='test -s conftest.$ac_objext'
19099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; }; then
19104 ac_cv_prog_cc_g=yes
19106 echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19113 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19114 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19115 if test "$ac_test_CFLAGS" = set; then
19116 CFLAGS=$ac_save_CFLAGS
19117 elif test $ac_cv_prog_cc_g = yes; then
19118 if test "$GCC" = yes; then
19124 if test "$GCC" = yes; then
19130 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19131 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19132 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19135 ac_cv_prog_cc_stdc=no
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 #include <stdarg.h>
19145 #include <sys/types.h>
19146 #include <sys/stat.h>
19147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19148 struct buf { int x; };
19149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19150 static char *e (p, i)
19156 static char *f (char * (*g) (char **, int), char **p, ...)
19161 s = g (p, va_arg (v,int));
19166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19167 function prototypes and stuff, but not '\xHH' hex character constants.
19168 These don't provoke an error unfortunately, instead are silently treated
19169 as 'x'. The following induces an error, until -std1 is added to get
19170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19171 array size at least. It's necessary to write '\x00'==0 to get something
19172 that's true only with -std1. */
19173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19175 int test (int i, double x);
19176 struct s1 {int (*f) (int a);};
19177 struct s2 {int (*f) (double a);};
19178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19189 # Don't try gcc -ansi; that turns off useful extensions and
19190 # breaks some systems' header files.
19191 # AIX -qlanglvl=ansi
19192 # Ultrix and OSF/1 -std1
19193 # HP-UX 10.20 and later -Ae
19194 # HP-UX older versions -Aa -D_HPUX_SOURCE
19195 # SVR4 -Xc -D__EXTENSIONS__
19196 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19198 CC="$ac_save_CC $ac_arg"
19199 rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201 (eval $ac_compile) 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest.$ac_objext'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19220 ac_cv_prog_cc_stdc=$ac_arg
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19227 rm -f conftest.err conftest.$ac_objext
19229 rm -f conftest.$ac_ext conftest.$ac_objext
19234 case "x$ac_cv_prog_cc_stdc" in
19236 echo "$as_me:$LINENO: result: none needed" >&5
19237 echo "${ECHO_T}none needed" >&6 ;;
19239 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19240 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19241 CC="$CC $ac_cv_prog_cc_stdc" ;;
19244 # Some people use a C++ compiler to compile C. Since we use `exit',
19245 # in C++ we need to declare it. In case someone uses the same compiler
19246 # for both compiling C and C++ we need to have the C++ compiler decide
19247 # the declaration of exit, since it's the most demanding environment.
19248 cat >conftest.$ac_ext <<_ACEOF
19249 #ifndef __cplusplus
19253 rm -f conftest.$ac_objext
19254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19255 (eval $ac_compile) 2>conftest.er1
19257 grep -v '^ *+' conftest.er1 >conftest.err
19259 cat conftest.err >&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } &&
19262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; } &&
19268 { ac_try='test -s conftest.$ac_objext'
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; }; then
19274 for ac_declaration in \
19276 'extern "C" void std::exit (int) throw (); using std::exit;' \
19277 'extern "C" void std::exit (int); using std::exit;' \
19278 'extern "C" void exit (int) throw ();' \
19279 'extern "C" void exit (int);' \
19282 cat >conftest.$ac_ext <<_ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19289 #include <stdlib.h>
19298 rm -f conftest.$ac_objext
19299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19300 (eval $ac_compile) 2>conftest.er1
19302 grep -v '^ *+' conftest.er1 >conftest.err
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
19307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; } &&
19313 { ac_try='test -s conftest.$ac_objext'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; }; then
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19327 cat >conftest.$ac_ext <<_ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19342 rm -f conftest.$ac_objext
19343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19344 (eval $ac_compile) 2>conftest.er1
19346 grep -v '^ *+' conftest.er1 >conftest.err
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } &&
19351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try='test -s conftest.$ac_objext'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; }; then
19365 echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19372 if test -n "$ac_declaration"; then
19373 echo '#ifdef __cplusplus' >>confdefs.h
19374 echo $ac_declaration >>confdefs.h
19375 echo '#endif' >>confdefs.h
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19385 ac_cpp='$CPP $CPPFLAGS'
19386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390 depcc="$CC" am_compiler_list=
19392 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19393 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19394 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19398 # We make a subdir and do the tests there. Otherwise we can end up
19399 # making bogus files that we don't know about and never remove. For
19400 # instance it was reported that on HP-UX the gcc test will end up
19401 # making a dummy file named `D' -- because `-MD' means `put the output
19404 # Copy depcomp to subdir because otherwise we won't find it if we're
19405 # using a relative directory.
19406 cp "$am_depcomp" conftest.dir
19408 # We will build objects and dependencies in a subdirectory because
19409 # it helps to detect inapplicable dependency modes. For instance
19410 # both Tru64's cc and ICC support -MD to output dependencies as a
19411 # side effect of compilation, but ICC will put the dependencies in
19412 # the current directory while Tru64 will put them in the object
19416 am_cv_CC_dependencies_compiler_type=none
19417 if test "$am_compiler_list" = ""; then
19418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19420 for depmode in $am_compiler_list; do
19421 # Setup a source with many dependencies, because some compilers
19422 # like to wrap large dependency lists on column 80 (with \), and
19423 # we should not choose a depcomp mode which is confused by this.
19425 # We need to recreate these files for each test, as the compiler may
19426 # overwrite some of them when testing with obscure command lines.
19427 # This happens at least with the AIX C compiler.
19429 for i in 1 2 3 4 5 6; do
19430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19432 # Solaris 8's {/usr,}/bin/sh.
19433 touch sub/conftst$i.h
19435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19439 # after this tag, mechanisms are not by side-effect, so they'll
19440 # only be used when explicitly requested
19441 if test "x$enable_dependency_tracking" = xyes; then
19449 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19450 # mode. It turns out that the SunPro C++ compiler does not properly
19451 # handle `-M -o', and we need to detect this.
19452 if depmode=$depmode \
19453 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19455 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19456 >/dev/null 2>conftest.err &&
19457 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19458 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19459 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19460 # icc doesn't choke on unknown options, it will just issue warnings
19461 # or remarks (even with -Werror). So we grep stderr for any message
19462 # that says an option was ignored or not supported.
19463 # When given -MP, icc 7.0 and 7.1 complain thusly:
19464 # icc: Command line warning: ignoring option '-M'; no argument required
19465 # The diagnosis changed in icc 8.0:
19466 # icc: Command line remark: option '-MP' not supported
19467 if (grep 'ignoring option' conftest.err ||
19468 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19469 am_cv_CC_dependencies_compiler_type=$depmode
19476 rm -rf conftest.dir
19478 am_cv_CC_dependencies_compiler_type=none
19482 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19483 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19484 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19489 test "x$enable_dependency_tracking" != xno \
19490 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19491 am__fastdepCC_TRUE=
19492 am__fastdepCC_FALSE='#'
19494 am__fastdepCC_TRUE='#'
19495 am__fastdepCC_FALSE=
19499 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19500 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19503 echo timestamp > conftest.file
19504 # Do `set' in a subshell so we don't clobber the current shell's
19505 # arguments. Must try -L first in case configure is actually a
19506 # symlink; some systems play weird games with the mod time of symlinks
19507 # (eg FreeBSD returns the mod time of the symlink's containing
19510 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19511 if test "$*" = "X"; then
19513 set X `ls -t $srcdir/configure conftest.file`
19515 rm -f conftest.file
19516 if test "$*" != "X $srcdir/configure conftest.file" \
19517 && test "$*" != "X conftest.file $srcdir/configure"; then
19519 # If neither matched, then we have a broken ls. This can happen
19520 # if, for instance, CONFIG_SHELL is bash and it inherits a
19521 # broken ls alias from the environment. This has actually
19522 # happened. Such a system could not be considered "sane".
19523 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19524 alias in your environment" >&5
19525 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19526 alias in your environment" >&2;}
19527 { (exit 1); exit 1; }; }
19530 test "$2" = conftest.file
19536 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19537 Check your system clock" >&5
19538 echo "$as_me: error: newly created file is older than distributed files!
19539 Check your system clock" >&2;}
19540 { (exit 1); exit 1; }; }
19542 echo "$as_me:$LINENO: result: yes" >&5
19543 echo "${ECHO_T}yes" >&6
19544 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19545 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19546 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19547 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 cat >conftest.make <<\_ACEOF
19552 @echo 'ac_maketemp="$(MAKE)"'
19554 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19555 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19556 if test -n "$ac_maketemp"; then
19557 eval ac_cv_prog_make_${ac_make}_set=yes
19559 eval ac_cv_prog_make_${ac_make}_set=no
19561 rm -f conftest.make
19563 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19564 echo "$as_me:$LINENO: result: yes" >&5
19565 echo "${ECHO_T}yes" >&6
19568 echo "$as_me:$LINENO: result: no" >&5
19569 echo "${ECHO_T}no" >&6
19570 SET_MAKE="MAKE=${MAKE-make}"
19574 echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
19575 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6
19576 if test "$cross_compiling" = yes; then
19577 echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
19578 echo "${ECHO_T}assuming the worse in cross-compilation" >&6
19580 cat >conftest.$ac_ext <<_ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19595 rm -f conftest$ac_exeext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19597 (eval $ac_link) 2>&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; }; then
19607 cat >>confdefs.h <<\_ACEOF
19608 #define PRINTF_NULL_WORKING 1
19611 echo "$as_me:$LINENO: result: yes" >&5
19612 echo "${ECHO_T}yes" >&6
19614 echo "$as_me: program exited with status $ac_status" >&5
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 ( exit $ac_status )
19619 echo "$as_me:$LINENO: result: no" >&5
19620 echo "${ECHO_T}no" >&6
19622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19626 echo "$as_me:$LINENO: checking for va_copy() function" >&5
19627 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6
19628 if test "${ac_cv_va_copy+set}" = set; then
19629 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 if test ".$ac_cv_va_copy" = .; then
19637 if test "$cross_compiling" = yes; then
19638 ac_cv_va_copy="C99"
19640 cat >conftest.$ac_ext <<_ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19647 #include <stdlib.h>
19648 #include <stdarg.h>
19649 #include <string.h>
19650 #define DO_VA_COPY(d, s) va_copy((d), (s))
19651 void test(char *str, ...)
19656 DO_VA_COPY(ap2, ap);
19657 for (i = 1; i <= 9; i++) {
19658 int k = (int)va_arg(ap, int);
19662 DO_VA_COPY(ap, ap2);
19663 for (i = 1; i <= 9; i++) {
19664 int k = (int)va_arg(ap, int);
19670 int main(int argc, char *argv[])
19672 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19677 rm -f conftest$ac_exeext
19678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19679 (eval $ac_link) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; }; then
19688 ac_cv_va_copy="C99"
19690 echo "$as_me: program exited with status $ac_status" >&5
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19702 if test ".$ac_cv_va_copy" = .; then
19703 if test "$cross_compiling" = yes; then
19704 ac_cv_va_copy="GCM"
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19713 #include <stdlib.h>
19714 #include <stdarg.h>
19715 #include <string.h>
19716 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
19717 void test(char *str, ...)
19722 DO_VA_COPY(ap2, ap);
19723 for (i = 1; i <= 9; i++) {
19724 int k = (int)va_arg(ap, int);
19728 DO_VA_COPY(ap, ap2);
19729 for (i = 1; i <= 9; i++) {
19730 int k = (int)va_arg(ap, int);
19736 int main(int argc, char *argv[])
19738 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19743 rm -f conftest$ac_exeext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19745 (eval $ac_link) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_cv_va_copy="GCM"
19756 echo "$as_me: program exited with status $ac_status" >&5
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19768 if test ".$ac_cv_va_copy" = .; then
19769 if test "$cross_compiling" = yes; then
19770 ac_cv_va_copy="GCH"
19772 cat >conftest.$ac_ext <<_ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19779 #include <stdlib.h>
19780 #include <stdarg.h>
19781 #include <string.h>
19782 #define DO_VA_COPY(d, s) __va_copy((d), (s))
19783 void test(char *str, ...)
19788 DO_VA_COPY(ap2, ap);
19789 for (i = 1; i <= 9; i++) {
19790 int k = (int)va_arg(ap, int);
19794 DO_VA_COPY(ap, ap2);
19795 for (i = 1; i <= 9; i++) {
19796 int k = (int)va_arg(ap, int);
19802 int main(int argc, char *argv[])
19804 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19809 rm -f conftest$ac_exeext
19810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19811 (eval $ac_link) 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 ac_cv_va_copy="GCH"
19822 echo "$as_me: program exited with status $ac_status" >&5
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19834 if test ".$ac_cv_va_copy" = .; then
19835 if test "$cross_compiling" = yes; then
19836 ac_cv_va_copy="GCB"
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19845 #include <stdlib.h>
19846 #include <stdarg.h>
19847 #include <string.h>
19848 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
19849 void test(char *str, ...)
19854 DO_VA_COPY(ap2, ap);
19855 for (i = 1; i <= 9; i++) {
19856 int k = (int)va_arg(ap, int);
19860 DO_VA_COPY(ap, ap2);
19861 for (i = 1; i <= 9; i++) {
19862 int k = (int)va_arg(ap, int);
19868 int main(int argc, char *argv[])
19870 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19875 rm -f conftest$ac_exeext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877 (eval $ac_link) 2>&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; }; then
19886 ac_cv_va_copy="GCB"
19888 echo "$as_me: program exited with status $ac_status" >&5
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19900 if test ".$ac_cv_va_copy" = .; then
19901 if test "$cross_compiling" = yes; then
19902 ac_cv_va_copy="ASS"
19904 cat >conftest.$ac_ext <<_ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19911 #include <stdlib.h>
19912 #include <stdarg.h>
19913 #include <string.h>
19914 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
19915 void test(char *str, ...)
19920 DO_VA_COPY(ap2, ap);
19921 for (i = 1; i <= 9; i++) {
19922 int k = (int)va_arg(ap, int);
19926 DO_VA_COPY(ap, ap2);
19927 for (i = 1; i <= 9; i++) {
19928 int k = (int)va_arg(ap, int);
19934 int main(int argc, char *argv[])
19936 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19941 rm -f conftest$ac_exeext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19943 (eval $ac_link) 2>&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 ac_cv_va_copy="ASS"
19954 echo "$as_me: program exited with status $ac_status" >&5
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19966 if test ".$ac_cv_va_copy" = .; then
19967 if test "$cross_compiling" = yes; then
19968 ac_cv_va_copy="ASP"
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19977 #include <stdlib.h>
19978 #include <stdarg.h>
19979 #include <string.h>
19980 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
19981 void test(char *str, ...)
19986 DO_VA_COPY(ap2, ap);
19987 for (i = 1; i <= 9; i++) {
19988 int k = (int)va_arg(ap, int);
19992 DO_VA_COPY(ap, ap2);
19993 for (i = 1; i <= 9; i++) {
19994 int k = (int)va_arg(ap, int);
20000 int main(int argc, char *argv[])
20002 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20007 rm -f conftest$ac_exeext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20009 (eval $ac_link) 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; }; then
20018 ac_cv_va_copy="ASP"
20020 echo "$as_me: program exited with status $ac_status" >&5
20021 echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20032 if test ".$ac_cv_va_copy" = .; then
20033 if test "$cross_compiling" = yes; then
20034 ac_cv_va_copy="CPS"
20036 cat >conftest.$ac_ext <<_ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h. */
20043 #include <stdlib.h>
20044 #include <stdarg.h>
20045 #include <string.h>
20046 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20047 void test(char *str, ...)
20052 DO_VA_COPY(ap2, ap);
20053 for (i = 1; i <= 9; i++) {
20054 int k = (int)va_arg(ap, int);
20058 DO_VA_COPY(ap, ap2);
20059 for (i = 1; i <= 9; i++) {
20060 int k = (int)va_arg(ap, int);
20066 int main(int argc, char *argv[])
20068 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20073 rm -f conftest$ac_exeext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20075 (eval $ac_link) 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_va_copy="CPS"
20086 echo "$as_me: program exited with status $ac_status" >&5
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20091 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20098 if test ".$ac_cv_va_copy" = .; then
20099 if test "$cross_compiling" = yes; then
20100 ac_cv_va_copy="CPP"
20102 cat >conftest.$ac_ext <<_ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20109 #include <stdlib.h>
20110 #include <stdarg.h>
20111 #include <string.h>
20112 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20113 void test(char *str, ...)
20118 DO_VA_COPY(ap2, ap);
20119 for (i = 1; i <= 9; i++) {
20120 int k = (int)va_arg(ap, int);
20124 DO_VA_COPY(ap, ap2);
20125 for (i = 1; i <= 9; i++) {
20126 int k = (int)va_arg(ap, int);
20132 int main(int argc, char *argv[])
20134 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20139 rm -f conftest$ac_exeext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20141 (eval $ac_link) 2>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146 (eval $ac_try) 2>&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; }; then
20150 ac_cv_va_copy="CPP"
20152 echo "$as_me: program exited with status $ac_status" >&5
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20161 if test ".$ac_cv_va_copy" = .; then
20162 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20163 echo "$as_me: error: no working implementation found" >&2;}
20164 { (exit 1); exit 1; }; }
20169 if test ".$ac_cv_va_copy" = ".C99"; then
20171 cat >>confdefs.h <<\_ACEOF
20172 #define HAVE_VA_COPY 1
20177 cat >>confdefs.h <<_ACEOF
20178 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20183 if test ".$ac_cv_va_copy" = ".C99"; then
20184 echo "$as_me:$LINENO: result: yes" >&5
20185 echo "${ECHO_T}yes" >&6
20187 echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20188 echo "${ECHO_T}no (using fallback implementation)" >&6
20192 # Checks for header files.
20193 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20194 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20195 if test "${ac_cv_header_stdc+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 #include <stdlib.h>
20205 #include <stdarg.h>
20206 #include <string.h>
20217 rm -f conftest.$ac_objext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219 (eval $ac_compile) 2>conftest.er1
20221 grep -v '^ *+' conftest.er1 >conftest.err
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
20226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest.$ac_objext'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_cv_header_stdc=yes
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_cv_header_stdc=no
20245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20247 if test $ac_cv_header_stdc = yes; then
20248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 #include <string.h>
20258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20259 $EGREP "memchr" >/dev/null 2>&1; then
20262 ac_cv_header_stdc=no
20268 if test $ac_cv_header_stdc = yes; then
20269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20270 cat >conftest.$ac_ext <<_ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276 #include <stdlib.h>
20279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20280 $EGREP "free" >/dev/null 2>&1; then
20283 ac_cv_header_stdc=no
20289 if test $ac_cv_header_stdc = yes; then
20290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20291 if test "$cross_compiling" = yes; then
20294 cat >conftest.$ac_ext <<_ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20301 #if ((' ' & 0x0FF) == 0x020)
20302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20305 # define ISLOWER(c) \
20306 (('a' <= (c) && (c) <= 'i') \
20307 || ('j' <= (c) && (c) <= 'r') \
20308 || ('s' <= (c) && (c) <= 'z'))
20309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20317 for (i = 0; i < 256; i++)
20318 if (XOR (islower (i), ISLOWER (i))
20319 || toupper (i) != TOUPPER (i))
20324 rm -f conftest$ac_exeext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20326 (eval $ac_link) 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; }; then
20337 echo "$as_me: program exited with status $ac_status" >&5
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ( exit $ac_status )
20342 ac_cv_header_stdc=no
20344 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20350 if test $ac_cv_header_stdc = yes; then
20352 cat >>confdefs.h <<\_ACEOF
20353 #define STDC_HEADERS 1
20358 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20359 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20360 if test "${ac_cv_header_time+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 #include <sys/types.h>
20370 #include <sys/time.h>
20376 if ((struct tm *) 0)
20382 rm -f conftest.$ac_objext
20383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20384 (eval $ac_compile) 2>conftest.er1
20386 grep -v '^ *+' conftest.er1 >conftest.err
20388 cat conftest.err >&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } &&
20391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; } &&
20397 { ac_try='test -s conftest.$ac_objext'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; }; then
20403 ac_cv_header_time=yes
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20408 ac_cv_header_time=no
20410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20412 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20413 echo "${ECHO_T}$ac_cv_header_time" >&6
20414 if test $ac_cv_header_time = yes; then
20416 cat >>confdefs.h <<\_ACEOF
20417 #define TIME_WITH_SYS_TIME 1
20432 for ac_header in sys/socket.h \
20434 windows.h winsock.h winsock2.h \
20440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20442 echo "$as_me:$LINENO: checking for $ac_header" >&5
20443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20450 # Is the header compilable?
20451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20453 cat >conftest.$ac_ext <<_ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20459 $ac_includes_default
20460 #include <$ac_header>
20462 rm -f conftest.$ac_objext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20464 (eval $ac_compile) 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest.$ac_objext'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 ac_header_compiler=yes
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20488 ac_header_compiler=no
20490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20492 echo "${ECHO_T}$ac_header_compiler" >&6
20494 # Is the header present?
20495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20497 cat >conftest.$ac_ext <<_ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20503 #include <$ac_header>
20505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20508 grep -v '^ *+' conftest.er1 >conftest.err
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } >/dev/null; then
20513 if test -s conftest.err; then
20514 ac_cpp_err=$ac_c_preproc_warn_flag
20515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20522 if test -z "$ac_cpp_err"; then
20523 ac_header_preproc=yes
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_header_preproc=no
20530 rm -f conftest.err conftest.$ac_ext
20531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20532 echo "${ECHO_T}$ac_header_preproc" >&6
20534 # So? What about this header?
20535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20541 ac_header_preproc=yes
20544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20558 ## -------------------------------------------------- ##
20559 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
20560 ## -------------------------------------------------- ##
20563 sed "s/^/$as_me: WARNING: /" >&2
20566 echo "$as_me:$LINENO: checking for $ac_header" >&5
20567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20571 eval "$as_ac_Header=\$ac_header_preproc"
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20578 cat >>confdefs.h <<_ACEOF
20579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20593 for ac_func in gettimeofday usleep \
20600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20601 echo "$as_me:$LINENO: checking for $ac_func" >&5
20602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20603 if eval "test \"\${$as_ac_var+set}\" = set"; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 cat >conftest.$ac_ext <<_ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20614 #define $ac_func innocuous_$ac_func
20616 /* System header to define __stub macros and hopefully few prototypes,
20617 which can conflict with char $ac_func (); below.
20618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20619 <limits.h> exists even on freestanding compilers. */
20622 # include <limits.h>
20624 # include <assert.h>
20629 /* Override any gcc2 internal prototype to avoid an error. */
20634 /* We use char because int might match the return type of a gcc2
20635 builtin and then its argument prototype would still apply. */
20637 /* The GNU C library defines this for functions which it implements
20638 to always fail with ENOSYS. Some functions are actually named
20639 something starting with __ and the normal name is an alias. */
20640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20643 char (*f) () = $ac_func;
20652 return f != $ac_func;
20657 rm -f conftest.$ac_objext conftest$ac_exeext
20658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20659 (eval $ac_link) 2>conftest.er1
20661 grep -v '^ *+' conftest.er1 >conftest.err
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } &&
20666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; } &&
20672 { ac_try='test -s conftest$ac_exeext'
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; }; then
20678 eval "$as_ac_var=yes"
20680 echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20683 eval "$as_ac_var=no"
20685 rm -f conftest.err conftest.$ac_objext \
20686 conftest$ac_exeext conftest.$ac_ext
20688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20690 if test `eval echo '${'$as_ac_var'}'` = yes; then
20691 cat >>confdefs.h <<_ACEOF
20692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20699 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
20702 for ac_func in snprintf vsnprintf
20704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20705 echo "$as_me:$LINENO: checking for $ac_func" >&5
20706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20707 if eval "test \"\${$as_ac_var+set}\" = set"; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 cat >conftest.$ac_ext <<_ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20718 #define $ac_func innocuous_$ac_func
20720 /* System header to define __stub macros and hopefully few prototypes,
20721 which can conflict with char $ac_func (); below.
20722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20723 <limits.h> exists even on freestanding compilers. */
20726 # include <limits.h>
20728 # include <assert.h>
20733 /* Override any gcc2 internal prototype to avoid an error. */
20738 /* We use char because int might match the return type of a gcc2
20739 builtin and then its argument prototype would still apply. */
20741 /* The GNU C library defines this for functions which it implements
20742 to always fail with ENOSYS. Some functions are actually named
20743 something starting with __ and the normal name is an alias. */
20744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20747 char (*f) () = $ac_func;
20756 return f != $ac_func;
20761 rm -f conftest.$ac_objext conftest$ac_exeext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20763 (eval $ac_link) 2>conftest.er1
20765 grep -v '^ *+' conftest.er1 >conftest.err
20767 cat conftest.err >&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
20770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20782 eval "$as_ac_var=yes"
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20787 eval "$as_ac_var=no"
20789 rm -f conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
20792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20794 if test `eval echo '${'$as_ac_var'}'` = yes; then
20795 cat >>confdefs.h <<_ACEOF
20796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20802 echo "$as_me:$LINENO: checking for working snprintf" >&5
20803 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
20804 if test "${ac_cv_have_working_snprintf+set}" = set; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20807 if test "$cross_compiling" = yes; then
20808 ac_cv_have_working_snprintf=cross
20810 cat >conftest.$ac_ext <<_ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20820 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20821 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20823 i = snprintf (bufs, 2, "%s", "111");
20824 if (strcmp (bufs, "1")) exit (1);
20825 if (i != 3) exit (1);
20826 i = snprintf (bufd, 2, "%d", 111);
20827 if (strcmp (bufd, "1")) exit (1);
20828 if (i != 3) exit (1);
20832 rm -f conftest$ac_exeext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20834 (eval $ac_link) 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 ac_cv_have_working_snprintf=yes
20845 echo "$as_me: program exited with status $ac_status" >&5
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 ( exit $ac_status )
20850 ac_cv_have_working_snprintf=no
20852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20856 echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
20857 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6
20858 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
20859 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
20860 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 if test "$cross_compiling" = yes; then
20864 ac_cv_have_working_vsnprintf=cross
20866 cat >conftest.$ac_ext <<_ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20873 #include <stdarg.h>
20875 int my_vsnprintf (char *buf, const char *tmpl, ...)
20879 va_start (args, tmpl);
20880 i = vsnprintf (buf, 2, tmpl, args);
20887 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20888 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20890 i = my_vsnprintf (bufs, "%s", "111");
20891 if (strcmp (bufs, "1")) exit (1);
20892 if (i != 3) exit (1);
20893 i = my_vsnprintf (bufd, "%d", 111);
20894 if (strcmp (bufd, "1")) exit (1);
20895 if (i != 3) exit (1);
20899 rm -f conftest$ac_exeext
20900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20901 (eval $ac_link) 2>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_cv_have_working_vsnprintf=yes
20912 echo "$as_me: program exited with status $ac_status" >&5
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ( exit $ac_status )
20917 ac_cv_have_working_vsnprintf=no
20919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20923 echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
20924 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6
20925 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
20927 "snprintf.$ac_objext" | \
20928 *" snprintf.$ac_objext" | \
20929 "snprintf.$ac_objext "* | \
20930 *" snprintf.$ac_objext "* ) ;;
20931 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
20934 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
20935 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
20937 cat >>confdefs.h <<\_ACEOF
20938 #define PREFER_PORTABLE_SNPRINTF 1
20942 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
20943 echo "$as_me:$LINENO: checking for asprintf" >&5
20944 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6
20945 if test "${ac_cv_func_asprintf+set}" = set; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
20955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20956 #define asprintf innocuous_asprintf
20958 /* System header to define __stub macros and hopefully few prototypes,
20959 which can conflict with char asprintf (); below.
20960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20961 <limits.h> exists even on freestanding compilers. */
20964 # include <limits.h>
20966 # include <assert.h>
20971 /* Override any gcc2 internal prototype to avoid an error. */
20976 /* We use char because int might match the return type of a gcc2
20977 builtin and then its argument prototype would still apply. */
20979 /* The GNU C library defines this for functions which it implements
20980 to always fail with ENOSYS. Some functions are actually named
20981 something starting with __ and the normal name is an alias. */
20982 #if defined (__stub_asprintf) || defined (__stub___asprintf)
20985 char (*f) () = asprintf;
20994 return f != asprintf;
20999 rm -f conftest.$ac_objext conftest$ac_exeext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21001 (eval $ac_link) 2>conftest.er1
21003 grep -v '^ *+' conftest.er1 >conftest.err
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
21008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; } &&
21014 { ac_try='test -s conftest$ac_exeext'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
21020 ac_cv_func_asprintf=yes
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_cv_func_asprintf=no
21027 rm -f conftest.err conftest.$ac_objext \
21028 conftest$ac_exeext conftest.$ac_ext
21030 echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21031 echo "${ECHO_T}$ac_cv_func_asprintf" >&6
21032 if test $ac_cv_func_asprintf = yes; then
21036 cat >>confdefs.h <<\_ACEOF
21037 #define NEED_ASPRINTF 1
21042 echo "$as_me:$LINENO: checking for vasprintf" >&5
21043 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6
21044 if test "${ac_cv_func_vasprintf+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 cat >conftest.$ac_ext <<_ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21053 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21055 #define vasprintf innocuous_vasprintf
21057 /* System header to define __stub macros and hopefully few prototypes,
21058 which can conflict with char vasprintf (); below.
21059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21060 <limits.h> exists even on freestanding compilers. */
21063 # include <limits.h>
21065 # include <assert.h>
21070 /* Override any gcc2 internal prototype to avoid an error. */
21075 /* We use char because int might match the return type of a gcc2
21076 builtin and then its argument prototype would still apply. */
21078 /* The GNU C library defines this for functions which it implements
21079 to always fail with ENOSYS. Some functions are actually named
21080 something starting with __ and the normal name is an alias. */
21081 #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
21084 char (*f) () = vasprintf;
21093 return f != vasprintf;
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21100 (eval $ac_link) 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } &&
21107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
21113 { ac_try='test -s conftest$ac_exeext'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 ac_cv_func_vasprintf=yes
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 ac_cv_func_vasprintf=no
21126 rm -f conftest.err conftest.$ac_objext \
21127 conftest$ac_exeext conftest.$ac_ext
21129 echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21130 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6
21131 if test $ac_cv_func_vasprintf = yes; then
21135 cat >>confdefs.h <<\_ACEOF
21136 #define NEED_VASPRINTF 1
21141 # we don't use those:
21142 # A C_CHECK_FUNC( asnprintf, :, A C_DEFINE(NEED_ASNPRINTF, 1, enable the asnprintf replacement))
21143 # A C_CHECK_FUNC(vasnprintf, :, A C_DEFINE(NEED_VASNPRINTF, 1, enable the vansprintf replacement))
21146 # Checks for typedefs, structures, and compiler characteristics.
21147 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21148 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21149 if test "${ac_cv_c_const+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21162 /* FIXME: Include the comments suggested by Paul. */
21163 #ifndef __cplusplus
21164 /* Ultrix mips cc rejects this. */
21165 typedef int charset[2];
21167 /* SunOS 4.1.1 cc rejects this. */
21168 char const *const *ccp;
21170 /* NEC SVR4.0.2 mips cc rejects this. */
21171 struct point {int x, y;};
21172 static struct point const zero = {0,0};
21173 /* AIX XL C 1.02.0.0 rejects this.
21174 It does not let you subtract one const X* pointer from another in
21175 an arm of an if-expression whose if-part is not a constant
21177 const char *g = "string";
21178 ccp = &g + (g ? g-g : 0);
21179 /* HPUX 7.0 cc rejects these. */
21182 ccp = (char const *const *) p;
21183 { /* SCO 3.2v4 cc rejects this. */
21185 char const *s = 0 ? (char *) 0 : (char const *) 0;
21189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21190 int x[] = {25, 17};
21191 const int *foo = &x[0];
21194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21195 typedef const int *iptr;
21199 { /* AIX XL C 1.02.0.0 rejects this saying
21200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21201 struct s { int j; const int *ap[3]; };
21202 struct s *b; b->j = 5;
21204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21205 const int foo = 10;
21213 rm -f conftest.$ac_objext
21214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21215 (eval $ac_compile) 2>conftest.er1
21217 grep -v '^ *+' conftest.er1 >conftest.err
21219 cat conftest.err >&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
21222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest.$ac_objext'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21243 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21244 echo "${ECHO_T}$ac_cv_c_const" >&6
21245 if test $ac_cv_c_const = no; then
21247 cat >>confdefs.h <<\_ACEOF
21253 echo "$as_me:$LINENO: checking for inline" >&5
21254 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21255 if test "${ac_cv_c_inline+set}" = set; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 for ac_kw in inline __inline__ __inline; do
21260 cat >conftest.$ac_ext <<_ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 #ifndef __cplusplus
21268 static $ac_kw foo_t static_foo () {return 0; }
21269 $ac_kw foo_t foo () {return 0; }
21273 rm -f conftest.$ac_objext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21275 (eval $ac_compile) 2>conftest.er1
21277 grep -v '^ *+' conftest.er1 >conftest.err
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
21282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; } &&
21288 { ac_try='test -s conftest.$ac_objext'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 ac_cv_c_inline=$ac_kw; break
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21304 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21305 echo "${ECHO_T}$ac_cv_c_inline" >&6
21308 case $ac_cv_c_inline in
21311 case $ac_cv_c_inline in
21313 *) ac_val=$ac_cv_c_inline;;
21315 cat >>confdefs.h <<_ACEOF
21316 #ifndef __cplusplus
21317 #define inline $ac_val
21323 echo "$as_me:$LINENO: checking for size_t" >&5
21324 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21325 if test "${ac_cv_type_size_t+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 $ac_includes_default
21340 if (sizeof (size_t))
21346 rm -f conftest.$ac_objext
21347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21348 (eval $ac_compile) 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
21355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest.$ac_objext'
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ac_cv_type_size_t=yes
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21372 ac_cv_type_size_t=no
21374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21376 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21377 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21378 if test $ac_cv_type_size_t = yes; then
21382 cat >>confdefs.h <<_ACEOF
21383 #define size_t unsigned
21389 ###################################
21390 ## SimGrid and GRAS specific checks
21394 echo "$as_me:$LINENO: result: " >&5
21395 echo "${ECHO_T}" >&6
21396 echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
21397 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6
21399 # Check architecture signature begin
21401 # Check for the architecture
21402 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21403 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21404 if test "${ac_cv_c_bigendian+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 # See if sys/param.h defines the BYTE_ORDER macro.
21408 cat >conftest.$ac_ext <<_ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 #include <sys/types.h>
21415 #include <sys/param.h>
21420 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21421 bogus endian macros
21428 rm -f conftest.$ac_objext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21430 (eval $ac_compile) 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
21437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 # It does; now see whether it defined to BIG_ENDIAN or not.
21450 cat >conftest.$ac_ext <<_ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21456 #include <sys/types.h>
21457 #include <sys/param.h>
21462 #if BYTE_ORDER != BIG_ENDIAN
21470 rm -f conftest.$ac_objext
21471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21472 (eval $ac_compile) 2>conftest.er1
21474 grep -v '^ *+' conftest.er1 >conftest.err
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } &&
21479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; } &&
21485 { ac_try='test -s conftest.$ac_objext'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; }; then
21491 ac_cv_c_bigendian=yes
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 ac_cv_c_bigendian=no
21498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21500 echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21503 # It does not; compile a test program.
21504 if test "$cross_compiling" = yes; then
21505 # try to guess the endianness by grepping values into an object file
21506 ac_cv_c_bigendian=unknown
21507 cat >conftest.$ac_ext <<_ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21514 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21515 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21516 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21517 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21518 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21522 _ascii (); _ebcdic ();
21527 rm -f conftest.$ac_objext
21528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21529 (eval $ac_compile) 2>conftest.er1
21531 grep -v '^ *+' conftest.er1 >conftest.err
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } &&
21536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest.$ac_objext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21549 ac_cv_c_bigendian=yes
21551 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21552 if test "$ac_cv_c_bigendian" = unknown; then
21553 ac_cv_c_bigendian=no
21555 # finding both strings is unlikely to happen, but who knows?
21556 ac_cv_c_bigendian=unknown
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21566 cat >conftest.$ac_ext <<_ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21575 /* Are we little or big endian? From Harbison&Steele. */
21579 char c[sizeof (long)];
21582 exit (u.c[sizeof (long) - 1] == 1);
21585 rm -f conftest$ac_exeext
21586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21587 (eval $ac_link) 2>&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 ac_cv_c_bigendian=no
21598 echo "$as_me: program exited with status $ac_status" >&5
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21602 ( exit $ac_status )
21603 ac_cv_c_bigendian=yes
21605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21610 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21611 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21612 case $ac_cv_c_bigendian in
21618 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21619 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21620 { (exit 1); exit 1; }; } ;;
21624 cat >>confdefs.h <<_ACEOF
21625 #define GRAS_BIGENDIAN $endian
21629 echo "$as_me:$LINENO: checking size of char" >&5
21630 echo $ECHO_N "checking size of char... $ECHO_C" >&6
21631 if test "${ac_cv_sizeof_char+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21635 cat >conftest.$ac_ext <<_ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 #include "confdefs.h"
21642 #include <sys/types.h>
21648 switch (0) case 0: case (sizeof (char) == $ac_size):;
21653 rm -f conftest.$ac_objext
21654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21655 (eval $ac_compile) 2>conftest.er1
21657 grep -v '^ *+' conftest.er1 >conftest.err
21659 cat conftest.err >&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } &&
21662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 ac_cv_sizeof_char=$ac_size
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21681 if test x$ac_cv_sizeof_char != x ; then break; fi
21687 unspecif=$ac_cv_sizeof_char
21688 if test x$unspecif = x ; then
21689 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
21690 echo "$as_me: error: cannot determine a size for char" >&2;}
21691 { (exit 1); exit 1; }; }
21694 if test "${ac_cv_sizeof_signed_char+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21698 cat >conftest.$ac_ext <<_ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 #include "confdefs.h"
21705 #include <sys/types.h>
21711 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
21716 rm -f conftest.$ac_objext
21717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718 (eval $ac_compile) 2>conftest.er1
21720 grep -v '^ *+' conftest.er1 >conftest.err
21722 cat conftest.err >&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } &&
21725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; } &&
21731 { ac_try='test -s conftest.$ac_objext'
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; }; then
21737 ac_cv_sizeof_signed_char=$ac_size
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21744 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
21750 signed=$ac_cv_sizeof_signed_char
21751 if test x$signed = x ; then
21752 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
21753 echo "$as_me: error: cannot determine a size for signed char" >&2;}
21754 { (exit 1); exit 1; }; }
21756 if test x$unspecif != x$signed ; then
21757 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
21758 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
21759 { (exit 1); exit 1; }; }
21762 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21766 cat >conftest.$ac_ext <<_ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21772 #include "confdefs.h"
21773 #include <sys/types.h>
21779 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
21784 rm -f conftest.$ac_objext
21785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21786 (eval $ac_compile) 2>conftest.er1
21788 grep -v '^ *+' conftest.er1 >conftest.err
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } &&
21793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; } &&
21799 { ac_try='test -s conftest.$ac_objext'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 ac_cv_sizeof_unsigned_char=$ac_size
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21812 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
21818 unsigned=$ac_cv_sizeof_unsigned_char
21819 if test x$unsigned = x ; then
21820 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
21821 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
21822 { (exit 1); exit 1; }; }
21824 if test x$unsigned != x$signed ; then
21825 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
21826 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
21827 { (exit 1); exit 1; }; }
21830 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
21831 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
21832 echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
21833 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6
21835 if test "${ac_cv_struct_boundary_char+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 #include "confdefs.h"
21846 #include <sys/types.h>
21847 struct s { char c; char i; };
21852 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
21857 rm -f conftest.$ac_objext
21858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21859 (eval $ac_compile) 2>conftest.er1
21861 grep -v '^ *+' conftest.er1 >conftest.err
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } &&
21866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; } &&
21872 { ac_try='test -s conftest.$ac_objext'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; }; then
21878 ac_cv_struct_boundary_char=$ac_size
21880 echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21885 if test x$ac_cv_struct_boundary_char != x ; then break; fi
21890 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
21891 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6
21892 if test x$ac_cv_struct_boundary_char = x ; then
21893 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
21894 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
21895 { (exit 1); exit 1; }; }
21898 echo "$as_me:$LINENO: checking size of short int" >&5
21899 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
21900 if test "${ac_cv_sizeof_short_int+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21903 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 #include "confdefs.h"
21911 #include <sys/types.h>
21917 switch (0) case 0: case (sizeof (short int) == $ac_size):;
21922 rm -f conftest.$ac_objext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21924 (eval $ac_compile) 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } &&
21931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; } &&
21937 { ac_try='test -s conftest.$ac_objext'
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; }; then
21943 ac_cv_sizeof_short_int=$ac_size
21945 echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21950 if test x$ac_cv_sizeof_short_int != x ; then break; fi
21956 unspecif=$ac_cv_sizeof_short_int
21957 if test x$unspecif = x ; then
21958 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
21959 echo "$as_me: error: cannot determine a size for short int" >&2;}
21960 { (exit 1); exit 1; }; }
21963 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21966 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 #include "confdefs.h"
21974 #include <sys/types.h>
21980 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
21985 rm -f conftest.$ac_objext
21986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21987 (eval $ac_compile) 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; } &&
22000 { ac_try='test -s conftest.$ac_objext'
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; }; then
22006 ac_cv_sizeof_signed_short_int=$ac_size
22008 echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22013 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22019 signed=$ac_cv_sizeof_signed_short_int
22020 if test x$signed = x ; then
22021 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22022 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22023 { (exit 1); exit 1; }; }
22025 if test x$unspecif != x$signed ; then
22026 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22027 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22028 { (exit 1); exit 1; }; }
22031 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22035 cat >conftest.$ac_ext <<_ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 #include "confdefs.h"
22042 #include <sys/types.h>
22048 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22053 rm -f conftest.$ac_objext
22054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22055 (eval $ac_compile) 2>conftest.er1
22057 grep -v '^ *+' conftest.er1 >conftest.err
22059 cat conftest.err >&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } &&
22062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; } &&
22068 { ac_try='test -s conftest.$ac_objext'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; }; then
22074 ac_cv_sizeof_unsigned_short_int=$ac_size
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22081 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22087 unsigned=$ac_cv_sizeof_unsigned_short_int
22088 if test x$unsigned = x ; then
22089 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22090 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22091 { (exit 1); exit 1; }; }
22093 if test x$unsigned != x$signed ; then
22094 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22095 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22096 { (exit 1); exit 1; }; }
22099 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22100 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
22101 echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22102 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6
22104 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22105 echo $ECHO_N "(cached) $ECHO_C" >&6
22107 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22108 cat >conftest.$ac_ext <<_ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22114 #include "confdefs.h"
22115 #include <sys/types.h>
22116 struct s { char c; short int i; };
22121 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22126 rm -f conftest.$ac_objext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22128 (eval $ac_compile) 2>conftest.er1
22130 grep -v '^ *+' conftest.er1 >conftest.err
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } &&
22135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; } &&
22141 { ac_try='test -s conftest.$ac_objext'
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; }; then
22147 ac_cv_struct_boundary_short_int=$ac_size
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22154 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22159 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22160 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6
22161 if test x$ac_cv_struct_boundary_short_int = x ; then
22162 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22163 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22164 { (exit 1); exit 1; }; }
22167 echo "$as_me:$LINENO: checking size of int" >&5
22168 echo $ECHO_N "checking size of int... $ECHO_C" >&6
22169 if test "${ac_cv_sizeof_int+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22173 cat >conftest.$ac_ext <<_ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h. */
22179 #include "confdefs.h"
22180 #include <sys/types.h>
22186 switch (0) case 0: case (sizeof (int) == $ac_size):;
22191 rm -f conftest.$ac_objext
22192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22193 (eval $ac_compile) 2>conftest.er1
22195 grep -v '^ *+' conftest.er1 >conftest.err
22197 cat conftest.err >&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } &&
22200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; } &&
22206 { ac_try='test -s conftest.$ac_objext'
22207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208 (eval $ac_try) 2>&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; }; then
22212 ac_cv_sizeof_int=$ac_size
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22219 if test x$ac_cv_sizeof_int != x ; then break; fi
22225 unspecif=$ac_cv_sizeof_int
22226 if test x$unspecif = x ; then
22227 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22228 echo "$as_me: error: cannot determine a size for int" >&2;}
22229 { (exit 1); exit 1; }; }
22232 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22233 echo $ECHO_N "(cached) $ECHO_C" >&6
22235 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22236 cat >conftest.$ac_ext <<_ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 #include "confdefs.h"
22243 #include <sys/types.h>
22249 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22254 rm -f conftest.$ac_objext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22256 (eval $ac_compile) 2>conftest.er1
22258 grep -v '^ *+' conftest.er1 >conftest.err
22260 cat conftest.err >&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } &&
22263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; } &&
22269 { ac_try='test -s conftest.$ac_objext'
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 ac_cv_sizeof_signed_int=$ac_size
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22282 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22288 signed=$ac_cv_sizeof_signed_int
22289 if test x$signed = x ; then
22290 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22291 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22292 { (exit 1); exit 1; }; }
22294 if test x$unspecif != x$signed ; then
22295 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22296 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22297 { (exit 1); exit 1; }; }
22300 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22303 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22304 cat >conftest.$ac_ext <<_ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 #include "confdefs.h"
22311 #include <sys/types.h>
22317 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22322 rm -f conftest.$ac_objext
22323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22324 (eval $ac_compile) 2>conftest.er1
22326 grep -v '^ *+' conftest.er1 >conftest.err
22328 cat conftest.err >&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } &&
22331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; } &&
22337 { ac_try='test -s conftest.$ac_objext'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; }; then
22343 ac_cv_sizeof_unsigned_int=$ac_size
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22350 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22356 unsigned=$ac_cv_sizeof_unsigned_int
22357 if test x$unsigned = x ; then
22358 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22359 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22360 { (exit 1); exit 1; }; }
22362 if test x$unsigned != x$signed ; then
22363 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22364 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22365 { (exit 1); exit 1; }; }
22368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22369 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
22370 echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22371 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6
22373 if test "${ac_cv_struct_boundary_int+set}" = set; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22377 cat >conftest.$ac_ext <<_ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383 #include "confdefs.h"
22384 #include <sys/types.h>
22385 struct s { char c; int i; };
22390 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
22395 rm -f conftest.$ac_objext
22396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22397 (eval $ac_compile) 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } &&
22404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest.$ac_objext'
22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412 (eval $ac_try) 2>&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; }; then
22416 ac_cv_struct_boundary_int=$ac_size
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22423 if test x$ac_cv_struct_boundary_int != x ; then break; fi
22428 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
22429 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6
22430 if test x$ac_cv_struct_boundary_int = x ; then
22431 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
22432 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
22433 { (exit 1); exit 1; }; }
22436 echo "$as_me:$LINENO: checking size of long int" >&5
22437 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
22438 if test "${ac_cv_sizeof_long_int+set}" = set; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22441 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22442 cat >conftest.$ac_ext <<_ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22448 #include "confdefs.h"
22449 #include <sys/types.h>
22455 switch (0) case 0: case (sizeof (long int) == $ac_size):;
22460 rm -f conftest.$ac_objext
22461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22462 (eval $ac_compile) 2>conftest.er1
22464 grep -v '^ *+' conftest.er1 >conftest.err
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } &&
22469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471 (eval $ac_try) 2>&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; } &&
22475 { ac_try='test -s conftest.$ac_objext'
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; }; then
22481 ac_cv_sizeof_long_int=$ac_size
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22488 if test x$ac_cv_sizeof_long_int != x ; then break; fi
22494 unspecif=$ac_cv_sizeof_long_int
22495 if test x$unspecif = x ; then
22496 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
22497 echo "$as_me: error: cannot determine a size for long int" >&2;}
22498 { (exit 1); exit 1; }; }
22501 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22504 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22505 cat >conftest.$ac_ext <<_ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h. */
22511 #include "confdefs.h"
22512 #include <sys/types.h>
22518 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
22523 rm -f conftest.$ac_objext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525 (eval $ac_compile) 2>conftest.er1
22527 grep -v '^ *+' conftest.er1 >conftest.err
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; } &&
22538 { ac_try='test -s conftest.$ac_objext'
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; }; then
22544 ac_cv_sizeof_signed_long_int=$ac_size
22546 echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
22557 signed=$ac_cv_sizeof_signed_long_int
22558 if test x$signed = x ; then
22559 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
22560 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
22561 { (exit 1); exit 1; }; }
22563 if test x$unspecif != x$signed ; then
22564 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
22565 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
22566 { (exit 1); exit 1; }; }
22569 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22573 cat >conftest.$ac_ext <<_ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 #include "confdefs.h"
22580 #include <sys/types.h>
22586 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
22591 rm -f conftest.$ac_objext
22592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22593 (eval $ac_compile) 2>conftest.er1
22595 grep -v '^ *+' conftest.er1 >conftest.err
22597 cat conftest.err >&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } &&
22600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602 (eval $ac_try) 2>&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); }; } &&
22606 { ac_try='test -s conftest.$ac_objext'
22607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608 (eval $ac_try) 2>&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); }; }; then
22612 ac_cv_sizeof_unsigned_long_int=$ac_size
22614 echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22619 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
22625 unsigned=$ac_cv_sizeof_unsigned_long_int
22626 if test x$unsigned = x ; then
22627 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
22628 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
22629 { (exit 1); exit 1; }; }
22631 if test x$unsigned != x$signed ; then
22632 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
22633 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
22634 { (exit 1); exit 1; }; }
22637 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
22638 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
22639 echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
22640 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6
22642 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
22643 echo $ECHO_N "(cached) $ECHO_C" >&6
22645 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22646 cat >conftest.$ac_ext <<_ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h. */
22652 #include "confdefs.h"
22653 #include <sys/types.h>
22654 struct s { char c; long int i; };
22659 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
22664 rm -f conftest.$ac_objext
22665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22666 (eval $ac_compile) 2>conftest.er1
22668 grep -v '^ *+' conftest.er1 >conftest.err
22670 cat conftest.err >&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } &&
22673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; } &&
22679 { ac_try='test -s conftest.$ac_objext'
22680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681 (eval $ac_try) 2>&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); }; }; then
22685 ac_cv_struct_boundary_long_int=$ac_size
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22692 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
22697 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
22698 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6
22699 if test x$ac_cv_struct_boundary_long_int = x ; then
22700 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
22701 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
22702 { (exit 1); exit 1; }; }
22705 echo "$as_me:$LINENO: checking size of long long int" >&5
22706 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
22707 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22710 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22711 cat >conftest.$ac_ext <<_ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 #include "confdefs.h"
22718 #include <sys/types.h>
22724 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
22729 rm -f conftest.$ac_objext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22731 (eval $ac_compile) 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } &&
22738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; } &&
22744 { ac_try='test -s conftest.$ac_objext'
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; }; then
22750 ac_cv_sizeof_long_long_int=$ac_size
22752 echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22757 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
22763 unspecif=$ac_cv_sizeof_long_long_int
22764 if test x$unspecif = x ; then
22765 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
22766 echo "$as_me: error: cannot determine a size for long long int" >&2;}
22767 { (exit 1); exit 1; }; }
22770 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22774 cat >conftest.$ac_ext <<_ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22780 #include "confdefs.h"
22781 #include <sys/types.h>
22787 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
22792 rm -f conftest.$ac_objext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22794 (eval $ac_compile) 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } &&
22801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803 (eval $ac_try) 2>&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; } &&
22807 { ac_try='test -s conftest.$ac_objext'
22808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809 (eval $ac_try) 2>&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); }; }; then
22813 ac_cv_sizeof_signed_long_long_int=$ac_size
22815 echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22820 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
22826 signed=$ac_cv_sizeof_signed_long_long_int
22827 if test x$signed = x ; then
22828 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
22829 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
22830 { (exit 1); exit 1; }; }
22832 if test x$unspecif != x$signed ; then
22833 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
22834 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
22835 { (exit 1); exit 1; }; }
22838 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
22839 echo $ECHO_N "(cached) $ECHO_C" >&6
22841 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22842 cat >conftest.$ac_ext <<_ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h. */
22848 #include "confdefs.h"
22849 #include <sys/types.h>
22855 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
22860 rm -f conftest.$ac_objext
22861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22862 (eval $ac_compile) 2>conftest.er1
22864 grep -v '^ *+' conftest.er1 >conftest.err
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } &&
22869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871 (eval $ac_try) 2>&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; } &&
22875 { ac_try='test -s conftest.$ac_objext'
22876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877 (eval $ac_try) 2>&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); }; }; then
22881 ac_cv_sizeof_unsigned_long_long_int=$ac_size
22883 echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22888 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
22894 unsigned=$ac_cv_sizeof_unsigned_long_long_int
22895 if test x$unsigned = x ; then
22896 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
22897 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
22898 { (exit 1); exit 1; }; }
22900 if test x$unsigned != x$signed ; then
22901 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
22902 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
22903 { (exit 1); exit 1; }; }
22906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
22907 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
22908 echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
22909 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6
22911 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22915 cat >conftest.$ac_ext <<_ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 #include "confdefs.h"
22922 #include <sys/types.h>
22923 struct s { char c; long long int i; };
22928 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
22933 rm -f conftest.$ac_objext
22934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22935 (eval $ac_compile) 2>conftest.er1
22937 grep -v '^ *+' conftest.er1 >conftest.err
22939 cat conftest.err >&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } &&
22942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; } &&
22948 { ac_try='test -s conftest.$ac_objext'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; }; then
22954 ac_cv_struct_boundary_long_long_int=$ac_size
22956 echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22961 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
22966 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
22967 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6
22968 if test x$ac_cv_struct_boundary_long_long_int = x ; then
22969 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
22970 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
22971 { (exit 1); exit 1; }; }
22975 echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
22976 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6
22978 if test "${ac_cv_struct_boundary_float+set}" = set; then
22979 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 #include "confdefs.h"
22989 #include <sys/types.h>
22990 struct s { char c; float i; };
22995 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23000 rm -f conftest.$ac_objext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23002 (eval $ac_compile) 2>conftest.er1
23004 grep -v '^ *+' conftest.er1 >conftest.err
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } &&
23009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest.$ac_objext'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_struct_boundary_float=$ac_size
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23028 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23033 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23034 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6
23035 if test x$ac_cv_struct_boundary_float = x ; then
23036 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23037 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23038 { (exit 1); exit 1; }; }
23040 echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23041 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6
23043 if test "${ac_cv_struct_boundary_double+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23047 cat >conftest.$ac_ext <<_ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23053 #include "confdefs.h"
23054 #include <sys/types.h>
23055 struct s { char c; double i; };
23060 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23065 rm -f conftest.$ac_objext
23066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23067 (eval $ac_compile) 2>conftest.er1
23069 grep -v '^ *+' conftest.er1 >conftest.err
23071 cat conftest.err >&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
23074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; } &&
23080 { ac_try='test -s conftest.$ac_objext'
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 ac_cv_struct_boundary_double=$ac_size
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23093 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23098 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23099 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6
23100 if test x$ac_cv_struct_boundary_double = x ; then
23101 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23102 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23103 { (exit 1); exit 1; }; }
23107 echo "$as_me:$LINENO: checking size of void *" >&5
23108 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
23109 if test "${ac_cv_sizeof_void_p+set}" = set; then
23110 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23113 cat >conftest.$ac_ext <<_ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23119 #include "confdefs.h"
23120 #include <sys/types.h>
23126 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23131 rm -f conftest.$ac_objext
23132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23133 (eval $ac_compile) 2>conftest.er1
23135 grep -v '^ *+' conftest.er1 >conftest.err
23137 cat conftest.err >&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } &&
23140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142 (eval $ac_try) 2>&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; } &&
23146 { ac_try='test -s conftest.$ac_objext'
23147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148 (eval $ac_try) 2>&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; }; then
23152 ac_cv_sizeof_void_p=$ac_size
23154 echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23159 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23165 if test x$ac_cv_sizeof_void_p = x ; then
23166 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23167 echo "$as_me: error: cannot determine a size for void *" >&2;}
23168 { (exit 1); exit 1; }; }
23170 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23171 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
23172 echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23173 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6
23175 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23176 echo $ECHO_N "(cached) $ECHO_C" >&6
23178 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23179 cat >conftest.$ac_ext <<_ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23185 #include "confdefs.h"
23186 #include <sys/types.h>
23187 struct s { char c; void * i; };
23192 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23197 rm -f conftest.$ac_objext
23198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23199 (eval $ac_compile) 2>conftest.er1
23201 grep -v '^ *+' conftest.er1 >conftest.err
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } &&
23206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; } &&
23212 { ac_try='test -s conftest.$ac_objext'
23213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214 (eval $ac_try) 2>&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); }; }; then
23218 ac_cv_struct_boundary_void_p=$ac_size
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23225 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23230 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23231 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6
23232 if test x$ac_cv_struct_boundary_void_p = x ; then
23233 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23234 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23235 { (exit 1); exit 1; }; }
23238 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23239 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
23240 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23244 cat >conftest.$ac_ext <<_ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23250 #include "confdefs.h"
23251 #include <sys/types.h>
23257 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23262 rm -f conftest.$ac_objext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23264 (eval $ac_compile) 2>conftest.er1
23266 grep -v '^ *+' conftest.er1 >conftest.err
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } &&
23271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; } &&
23277 { ac_try='test -s conftest.$ac_objext'
23278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279 (eval $ac_try) 2>&5
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); }; }; then
23283 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23290 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23296 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23297 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23298 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23299 { (exit 1); exit 1; }; }
23301 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23302 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
23306 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23307 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
23308 if test x$endian = x1 ; then
23314 trace="$trace_endian"
23316 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23318 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23319 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23320 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23321 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23323 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23324 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23326 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23328 # sizeof float/double are not tested since IEEE 754 is assumed.
23329 # Check README.IEEE for rational.
23331 # The numbers after the _ in the arch name are the maximal packing boundary.
23332 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23333 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23335 l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_arch_name=little32_1;;
23336 l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_arch_name=little32_2;;
23337 l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_arch_name=little32_4;;
23338 l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_arch_name=little32_8;;
23340 l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_arch_name=little64;;
23342 B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_arch_name=big32;;
23343 B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_arch_name=big32_8_4;;
23344 B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_arch_name=big32_4;;
23345 B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_arch_name=big32_2;;
23347 B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_arch_name=big64;;
23348 B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_arch_name=big64_8_4;;
23350 if test x$gras_arch = xunknown ; then
23351 echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23352 echo "${ECHO_T}damnit ($trace)" >&6
23353 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23354 Please report this architecture trace ($trace) and what it corresponds to." >&5
23355 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23356 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23357 { (exit 1); exit 1; }; }
23359 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23361 cat >>confdefs.h <<_ACEOF
23362 #define GRAS_THISARCH $gras_arch
23365 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23366 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
23368 echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23369 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6
23371 for s in $ac_cv_sizeof_char \
23372 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23373 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23376 if test $ac_cv_sizeof_max -lt $s ; then
23377 ac_cv_sizeof_max=$s
23380 echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23381 echo "${ECHO_T}$ac_cv_sizeof_max" >&6
23383 cat >>confdefs.h <<_ACEOF
23384 #define SIZEOF_MAX $ac_cv_sizeof_max
23389 # Check architecture signature end
23390 echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23391 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6
23392 cat >conftest.$ac_ext <<_ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23398 #include "confdefs.h"
23399 #include <sys/types.h>
23400 #include <stddef.h> /* offsetof() */
23401 struct s {char c; double d;};
23408 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
23414 rm -f conftest.$ac_objext
23415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23416 (eval $ac_compile) 2>conftest.er1
23418 grep -v '^ *+' conftest.er1 >conftest.err
23420 cat conftest.err >&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } &&
23423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; } &&
23429 { ac_try='test -s conftest.$ac_objext'
23430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431 (eval $ac_try) 2>&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; }; then
23435 gras_struct_packed=yes
23437 echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23440 gras_struct_packed=no
23442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23444 echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
23445 echo "${ECHO_T}$gras_struct_packed" >&6
23446 if test x$gras_struct_packed = "xyes" ; then
23447 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
23448 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
23449 { (exit 1); exit 1; }; }
23452 echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
23453 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6
23454 cat >conftest.$ac_ext <<_ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h. */
23460 #include "confdefs.h"
23461 #include <sys/types.h>
23462 #include <stddef.h> /* offsetof() */
23463 struct s {double d; int i; char c;};
23470 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23476 rm -f conftest.$ac_objext
23477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23478 (eval $ac_compile) 2>conftest.er1
23480 grep -v '^ *+' conftest.er1 >conftest.err
23482 cat conftest.err >&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } &&
23485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23487 (eval $ac_try) 2>&5
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); }; } &&
23491 { ac_try='test -s conftest.$ac_objext'
23492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23493 (eval $ac_try) 2>&5
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); }; }; then
23497 gras_struct_compact=yes
23499 echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23502 gras_struct_compact=no
23504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23506 echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
23507 echo "${ECHO_T}$gras_struct_compact" >&6
23509 if test x$gras_struct_compact != xyes ; then
23510 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
23511 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
23512 { (exit 1); exit 1; }; }
23515 cat >>confdefs.h <<_ACEOF
23516 #define GRAS_STRUCT_COMPACT 1
23519 echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
23520 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6
23522 cat >conftest.$ac_ext <<_ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 #include "confdefs.h"
23529 #include <sys/types.h>
23530 #include <stddef.h> /* offsetof() */
23531 struct s { double d; int i; char c[6]; };
23538 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23544 rm -f conftest.$ac_objext
23545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23546 (eval $ac_compile) 2>conftest.er1
23548 grep -v '^ *+' conftest.er1 >conftest.err
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } &&
23553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555 (eval $ac_try) 2>&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; } &&
23559 { ac_try='test -s conftest.$ac_objext'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; }; then
23565 gras_array_straddle_struct=yes
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23570 gras_array_straddle_struct=no
23572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23574 echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
23575 echo "${ECHO_T}$gras_array_straddle_struct" >&6
23577 if test x$gras_array_straddle_struct = xyes ; then
23579 cat >>confdefs.h <<_ACEOF
23580 #define GRAS_ARRAY_STRADDLE_STRUCT 1
23584 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
23585 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
23586 { (exit 1); exit 1; }; }
23593 echo "$as_me:$LINENO: result: " >&5
23594 echo "${ECHO_T}" >&6
23595 echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
23596 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6
23601 echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
23602 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6
23603 if test "${ac_cv_check_mcsc+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23607 if test "$cross_compiling" = yes; then
23608 ac_cv_check_mcsc=no
23611 cat >conftest.$ac_ext <<_ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h. */
23620 #include <stdlib.h>
23621 #include <ucontext.h>
23623 ucontext_t uc_child;
23624 ucontext_t uc_main;
23626 void child(void *arg)
23628 if (arg != (void *)2147483648)
23630 if (swapcontext(&uc_child, &uc_main) != 0)
23634 int main(int argc, char *argv[])
23639 /* the default is that it fails */
23640 if ((fp = fopen("conftestval", "w")) == NULL)
23642 fprintf(fp, "no\n");
23645 /* configure a child user-space context */
23646 if ((stack = malloc(64*1024)) == NULL)
23648 if (getcontext(&uc_child) != 0)
23650 uc_child.uc_link = NULL;
23651 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
23652 uc_child.uc_stack.ss_size = 32*1024;
23653 uc_child.uc_stack.ss_flags = 0;
23654 makecontext(&uc_child, child, 2, (void *)2147483648);
23656 /* switch into the user context */
23657 if (swapcontext(&uc_main, &uc_child) != 0)
23660 /* Fine, child came home */
23661 if ((fp = fopen("conftestval", "w")) == NULL)
23663 fprintf(fp, "yes\n");
23666 /* die successfully */
23671 rm -f conftest$ac_exeext
23672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23673 (eval $ac_link) 2>&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; }; then
23682 ac_cv_check_mcsc=`cat conftestval`
23684 echo "$as_me: program exited with status $ac_status" >&5
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 ( exit $ac_status )
23689 ac_cv_check_mcsc=no
23691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23694 echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
23695 echo "${ECHO_T}$ac_cv_check_mcsc" >&6
23696 if test ".$ac_cv_check_mcsc" = .yes; then
23704 for ac_header in pthread.h
23706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23708 echo "$as_me:$LINENO: checking for $ac_header" >&5
23709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23711 echo $ECHO_N "(cached) $ECHO_C" >&6
23713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23716 # Is the header compilable?
23717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23719 cat >conftest.$ac_ext <<_ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23725 $ac_includes_default
23726 #include <$ac_header>
23728 rm -f conftest.$ac_objext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23730 (eval $ac_compile) 2>conftest.er1
23732 grep -v '^ *+' conftest.er1 >conftest.err
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } &&
23737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739 (eval $ac_try) 2>&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); }; } &&
23743 { ac_try='test -s conftest.$ac_objext'
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; }; then
23749 ac_header_compiler=yes
23751 echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23754 ac_header_compiler=no
23756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23758 echo "${ECHO_T}$ac_header_compiler" >&6
23760 # Is the header present?
23761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23763 cat >conftest.$ac_ext <<_ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 #include <$ac_header>
23771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23774 grep -v '^ *+' conftest.er1 >conftest.err
23776 cat conftest.err >&5
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); } >/dev/null; then
23779 if test -s conftest.err; then
23780 ac_cpp_err=$ac_c_preproc_warn_flag
23781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23788 if test -z "$ac_cpp_err"; then
23789 ac_header_preproc=yes
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23794 ac_header_preproc=no
23796 rm -f conftest.err conftest.$ac_ext
23797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23798 echo "${ECHO_T}$ac_header_preproc" >&6
23800 # So? What about this header?
23801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23807 ac_header_preproc=yes
23810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23824 ## -------------------------------------------------- ##
23825 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
23826 ## -------------------------------------------------- ##
23829 sed "s/^/$as_me: WARNING: /" >&2
23832 echo "$as_me:$LINENO: checking for $ac_header" >&5
23833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23835 echo $ECHO_N "(cached) $ECHO_C" >&6
23837 eval "$as_ac_Header=\$ac_header_preproc"
23839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23844 cat >>confdefs.h <<_ACEOF
23845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23852 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
23853 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
23854 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23857 ac_check_lib_save_LIBS=$LIBS
23858 LIBS="-lpthread $LIBS"
23859 cat >conftest.$ac_ext <<_ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23866 /* Override any gcc2 internal prototype to avoid an error. */
23870 /* We use char because int might match the return type of a gcc2
23871 builtin and then its argument prototype would still apply. */
23872 char pthread_create ();
23881 rm -f conftest.$ac_objext conftest$ac_exeext
23882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23883 (eval $ac_link) 2>conftest.er1
23885 grep -v '^ *+' conftest.er1 >conftest.err
23887 cat conftest.err >&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } &&
23890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; } &&
23896 { ac_try='test -s conftest$ac_exeext'
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; }; then
23902 ac_cv_lib_pthread_pthread_create=yes
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 ac_cv_lib_pthread_pthread_create=no
23909 rm -f conftest.err conftest.$ac_objext \
23910 conftest$ac_exeext conftest.$ac_ext
23911 LIBS=$ac_check_lib_save_LIBS
23913 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23914 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23915 if test $ac_cv_lib_pthread_pthread_create = yes; then
23923 if test ".$mcsc" = .yes; then
23925 elif test ".$pthread" = .yes; then
23928 ac_header=windows.h
23929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23931 windows_context=yes
23933 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
23934 echo "$as_me: error: no appropriate backend found" >&2;}
23935 { (exit 1); exit 1; }; }
23940 echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
23941 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6
23944 # Check whether --with-pthread or --without-pthread was given.
23945 if test "${with_pthread+set}" = set; then
23946 withval="$with_pthread"
23947 with_context=pthread
23951 # Check whether --with-context or --without-context was given.
23952 if test "${with_context+set}" = set; then
23953 withval="$with_context"
23959 if test "x$with_context$mcsc" = "xucontextno" ; then
23960 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
23961 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
23962 { (exit 77); exit 77; }; }
23965 case $with_context in
23969 auto) with_context=ucontext;;
23970 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
23971 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
23972 { (exit 1); exit 1; }; } ;;
23975 if test "x$with_context" = "xucontext" ; then
23976 if test ".$mcsc" = .yes; then
23977 echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
23978 echo "${ECHO_T}found working ucontext. Great!" >&6
23980 cat >>confdefs.h <<\_ACEOF
23981 #define USE_UCONTEXT 1
23985 if test ".$windows_context" = .yes ; then
23986 echo "$as_me:$LINENO: result: use windows context portability layer." >&5
23987 echo "${ECHO_T}use windows context portability layer." >&6
23988 with_context=windows
23990 echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
23991 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6
23992 with_context=pthread
23997 if test "x$with_context" = "xpthread"; then
23999 for ac_header in pthread.h
24001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24003 echo "$as_me:$LINENO: checking for $ac_header" >&5
24004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24006 echo $ECHO_N "(cached) $ECHO_C" >&6
24008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24011 # Is the header compilable?
24012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24014 cat >conftest.$ac_ext <<_ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h. */
24020 $ac_includes_default
24021 #include <$ac_header>
24023 rm -f conftest.$ac_objext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24025 (eval $ac_compile) 2>conftest.er1
24027 grep -v '^ *+' conftest.er1 >conftest.err
24029 cat conftest.err >&5
24030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031 (exit $ac_status); } &&
24032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24034 (eval $ac_try) 2>&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); }; } &&
24038 { ac_try='test -s conftest.$ac_objext'
24039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24040 (eval $ac_try) 2>&5
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); }; }; then
24044 ac_header_compiler=yes
24046 echo "$as_me: failed program was:" >&5
24047 sed 's/^/| /' conftest.$ac_ext >&5
24049 ac_header_compiler=no
24051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24053 echo "${ECHO_T}$ac_header_compiler" >&6
24055 # Is the header present?
24056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24058 cat >conftest.$ac_ext <<_ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h. */
24064 #include <$ac_header>
24066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24069 grep -v '^ *+' conftest.er1 >conftest.err
24071 cat conftest.err >&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); } >/dev/null; then
24074 if test -s conftest.err; then
24075 ac_cpp_err=$ac_c_preproc_warn_flag
24076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24083 if test -z "$ac_cpp_err"; then
24084 ac_header_preproc=yes
24086 echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24089 ac_header_preproc=no
24091 rm -f conftest.err conftest.$ac_ext
24092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24093 echo "${ECHO_T}$ac_header_preproc" >&6
24095 # So? What about this header?
24096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24102 ac_header_preproc=yes
24105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24119 ## -------------------------------------------------- ##
24120 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24121 ## -------------------------------------------------- ##
24124 sed "s/^/$as_me: WARNING: /" >&2
24127 echo "$as_me:$LINENO: checking for $ac_header" >&5
24128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24130 echo $ECHO_N "(cached) $ECHO_C" >&6
24132 eval "$as_ac_Header=\$ac_header_preproc"
24134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24139 cat >>confdefs.h <<_ACEOF
24140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24148 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24149 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
24150 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24151 echo $ECHO_N "(cached) $ECHO_C" >&6
24153 ac_check_lib_save_LIBS=$LIBS
24154 LIBS="-lpthread $LIBS"
24155 cat >conftest.$ac_ext <<_ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h. */
24162 /* Override any gcc2 internal prototype to avoid an error. */
24166 /* We use char because int might match the return type of a gcc2
24167 builtin and then its argument prototype would still apply. */
24168 char pthread_create ();
24177 rm -f conftest.$ac_objext conftest$ac_exeext
24178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24179 (eval $ac_link) 2>conftest.er1
24181 grep -v '^ *+' conftest.er1 >conftest.err
24183 cat conftest.err >&5
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); } &&
24186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; } &&
24192 { ac_try='test -s conftest$ac_exeext'
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; }; then
24198 ac_cv_lib_pthread_pthread_create=yes
24200 echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24203 ac_cv_lib_pthread_pthread_create=no
24205 rm -f conftest.err conftest.$ac_objext \
24206 conftest$ac_exeext conftest.$ac_ext
24207 LIBS=$ac_check_lib_save_LIBS
24209 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24210 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
24211 if test $ac_cv_lib_pthread_pthread_create = yes; then
24212 cat >>confdefs.h <<_ACEOF
24213 #define HAVE_LIBPTHREAD 1
24216 LIBS="-lpthread $LIBS"
24219 { { echo "$as_me:$LINENO: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&5
24220 echo "$as_me: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&2;}
24221 { (exit 1); exit 1; }; }
24225 cat >>confdefs.h <<\_ACEOF
24226 #define USE_PTHREADS 1
24229 echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24230 echo "${ECHO_T}You have pthreads. Let's use them." >&6
24234 if test "x$with_context" = "xucontext" ; then
24235 echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24236 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6
24237 if test "${ac_cv_check_stackgrowth+set}" = set; then
24238 echo $ECHO_N "(cached) $ECHO_C" >&6
24242 if test "$cross_compiling" = yes; then
24243 ac_cv_check_stackgrowth=down
24246 cat >conftest.$ac_ext <<_ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h. */
24254 #include <stdlib.h>
24255 static int iterate = 10;
24256 static int growsdown(int *x)
24266 int main(int argc, char *argv[])
24270 if ((f = fopen("conftestval", "w")) == NULL)
24272 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24279 rm -f conftest$ac_exeext
24280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24281 (eval $ac_link) 2>&5
24283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286 (eval $ac_try) 2>&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); }; }; then
24290 ac_cv_check_stackgrowth=`cat conftestval`
24292 echo "$as_me: program exited with status $ac_status" >&5
24293 echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24296 ( exit $ac_status )
24297 ac_cv_check_stackgrowth=down
24299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24302 echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24303 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6
24304 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24310 cat >>confdefs.h <<_ACEOF
24311 #define PTH_STACKGROWTH $val
24315 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24316 PTH_STACK_GROWTH="down"
24318 PTH_STACK_GROWTH="up"
24326 for ac_func in makecontext
24328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24329 echo "$as_me:$LINENO: checking for $ac_func" >&5
24330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24331 if eval "test \"\${$as_ac_var+set}\" = set"; then
24332 echo $ECHO_N "(cached) $ECHO_C" >&6
24334 cat >conftest.$ac_ext <<_ACEOF
24337 cat confdefs.h >>conftest.$ac_ext
24338 cat >>conftest.$ac_ext <<_ACEOF
24339 /* end confdefs.h. */
24340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24342 #define $ac_func innocuous_$ac_func
24344 /* System header to define __stub macros and hopefully few prototypes,
24345 which can conflict with char $ac_func (); below.
24346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24347 <limits.h> exists even on freestanding compilers. */
24350 # include <limits.h>
24352 # include <assert.h>
24357 /* Override any gcc2 internal prototype to avoid an error. */
24362 /* We use char because int might match the return type of a gcc2
24363 builtin and then its argument prototype would still apply. */
24365 /* The GNU C library defines this for functions which it implements
24366 to always fail with ENOSYS. Some functions are actually named
24367 something starting with __ and the normal name is an alias. */
24368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24371 char (*f) () = $ac_func;
24380 return f != $ac_func;
24385 rm -f conftest.$ac_objext conftest$ac_exeext
24386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24387 (eval $ac_link) 2>conftest.er1
24389 grep -v '^ *+' conftest.er1 >conftest.err
24391 cat conftest.err >&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); } &&
24394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24396 (eval $ac_try) 2>&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); }; } &&
24400 { ac_try='test -s conftest$ac_exeext'
24401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24402 (eval $ac_try) 2>&5
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); }; }; then
24406 eval "$as_ac_var=yes"
24408 echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24411 eval "$as_ac_var=no"
24413 rm -f conftest.err conftest.$ac_objext \
24414 conftest$ac_exeext conftest.$ac_ext
24416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24418 if test `eval echo '${'$as_ac_var'}'` = yes; then
24419 cat >>confdefs.h <<_ACEOF
24420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24427 echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
24428 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6
24429 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
24430 echo $ECHO_N "(cached) $ECHO_C" >&6
24433 if test ".$ac_cv_func_makecontext" = .no; then
24434 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
24437 CFLAGS="$CFLAGS -DTEST_makecontext"
24439 if test "$cross_compiling" = yes; then
24441 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24444 cat >conftest.$ac_ext <<_ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h. */
24452 #include <stdlib.h>
24453 #include <string.h>
24454 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24455 #include <sys/types.h>
24456 #include <signal.h>
24457 #include <unistd.h>
24459 #if defined(TEST_makecontext)
24460 #include <ucontext.h>
24469 static volatile char *handler_addr = (char *)0xDEAD;
24470 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24471 static volatile int handler_done = 0;
24472 void handler(int sig)
24474 char garbage[1024];
24477 for (i = 0; i < 1024; i++)
24479 handler_addr = (char *)&dummy;
24484 #if defined(TEST_makecontext)
24485 static ucontext_t uc_handler;
24486 static ucontext_t uc_main;
24489 char garbage[1024];
24492 for (i = 0; i < 1024; i++)
24494 handler_addr = (char *)&dummy;
24495 swapcontext(&uc_handler, &uc_main);
24499 int main(int argc, char *argv[])
24508 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
24511 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
24513 skaddr = skbuf+sizeof(union alltypes);
24514 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24516 struct sigaction sa;
24517 #if defined(TEST_sigstack)
24518 struct sigstack ss;
24519 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
24522 struct sigaltstack ss;
24524 #if defined(TEST_sigstack)
24525 ss.ss_sp = (void *)(skaddr + sksize);
24527 if (sigstack(&ss, NULL) < 0)
24529 #elif defined(TEST_sigaltstack)
24530 ss.ss_sp = (void *)(skaddr + sksize);
24531 ss.ss_size = sksize;
24533 if (sigaltstack(&ss, NULL) < 0)
24536 memset((void *)&sa, 0, sizeof(struct sigaction));
24537 sa.sa_handler = handler;
24538 sa.sa_flags = SA_ONSTACK;
24539 sigemptyset(&sa.sa_mask);
24540 sigaction(SIGUSR1, &sa, NULL);
24541 kill(getpid(), SIGUSR1);
24542 while (!handler_done)
24546 #if defined(TEST_makecontext)
24548 if (getcontext(&uc_handler) != 0)
24550 uc_handler.uc_link = NULL;
24551 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
24552 uc_handler.uc_stack.ss_size = sksize;
24553 uc_handler.uc_stack.ss_flags = 0;
24554 makecontext(&uc_handler, handler, 1);
24555 swapcontext(&uc_main, &uc_handler);
24558 if (handler_addr == (char *)0xDEAD)
24560 if (handler_addr < skaddr+sksize) {
24561 /* stack was placed into lower area */
24562 if (*(skaddr+sksize) != 'A')
24563 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
24564 sizeof(union alltypes), sizeof(union alltypes));
24566 strcpy(result, "(skaddr)+(sksize),(sksize)");
24569 /* stack was placed into higher area */
24570 if (*(skaddr+sksize*2) != 'A')
24571 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
24573 strcpy(result, "(skaddr),(sksize)");
24575 if ((f = fopen("conftestval", "w")) == NULL)
24577 fprintf(f, "%s\n", result);
24583 rm -f conftest$ac_exeext
24584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24585 (eval $ac_link) 2>&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24590 (eval $ac_try) 2>&5
24592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593 (exit $ac_status); }; }; then
24595 ac_cv_stacksetup_makecontext=`cat conftestval`
24596 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
24599 echo "$as_me: program exited with status $ac_status" >&5
24600 echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24603 ( exit $ac_status )
24605 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24614 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
24615 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
24616 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
24617 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
24618 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
24619 echo "$as_me:$LINENO: result: $type" >&5
24620 echo "${ECHO_T}$type" >&6
24621 if test ".$verbose" = .yes; then
24622 echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
24623 echo "${ECHO_T} $pth_skaddr_makecontext" >&6
24626 if test ".$verbose" = .yes; then
24627 echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
24628 echo "${ECHO_T} $pth_sksize_makecontext" >&6
24634 #########################################
24635 ## Check for libraries extra-dependencies
24639 echo "$as_me:$LINENO: result: " >&5
24640 echo "${ECHO_T}" >&6
24641 echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
24642 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6
24648 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24649 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24650 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24653 ac_check_lib_save_LIBS=$LIBS
24655 cat >conftest.$ac_ext <<_ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h. */
24662 /* Override any gcc2 internal prototype to avoid an error. */
24666 /* We use char because int might match the return type of a gcc2
24667 builtin and then its argument prototype would still apply. */
24668 char gethostbyname ();
24677 rm -f conftest.$ac_objext conftest$ac_exeext
24678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24679 (eval $ac_link) 2>conftest.er1
24681 grep -v '^ *+' conftest.er1 >conftest.err
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } &&
24686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688 (eval $ac_try) 2>&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; } &&
24692 { ac_try='test -s conftest$ac_exeext'
24693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694 (eval $ac_try) 2>&5
24696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697 (exit $ac_status); }; }; then
24698 ac_cv_lib_nsl_gethostbyname=yes
24700 echo "$as_me: failed program was:" >&5
24701 sed 's/^/| /' conftest.$ac_ext >&5
24703 ac_cv_lib_nsl_gethostbyname=no
24705 rm -f conftest.err conftest.$ac_objext \
24706 conftest$ac_exeext conftest.$ac_ext
24707 LIBS=$ac_check_lib_save_LIBS
24709 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24710 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24711 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24712 GRAS_DEP="$GRAS_DEP -lnsl"
24715 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24716 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24717 if test "${ac_cv_lib_socket_connect+set}" = set; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24720 ac_check_lib_save_LIBS=$LIBS
24721 LIBS="-lsocket $LIBS"
24722 cat >conftest.$ac_ext <<_ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h. */
24729 /* Override any gcc2 internal prototype to avoid an error. */
24733 /* We use char because int might match the return type of a gcc2
24734 builtin and then its argument prototype would still apply. */
24744 rm -f conftest.$ac_objext conftest$ac_exeext
24745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24746 (eval $ac_link) 2>conftest.er1
24748 grep -v '^ *+' conftest.er1 >conftest.err
24750 cat conftest.err >&5
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); } &&
24753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755 (eval $ac_try) 2>&5
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); }; } &&
24759 { ac_try='test -s conftest$ac_exeext'
24760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761 (eval $ac_try) 2>&5
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; }; then
24765 ac_cv_lib_socket_connect=yes
24767 echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24770 ac_cv_lib_socket_connect=no
24772 rm -f conftest.err conftest.$ac_objext \
24773 conftest$ac_exeext conftest.$ac_ext
24774 LIBS=$ac_check_lib_save_LIBS
24776 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24777 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24778 if test $ac_cv_lib_socket_connect = yes; then
24779 GRAS_DEP="$GRAS_DEP -lsocket"
24783 echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
24784 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6
24786 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32" ;;
24789 if test "x$GRAS_DEP" = x; then
24790 echo "$as_me:$LINENO: result: none" >&5
24791 echo "${ECHO_T}none" >&6
24793 echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
24794 echo "${ECHO_T}$GRAS_DEP" >&6
24798 ##############################################
24799 ## Enhance maintainer mode and SUBST variables
24800 ## (must be placed after any compilation tests since our overprotective flags
24801 ## let some tests fail)
24803 # Check whether we are doing a regular build or a GRAMINE (minimal) one
24804 # Next line is modified by sed when building gramine source tree
24806 if test x$gramine_mode = xyes
24808 USE_MAINTAINER_MODE=no
24812 if test x$gramine_mode != xno; then
24814 GRAMINE_MODE_FALSE='#'
24816 GRAMINE_MODE_TRUE='#'
24817 GRAMINE_MODE_FALSE=
24822 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24823 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24824 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24825 if test "${enable_maintainer_mode+set}" = set; then
24826 enableval="$enable_maintainer_mode"
24827 USE_MAINTAINER_MODE=$enableval
24829 USE_MAINTAINER_MODE=no
24831 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
24832 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
24835 if test $USE_MAINTAINER_MODE = yes; then
24836 MAINTAINER_MODE_TRUE=
24837 MAINTAINER_MODE_FALSE='#'
24839 MAINTAINER_MODE_TRUE='#'
24840 MAINTAINER_MODE_FALSE=
24843 MAINT=$MAINTAINER_MODE_TRUE
24846 if test x$USE_MAINTAINER_MODE = xyes
24848 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
24849 enable_compile_warnings=yes
24852 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
24853 if test "${enable_compile_warnings+set}" = set; then
24854 enableval="$enable_compile_warnings"
24855 enable_compile_warnings=$enableval
24857 enable_compile_warnings=no
24860 # Check whether --enable-compile-optimizations or --disable-compile-optimizations was given.
24861 if test "${enable_compile_optimizations+set}" = set; then
24862 enableval="$enable_compile_optimizations"
24863 enable_compile_optimizations=$enableval
24865 enable_compile_optimizations=auto
24868 if test "x$cflags_set" != "xyes" ; then
24869 # if user didn't specify CFLAGS explicitely
24871 # AC PROG CC tests whether -g is accepted.
24872 # Cool, but it also tries to set -O2. I don't want it with gcc
24873 saveCFLAGS="$CFLAGS"
24875 case " $saveCFLAGS " in
24876 *-g*) CFLAGS="-g" ;;
24878 case " $saveCFLAGS " in
24879 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
24882 # damn AC PROG CC, why did you set -O??
24886 if test "x$enable_compile_warnings" = "xyes" ; then
24887 echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
24888 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6
24890 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
24891 case " $CFLAGS " in
24893 *) warnCFLAGS="-Wall -Wunused" ;;
24896 ## -W is not all that useful. And it cannot be controlled
24897 ## with individual -Wno-xxx flags, unlike -Wall
24899 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
24900 ## -Wshadow chokes on try{ try{} } constructs
24901 if test "x$enable_compile_warnings" = "xyes"; then
24902 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
24903 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
24904 -Wno-unused-function \
24907 # -Wno-unused-variable -Wno-unused-label
24910 echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
24911 echo "${ECHO_T}$warnCFLAGS" >&6
24912 # placed before since gcc remembers the last one on conflict
24913 CFLAGS="$warnCFLAGS $CFLAGS"
24916 if test "x$enable_compile_optimizations" = "xyes" ||
24917 test "x$enable_compile_optimizations" = "xauto" ; then
24918 echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
24919 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6
24921 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
24922 case " $CFLAGS " in
24924 *) optCFLAGS="$optCFLAGS -O3" ;;
24926 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
24928 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
24929 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
24930 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
24931 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
24932 # isn't propagated enough to desserve an extra check
24934 # Note that the flag didn't exist before gcc 3.0
24935 optCFLAGS="$optCFLAGS -fno-loop-optimize"
24938 echo "$as_me:$LINENO: result: $optCFLAGS" >&5
24939 echo "${ECHO_T}$optCFLAGS" >&6
24940 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
24941 if test "x$cflags_set" != "xyes" ; then
24942 CFLAGS="$optCFLAGS $CFLAGS"
24946 if test x$lt_cv_prog_gnu_ld = xyes ; then
24947 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
24963 #####################
24964 ## Check for programs
24968 echo "$as_me:$LINENO: result: " >&5
24969 echo "${ECHO_T}" >&6
24970 echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
24971 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6
24973 # Extract the first word of "bash", so it can be a program name with args.
24974 set dummy bash; ac_word=$2
24975 echo "$as_me:$LINENO: checking for $ac_word" >&5
24976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24977 if test "${ac_cv_prog_BASH+set}" = set; then
24978 echo $ECHO_N "(cached) $ECHO_C" >&6
24980 if test -n "$BASH"; then
24981 ac_cv_prog_BASH="$BASH" # Let the user override the test.
24983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24984 for as_dir in $PATH
24987 test -z "$as_dir" && as_dir=.
24988 for ac_exec_ext in '' $ac_executable_extensions; do
24989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24990 ac_cv_prog_BASH="`which bash`"
24991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24997 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25000 BASH=$ac_cv_prog_BASH
25001 if test -n "$BASH"; then
25002 echo "$as_me:$LINENO: result: $BASH" >&5
25003 echo "${ECHO_T}$BASH" >&6
25005 echo "$as_me:$LINENO: result: no" >&5
25006 echo "${ECHO_T}no" >&6
25009 WARNING="This file is generated, do not edit"
25013 # Can we rebuild the parsers?
25014 # We really want flex and refuse other lex. So, the parser is portable and
25015 # does not induce extra lib dependency
25016 for ac_prog in flex lex
25018 # Extract the first word of "$ac_prog", so it can be a program name with args.
25019 set dummy $ac_prog; ac_word=$2
25020 echo "$as_me:$LINENO: checking for $ac_word" >&5
25021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25022 if test "${ac_cv_prog_LEX+set}" = set; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 if test -n "$LEX"; then
25026 ac_cv_prog_LEX="$LEX" # Let the user override the test.
25028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25029 for as_dir in $PATH
25032 test -z "$as_dir" && as_dir=.
25033 for ac_exec_ext in '' $ac_executable_extensions; do
25034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25035 ac_cv_prog_LEX="$ac_prog"
25036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25044 LEX=$ac_cv_prog_LEX
25045 if test -n "$LEX"; then
25046 echo "$as_me:$LINENO: result: $LEX" >&5
25047 echo "${ECHO_T}$LEX" >&6
25049 echo "$as_me:$LINENO: result: no" >&5
25050 echo "${ECHO_T}no" >&6
25053 test -n "$LEX" && break
25055 test -n "$LEX" || LEX=":"
25057 if test -z "$LEXLIB"
25059 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
25060 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
25061 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
25062 echo $ECHO_N "(cached) $ECHO_C" >&6
25064 ac_check_lib_save_LIBS=$LIBS
25066 cat >conftest.$ac_ext <<_ACEOF
25069 cat confdefs.h >>conftest.$ac_ext
25070 cat >>conftest.$ac_ext <<_ACEOF
25071 /* end confdefs.h. */
25073 /* Override any gcc2 internal prototype to avoid an error. */
25077 /* We use char because int might match the return type of a gcc2
25078 builtin and then its argument prototype would still apply. */
25088 rm -f conftest.$ac_objext conftest$ac_exeext
25089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25090 (eval $ac_link) 2>conftest.er1
25092 grep -v '^ *+' conftest.er1 >conftest.err
25094 cat conftest.err >&5
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); } &&
25097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; } &&
25103 { ac_try='test -s conftest$ac_exeext'
25104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105 (eval $ac_try) 2>&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; }; then
25109 ac_cv_lib_fl_yywrap=yes
25111 echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25114 ac_cv_lib_fl_yywrap=no
25116 rm -f conftest.err conftest.$ac_objext \
25117 conftest$ac_exeext conftest.$ac_ext
25118 LIBS=$ac_check_lib_save_LIBS
25120 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
25121 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
25122 if test $ac_cv_lib_fl_yywrap = yes; then
25125 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
25126 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
25127 if test "${ac_cv_lib_l_yywrap+set}" = set; then
25128 echo $ECHO_N "(cached) $ECHO_C" >&6
25130 ac_check_lib_save_LIBS=$LIBS
25132 cat >conftest.$ac_ext <<_ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h. */
25139 /* Override any gcc2 internal prototype to avoid an error. */
25143 /* We use char because int might match the return type of a gcc2
25144 builtin and then its argument prototype would still apply. */
25154 rm -f conftest.$ac_objext conftest$ac_exeext
25155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25156 (eval $ac_link) 2>conftest.er1
25158 grep -v '^ *+' conftest.er1 >conftest.err
25160 cat conftest.err >&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); } &&
25163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165 (eval $ac_try) 2>&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; } &&
25169 { ac_try='test -s conftest$ac_exeext'
25170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25171 (eval $ac_try) 2>&5
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); }; }; then
25175 ac_cv_lib_l_yywrap=yes
25177 echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25180 ac_cv_lib_l_yywrap=no
25182 rm -f conftest.err conftest.$ac_objext \
25183 conftest$ac_exeext conftest.$ac_ext
25184 LIBS=$ac_check_lib_save_LIBS
25186 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
25187 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
25188 if test $ac_cv_lib_l_yywrap = yes; then
25196 if test "x$LEX" != "x:"; then
25197 echo "$as_me:$LINENO: checking lex output file root" >&5
25198 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
25199 if test "${ac_cv_prog_lex_root+set}" = set; then
25200 echo $ECHO_N "(cached) $ECHO_C" >&6
25202 # The minimal lex program is just a single line: %%. But some broken lexes
25203 # (Solaris, I think it was) want two %% lines, so accommodate them.
25204 cat >conftest.l <<_ACEOF
25208 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
25209 (eval $LEX conftest.l) 2>&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }
25213 if test -f lex.yy.c; then
25214 ac_cv_prog_lex_root=lex.yy
25215 elif test -f lexyy.c; then
25216 ac_cv_prog_lex_root=lexyy
25218 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25219 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25220 { (exit 1); exit 1; }; }
25223 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25224 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
25226 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25228 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25229 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
25230 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
25233 # POSIX says lex can declare yytext either as a pointer or an array; the
25234 # default is implementation-dependent. Figure out which it is, since
25235 # not all implementations provide the %pointer and %array declarations.
25236 ac_cv_prog_lex_yytext_pointer=no
25237 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
25239 LIBS="$LIBS $LEXLIB"
25240 cat >conftest.$ac_ext <<_ACEOF
25241 `cat $LEX_OUTPUT_ROOT.c`
25243 rm -f conftest.$ac_objext conftest$ac_exeext
25244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25245 (eval $ac_link) 2>conftest.er1
25247 grep -v '^ *+' conftest.er1 >conftest.err
25249 cat conftest.err >&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } &&
25252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254 (eval $ac_try) 2>&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); }; } &&
25258 { ac_try='test -s conftest$ac_exeext'
25259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25260 (eval $ac_try) 2>&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); }; }; then
25264 ac_cv_prog_lex_yytext_pointer=yes
25266 echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25270 rm -f conftest.err conftest.$ac_objext \
25271 conftest$ac_exeext conftest.$ac_ext
25273 rm -f "${LEX_OUTPUT_ROOT}.c"
25276 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25277 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
25278 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25280 cat >>confdefs.h <<\_ACEOF
25281 #define YYTEXT_POINTER 1
25288 if test "$LEX" != flex; then
25289 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25290 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25291 LEX=${am_missing_run}flex
25295 if test "x2.5.30" != "x" ; then
25296 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25298 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25299 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25300 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25302 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25303 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25304 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25306 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25307 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
25308 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25310 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25311 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25312 LEX=${am_missing_run}flex
25316 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25317 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25323 # Can we rebuild the xml-lexers from the XML specification?
25324 # if not, simply touch the flex source files (which are distributed in
25325 # tarballs even if generated by flexml) and hope for the best.
25326 # Extract the first word of "flexml", so it can be a program name with args.
25327 set dummy flexml; ac_word=$2
25328 echo "$as_me:$LINENO: checking for $ac_word" >&5
25329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25330 if test "${ac_cv_prog_FLEXML+set}" = set; then
25331 echo $ECHO_N "(cached) $ECHO_C" >&6
25333 if test -n "$FLEXML"; then
25334 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25337 for as_dir in $PATH
25340 test -z "$as_dir" && as_dir=.
25341 for ac_exec_ext in '' $ac_executable_extensions; do
25342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25343 ac_cv_prog_FLEXML="`which flexml`"
25344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25350 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25353 FLEXML=$ac_cv_prog_FLEXML
25354 if test -n "$FLEXML"; then
25355 echo "$as_me:$LINENO: result: $FLEXML" >&5
25356 echo "${ECHO_T}$FLEXML" >&6
25358 echo "$as_me:$LINENO: result: no" >&5
25359 echo "${ECHO_T}no" >&6
25364 if test x$FLEXML != xNOTFOUND; then
25366 HAVE_FLEXML_FALSE='#'
25368 HAVE_FLEXML_TRUE='#'
25373 if test x$USE_MAINTAINER_MODE = xyes
25375 # Check for doxygen when in maintainer mode since dist* targets fail
25377 # Extract the first word of "doxygen", so it can be a program name with args.
25378 set dummy doxygen; ac_word=$2
25379 echo "$as_me:$LINENO: checking for $ac_word" >&5
25380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25381 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25386 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25390 for as_dir in $PATH
25393 test -z "$as_dir" && as_dir=.
25394 for ac_exec_ext in '' $ac_executable_extensions; do
25395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25396 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25403 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25407 DOXYGEN=$ac_cv_path_DOXYGEN
25409 if test -n "$DOXYGEN"; then
25410 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25411 echo "${ECHO_T}$DOXYGEN" >&6
25413 echo "$as_me:$LINENO: result: no" >&5
25414 echo "${ECHO_T}no" >&6
25417 if test x$DOXYGEN = x ; then
25418 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
25419 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
25420 { (exit 1); exit 1; }; }
25424 # Can we extract really usable backtraces? (also need the popen function)
25425 # Extract the first word of "addr2line", so it can be a program name with args.
25426 set dummy addr2line; ac_word=$2
25427 echo "$as_me:$LINENO: checking for $ac_word" >&5
25428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25429 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
25430 echo $ECHO_N "(cached) $ECHO_C" >&6
25434 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
25437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25438 for as_dir in $PATH
25441 test -z "$as_dir" && as_dir=.
25442 for ac_exec_ext in '' $ac_executable_extensions; do
25443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25444 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
25445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25454 ADDR2LINE=$ac_cv_path_ADDR2LINE
25456 if test -n "$ADDR2LINE"; then
25457 echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
25458 echo "${ECHO_T}$ADDR2LINE" >&6
25460 echo "$as_me:$LINENO: result: no" >&5
25461 echo "${ECHO_T}no" >&6
25464 if test x$ADDR2LINE != x ; then
25466 cat >>confdefs.h <<_ACEOF
25467 #define ADDR2LINE "$ADDR2LINE"
25473 # Can we make status line about the compilation result?
25474 # Extract the first word of "md5sum", so it can be a program name with args.
25475 set dummy md5sum; ac_word=$2
25476 echo "$as_me:$LINENO: checking for $ac_word" >&5
25477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25478 if test "${ac_cv_prog_MD5SUM+set}" = set; then
25479 echo $ECHO_N "(cached) $ECHO_C" >&6
25481 if test -n "$MD5SUM"; then
25482 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
25484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25485 for as_dir in $PATH
25488 test -z "$as_dir" && as_dir=.
25489 for ac_exec_ext in '' $ac_executable_extensions; do
25490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25491 ac_cv_prog_MD5SUM="`which md5sum`"
25492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25500 MD5SUM=$ac_cv_prog_MD5SUM
25501 if test -n "$MD5SUM"; then
25502 echo "$as_me:$LINENO: result: $MD5SUM" >&5
25503 echo "${ECHO_T}$MD5SUM" >&6
25505 echo "$as_me:$LINENO: result: no" >&5
25506 echo "${ECHO_T}no" >&6
25509 if test x$MD5SUM != xno ; then
25510 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
25511 xargs cat| $MD5SUM | sed 's/ .*$//'`
25513 build_version="no_md5sum_binary"
25515 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
25518 ###################
25519 ## Makes the output
25524 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
25525 # src/amok/Makefile
25528 echo "$as_me:$LINENO: result: " >&5
25529 echo "${ECHO_T}" >&6
25530 echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
25531 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6
25534 # Core of the libraries
25536 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
25539 # Tools being embeeded in gramine (stub generator)
25540 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile"
25543 # GRAMINE_CUT_BEGIN
25545 # Tools NOT being embeeded in gramine
25546 ac_config_files="$ac_config_files tools/graspe-slave"
25551 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
25555 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
25560 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/run_msg_test examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/ping/test_sg examples/gras/ping/test_rl examples/gras/rpc/Makefile examples/gras/rpc/test_sg examples/gras/rpc/test_rl examples/gras/timer/Makefile examples/gras/timer/test_sg examples/gras/timer/test_rl examples/gras/chrono/Makefile examples/gras/chrono/test_sg examples/gras/chrono/test_rl examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl examples/gras/mmrpc/Makefile examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl examples/gras/pmm/Makefile examples/gras/pmm/test_sg examples/gras/pmm/test_rl examples/gras/all2all/Makefile examples/gras/all2all/test_sg examples/gras/all2all/test_rl examples/gras/p2p/Makefile examples/gras/p2p/chord/Makefile examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl examples/gras/p2p/can/Makefile examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
25563 # examples/gras/chord/test_sg examples/gras/chord/test_rl \
25564 # examples/gras/pastry/test_sg
25568 # examples/gras/saturate/Makefile examples/gras/saturate/test_sg
25569 # examples/gras/alnem/Makefile examples/gras/alnem/test_sg
25574 cat >confcache <<\_ACEOF
25575 # This file is a shell script that caches the results of configure
25576 # tests run on this system so they can be shared between configure
25577 # scripts and configure runs, see configure's option --config-cache.
25578 # It is not useful on other systems. If it contains results you don't
25579 # want to keep, you may remove or edit it.
25581 # config.status only pays attention to the cache file if you give it
25582 # the --recheck option to rerun configure.
25584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25586 # following values.
25590 # The following way of writing the cache mishandles newlines in values,
25591 # but we know of no workaround that is simple, portable, and efficient.
25592 # So, don't put newlines in cache variables' values.
25593 # Ultrix sh set writes to stderr and can't be redirected directly,
25594 # and sets the high bit in the cache file unless we assign to the vars.
25597 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25599 # `set' does not quote correctly, so add quotes (double-quote
25600 # substitution turns \\\\ into \\, and sed turns \\ into \).
25603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25606 # `set' quotes correctly as required by POSIX, so do not add quotes.
25608 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25617 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25619 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25620 if test -w $cache_file; then
25621 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25622 cat confcache >$cache_file
25624 echo "not updating unwritable cache $cache_file"
25629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25630 # Let make expand exec_prefix.
25631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25633 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25634 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25635 # trailing colons and then remove the whole line if VPATH becomes empty
25636 # (actually we leave an empty line to preserve line numbers).
25637 if test "x$srcdir" = x.; then
25638 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25639 s/:*\$(srcdir):*/:/;
25640 s/:*\${srcdir}:*/:/;
25642 s/^\([^=]*=[ ]*\):*/\1/;
25648 DEFS=-DHAVE_CONFIG_H
25652 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25653 # 1. Remove the extension, and $U if already installed.
25654 ac_i=`echo "$ac_i" |
25655 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25657 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25658 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25660 LIBOBJS=$ac_libobjs
25662 LTLIBOBJS=$ac_ltlibobjs
25665 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25666 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25667 Usually this means the macro was only invoked conditionally." >&5
25668 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25669 Usually this means the macro was only invoked conditionally." >&2;}
25670 { (exit 1); exit 1; }; }
25672 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25673 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25674 Usually this means the macro was only invoked conditionally." >&5
25675 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25676 Usually this means the macro was only invoked conditionally." >&2;}
25677 { (exit 1); exit 1; }; }
25679 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25680 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25681 Usually this means the macro was only invoked conditionally." >&5
25682 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25683 Usually this means the macro was only invoked conditionally." >&2;}
25684 { (exit 1); exit 1; }; }
25686 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25687 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25688 Usually this means the macro was only invoked conditionally." >&5
25689 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25690 Usually this means the macro was only invoked conditionally." >&2;}
25691 { (exit 1); exit 1; }; }
25693 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
25694 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
25695 Usually this means the macro was only invoked conditionally." >&5
25696 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
25697 Usually this means the macro was only invoked conditionally." >&2;}
25698 { (exit 1); exit 1; }; }
25700 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25701 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25702 Usually this means the macro was only invoked conditionally." >&5
25703 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25704 Usually this means the macro was only invoked conditionally." >&2;}
25705 { (exit 1); exit 1; }; }
25707 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
25708 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
25709 Usually this means the macro was only invoked conditionally." >&5
25710 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
25711 Usually this means the macro was only invoked conditionally." >&2;}
25712 { (exit 1); exit 1; }; }
25715 : ${CONFIG_STATUS=./config.status}
25716 ac_clean_files_save=$ac_clean_files
25717 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25718 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25719 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25720 cat >$CONFIG_STATUS <<_ACEOF
25722 # Generated by $as_me.
25723 # Run this file to recreate the current configuration.
25724 # Compiler output produced by configure, useful for debugging
25725 # configure, is in config.log if it exists.
25728 ac_cs_recheck=false
25730 SHELL=\${CONFIG_SHELL-$SHELL}
25733 cat >>$CONFIG_STATUS <<\_ACEOF
25734 ## --------------------- ##
25735 ## M4sh Initialization. ##
25736 ## --------------------- ##
25738 # Be Bourne compatible
25739 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25742 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25743 # is contrary to our usage. Disable this feature.
25744 alias -g '${1+"$@"}'='"$@"'
25745 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25748 DUALCASE=1; export DUALCASE # for MKS sh
25750 # Support unset when possible.
25751 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25758 # Work around bugs in pre-3.0 UWIN ksh.
25759 $as_unset ENV MAIL MAILPATH
25766 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25767 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25768 LC_TELEPHONE LC_TIME
25770 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25771 eval $as_var=C; export $as_var
25777 # Required to use basename.
25778 if expr a : '\(a\)' >/dev/null 2>&1; then
25784 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25785 as_basename=basename
25791 # Name of the executable.
25792 as_me=`$as_basename "$0" ||
25793 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25794 X"$0" : 'X\(//\)$' \| \
25795 X"$0" : 'X\(/\)$' \| \
25796 . : '\(.\)' 2>/dev/null ||
25798 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25799 /^X\/\(\/\/\)$/{ s//\1/; q; }
25800 /^X\/\(\/\).*/{ s//\1/; q; }
25804 # PATH needs CR, and LINENO needs CR and PATH.
25805 # Avoid depending upon Character Ranges.
25806 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25807 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25808 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25809 as_cr_digits='0123456789'
25810 as_cr_alnum=$as_cr_Letters$as_cr_digits
25812 # The user is always right.
25813 if test "${PATH_SEPARATOR+set}" != set; then
25814 echo "#! /bin/sh" >conf$$.sh
25815 echo "exit 0" >>conf$$.sh
25817 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25826 as_lineno_1=$LINENO
25827 as_lineno_2=$LINENO
25828 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25829 test "x$as_lineno_1" != "x$as_lineno_2" &&
25830 test "x$as_lineno_3" = "x$as_lineno_2" || {
25831 # Find who we are. Look in the path if we contain no path at all
25834 *[\\/]* ) as_myself=$0 ;;
25835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25836 for as_dir in $PATH
25839 test -z "$as_dir" && as_dir=.
25840 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25845 # We did not find ourselves, most probably we were run as `sh COMMAND'
25846 # in which case we are not to be found in the path.
25847 if test "x$as_myself" = x; then
25850 if test ! -f "$as_myself"; then
25851 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25852 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25853 { (exit 1); exit 1; }; }
25855 case $CONFIG_SHELL in
25857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25858 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25861 test -z "$as_dir" && as_dir=.
25862 for as_base in sh bash ksh sh5; do
25865 if ("$as_dir/$as_base" -c '
25866 as_lineno_1=$LINENO
25867 as_lineno_2=$LINENO
25868 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25869 test "x$as_lineno_1" != "x$as_lineno_2" &&
25870 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25871 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25872 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25873 CONFIG_SHELL=$as_dir/$as_base
25874 export CONFIG_SHELL
25875 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25883 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25884 # uniformly replaced by the line number. The first 'sed' inserts a
25885 # line-number line before each line; the second 'sed' does the real
25886 # work. The second script uses 'N' to pair each line-number line
25887 # with the numbered line, and appends trailing '-' during
25888 # substitution so that $LINENO is not a special case at line end.
25889 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25890 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25891 sed '=' <$as_myself |
25896 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25899 s,^['$as_cr_digits']*\n,,
25900 ' >$as_me.lineno &&
25901 chmod +x $as_me.lineno ||
25902 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25903 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25904 { (exit 1); exit 1; }; }
25906 # Don't try to exec as it changes $[0], causing all sort of problems
25907 # (the dirname of $[0] is not the place where we might find the
25908 # original and so on. Autoconf is especially sensible to this).
25910 # Exit status is that of the last command.
25915 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25916 *c*,-n*) ECHO_N= ECHO_C='
25918 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25919 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25922 if expr a : '\(a\)' >/dev/null 2>&1; then
25928 rm -f conf$$ conf$$.exe conf$$.file
25930 if ln -s conf$$.file conf$$ 2>/dev/null; then
25931 # We could just check for DJGPP; but this test a) works b) is more generic
25932 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25933 if test -f conf$$.exe; then
25934 # Don't use ln at all; we don't have any links
25939 elif ln conf$$.file conf$$ 2>/dev/null; then
25944 rm -f conf$$ conf$$.exe conf$$.file
25946 if mkdir -p . 2>/dev/null; then
25949 test -d ./-p && rmdir ./-p
25953 as_executable_p="test -f"
25955 # Sed expression to map a string onto a valid CPP name.
25956 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25958 # Sed expression to map a string onto a valid variable name.
25959 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25963 # We need space, tab and new line, in precisely that order.
25973 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25974 # report actual input values of CONFIG_FILES etc. instead of their
25975 # values after options handling. Logging --version etc. is OK.
25979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25980 ## Running $as_me. ##
25985 This file was extended by simgrid $as_me 3.1.1-cvs, which was
25986 generated by GNU Autoconf 2.59. Invocation command line was
25988 CONFIG_FILES = $CONFIG_FILES
25989 CONFIG_HEADERS = $CONFIG_HEADERS
25990 CONFIG_LINKS = $CONFIG_LINKS
25991 CONFIG_COMMANDS = $CONFIG_COMMANDS
25995 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25999 # Files that config.status was made for.
26000 if test -n "$ac_config_files"; then
26001 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26004 if test -n "$ac_config_headers"; then
26005 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26008 if test -n "$ac_config_links"; then
26009 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26012 if test -n "$ac_config_commands"; then
26013 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26016 cat >>$CONFIG_STATUS <<\_ACEOF
26019 \`$as_me' instantiates files from templates according to the
26020 current configuration.
26022 Usage: $0 [OPTIONS] [FILE]...
26024 -h, --help print this help, then exit
26025 -V, --version print version number, then exit
26026 -q, --quiet do not print progress messages
26027 -d, --debug don't remove temporary files
26028 --recheck update $as_me by reconfiguring in the same conditions
26029 --file=FILE[:TEMPLATE]
26030 instantiate the configuration file FILE
26031 --header=FILE[:TEMPLATE]
26032 instantiate the configuration header FILE
26034 Configuration files:
26037 Configuration headers:
26040 Configuration commands:
26043 Report bugs to <bug-autoconf@gnu.org>."
26046 cat >>$CONFIG_STATUS <<_ACEOF
26048 simgrid config.status 3.1.1-cvs
26049 configured by $0, generated by GNU Autoconf 2.59,
26050 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26052 Copyright (C) 2003 Free Software Foundation, Inc.
26053 This config.status script is free software; the Free Software Foundation
26054 gives unlimited permission to copy, distribute and modify it."
26059 cat >>$CONFIG_STATUS <<\_ACEOF
26060 # If no file are specified by the user, then we need to provide default
26061 # value. By we need to know if files were specified by the user.
26067 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26068 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26076 *) # This is not an option, so the user has probably given explicit
26079 ac_need_defaults=false;;
26083 # Handling of the options.
26085 cat >>$CONFIG_STATUS <<\_ACEOF
26086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26088 --version | --vers* | -V )
26089 echo "$ac_cs_version"; exit 0 ;;
26091 # Conflict between --help and --header
26092 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26093 Try \`$0 --help' for more information." >&5
26094 echo "$as_me: error: ambiguous option: $1
26095 Try \`$0 --help' for more information." >&2;}
26096 { (exit 1); exit 1; }; };;
26097 --help | --hel | -h )
26098 echo "$ac_cs_usage"; exit 0 ;;
26099 --debug | --d* | -d )
26101 --file | --fil | --fi | --f )
26103 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26104 ac_need_defaults=false;;
26105 --header | --heade | --head | --hea )
26107 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26108 ac_need_defaults=false;;
26109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26110 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26113 # This is an error.
26114 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26115 Try \`$0 --help' for more information." >&5
26116 echo "$as_me: error: unrecognized option: $1
26117 Try \`$0 --help' for more information." >&2;}
26118 { (exit 1); exit 1; }; } ;;
26120 *) ac_config_targets="$ac_config_targets $1" ;;
26126 ac_configure_extra_args=
26128 if $ac_cs_silent; then
26130 ac_configure_extra_args="$ac_configure_extra_args --silent"
26134 cat >>$CONFIG_STATUS <<_ACEOF
26135 if \$ac_cs_recheck; then
26136 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26137 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26142 cat >>$CONFIG_STATUS <<_ACEOF
26144 # INIT-COMMANDS section.
26147 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26153 cat >>$CONFIG_STATUS <<\_ACEOF
26154 for ac_config_target in $ac_config_targets
26156 case "$ac_config_target" in
26157 # Handling of arguments.
26158 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26159 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26160 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26161 "src/ucontext_stack.h" ) CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26162 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26163 "tools/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26164 "tools/graspe-slave" ) CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26165 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26166 "testsuite/run_tests" ) CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26167 "testsuite/gras/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26168 "testsuite/gras/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26169 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26170 "doc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26171 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26172 "examples/msg/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26173 "examples/msg/run_msg_test" ) CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26174 "examples/simdag/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26175 "examples/simdag/test_simdag" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26176 "examples/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26177 "examples/gras/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26178 "examples/gras/ping/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26179 "examples/gras/ping/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26180 "examples/gras/rpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26181 "examples/gras/rpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26182 "examples/gras/rpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26183 "examples/gras/timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26184 "examples/gras/timer/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26185 "examples/gras/timer/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26186 "examples/gras/chrono/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26187 "examples/gras/chrono/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26188 "examples/gras/chrono/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26189 "examples/gras/mutual_exclusion/simple_token/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26190 "examples/gras/mutual_exclusion/simple_token/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26191 "examples/gras/mutual_exclusion/simple_token/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26192 "examples/gras/mmrpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26193 "examples/gras/mmrpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26194 "examples/gras/mmrpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26195 "examples/gras/pmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26196 "examples/gras/pmm/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26197 "examples/gras/pmm/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26198 "examples/gras/all2all/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26199 "examples/gras/all2all/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26200 "examples/gras/all2all/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26201 "examples/gras/p2p/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26202 "examples/gras/p2p/chord/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26203 "examples/gras/p2p/chord/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26204 "examples/gras/p2p/chord/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26205 "examples/gras/p2p/can/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26206 "examples/gras/p2p/can/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26207 "examples/gras/p2p/can/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26208 "examples/amok/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26209 "examples/amok/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26210 "examples/amok/bandwidth/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26211 "examples/amok/bandwidth/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26212 "examples/amok/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26213 "examples/amok/saturate/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26214 "examples/amok/saturate/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26215 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26216 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26217 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26218 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26219 { (exit 1); exit 1; }; };;
26223 # If the user did not use the arguments to specify the items to instantiate,
26224 # then the envvar interface is used. Set only those that are not.
26225 # We use the long form for the default assignment because of an extremely
26226 # bizarre bug on SunOS 4.1.3.
26227 if $ac_need_defaults; then
26228 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26229 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26230 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26233 # Have a temporary directory for convenience. Make it in the build tree
26234 # simply because there is no reason to put it here, and in addition,
26235 # creating and moving files from /tmp can sometimes cause problems.
26236 # Create a temporary directory, and hook for its removal unless debugging.
26239 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26240 trap '{ (exit 1); exit 1; }' 1 2 13 15
26243 # Create a (secure) tmp directory for tmp files.
26246 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26247 test -n "$tmp" && test -d "$tmp"
26250 tmp=./confstat$$-$RANDOM
26251 (umask 077 && mkdir $tmp)
26254 echo "$me: cannot create a temporary directory in ." >&2
26255 { (exit 1); exit 1; }
26260 cat >>$CONFIG_STATUS <<_ACEOF
26263 # CONFIG_FILES section.
26266 # No need to generate the scripts if there are no CONFIG_FILES.
26267 # This happens for instance when ./config.status config.h
26268 if test -n "\$CONFIG_FILES"; then
26269 # Protect against being on the right side of a sed subst in config.status.
26270 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26271 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26272 s,@SHELL@,$SHELL,;t t
26273 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26274 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26275 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26276 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26277 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26278 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26279 s,@exec_prefix@,$exec_prefix,;t t
26280 s,@prefix@,$prefix,;t t
26281 s,@program_transform_name@,$program_transform_name,;t t
26282 s,@bindir@,$bindir,;t t
26283 s,@sbindir@,$sbindir,;t t
26284 s,@libexecdir@,$libexecdir,;t t
26285 s,@datadir@,$datadir,;t t
26286 s,@sysconfdir@,$sysconfdir,;t t
26287 s,@sharedstatedir@,$sharedstatedir,;t t
26288 s,@localstatedir@,$localstatedir,;t t
26289 s,@libdir@,$libdir,;t t
26290 s,@includedir@,$includedir,;t t
26291 s,@oldincludedir@,$oldincludedir,;t t
26292 s,@infodir@,$infodir,;t t
26293 s,@mandir@,$mandir,;t t
26294 s,@build_alias@,$build_alias,;t t
26295 s,@host_alias@,$host_alias,;t t
26296 s,@target_alias@,$target_alias,;t t
26297 s,@DEFS@,$DEFS,;t t
26298 s,@ECHO_C@,$ECHO_C,;t t
26299 s,@ECHO_N@,$ECHO_N,;t t
26300 s,@ECHO_T@,$ECHO_T,;t t
26301 s,@LIBS@,$LIBS,;t t
26302 s,@build@,$build,;t t
26303 s,@build_cpu@,$build_cpu,;t t
26304 s,@build_vendor@,$build_vendor,;t t
26305 s,@build_os@,$build_os,;t t
26306 s,@host@,$host,;t t
26307 s,@host_cpu@,$host_cpu,;t t
26308 s,@host_vendor@,$host_vendor,;t t
26309 s,@host_os@,$host_os,;t t
26310 s,@target@,$target,;t t
26311 s,@target_cpu@,$target_cpu,;t t
26312 s,@target_vendor@,$target_vendor,;t t
26313 s,@target_os@,$target_os,;t t
26314 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26315 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26316 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26317 s,@CYGPATH_W@,$CYGPATH_W,;t t
26318 s,@PACKAGE@,$PACKAGE,;t t
26319 s,@VERSION@,$VERSION,;t t
26320 s,@ACLOCAL@,$ACLOCAL,;t t
26321 s,@AUTOCONF@,$AUTOCONF,;t t
26322 s,@AUTOMAKE@,$AUTOMAKE,;t t
26323 s,@AUTOHEADER@,$AUTOHEADER,;t t
26324 s,@MAKEINFO@,$MAKEINFO,;t t
26325 s,@install_sh@,$install_sh,;t t
26326 s,@STRIP@,$STRIP,;t t
26327 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26328 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26329 s,@mkdir_p@,$mkdir_p,;t t
26331 s,@SET_MAKE@,$SET_MAKE,;t t
26332 s,@am__leading_dot@,$am__leading_dot,;t t
26333 s,@AMTAR@,$AMTAR,;t t
26334 s,@am__tar@,$am__tar,;t t
26335 s,@am__untar@,$am__untar,;t t
26337 s,@CFLAGS@,$CFLAGS,;t t
26338 s,@LDFLAGS@,$LDFLAGS,;t t
26339 s,@CPPFLAGS@,$CPPFLAGS,;t t
26340 s,@ac_ct_CC@,$ac_ct_CC,;t t
26341 s,@EXEEXT@,$EXEEXT,;t t
26342 s,@OBJEXT@,$OBJEXT,;t t
26343 s,@DEPDIR@,$DEPDIR,;t t
26344 s,@am__include@,$am__include,;t t
26345 s,@am__quote@,$am__quote,;t t
26346 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26347 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26348 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26349 s,@CCDEPMODE@,$CCDEPMODE,;t t
26350 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26351 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26352 s,@EGREP@,$EGREP,;t t
26353 s,@LN_S@,$LN_S,;t t
26354 s,@ECHO@,$ECHO,;t t
26356 s,@ac_ct_AR@,$ac_ct_AR,;t t
26357 s,@RANLIB@,$RANLIB,;t t
26358 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26359 s,@DLLTOOL@,$DLLTOOL,;t t
26360 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26362 s,@ac_ct_AS@,$ac_ct_AS,;t t
26363 s,@OBJDUMP@,$OBJDUMP,;t t
26364 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
26367 s,@CXXFLAGS@,$CXXFLAGS,;t t
26368 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26369 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26370 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26371 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26372 s,@CXXCPP@,$CXXCPP,;t t
26374 s,@FFLAGS@,$FFLAGS,;t t
26375 s,@ac_ct_F77@,$ac_ct_F77,;t t
26376 s,@LIBTOOL@,$LIBTOOL,;t t
26377 s,@LIBOBJS@,$LIBOBJS,;t t
26378 s,@PTH_STACK_GROWTH@,$PTH_STACK_GROWTH,;t t
26379 s,@pth_skaddr_makecontext@,$pth_skaddr_makecontext,;t t
26380 s,@pth_sksize_makecontext@,$pth_sksize_makecontext,;t t
26381 s,@SIMGRID_DEP@,$SIMGRID_DEP,;t t
26382 s,@GRAS_DEP@,$GRAS_DEP,;t t
26383 s,@GRAMINE_MODE_TRUE@,$GRAMINE_MODE_TRUE,;t t
26384 s,@GRAMINE_MODE_FALSE@,$GRAMINE_MODE_FALSE,;t t
26385 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26386 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26387 s,@MAINT@,$MAINT,;t t
26388 s,@LD_DYNAMIC_FLAGS@,$LD_DYNAMIC_FLAGS,;t t
26389 s,@abs_builddir@,$abs_builddir,;t t
26390 s,@abs_srcdir@,$abs_srcdir,;t t
26391 s,@abs_top_builddir@,$abs_top_builddir,;t t
26392 s,@abs_top_srcdir@,$abs_top_srcdir,;t t
26393 s,@BASH@,$BASH,;t t
26394 s,@WARNING@,$WARNING,;t t
26396 s,@LEXLIB@,$LEXLIB,;t t
26397 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26398 s,@FLEXML@,$FLEXML,;t t
26399 s,@HAVE_FLEXML_TRUE@,$HAVE_FLEXML_TRUE,;t t
26400 s,@HAVE_FLEXML_FALSE@,$HAVE_FLEXML_FALSE,;t t
26401 s,@DOXYGEN@,$DOXYGEN,;t t
26402 s,@ADDR2LINE@,$ADDR2LINE,;t t
26403 s,@ac_configure_args@,$ac_configure_args,;t t
26404 s,@MD5SUM@,$MD5SUM,;t t
26405 s,@build_id@,$build_id,;t t
26406 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26411 cat >>$CONFIG_STATUS <<\_ACEOF
26412 # Split the substitutions into bite-sized pieces for seds with
26413 # small command number limits, like on Digital OSF/1 and HP-UX.
26414 ac_max_sed_lines=48
26415 ac_sed_frag=1 # Number of current file.
26416 ac_beg=1 # First line for current file.
26417 ac_end=$ac_max_sed_lines # Line after last line for current file.
26420 while $ac_more_lines; do
26421 if test $ac_beg -gt 1; then
26422 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26424 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26426 if test ! -s $tmp/subs.frag; then
26427 ac_more_lines=false
26429 # The purpose of the label and of the branching condition is to
26430 # speed up the sed processing (if there are no `@' at all, there
26431 # is no need to browse any of the substitutions).
26432 # These are the two extra sed commands mentioned above.
26434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26435 if test -z "$ac_sed_cmds"; then
26436 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26438 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26440 ac_sed_frag=`expr $ac_sed_frag + 1`
26442 ac_end=`expr $ac_end + $ac_max_sed_lines`
26445 if test -z "$ac_sed_cmds"; then
26448 fi # test -n "$CONFIG_FILES"
26451 cat >>$CONFIG_STATUS <<\_ACEOF
26452 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26455 - | *:- | *:-:* ) # input from stdin
26457 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26459 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26461 * ) ac_file_in=$ac_file.in ;;
26464 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26465 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26467 X"$ac_file" : 'X\(//\)[^/]' \| \
26468 X"$ac_file" : 'X\(//\)$' \| \
26469 X"$ac_file" : 'X\(/\)' \| \
26470 . : '\(.\)' 2>/dev/null ||
26472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26474 /^X\(\/\/\)$/{ s//\1/; q; }
26475 /^X\(\/\).*/{ s//\1/; q; }
26477 { if $as_mkdir_p; then
26482 while test ! -d "$as_dir"; do
26483 as_dirs="$as_dir $as_dirs"
26484 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26486 X"$as_dir" : 'X\(//\)[^/]' \| \
26487 X"$as_dir" : 'X\(//\)$' \| \
26488 X"$as_dir" : 'X\(/\)' \| \
26489 . : '\(.\)' 2>/dev/null ||
26491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26493 /^X\(\/\/\)$/{ s//\1/; q; }
26494 /^X\(\/\).*/{ s//\1/; q; }
26497 test ! -n "$as_dirs" || mkdir $as_dirs
26498 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26499 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26500 { (exit 1); exit 1; }; }; }
26504 if test "$ac_dir" != .; then
26505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26506 # A "../" for each directory in $ac_dir_suffix.
26507 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26509 ac_dir_suffix= ac_top_builddir=
26513 .) # No --srcdir option. We are building in place.
26515 if test -z "$ac_top_builddir"; then
26518 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26520 [\\/]* | ?:[\\/]* ) # Absolute path.
26521 ac_srcdir=$srcdir$ac_dir_suffix;
26522 ac_top_srcdir=$srcdir ;;
26523 *) # Relative path.
26524 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26525 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26528 # Do not use `cd foo && pwd` to compute absolute paths, because
26529 # the directories may not exist.
26531 .) ac_abs_builddir="$ac_dir";;
26534 .) ac_abs_builddir=`pwd`;;
26535 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26536 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26539 case $ac_abs_builddir in
26540 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26542 case ${ac_top_builddir}. in
26543 .) ac_abs_top_builddir=$ac_abs_builddir;;
26544 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26545 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26548 case $ac_abs_builddir in
26549 .) ac_abs_srcdir=$ac_srcdir;;
26552 .) ac_abs_srcdir=$ac_abs_builddir;;
26553 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26554 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26557 case $ac_abs_builddir in
26558 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26560 case $ac_top_srcdir in
26561 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26562 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26563 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26569 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26570 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26573 # Let's still pretend it is `configure' which instantiates (i.e., don't
26574 # use $as_me), people would be surprised to read:
26575 # /* config.h. Generated by config.status. */
26576 if test x"$ac_file" = x-; then
26579 configure_input="$ac_file. "
26581 configure_input=$configure_input"Generated from `echo $ac_file_in |
26582 sed 's,.*/,,'` by configure."
26584 # First look for the input files in the build tree, otherwise in the
26586 ac_file_inputs=`IFS=:
26587 for f in $ac_file_in; do
26589 -) echo $tmp/stdin ;;
26591 # Absolute (can't be DOS-style, as IFS=:)
26592 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26593 echo "$as_me: error: cannot find input file: $f" >&2;}
26594 { (exit 1); exit 1; }; }
26597 if test -f "$f"; then
26600 elif test -f "$srcdir/$f"; then
26605 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26606 echo "$as_me: error: cannot find input file: $f" >&2;}
26607 { (exit 1); exit 1; }; }
26610 done` || { (exit 1); exit 1; }
26612 if test x"$ac_file" != x-; then
26613 { echo "$as_me:$LINENO: creating $ac_file" >&5
26614 echo "$as_me: creating $ac_file" >&6;}
26618 cat >>$CONFIG_STATUS <<_ACEOF
26622 cat >>$CONFIG_STATUS <<\_ACEOF
26624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26625 s,@configure_input@,$configure_input,;t t
26626 s,@srcdir@,$ac_srcdir,;t t
26627 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26628 s,@top_srcdir@,$ac_top_srcdir,;t t
26629 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26630 s,@builddir@,$ac_builddir,;t t
26631 s,@abs_builddir@,$ac_abs_builddir,;t t
26632 s,@top_builddir@,$ac_top_builddir,;t t
26633 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26634 s,@INSTALL@,$ac_INSTALL,;t t
26635 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26637 if test x"$ac_file" != x-; then
26638 mv $tmp/out $ac_file
26644 # Run the commands associated with the file.
26646 tools/graspe-slave )
26648 tools/graspe-slave tools/graspe-master \
26650 test -e $file && chmod +x $file; \
26653 testsuite/Makefile )
26655 testsuite/run_tests \
26656 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26658 test -e $file && chmod +x $file; \
26661 testsuite/run_tests )
26663 testsuite/run_tests \
26664 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26666 test -e $file && chmod +x $file; \
26669 testsuite/gras/trp_tcp_usage )
26671 testsuite/run_tests \
26672 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26674 test -e $file && chmod +x $file; \
26677 testsuite/gras/trp_file_usage )
26679 testsuite/run_tests \
26680 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26682 test -e $file && chmod +x $file; \
26685 examples/Makefile )
26688 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26689 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26691 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26692 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26693 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26694 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26695 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26696 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26697 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26698 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26699 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26700 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26701 examples/msg/run_msg_test \
26702 examples/simdag/test_simdag \
26704 test -e $file && chmod +x $file; \
26707 examples/msg/Makefile )
26710 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26711 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26713 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26714 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26715 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26716 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26717 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26718 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26719 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26720 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26721 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26722 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26723 examples/msg/run_msg_test \
26724 examples/simdag/test_simdag \
26726 test -e $file && chmod +x $file; \
26729 examples/msg/run_msg_test )
26732 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26733 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26735 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26736 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26737 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26738 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26739 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26740 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26741 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26742 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26743 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26744 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26745 examples/msg/run_msg_test \
26746 examples/simdag/test_simdag \
26748 test -e $file && chmod +x $file; \
26751 examples/simdag/Makefile )
26754 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26755 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26757 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26758 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26759 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26760 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26761 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26762 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26763 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26764 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26765 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26766 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26767 examples/msg/run_msg_test \
26768 examples/simdag/test_simdag \
26770 test -e $file && chmod +x $file; \
26773 examples/simdag/test_simdag )
26776 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26777 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26779 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26780 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26781 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26782 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26783 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26784 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26785 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26786 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26787 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26788 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26789 examples/msg/run_msg_test \
26790 examples/simdag/test_simdag \
26792 test -e $file && chmod +x $file; \
26795 examples/gras/Makefile )
26798 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26799 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26801 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26802 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26803 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26804 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26805 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26806 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26807 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26808 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26809 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26810 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26811 examples/msg/run_msg_test \
26812 examples/simdag/test_simdag \
26814 test -e $file && chmod +x $file; \
26817 examples/gras/ping/Makefile )
26820 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26821 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26823 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26824 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26825 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26826 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26827 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26828 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26829 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26830 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26831 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26832 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26833 examples/msg/run_msg_test \
26834 examples/simdag/test_simdag \
26836 test -e $file && chmod +x $file; \
26839 examples/gras/ping/test_sg )
26842 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26843 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26845 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26846 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26847 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26848 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26849 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26850 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26851 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26852 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26853 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26854 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26855 examples/msg/run_msg_test \
26856 examples/simdag/test_simdag \
26858 test -e $file && chmod +x $file; \
26861 examples/gras/ping/test_rl )
26864 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26865 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26867 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26868 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26869 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26870 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26871 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26872 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26873 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26874 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26875 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26876 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26877 examples/msg/run_msg_test \
26878 examples/simdag/test_simdag \
26880 test -e $file && chmod +x $file; \
26883 examples/gras/rpc/Makefile )
26886 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26887 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26889 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26890 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26891 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26892 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26893 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26894 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26895 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26896 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26897 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26898 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26899 examples/msg/run_msg_test \
26900 examples/simdag/test_simdag \
26902 test -e $file && chmod +x $file; \
26905 examples/gras/rpc/test_sg )
26908 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26909 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26911 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26912 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26913 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26914 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26915 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26916 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26917 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26918 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26919 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26920 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26921 examples/msg/run_msg_test \
26922 examples/simdag/test_simdag \
26924 test -e $file && chmod +x $file; \
26927 examples/gras/rpc/test_rl )
26930 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26931 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26933 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26934 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26935 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26936 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26937 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26938 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26939 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26940 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26941 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26942 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26943 examples/msg/run_msg_test \
26944 examples/simdag/test_simdag \
26946 test -e $file && chmod +x $file; \
26949 examples/gras/timer/Makefile )
26952 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26953 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26955 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26956 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26957 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26958 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26959 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26960 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26961 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26962 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26963 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26964 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26965 examples/msg/run_msg_test \
26966 examples/simdag/test_simdag \
26968 test -e $file && chmod +x $file; \
26971 examples/gras/timer/test_sg )
26974 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26975 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26977 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26978 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26979 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26980 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26981 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26982 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26983 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26984 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26985 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26986 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26987 examples/msg/run_msg_test \
26988 examples/simdag/test_simdag \
26990 test -e $file && chmod +x $file; \
26993 examples/gras/timer/test_rl )
26996 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26997 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26999 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27000 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27001 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27002 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27003 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27004 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27005 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27006 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27007 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27008 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27009 examples/msg/run_msg_test \
27010 examples/simdag/test_simdag \
27012 test -e $file && chmod +x $file; \
27015 examples/gras/chrono/Makefile )
27018 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27019 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27021 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27022 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27023 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27024 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27025 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27026 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27027 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27028 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27029 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27030 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27031 examples/msg/run_msg_test \
27032 examples/simdag/test_simdag \
27034 test -e $file && chmod +x $file; \
27037 examples/gras/chrono/test_sg )
27040 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27041 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27043 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27044 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27045 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27046 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27047 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27048 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27049 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27050 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27051 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27052 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27053 examples/msg/run_msg_test \
27054 examples/simdag/test_simdag \
27056 test -e $file && chmod +x $file; \
27059 examples/gras/chrono/test_rl )
27062 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27063 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27065 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27066 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27067 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27068 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27069 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27070 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27071 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27072 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27073 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27074 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27075 examples/msg/run_msg_test \
27076 examples/simdag/test_simdag \
27078 test -e $file && chmod +x $file; \
27081 examples/gras/mutual_exclusion/simple_token/Makefile )
27084 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27085 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27087 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27088 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27089 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27090 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27091 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27092 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27093 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27094 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27095 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27096 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27097 examples/msg/run_msg_test \
27098 examples/simdag/test_simdag \
27100 test -e $file && chmod +x $file; \
27103 examples/gras/mutual_exclusion/simple_token/test_sg )
27106 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27107 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27109 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27110 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27111 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27112 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27113 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27114 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27115 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27116 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27117 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27118 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27119 examples/msg/run_msg_test \
27120 examples/simdag/test_simdag \
27122 test -e $file && chmod +x $file; \
27125 examples/gras/mutual_exclusion/simple_token/test_rl )
27128 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27129 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27131 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27132 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27133 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27134 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27135 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27136 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27137 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27138 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27139 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27140 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27141 examples/msg/run_msg_test \
27142 examples/simdag/test_simdag \
27144 test -e $file && chmod +x $file; \
27147 examples/gras/mmrpc/Makefile )
27150 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27151 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27153 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27154 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27155 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27156 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27157 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27158 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27159 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27160 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27161 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27162 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27163 examples/msg/run_msg_test \
27164 examples/simdag/test_simdag \
27166 test -e $file && chmod +x $file; \
27169 examples/gras/mmrpc/test_sg )
27172 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27173 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27175 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27176 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27177 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27178 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27179 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27180 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27181 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27182 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27183 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27184 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27185 examples/msg/run_msg_test \
27186 examples/simdag/test_simdag \
27188 test -e $file && chmod +x $file; \
27191 examples/gras/mmrpc/test_rl )
27194 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27195 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27197 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27198 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27199 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27200 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27201 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27202 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27203 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27204 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27205 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27206 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27207 examples/msg/run_msg_test \
27208 examples/simdag/test_simdag \
27210 test -e $file && chmod +x $file; \
27213 examples/gras/pmm/Makefile )
27216 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27217 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27219 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27220 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27221 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27222 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27223 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27224 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27225 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27226 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27227 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27228 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27229 examples/msg/run_msg_test \
27230 examples/simdag/test_simdag \
27232 test -e $file && chmod +x $file; \
27235 examples/gras/pmm/test_sg )
27238 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27239 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27241 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27242 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27243 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27244 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27245 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27246 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27247 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27248 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27249 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27250 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27251 examples/msg/run_msg_test \
27252 examples/simdag/test_simdag \
27254 test -e $file && chmod +x $file; \
27257 examples/gras/pmm/test_rl )
27260 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27261 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27263 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27264 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27265 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27266 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27267 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27268 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27269 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27270 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27271 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27272 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27273 examples/msg/run_msg_test \
27274 examples/simdag/test_simdag \
27276 test -e $file && chmod +x $file; \
27279 examples/gras/all2all/Makefile )
27282 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27283 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27285 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27286 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27287 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27288 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27289 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27290 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27291 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27292 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27293 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27294 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27295 examples/msg/run_msg_test \
27296 examples/simdag/test_simdag \
27298 test -e $file && chmod +x $file; \
27301 examples/gras/all2all/test_sg )
27304 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27305 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27307 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27308 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27309 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27310 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27311 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27312 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27313 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27314 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27315 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27316 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27317 examples/msg/run_msg_test \
27318 examples/simdag/test_simdag \
27320 test -e $file && chmod +x $file; \
27323 examples/gras/all2all/test_rl )
27326 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27327 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27329 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27330 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27331 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27332 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27333 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27334 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27335 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27336 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27337 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27338 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27339 examples/msg/run_msg_test \
27340 examples/simdag/test_simdag \
27342 test -e $file && chmod +x $file; \
27345 examples/gras/p2p/Makefile )
27348 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27349 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27351 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27352 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27353 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27354 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27355 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27356 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27357 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27358 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27359 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27360 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27361 examples/msg/run_msg_test \
27362 examples/simdag/test_simdag \
27364 test -e $file && chmod +x $file; \
27367 examples/gras/p2p/chord/Makefile )
27370 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27371 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27373 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27374 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27375 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27376 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27377 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27378 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27379 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27380 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27381 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27382 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27383 examples/msg/run_msg_test \
27384 examples/simdag/test_simdag \
27386 test -e $file && chmod +x $file; \
27389 examples/gras/p2p/chord/test_sg )
27392 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27393 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27395 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27396 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27397 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27398 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27399 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27400 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27401 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27402 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27403 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27404 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27405 examples/msg/run_msg_test \
27406 examples/simdag/test_simdag \
27408 test -e $file && chmod +x $file; \
27411 examples/gras/p2p/chord/test_rl )
27414 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27415 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27417 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27418 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27419 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27420 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27421 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27422 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27423 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27424 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27425 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27426 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27427 examples/msg/run_msg_test \
27428 examples/simdag/test_simdag \
27430 test -e $file && chmod +x $file; \
27433 examples/gras/p2p/can/Makefile )
27436 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27437 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27439 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27440 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27441 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27442 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27443 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27444 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27445 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27446 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27447 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27448 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27449 examples/msg/run_msg_test \
27450 examples/simdag/test_simdag \
27452 test -e $file && chmod +x $file; \
27455 examples/gras/p2p/can/test_sg )
27458 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27459 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27461 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27462 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27463 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27464 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27465 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27466 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27467 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27468 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27469 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27470 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27471 examples/msg/run_msg_test \
27472 examples/simdag/test_simdag \
27474 test -e $file && chmod +x $file; \
27477 examples/gras/p2p/can/test_rl )
27480 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27481 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27483 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27484 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27485 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27486 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27487 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27488 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27489 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27490 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27491 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27492 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27493 examples/msg/run_msg_test \
27494 examples/simdag/test_simdag \
27496 test -e $file && chmod +x $file; \
27499 examples/amok/Makefile )
27502 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27503 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27505 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27506 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27507 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27508 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27509 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27510 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27511 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27512 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27513 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27514 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27515 examples/msg/run_msg_test \
27516 examples/simdag/test_simdag \
27518 test -e $file && chmod +x $file; \
27521 examples/amok/bandwidth/Makefile )
27524 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27525 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27527 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27528 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27529 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27530 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27531 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27532 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27533 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27534 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27535 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27536 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27537 examples/msg/run_msg_test \
27538 examples/simdag/test_simdag \
27540 test -e $file && chmod +x $file; \
27543 examples/amok/bandwidth/test_sg )
27546 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27547 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27549 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27550 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27551 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27552 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27553 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27554 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27555 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27556 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27557 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27558 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27559 examples/msg/run_msg_test \
27560 examples/simdag/test_simdag \
27562 test -e $file && chmod +x $file; \
27565 examples/amok/bandwidth/test_rl )
27568 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27569 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27571 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27572 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27573 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27574 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27575 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27576 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27577 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27578 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27579 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27580 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27581 examples/msg/run_msg_test \
27582 examples/simdag/test_simdag \
27584 test -e $file && chmod +x $file; \
27587 examples/amok/saturate/Makefile )
27590 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27591 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27593 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27594 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27595 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27596 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27597 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27598 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27599 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27600 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27601 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27602 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27603 examples/msg/run_msg_test \
27604 examples/simdag/test_simdag \
27606 test -e $file && chmod +x $file; \
27609 examples/amok/saturate/test_sg )
27612 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27613 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27615 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27616 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27617 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27618 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27619 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27620 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27621 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27622 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27623 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27624 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27625 examples/msg/run_msg_test \
27626 examples/simdag/test_simdag \
27628 test -e $file && chmod +x $file; \
27631 examples/amok/saturate/test_rl )
27634 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27635 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27637 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27638 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27639 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27640 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27641 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27642 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27643 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27644 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27645 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27646 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27647 examples/msg/run_msg_test \
27648 examples/simdag/test_simdag \
27650 test -e $file && chmod +x $file; \
27656 cat >>$CONFIG_STATUS <<\_ACEOF
27659 # CONFIG_HEADER section.
27662 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27663 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27665 # ac_d sets the value in "#define NAME VALUE" lines.
27666 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27667 ac_dB='[ ].*$,\1#\2'
27670 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27671 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27672 ac_uB='$,\1#\2define\3'
27676 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27677 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27679 - | *:- | *:-:* ) # input from stdin
27681 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27682 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27683 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27685 * ) ac_file_in=$ac_file.in ;;
27688 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27689 echo "$as_me: creating $ac_file" >&6;}
27691 # First look for the input files in the build tree, otherwise in the
27693 ac_file_inputs=`IFS=:
27694 for f in $ac_file_in; do
27696 -) echo $tmp/stdin ;;
27698 # Absolute (can't be DOS-style, as IFS=:)
27699 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27700 echo "$as_me: error: cannot find input file: $f" >&2;}
27701 { (exit 1); exit 1; }; }
27702 # Do quote $f, to prevent DOS paths from being IFS'd.
27705 if test -f "$f"; then
27708 elif test -f "$srcdir/$f"; then
27713 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27714 echo "$as_me: error: cannot find input file: $f" >&2;}
27715 { (exit 1); exit 1; }; }
27718 done` || { (exit 1); exit 1; }
27719 # Remove the trailing spaces.
27720 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27724 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27725 # `conftest.undefs', that substitutes the proper values into
27726 # config.h.in to produce config.h. The first handles `#define'
27727 # templates, and the second `#undef' templates.
27728 # And first: Protect against being on the right side of a sed subst in
27729 # config.status. Protect against being in an unquoted here document
27730 # in config.status.
27731 rm -f conftest.defines conftest.undefs
27732 # Using a here document instead of a string reduces the quoting nightmare.
27733 # Putting comments in sed scripts is not portable.
27735 # `end' is used to avoid that the second main sed command (meant for
27736 # 0-ary CPP macros) applies to n-ary macro definitions.
27737 # See the Autoconf documentation for `clear'.
27738 cat >confdef2sed.sed <<\_ACEOF
27743 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27745 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27748 # If some macros were called several times there might be several times
27749 # the same #defines, which is useless. Nevertheless, we may not want to
27750 # sort them, since we want the *last* AC-DEFINE to be honored.
27751 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27752 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27753 rm -f confdef2sed.sed
27755 # This sed command replaces #undef with comments. This is necessary, for
27756 # example, in the case of _POSIX_SOURCE, which is predefined and required
27757 # on some systems where configure will not decide to define it.
27758 cat >>conftest.undefs <<\_ACEOF
27759 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27762 # Break up conftest.defines because some shells have a limit on the size
27763 # of here documents, and old seds have small limits too (100 cmds).
27764 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27765 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27766 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27767 echo ' :' >>$CONFIG_STATUS
27768 rm -f conftest.tail
27769 while grep . conftest.defines >/dev/null
27771 # Write a limited-size here document to $tmp/defines.sed.
27772 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27773 # Speed up: don't consider the non `#define' lines.
27774 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27775 # Work around the forget-to-reset-the-flag bug.
27776 echo 't clr' >>$CONFIG_STATUS
27777 echo ': clr' >>$CONFIG_STATUS
27778 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27780 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27782 mv $tmp/out $tmp/in
27784 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27785 rm -f conftest.defines
27786 mv conftest.tail conftest.defines
27788 rm -f conftest.defines
27789 echo ' fi # grep' >>$CONFIG_STATUS
27790 echo >>$CONFIG_STATUS
27792 # Break up conftest.undefs because some shells have a limit on the size
27793 # of here documents, and old seds have small limits too (100 cmds).
27794 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27795 rm -f conftest.tail
27796 while grep . conftest.undefs >/dev/null
27798 # Write a limited-size here document to $tmp/undefs.sed.
27799 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27800 # Speed up: don't consider the non `#undef'
27801 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27802 # Work around the forget-to-reset-the-flag bug.
27803 echo 't clr' >>$CONFIG_STATUS
27804 echo ': clr' >>$CONFIG_STATUS
27805 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27807 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27809 mv $tmp/out $tmp/in
27811 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27812 rm -f conftest.undefs
27813 mv conftest.tail conftest.undefs
27815 rm -f conftest.undefs
27817 cat >>$CONFIG_STATUS <<\_ACEOF
27818 # Let's still pretend it is `configure' which instantiates (i.e., don't
27819 # use $as_me), people would be surprised to read:
27820 # /* config.h. Generated by config.status. */
27821 if test x"$ac_file" = x-; then
27822 echo "/* Generated by configure. */" >$tmp/config.h
27824 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27826 cat $tmp/in >>$tmp/config.h
27828 if test x"$ac_file" != x-; then
27829 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27830 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27831 echo "$as_me: $ac_file is unchanged" >&6;}
27833 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27835 X"$ac_file" : 'X\(//\)[^/]' \| \
27836 X"$ac_file" : 'X\(//\)$' \| \
27837 X"$ac_file" : 'X\(/\)' \| \
27838 . : '\(.\)' 2>/dev/null ||
27840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27842 /^X\(\/\/\)$/{ s//\1/; q; }
27843 /^X\(\/\).*/{ s//\1/; q; }
27845 { if $as_mkdir_p; then
27850 while test ! -d "$as_dir"; do
27851 as_dirs="$as_dir $as_dirs"
27852 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27854 X"$as_dir" : 'X\(//\)[^/]' \| \
27855 X"$as_dir" : 'X\(//\)$' \| \
27856 X"$as_dir" : 'X\(/\)' \| \
27857 . : '\(.\)' 2>/dev/null ||
27859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27861 /^X\(\/\/\)$/{ s//\1/; q; }
27862 /^X\(\/\).*/{ s//\1/; q; }
27865 test ! -n "$as_dirs" || mkdir $as_dirs
27866 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27867 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27868 { (exit 1); exit 1; }; }; }
27871 mv $tmp/config.h $ac_file
27875 rm -f $tmp/config.h
27877 # Compute $ac_file's index in $config_headers.
27879 for _am_header in $config_headers :; do
27880 case $_am_header in
27881 $ac_file | $ac_file:* )
27884 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27887 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27888 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27889 X$ac_file : 'X\(//\)[^/]' \| \
27890 X$ac_file : 'X\(//\)$' \| \
27891 X$ac_file : 'X\(/\)' \| \
27892 . : '\(.\)' 2>/dev/null ||
27894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27896 /^X\(\/\/\)$/{ s//\1/; q; }
27897 /^X\(\/\).*/{ s//\1/; q; }
27898 s/.*/./; q'`/stamp-h$_am_stamp_count
27901 cat >>$CONFIG_STATUS <<\_ACEOF
27904 # CONFIG_COMMANDS section.
27906 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27907 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27908 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27909 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27910 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27911 X"$ac_dest" : 'X\(//\)[^/]' \| \
27912 X"$ac_dest" : 'X\(//\)$' \| \
27913 X"$ac_dest" : 'X\(/\)' \| \
27914 . : '\(.\)' 2>/dev/null ||
27916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27918 /^X\(\/\/\)$/{ s//\1/; q; }
27919 /^X\(\/\).*/{ s//\1/; q; }
27921 { if $as_mkdir_p; then
27926 while test ! -d "$as_dir"; do
27927 as_dirs="$as_dir $as_dirs"
27928 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27930 X"$as_dir" : 'X\(//\)[^/]' \| \
27931 X"$as_dir" : 'X\(//\)$' \| \
27932 X"$as_dir" : 'X\(/\)' \| \
27933 . : '\(.\)' 2>/dev/null ||
27935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27937 /^X\(\/\/\)$/{ s//\1/; q; }
27938 /^X\(\/\).*/{ s//\1/; q; }
27941 test ! -n "$as_dirs" || mkdir $as_dirs
27942 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27943 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27944 { (exit 1); exit 1; }; }; }
27948 if test "$ac_dir" != .; then
27949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27950 # A "../" for each directory in $ac_dir_suffix.
27951 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27953 ac_dir_suffix= ac_top_builddir=
27957 .) # No --srcdir option. We are building in place.
27959 if test -z "$ac_top_builddir"; then
27962 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27964 [\\/]* | ?:[\\/]* ) # Absolute path.
27965 ac_srcdir=$srcdir$ac_dir_suffix;
27966 ac_top_srcdir=$srcdir ;;
27967 *) # Relative path.
27968 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27969 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27972 # Do not use `cd foo && pwd` to compute absolute paths, because
27973 # the directories may not exist.
27975 .) ac_abs_builddir="$ac_dir";;
27978 .) ac_abs_builddir=`pwd`;;
27979 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27980 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27983 case $ac_abs_builddir in
27984 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27986 case ${ac_top_builddir}. in
27987 .) ac_abs_top_builddir=$ac_abs_builddir;;
27988 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27989 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27992 case $ac_abs_builddir in
27993 .) ac_abs_srcdir=$ac_srcdir;;
27996 .) ac_abs_srcdir=$ac_abs_builddir;;
27997 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27998 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28001 case $ac_abs_builddir in
28002 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28004 case $ac_top_srcdir in
28005 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28006 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28007 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28012 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28013 echo "$as_me: executing $ac_dest commands" >&6;}
28015 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28016 # Strip MF so we end up with the name of the file.
28017 mf=`echo "$mf" | sed -e 's/:.*$//'`
28018 # Check whether this is an Automake generated Makefile or not.
28019 # We used to match only the files named `Makefile.in', but
28020 # some people rename them; so instead we look at the file content.
28021 # Grep'ing the first line is not enough: some people post-process
28022 # each Makefile.in and add a new line on top of each file to say so.
28023 # So let's grep whole file.
28024 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28025 dirpart=`(dirname "$mf") 2>/dev/null ||
28026 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28027 X"$mf" : 'X\(//\)[^/]' \| \
28028 X"$mf" : 'X\(//\)$' \| \
28029 X"$mf" : 'X\(/\)' \| \
28030 . : '\(.\)' 2>/dev/null ||
28032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28034 /^X\(\/\/\)$/{ s//\1/; q; }
28035 /^X\(\/\).*/{ s//\1/; q; }
28040 # Extract the definition of DEPDIR, am__include, and am__quote
28041 # from the Makefile without running `make'.
28042 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28043 test -z "$DEPDIR" && continue
28044 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28045 test -z "am__include" && continue
28046 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28047 # When using ansi2knr, U may be empty or an underscore; expand it
28048 U=`sed -n 's/^U = //p' < "$mf"`
28049 # Find all dependency output files, they are included files with
28050 # $(DEPDIR) in their names. We invoke sed twice because it is the
28051 # simplest approach to changing $(DEPDIR) to its actual value in the
28053 for file in `sed -n "
28054 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28055 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28056 # Make sure the directory exists.
28057 test -f "$dirpart/$file" && continue
28058 fdir=`(dirname "$file") 2>/dev/null ||
28059 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28060 X"$file" : 'X\(//\)[^/]' \| \
28061 X"$file" : 'X\(//\)$' \| \
28062 X"$file" : 'X\(/\)' \| \
28063 . : '\(.\)' 2>/dev/null ||
28065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28066 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28067 /^X\(\/\/\)$/{ s//\1/; q; }
28068 /^X\(\/\).*/{ s//\1/; q; }
28070 { if $as_mkdir_p; then
28071 mkdir -p $dirpart/$fdir
28073 as_dir=$dirpart/$fdir
28075 while test ! -d "$as_dir"; do
28076 as_dirs="$as_dir $as_dirs"
28077 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28079 X"$as_dir" : 'X\(//\)[^/]' \| \
28080 X"$as_dir" : 'X\(//\)$' \| \
28081 X"$as_dir" : 'X\(/\)' \| \
28082 . : '\(.\)' 2>/dev/null ||
28084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28086 /^X\(\/\/\)$/{ s//\1/; q; }
28087 /^X\(\/\).*/{ s//\1/; q; }
28090 test ! -n "$as_dirs" || mkdir $as_dirs
28091 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28092 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28093 { (exit 1); exit 1; }; }; }
28095 # echo "creating $dirpart/$file"
28096 echo '# dummy' > "$dirpart/$file"
28104 cat >>$CONFIG_STATUS <<\_ACEOF
28106 { (exit 0); exit 0; }
28108 chmod +x $CONFIG_STATUS
28109 ac_clean_files=$ac_clean_files_save
28112 # configure is writing to config.log, and then calls config.status.
28113 # config.status does its own redirection, appending to config.log.
28114 # Unfortunately, on DOS this fails, as config.log is still kept open
28115 # by configure, so config.status won't be able to write to it; its
28116 # output is simply discarded. So we exec the FD to /dev/null,
28117 # effectively closing config.log, so it can be properly (re)opened and
28118 # appended to by config.status. When coming back to configure, we
28119 # need to make the FD available again.
28120 if test "$no_create" != yes; then
28122 ac_config_status_args=
28123 test "$silent" = yes &&
28124 ac_config_status_args="$ac_config_status_args --quiet"
28126 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28128 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28129 # would make configure fail if this is the last instruction.
28130 $ac_cs_success || { (exit 1); exit 1; }
28136 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28138 Compiler: ${CC} (version: ${GCC_VERSION})
28141 CPPFlags: ${CPPFLAGS}
28142 LDFlags: ${LDFLAGS}
28144 Context backend: ${with_context}
28147 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28149 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28150 echo "WARNING: You may want to enable this by specifying:"
28152 echo "WARNING: ./configure --enable-maintainer-mode $ac_configure_args"
28155 echo $build_id > stamp.configure